changeset 29403:c98efa93ba57

8074491: run-nasgen in ant doesn't see the right Nashorn classes Reviewed-by: hannesw, lagergren
author attila
date Fri, 06 Mar 2015 09:59:07 +0100
parents 82cd31c5d6ca
children d9023e6faff1
files nashorn/make/build-nasgen.xml
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/nashorn/make/build-nasgen.xml	Wed Jul 05 20:23:32 2017 +0200
+++ b/nashorn/make/build-nasgen.xml	Fri Mar 06 09:59:07 2015 +0100
@@ -35,11 +35,10 @@
             <classpath>
                 <pathelement location="${basedir}/jcov2/lib/jcov_j2se_rt.jar"/>
                 <pathelement location="${basedir}/buildtools/nasgen/dist/nasgen.jar"/>
-                <pathelement path="${basedir}/build/classes"/>
                 <pathelement location="${dist.dir}/nasgen.jar"/>
                 <pathelement path="${build.dir}/classes"/>
             </classpath>
-            <jvmarg value="${boot.class.path}"/>
+            <jvmarg value="-Xbootclasspath/p:${basedir}/build/classes"/>
             <arg value="${build.dir}/classes"/>
             <arg value="jdk.nashorn.internal.objects"/>
             <arg value="${build.dir}/classes"/>
@@ -52,8 +51,8 @@
         <java classname="jdk.nashorn.internal.tools.nasgen.Main" fork="true" failonerror="true">
             <classpath>
                 <pathelement location="${basedir}/buildtools/nasgen/dist/nasgen.jar"/>
-                <pathelement path="${basedir}/build/eclipse"/>
             </classpath>
+            <jvmarg value="-Xbootclasspath/p:${basedir}/build/eclipse"/>
             <arg value="${basedir}/build/eclipse"/>
             <arg value="jdk.nashorn.internal.objects"/>
             <arg value="${basedir}/build/eclipse/.nasgentmp"/>