jtreg and junit
Jonathan Gibbons
jonathan.gibbons at oracle.com
Fri Sep 30 08:54:45 PDT 2011
On 09/30/2011 12:58 AM, Henri Gomez wrote:
> How did jtreg construct it's path to get junit.jar ?
>
I've just checked the code. It looks in order for
1. System property "junit.jar"
2. System property "jtreg.home" + lib/junit.jar
3. Location of class org.junit.runner.JUnitCore on the classpath
4. junit.jar in same directory as jtreg.jar
The source code for jtreg is available on the OpenJDK jtreg download
page. The relevant code is in
src/share/classes/com/sun/javatest/regtest/Main.java, method
"findSystemJarFiles".
-- Jon
Note: I will be out of the office and mostly out of contact next week,
back Oct 10.
More information about the macosx-port-dev
mailing list