On 02/10/10 15:25, Stephan Bergmann wrote:
On 02/10/10 15:12, Rene Engelhard wrote:
2.1 try to find it on CLASSPATH (which would imply that set_soenv.in must no longer resets the CLASSPATH; which is probably dubious, anyway---as dubious as the additional XCLASSPATH), or

Which probably will break a lost of system* stuff, so I'd be wary..
Of course you shoudl try your best (like with the SRB libs,
the tomcat libs or the apache-commons libs) to find out where a junit4
is. [ /usr/share/java/junit4.jar is a safe bet. ]

Ah, hadn't been aware of this. Yes, sounds best to do it in the same way as it is already done for those other jars.

<http://hg.services.openoffice.org/cws/sb118/rev/5e0e44fe5336> and <http://hg.services.openoffice.org/cws/sb118/rev/dadde6e07f1c> now make JUnit 4 a prerequisite for building OOo.

Plain configure will look for either /usr/share/java/junit4.jar or /usr/share/java/junit.jar (doing a minimal check of calling "jar t" on that file to see it contains JUnit-4-specific org/junit/Before.class) and break if none is available. configure --with-junit=... will use the specified pathname. configure --without-junit will disable the tests in the OOo code base that require JUnit.

The relevant environment variable set via set_soenv.in is OOO_JUNIT_JAR, containing the absolute pathname of the jar file (on Cygwin in X:/path notation) or empty for --without-junit. (Hamburg setsolar environment contains OOO_JUNIT_JAR=/so/env/btools/junit-4.8.1.jar.)

CWS sb118 is intended to be integrated into the DEV300 code line, either before or after OOo 3.3.

-Stephan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org

Reply via email to