Eclipse 3.1.2 does not save JUnit 4.1 preference [message #160307] |
Tue, 11 July 2006 15:36 |
Eclipse User |
|
|
|
Originally posted by: henryc.nortel.com
I am successfully using JUnit4.1 with Eclipse 3.1.2 with the following
annoyance: Each time I start Eclipse, I need to set the JUnit preference to
the JUnit 4.1 installation path.
eg:
Window-Preferences-Java-Build Path-Classpath Variables:
from JUNIT_HOME d:/Program Files/eclipse/plugins/org.junit_3.8.1
to JUNIT_HOME D:/JUnit/junit4.1
It seems that the preference is not being saved at Eclipse shutdown. Any
help is greatly appreciated.
Thanks,
Henry
|
|
|
Re: Eclipse 3.1.2 does not save JUnit 4.1 preference [message #161204 is a reply to message #160307] |
Mon, 17 July 2006 09:43 |
Markus Keller Messages: 294 Registered: July 2009 |
Senior Member |
|
|
Sorry, that's the way the JUnit classpath variables work; they are
initialized on startup and are not supposed to be changed by the user.
Workarounds:
(A) Update to Eclipse 3.2, which provides a built-in JUnit4 classpath
container (Project Properties > Javav Build Path > Libraries > Add
Library...).
(B) Define your own classpath variable (e.g. JUNIT4_HOME) and use that
one in your test projects.
(C) Add the JUnit4 jar directly on your classpath (or put it into its
own project and make your test projects depend on it).
HTH,
Markus
On 2006-07-11 17:36, Henry Charlton wrote:
> I am successfully using JUnit4.1 with Eclipse 3.1.2 with the following
> annoyance: Each time I start Eclipse, I need to set the JUnit preference to
> the JUnit 4.1 installation path.
>
> eg:
> Window-Preferences-Java-Build Path-Classpath Variables:
> from JUNIT_HOME d:/Program Files/eclipse/plugins/org.junit_3.8.1
> to JUNIT_HOME D:/JUnit/junit4.1
>
> It seems that the preference is not being saved at Eclipse shutdown. Any
> help is greatly appreciated.
>
> Thanks,
> Henry
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.09652 seconds