Running and building with NetBeans: a plea for help (original) (raw)

Roger Riggs Roger.Riggs at Oracle.com
Wed Nov 15 20:13:58 UTC 2017


Hi Andrew,

It looks like you have found fortune on another path and that's good.

The ant task in make/jdk/netbeans/common/shared.xml is passing the jtreg.tests incorrectly to jtreg. JTreg expects the tests to be command line arguments but is passed using an ant property.

After the patch below, I had to define/override root, build.dir  to make it work; something like:

ROOT=/scratch/open
ant  -Djtreg.tests=$ROOT/test/jdk/java/time/
-Dbuild.dir=$ROOT/build/linux-x64/jdk/  \
-Droot=$ROOT -debug -verbose -f $ROOT/make/jdk/netbeans/j2se jtreg

Alternatively you can supply the tests in the jtreg.options property that is passed as command line args.

(There is lots of magic in the project files that I did not try to figure out; not being a Netbeans person)

Good luck,  Roger

diff --git a/make/jdk/netbeans/common/shared.xml b/make/jdk/netbeans/common/shared.xml --- a/make/jdk/netbeans/common/shared.xml +++ b/make/jdk/netbeans/common/shared.xml @@ -262,9 +262,8 @@                 vmoptions="${jtreg.vm.options}"                 javacoptions="-g"                 reportDir="${jtreg.dir}/JTreport" -               workDir="${jtreg.dir}/JTwork" -               includes="${jtreg.tests}"> -            +               workDir="${jtreg.dir}/JTwork"> +                              

On 11/15/2017 11:29 AM, Andrew Haley wrote:

I've been trying to get the netbeans project at jdk/make/jdk/netbeans/jdk working. It all builds, but I can't get tests to run.

Current output is: ant -f /scratch/jdk/make/jdk/netbeans/j2se jtreg /scratch/jdk/make/jdk/netbeans/common/shared.xml:266: No tests selected I don't know what to do, and I've been puzzling for days. If anyone here uses netbeans and jtreg, please send me your build.properties (or any other information) so I can try to figure out what I'm doing wrong. Thanks.



More information about the jdk-dev mailing list