make/build.xml

changeset 1755
bf97e9141fe5
parent 1550
e9ea7010825b
child 1648
ab5cb7c26321
equal deleted inserted replaced
1754:ee2c313d02a3 1755:bf97e9141fe5
207 </section> 207 </section>
208 </manifest> 208 </manifest>
209 </jar> 209 </jar>
210 </target> 210 </target>
211 211
212 <!-- generate javadoc for all Nashorn and ASM classes -->
212 <target name="javadoc" depends="jar"> 213 <target name="javadoc" depends="jar">
213 <javadoc destdir="${dist.javadoc.dir}" use="yes" overview="${src.dir}/overview.html" 214 <javadoc destdir="${dist.javadoc.dir}" use="yes" overview="${src.dir}/overview.html"
214 extdirs="${nashorn.ext.path}" windowtitle="${nashorn.product.name} ${nashorn.version}" 215 extdirs="${nashorn.ext.path}" windowtitle="${nashorn.product.name} ${nashorn.version}"
215 additionalparam="-quiet" failonerror="true"> 216 additionalparam="-quiet" failonerror="true" useexternalfile="true">
216 <classpath> 217 <classpath>
217 <pathelement location="${build.classes.dir}"/> 218 <pathelement location="${build.classes.dir}"/>
218 </classpath> 219 </classpath>
219 <fileset dir="${src.dir}" includes="**/*.java"/> 220 <fileset dir="${src.dir}" includes="**/*.java"/>
220 <fileset dir="${jdk.asm.src.dir}" includes="**/*.java"/> 221 <fileset dir="${jdk.asm.src.dir}" includes="**/*.java"/>
224 <tag name="linked" description="linked tag in ASM sources" enabled="false"/> 225 <tag name="linked" description="linked tag in ASM sources" enabled="false"/>
225 <tag name="associates" description="associates tag in ASM sources" enabled="false"/> 226 <tag name="associates" description="associates tag in ASM sources" enabled="false"/>
226 </javadoc> 227 </javadoc>
227 </target> 228 </target>
228 229
230 <!-- generate javadoc for Nashorn classes -->
231 <target name="javadocnh" depends="jar">
232 <javadoc destdir="${dist.javadoc.dir}" use="yes" overview="${src.dir}/overview.html"
233 extdirs="${nashorn.ext.path}" windowtitle="${nashorn.product.name} ${nashorn.version}"
234 additionalparam="-quiet" failonerror="true" useexternalfile="true">
235 <classpath>
236 <pathelement location="${build.classes.dir}"/>
237 </classpath>
238 <fileset dir="${src.dir}" includes="**/*.java"/>
239 <link href="http://docs.oracle.com/javase/8/docs/api/"/>
240 </javadoc>
241 </target>
242
229 <!-- generate javadoc only for nashorn extension api classes --> 243 <!-- generate javadoc only for nashorn extension api classes -->
230 <target name="javadocapi" depends="jar"> 244 <target name="javadocapi" depends="jar">
231 <javadoc destdir="${dist.javadoc.dir}" use="yes" extdirs="${nashorn.ext.path}" 245 <javadoc destdir="${dist.javadoc.dir}" use="yes" extdirs="${nashorn.ext.path}"
232 windowtitle="${nashorn.product.name}" additionalparam="-quiet" failonerror="true"> 246 windowtitle="${nashorn.product.name}" additionalparam="-quiet" failonerror="true" useexternalfile="true">
233 <classpath> 247 <classpath>
234 <pathelement location="${build.classes.dir}"/> 248 <pathelement location="${build.classes.dir}"/>
235 </classpath> 249 </classpath>
236 <fileset dir="${src.dir}" includes="jdk/nashorn/api/**/*.java"/> 250 <fileset dir="${src.dir}" includes="jdk/nashorn/api/**/*.java"/>
237 <link href="http://docs.oracle.com/javase/8/docs/api/"/> 251 <link href="http://docs.oracle.com/javase/8/docs/api/"/>
238 </javadoc> 252 </javadoc>
239 </target> 253 </target>
240
241 254
242 <!-- generate shell.html for shell tool documentation --> 255 <!-- generate shell.html for shell tool documentation -->
243 <target name="shelldoc" depends="jar"> 256 <target name="shelldoc" depends="jar">
244 <java classname="${nashorn.shell.tool}" dir="${basedir}" output="${dist.dir}/shell.html" failonerror="true" fork="true"> 257 <java classname="${nashorn.shell.tool}" dir="${basedir}" output="${dist.dir}/shell.html" failonerror="true" fork="true">
245 <jvmarg line="${ext.class.path}"/> 258 <jvmarg line="${ext.class.path}"/>
265 classpath="${file.reference.testng.jar}"/> 278 classpath="${file.reference.testng.jar}"/>
266 279
267 <javac srcdir="${test.src.dir}" 280 <javac srcdir="${test.src.dir}"
268 destdir="${build.test.classes.dir}" 281 destdir="${build.test.classes.dir}"
269 classpath="${javac.test.classpath}" 282 classpath="${javac.test.classpath}"
270 source="${javac.source}" 283 source="${test.javac.source}"
271 target="${javac.target}" 284 target="${test.javac.target}"
272 debug="${javac.debug}" 285 debug="${javac.debug}"
273 encoding="${javac.encoding}" 286 encoding="${javac.encoding}"
274 includeantruntime="false" fork="true"> 287 includeantruntime="false" fork="true">
275 <compilerarg value="-J-Djava.ext.dirs="/> 288 <compilerarg value="-J-Djava.ext.dirs="/>
276 <compilerarg value="-Xlint:unchecked"/> 289 <compilerarg value="-Xlint:unchecked"/>
458 <pathelement path="${run.test.classpath}"/> 471 <pathelement path="${run.test.classpath}"/>
459 </classpath> 472 </classpath>
460 </testng> 473 </testng>
461 </target> 474 </target>
462 475
463 <target name="test" depends="get-testng, javadoc, test-pessimistic, test-optimistic"/> 476 <target name="test" depends="get-testng, javadocnh, test-pessimistic, test-optimistic"/>
464 477
465 <target name="test-optimistic" depends="jar, -test-classes-all,-test-classes-single, check-testng, check-external-tests, compile-test, generate-policy-file" if="testng.available"> 478 <target name="test-optimistic" depends="jar, -test-classes-all,-test-classes-single, check-testng, check-external-tests, compile-test, generate-policy-file" if="testng.available">
466 <echo message="Running test suite in OPTIMISTIC mode..."/> 479 <echo message="Running test suite in OPTIMISTIC mode..."/>
467 <antcall target="-test-nosecurity" inheritRefs="true"> 480 <antcall target="-test-nosecurity" inheritRefs="true">
468 <param name="optimistic" value="true"/> 481 <param name="optimistic" value="true"/>

mercurial