Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/make/netbeans/jdwpgen/nbproject/build-impl.xml
38828 views
<?xml version="1.0" encoding="UTF-8"?>1<!--2*** GENERATED FROM project.xml - DO NOT EDIT ***3*** EDIT ../build.xml INSTEAD ***45For the purpose of easier reading the script6is divided into following sections:78- initialization9- compilation10- jar11- execution12- debugging13- javadoc14- junit compilation15- junit execution16- junit debugging17- applet18- cleanup1920-->21<project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="jdwpgen-impl">22<target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>23<!--24======================25INITIALIZATION SECTION26======================27-->28<target name="-pre-init">29<!-- Empty placeholder for easier customization. -->30<!-- You can override this target in the ../build.xml file. -->31</target>32<target depends="-pre-init" name="-init-private">33<property file="nbproject/private/config.properties"/>34<property file="nbproject/private/configs/${config}.properties"/>35<property file="nbproject/private/private.properties"/>36</target>37<target depends="-pre-init,-init-private" name="-init-user">38<property file="${user.properties.file}"/>39<!-- The two properties below are usually overridden -->40<!-- by the active platform. Just a fallback. -->41<property name="default.javac.source" value="1.4"/>42<property name="default.javac.target" value="1.4"/>43</target>44<target depends="-pre-init,-init-private,-init-user" name="-init-project">45<property file="nbproject/configs/${config}.properties"/>46<property file="nbproject/project.properties"/>47</target>48<target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">49<available file="${manifest.file}" property="manifest.available"/>50<condition property="manifest.available+main.class">51<and>52<isset property="manifest.available"/>53<isset property="main.class"/>54<not>55<equals arg1="${main.class}" arg2="" trim="true"/>56</not>57</and>58</condition>59<condition property="manifest.available+main.class+mkdist.available">60<and>61<istrue value="${manifest.available+main.class}"/>62<isset property="libs.CopyLibs.classpath"/>63</and>64</condition>65<condition property="have.tests">66<or>67<available file="${test.src.dir}"/>68</or>69</condition>70<condition property="have.sources">71<or>72<available file="${src.src.dir}"/>73</or>74</condition>75<condition property="netbeans.home+have.tests">76<and>77<isset property="netbeans.home"/>78<isset property="have.tests"/>79</and>80</condition>81<condition property="no.javadoc.preview">82<and>83<isset property="javadoc.preview"/>84<isfalse value="${javadoc.preview}"/>85</and>86</condition>87<property name="run.jvmargs" value=""/>88<property name="javac.compilerargs" value=""/>89<property name="work.dir" value="${basedir}"/>90<condition property="no.deps">91<and>92<istrue value="${no.dependencies}"/>93</and>94</condition>95<property name="javac.debug" value="true"/>96<property name="javadoc.preview" value="true"/>97<property name="application.args" value=""/>98<property name="source.encoding" value="${file.encoding}"/>99<condition property="javadoc.encoding.used" value="${javadoc.encoding}">100<and>101<isset property="javadoc.encoding"/>102<not>103<equals arg1="${javadoc.encoding}" arg2=""/>104</not>105</and>106</condition>107<property name="javadoc.encoding.used" value="${source.encoding}"/>108<property name="includes" value="**"/>109<property name="excludes" value=""/>110<property name="do.depend" value="false"/>111<condition property="do.depend.true">112<istrue value="${do.depend}"/>113</condition>114<condition else="" property="javac.compilerargs.jaxws" value="-Djava.endorsed.dirs='${jaxws.endorsed.dir}'">115<and>116<isset property="jaxws.endorsed.dir"/>117<available file="nbproject/jaxws-build.xml"/>118</and>119</condition>120</target>121<target name="-post-init">122<!-- Empty placeholder for easier customization. -->123<!-- You can override this target in the ../build.xml file. -->124</target>125<target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">126<fail unless="src.src.dir">Must set src.src.dir</fail>127<fail unless="test.src.dir">Must set test.src.dir</fail>128<fail unless="build.dir">Must set build.dir</fail>129<fail unless="dist.dir">Must set dist.dir</fail>130<fail unless="build.classes.dir">Must set build.classes.dir</fail>131<fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>132<fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>133<fail unless="build.test.results.dir">Must set build.test.results.dir</fail>134<fail unless="build.classes.excludes">Must set build.classes.excludes</fail>135<fail unless="dist.jar">Must set dist.jar</fail>136</target>137<target name="-init-macrodef-property">138<macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">139<attribute name="name"/>140<attribute name="value"/>141<sequential>142<property name="@{name}" value="${@{value}}"/>143</sequential>144</macrodef>145</target>146<target name="-init-macrodef-javac">147<macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">148<attribute default="${src.src.dir}" name="srcdir"/>149<attribute default="${build.classes.dir}" name="destdir"/>150<attribute default="${javac.classpath}" name="classpath"/>151<attribute default="${includes}" name="includes"/>152<attribute default="${excludes}" name="excludes"/>153<attribute default="${javac.debug}" name="debug"/>154<attribute default="/does/not/exist" name="sourcepath"/>155<element name="customize" optional="true"/>156<sequential>157<javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}">158<classpath>159<path path="@{classpath}"/>160</classpath>161<compilerarg line="${javac.compilerargs} ${javac.compilerargs.jaxws}"/>162<customize/>163</javac>164</sequential>165</macrodef>166<macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">167<attribute default="${src.src.dir}" name="srcdir"/>168<attribute default="${build.classes.dir}" name="destdir"/>169<attribute default="${javac.classpath}" name="classpath"/>170<sequential>171<depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">172<classpath>173<path path="@{classpath}"/>174</classpath>175</depend>176</sequential>177</macrodef>178<macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">179<attribute default="${build.classes.dir}" name="destdir"/>180<sequential>181<fail unless="javac.includes">Must set javac.includes</fail>182<pathconvert pathsep="," property="javac.includes.binary">183<path>184<filelist dir="@{destdir}" files="${javac.includes}"/>185</path>186<globmapper from="*.java" to="*.class"/>187</pathconvert>188<delete>189<files includes="${javac.includes.binary}"/>190</delete>191</sequential>192</macrodef>193</target>194<target name="-init-macrodef-junit">195<macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">196<attribute default="${includes}" name="includes"/>197<attribute default="${excludes}" name="excludes"/>198<attribute default="**" name="testincludes"/>199<sequential>200<junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true">201<batchtest todir="${build.test.results.dir}">202<fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">203<filename name="@{testincludes}"/>204</fileset>205</batchtest>206<classpath>207<path path="${run.test.classpath}"/>208</classpath>209<syspropertyset>210<propertyref prefix="test-sys-prop."/>211<mapper from="test-sys-prop.*" to="*" type="glob"/>212</syspropertyset>213<formatter type="brief" usefile="false"/>214<formatter type="xml"/>215<jvmarg line="${run.jvmargs}"/>216</junit>217</sequential>218</macrodef>219</target>220<target depends="-init-debug-args" name="-init-macrodef-nbjpda">221<macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">222<attribute default="${main.class}" name="name"/>223<attribute default="${debug.classpath}" name="classpath"/>224<attribute default="" name="stopclassname"/>225<sequential>226<nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">227<classpath>228<path path="@{classpath}"/>229</classpath>230</nbjpdastart>231</sequential>232</macrodef>233<macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">234<attribute default="${build.classes.dir}" name="dir"/>235<sequential>236<nbjpdareload>237<fileset dir="@{dir}" includes="${fix.classes}">238<include name="${fix.includes}*.class"/>239</fileset>240</nbjpdareload>241</sequential>242</macrodef>243</target>244<target name="-init-debug-args">245<property name="version-output" value="java version "${ant.java.version}"/>246<condition property="have-jdk-older-than-1.4">247<or>248<contains string="${version-output}" substring="java version "1.0"/>249<contains string="${version-output}" substring="java version "1.1"/>250<contains string="${version-output}" substring="java version "1.2"/>251<contains string="${version-output}" substring="java version "1.3"/>252</or>253</condition>254<condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">255<istrue value="${have-jdk-older-than-1.4}"/>256</condition>257<condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">258<os family="windows"/>259</condition>260<condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">261<isset property="debug.transport"/>262</condition>263</target>264<target depends="-init-debug-args" name="-init-macrodef-debug">265<macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">266<attribute default="${main.class}" name="classname"/>267<attribute default="${debug.classpath}" name="classpath"/>268<element name="customize" optional="true"/>269<sequential>270<java classname="@{classname}" dir="${work.dir}" fork="true">271<jvmarg line="${debug-args-line}"/>272<jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>273<jvmarg line="${run.jvmargs}"/>274<classpath>275<path path="@{classpath}"/>276</classpath>277<syspropertyset>278<propertyref prefix="run-sys-prop."/>279<mapper from="run-sys-prop.*" to="*" type="glob"/>280</syspropertyset>281<customize/>282</java>283</sequential>284</macrodef>285</target>286<target name="-init-macrodef-java">287<macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">288<attribute default="${main.class}" name="classname"/>289<element name="customize" optional="true"/>290<sequential>291<java classname="@{classname}" dir="${work.dir}" fork="true">292<jvmarg line="${run.jvmargs}"/>293<classpath>294<path path="${run.classpath}"/>295</classpath>296<syspropertyset>297<propertyref prefix="run-sys-prop."/>298<mapper from="run-sys-prop.*" to="*" type="glob"/>299</syspropertyset>300<customize/>301</java>302</sequential>303</macrodef>304</target>305<target name="-init-presetdef-jar">306<presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">307<jar compress="${jar.compress}" jarfile="${dist.jar}">308<j2seproject1:fileset dir="${build.classes.dir}"/>309</jar>310</presetdef>311</target>312<target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-junit,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar" name="init"/>313<!--314===================315COMPILATION SECTION316===================317-->318<target depends="init" name="deps-jar" unless="no.deps"/>319<target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>320<target depends="init" name="-check-automatic-build">321<available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>322</target>323<target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">324<antcall target="clean"/>325</target>326<target depends="init,deps-jar" name="-pre-pre-compile">327<mkdir dir="${build.classes.dir}"/>328</target>329<target name="-pre-compile">330<!-- Empty placeholder for easier customization. -->331<!-- You can override this target in the ../build.xml file. -->332</target>333<target if="do.depend.true" name="-compile-depend">334<j2seproject3:depend/>335</target>336<target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-compile-depend" if="have.sources" name="-do-compile">337<j2seproject3:javac/>338<copy todir="${build.classes.dir}">339<fileset dir="${src.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>340</copy>341</target>342<target name="-post-compile">343<!-- Empty placeholder for easier customization. -->344<!-- You can override this target in the ../build.xml file. -->345</target>346<target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>347<target name="-pre-compile-single">348<!-- Empty placeholder for easier customization. -->349<!-- You can override this target in the ../build.xml file. -->350</target>351<target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">352<fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>353<j2seproject3:force-recompile/>354<j2seproject3:javac excludes="" includes="${javac.includes}" sourcepath="${src.src.dir}"/>355</target>356<target name="-post-compile-single">357<!-- Empty placeholder for easier customization. -->358<!-- You can override this target in the ../build.xml file. -->359</target>360<target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>361<!--362====================363JAR BUILDING SECTION364====================365-->366<target depends="init" name="-pre-pre-jar">367<dirname file="${dist.jar}" property="dist.jar.dir"/>368<mkdir dir="${dist.jar.dir}"/>369</target>370<target name="-pre-jar">371<!-- Empty placeholder for easier customization. -->372<!-- You can override this target in the ../build.xml file. -->373</target>374<target depends="init,compile,-pre-pre-jar,-pre-jar" name="-do-jar-without-manifest" unless="manifest.available">375<j2seproject1:jar/>376</target>377<target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class">378<j2seproject1:jar manifest="${manifest.file}"/>379</target>380<target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available">381<j2seproject1:jar manifest="${manifest.file}">382<j2seproject1:manifest>383<j2seproject1:attribute name="Main-Class" value="${main.class}"/>384</j2seproject1:manifest>385</j2seproject1:jar>386<echo>To run this application from the command line without Ant, try:</echo>387<property location="${build.classes.dir}" name="build.classes.dir.resolved"/>388<property location="${dist.jar}" name="dist.jar.resolved"/>389<pathconvert property="run.classpath.with.dist.jar">390<path path="${run.classpath}"/>391<map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>392</pathconvert>393<echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>394</target>395<target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries">396<property location="${build.classes.dir}" name="build.classes.dir.resolved"/>397<pathconvert property="run.classpath.without.build.classes.dir">398<path path="${run.classpath}"/>399<map from="${build.classes.dir.resolved}" to=""/>400</pathconvert>401<pathconvert pathsep=" " property="jar.classpath">402<path path="${run.classpath.without.build.classes.dir}"/>403<chainedmapper>404<flattenmapper/>405<globmapper from="*" to="lib/*"/>406</chainedmapper>407</pathconvert>408<taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>409<copylibs compress="${jar.compress}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}">410<fileset dir="${build.classes.dir}"/>411<manifest>412<attribute name="Main-Class" value="${main.class}"/>413<attribute name="Class-Path" value="${jar.classpath}"/>414</manifest>415</copylibs>416<echo>To run this application from the command line without Ant, try:</echo>417<property location="${dist.jar}" name="dist.jar.resolved"/>418<echo>java -jar "${dist.jar.resolved}"</echo>419</target>420<target name="-post-jar">421<!-- Empty placeholder for easier customization. -->422<!-- You can override this target in the ../build.xml file. -->423</target>424<target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-post-jar" description="Build JAR." name="jar"/>425<!--426=================427EXECUTION SECTION428=================429-->430<target depends="init,compile" description="Run a main class." name="run">431<j2seproject1:java>432<customize>433<arg line="${application.args}"/>434</customize>435</j2seproject1:java>436</target>437<target name="-do-not-recompile">438<property name="javac.includes.binary" value=""/>439</target>440<target depends="init,-do-not-recompile,compile-single" name="run-single">441<fail unless="run.class">Must select one file in the IDE or set run.class</fail>442<j2seproject1:java classname="${run.class}"/>443</target>444<!--445=================446DEBUGGING SECTION447=================448-->449<target depends="init" if="netbeans.home" name="-debug-start-debugger">450<j2seproject1:nbjpdastart name="${debug.class}"/>451</target>452<target depends="init,compile" name="-debug-start-debuggee">453<j2seproject3:debug>454<customize>455<arg line="${application.args}"/>456</customize>457</j2seproject3:debug>458</target>459<target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>460<target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">461<j2seproject1:nbjpdastart stopclassname="${main.class}"/>462</target>463<target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>464<target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">465<fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>466<j2seproject3:debug classname="${debug.class}"/>467</target>468<target depends="init,-do-not-recompile,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>469<target depends="init" name="-pre-debug-fix">470<fail unless="fix.includes">Must set fix.includes</fail>471<property name="javac.includes" value="${fix.includes}.java"/>472</target>473<target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">474<j2seproject1:nbjpdareload/>475</target>476<target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>477<!--478===============479JAVADOC SECTION480===============481-->482<target depends="init" name="-javadoc-build">483<mkdir dir="${dist.javadoc.dir}"/>484<javadoc additionalparam="${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}">485<classpath>486<path path="${javac.classpath}"/>487</classpath>488<fileset dir="${src.src.dir}" excludes="${excludes}" includes="${includes}">489<filename name="**/*.java"/>490</fileset>491</javadoc>492</target>493<target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">494<nbbrowse file="${dist.javadoc.dir}/index.html"/>495</target>496<target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>497<!--498=========================499JUNIT COMPILATION SECTION500=========================501-->502<target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">503<mkdir dir="${build.test.classes.dir}"/>504</target>505<target name="-pre-compile-test">506<!-- Empty placeholder for easier customization. -->507<!-- You can override this target in the ../build.xml file. -->508</target>509<target if="do.depend.true" name="-compile-test-depend">510<j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>511</target>512<target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">513<j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>514<copy todir="${build.test.classes.dir}">515<fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>516</copy>517</target>518<target name="-post-compile-test">519<!-- Empty placeholder for easier customization. -->520<!-- You can override this target in the ../build.xml file. -->521</target>522<target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>523<target name="-pre-compile-test-single">524<!-- Empty placeholder for easier customization. -->525<!-- You can override this target in the ../build.xml file. -->526</target>527<target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">528<fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>529<j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>530<j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}"/>531<copy todir="${build.test.classes.dir}">532<fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>533</copy>534</target>535<target name="-post-compile-test-single">536<!-- Empty placeholder for easier customization. -->537<!-- You can override this target in the ../build.xml file. -->538</target>539<target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>540<!--541=======================542JUNIT EXECUTION SECTION543=======================544-->545<target depends="init" if="have.tests" name="-pre-test-run">546<mkdir dir="${build.test.results.dir}"/>547</target>548<target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">549<j2seproject3:junit testincludes="**/*Test.java"/>550</target>551<target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">552<fail if="tests.failed">Some tests failed; see details above.</fail>553</target>554<target depends="init" if="have.tests" name="test-report"/>555<target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>556<target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>557<target depends="init" if="have.tests" name="-pre-test-run-single">558<mkdir dir="${build.test.results.dir}"/>559</target>560<target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">561<fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>562<j2seproject3:junit excludes="" includes="${test.includes}"/>563</target>564<target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">565<fail if="tests.failed">Some tests failed; see details above.</fail>566</target>567<target depends="init,-do-not-recompile,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>568<!--569=======================570JUNIT DEBUGGING SECTION571=======================572-->573<target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">574<fail unless="test.class">Must select one file in the IDE or set test.class</fail>575<property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>576<delete file="${test.report.file}"/>577<mkdir dir="${build.test.results.dir}"/>578<j2seproject3:debug classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner" classpath="${ant.home}/lib/ant.jar:${ant.home}/lib/ant-junit.jar:${debug.test.classpath}">579<customize>580<syspropertyset>581<propertyref prefix="test-sys-prop."/>582<mapper from="test-sys-prop.*" to="*" type="glob"/>583</syspropertyset>584<arg value="${test.class}"/>585<arg value="showoutput=true"/>586<arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>587<arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>588</customize>589</j2seproject3:debug>590</target>591<target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">592<j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>593</target>594<target depends="init,-do-not-recompile,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>595<target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">596<j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>597</target>598<target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>599<!--600=========================601APPLET EXECUTION SECTION602=========================603-->604<target depends="init,compile-single" name="run-applet">605<fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>606<j2seproject1:java classname="sun.applet.AppletViewer">607<customize>608<arg value="${applet.url}"/>609</customize>610</j2seproject1:java>611</target>612<!--613=========================614APPLET DEBUGGING SECTION615=========================616-->617<target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">618<fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>619<j2seproject3:debug classname="sun.applet.AppletViewer">620<customize>621<arg value="${applet.url}"/>622</customize>623</j2seproject3:debug>624</target>625<target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>626<!--627===============628CLEANUP SECTION629===============630-->631<target depends="init" name="deps-clean" unless="no.deps"/>632<target depends="init" name="-do-clean">633<delete dir="${build.dir}"/>634<delete dir="${dist.dir}"/>635</target>636<target name="-post-clean">637<!-- Empty placeholder for easier customization. -->638<!-- You can override this target in the ../build.xml file. -->639</target>640<target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>641</project>642643644