jtreg and junit
Kelly O'Hair
kelly.ohair at oracle.com
Fri Sep 30 09:28:08 PDT 2011
I'm on Ubuntu 10.04, but this worked for me:
mkdir -p ${HOME}/jtreg
cd ${HOME}/jtreg
if [ ! -f jtreg/win32/bin/jtreg ] ; then
rm -f jtreg-4.1-bin-b03_11_jul_2011.zip
wget http://www.java.net/download/openjdk/jtreg/promoted/4.1/b03/jtreg-4.1-bin
-b03_11_jul_2011.zip
unzip jtreg-4.1-bin-b03_11_jul_2011.zip
rm -f jtreg-4.1-bin-b03_11_jul_2011.zip
fi
if [ ! -f jtreg/lib/junit.jar ] ; then
rm -f junit-4.5.jar
wget http://sourceforge.net/projects/junit/files/junit/4.5/junit-4.5.jar
rm -f jtreg/lib/junit.jar
mv junit-4.5.jar jtreg/lib/junit.jar
fi
export JT_HOME=${HOME}/jtreg/jtreg
-kto
On Sep 30, 2011, at 8:54 AM, Jonathan Gibbons wrote:
> 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