out-xpath: expression is to be specified as actionData i.e. after „--“ as a single string
1 <?xml version="1.0" encoding="UTF-8"?>
3 *** GENERATED FROM project.xml - DO NOT EDIT ***
4 *** EDIT ../build.xml INSTEAD ***
6 For the purpose of easier reading the script
7 is divided into following sections:
22 <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="alt2xml-impl">
23 <fail message="Please build using Ant 1.7.1 or higher.">
26 <antversion atleast="1.7.1"/>
30 <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
32 ======================
33 INITIALIZATION SECTION
34 ======================
36 <target name="-pre-init">
37 <!-- Empty placeholder for easier customization. -->
38 <!-- You can override this target in the ../build.xml file. -->
40 <target depends="-pre-init" name="-init-private">
41 <property file="nbproject/private/config.properties"/>
42 <property file="nbproject/private/configs/${config}.properties"/>
43 <property file="nbproject/private/private.properties"/>
45 <target depends="-pre-init,-init-private" name="-init-user">
46 <property file="${user.properties.file}"/>
47 <!-- The two properties below are usually overridden -->
48 <!-- by the active platform. Just a fallback. -->
49 <property name="default.javac.source" value="1.4"/>
50 <property name="default.javac.target" value="1.4"/>
52 <target depends="-pre-init,-init-private,-init-user" name="-init-project">
53 <property file="nbproject/configs/${config}.properties"/>
54 <property file="nbproject/project.properties"/>
56 <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
57 <available file="${manifest.file}" property="manifest.available"/>
58 <condition property="splashscreen.available">
61 <equals arg1="${application.splash}" arg2="" trim="true"/>
63 <available file="${application.splash}"/>
66 <condition property="main.class.available">
68 <isset property="main.class"/>
70 <equals arg1="${main.class}" arg2="" trim="true"/>
74 <condition property="manifest.available+main.class">
76 <isset property="manifest.available"/>
77 <isset property="main.class.available"/>
80 <condition property="do.archive">
82 <istrue value="${jar.archive.disabled}"/>
85 <condition property="do.mkdist">
87 <isset property="do.archive"/>
88 <isset property="libs.CopyLibs.classpath"/>
90 <istrue value="${mkdist.disabled}"/>
94 <condition property="manifest.available+main.class+mkdist.available">
96 <istrue value="${manifest.available+main.class}"/>
97 <isset property="do.mkdist"/>
100 <condition property="do.archive+manifest.available">
102 <isset property="manifest.available"/>
103 <istrue value="${do.archive}"/>
106 <condition property="do.archive+main.class.available">
108 <isset property="main.class.available"/>
109 <istrue value="${do.archive}"/>
112 <condition property="do.archive+splashscreen.available">
114 <isset property="splashscreen.available"/>
115 <istrue value="${do.archive}"/>
118 <condition property="do.archive+manifest.available+main.class">
120 <istrue value="${manifest.available+main.class}"/>
121 <istrue value="${do.archive}"/>
124 <condition property="manifest.available-mkdist.available">
126 <istrue value="${manifest.available}"/>
127 <isset property="do.mkdist"/>
130 <condition property="manifest.available+main.class-mkdist.available">
132 <istrue value="${manifest.available+main.class}"/>
133 <isset property="do.mkdist"/>
136 <condition property="have.tests">
138 <available file="${test.src.dir}"/>
141 <condition property="have.sources">
143 <available file="${src.dir}"/>
146 <condition property="netbeans.home+have.tests">
148 <isset property="netbeans.home"/>
149 <isset property="have.tests"/>
152 <condition property="no.javadoc.preview">
154 <isset property="javadoc.preview"/>
155 <isfalse value="${javadoc.preview}"/>
158 <property name="run.jvmargs" value=""/>
159 <property name="javac.compilerargs" value=""/>
160 <property name="work.dir" value="${basedir}"/>
161 <condition property="no.deps">
163 <istrue value="${no.dependencies}"/>
166 <property name="javac.debug" value="true"/>
167 <property name="javadoc.preview" value="true"/>
168 <property name="application.args" value=""/>
169 <property name="source.encoding" value="${file.encoding}"/>
170 <property name="runtime.encoding" value="${source.encoding}"/>
171 <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
173 <isset property="javadoc.encoding"/>
175 <equals arg1="${javadoc.encoding}" arg2=""/>
179 <property name="javadoc.encoding.used" value="${source.encoding}"/>
180 <property name="includes" value="**"/>
181 <property name="excludes" value=""/>
182 <property name="do.depend" value="false"/>
183 <condition property="do.depend.true">
184 <istrue value="${do.depend}"/>
186 <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
187 <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
188 <length length="0" string="${endorsed.classpath}" when="greater"/>
190 <condition else="false" property="jdkBug6558476">
192 <matches pattern="1\.[56]" string="${java.specification.version}"/>
198 <property name="javac.fork" value="${jdkBug6558476}"/>
199 <property name="jar.index" value="false"/>
200 <property name="jar.index.metainf" value="${jar.index}"/>
201 <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
203 <target name="-post-init">
204 <!-- Empty placeholder for easier customization. -->
205 <!-- You can override this target in the ../build.xml file. -->
207 <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
208 <fail unless="src.dir">Must set src.dir</fail>
209 <fail unless="test.src.dir">Must set test.src.dir</fail>
210 <fail unless="build.dir">Must set build.dir</fail>
211 <fail unless="dist.dir">Must set dist.dir</fail>
212 <fail unless="build.classes.dir">Must set build.classes.dir</fail>
213 <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
214 <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
215 <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
216 <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
217 <fail unless="dist.jar">Must set dist.jar</fail>
219 <target name="-init-macrodef-property">
220 <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
221 <attribute name="name"/>
222 <attribute name="value"/>
224 <property name="@{name}" value="${@{value}}"/>
228 <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
229 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
230 <attribute default="${src.dir}" name="srcdir"/>
231 <attribute default="${build.classes.dir}" name="destdir"/>
232 <attribute default="${javac.classpath}" name="classpath"/>
233 <attribute default="${javac.processorpath}" name="processorpath"/>
234 <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
235 <attribute default="${includes}" name="includes"/>
236 <attribute default="${excludes}" name="excludes"/>
237 <attribute default="${javac.debug}" name="debug"/>
238 <attribute default="${empty.dir}" name="sourcepath"/>
239 <attribute default="${empty.dir}" name="gensrcdir"/>
240 <element name="customize" optional="true"/>
242 <property location="${build.dir}/empty" name="empty.dir"/>
243 <mkdir dir="${empty.dir}"/>
244 <mkdir dir="@{apgeneratedsrcdir}"/>
245 <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
247 <dirset dir="@{gensrcdir}" erroronmissingdir="false">
252 <path path="@{classpath}"/>
254 <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
255 <compilerarg line="${javac.compilerargs}"/>
256 <compilerarg value="-processorpath"/>
257 <compilerarg path="@{processorpath}:${empty.dir}"/>
258 <compilerarg line="${ap.processors.internal}"/>
259 <compilerarg line="${annotation.processing.processor.options}"/>
260 <compilerarg value="-s"/>
261 <compilerarg path="@{apgeneratedsrcdir}"/>
262 <compilerarg line="${ap.proc.none.internal}"/>
268 <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
269 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
270 <attribute default="${src.dir}" name="srcdir"/>
271 <attribute default="${build.classes.dir}" name="destdir"/>
272 <attribute default="${javac.classpath}" name="classpath"/>
273 <attribute default="${javac.processorpath}" name="processorpath"/>
274 <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
275 <attribute default="${includes}" name="includes"/>
276 <attribute default="${excludes}" name="excludes"/>
277 <attribute default="${javac.debug}" name="debug"/>
278 <attribute default="${empty.dir}" name="sourcepath"/>
279 <attribute default="${empty.dir}" name="gensrcdir"/>
280 <element name="customize" optional="true"/>
282 <property location="${build.dir}/empty" name="empty.dir"/>
283 <mkdir dir="${empty.dir}"/>
284 <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
286 <dirset dir="@{gensrcdir}" erroronmissingdir="false">
291 <path path="@{classpath}"/>
293 <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
294 <compilerarg line="${javac.compilerargs}"/>
300 <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
301 <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
302 <attribute default="${src.dir}" name="srcdir"/>
303 <attribute default="${build.classes.dir}" name="destdir"/>
304 <attribute default="${javac.classpath}" name="classpath"/>
306 <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
308 <path path="@{classpath}"/>
313 <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
314 <attribute default="${build.classes.dir}" name="destdir"/>
316 <fail unless="javac.includes">Must set javac.includes</fail>
317 <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
319 <filelist dir="@{destdir}" files="${javac.includes}"/>
321 <globmapper from="*.java" to="*.class"/>
323 <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
324 <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
326 <files includesfile="${javac.includesfile.binary}"/>
329 <fileset file="${javac.includesfile.binary}"/>
334 <target name="-init-macrodef-junit">
335 <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
336 <attribute default="${includes}" name="includes"/>
337 <attribute default="${excludes}" name="excludes"/>
338 <attribute default="**" name="testincludes"/>
340 <property name="junit.forkmode" value="perTest"/>
341 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
342 <batchtest todir="${build.test.results.dir}">
343 <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
344 <filename name="@{testincludes}"/>
348 <path path="${run.test.classpath}"/>
351 <propertyref prefix="test-sys-prop."/>
352 <mapper from="test-sys-prop.*" to="*" type="glob"/>
354 <formatter type="brief" usefile="false"/>
355 <formatter type="xml"/>
356 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
357 <jvmarg value="-ea"/>
358 <jvmarg line="${run.jvmargs}"/>
363 <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" name="profile-init"/>
364 <target name="-profile-pre-init">
365 <!-- Empty placeholder for easier customization. -->
366 <!-- You can override this target in the ../build.xml file. -->
368 <target name="-profile-post-init">
369 <!-- Empty placeholder for easier customization. -->
370 <!-- You can override this target in the ../build.xml file. -->
372 <target name="-profile-init-macrodef-profile">
373 <macrodef name="resolve">
374 <attribute name="name"/>
375 <attribute name="value"/>
377 <property name="@{name}" value="${env.@{value}}"/>
380 <macrodef name="profile">
381 <attribute default="${main.class}" name="classname"/>
382 <element name="customize" optional="true"/>
384 <property environment="env"/>
385 <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
386 <java classname="@{classname}" dir="${profiler.info.dir}" fork="true" jvm="${profiler.info.jvm}">
387 <jvmarg value="${profiler.info.jvmargs.agent}"/>
388 <jvmarg line="${profiler.info.jvmargs}"/>
389 <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
390 <arg line="${application.args}"/>
392 <path path="${run.classpath}"/>
395 <propertyref prefix="run-sys-prop."/>
396 <mapper from="run-sys-prop.*" to="*" type="glob"/>
403 <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" name="-profile-init-check">
404 <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
405 <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
407 <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
408 <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
409 <attribute default="${main.class}" name="name"/>
410 <attribute default="${debug.classpath}" name="classpath"/>
411 <attribute default="" name="stopclassname"/>
413 <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
415 <path path="@{classpath}"/>
420 <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
421 <attribute default="${build.classes.dir}" name="dir"/>
424 <fileset dir="@{dir}" includes="${fix.classes}">
425 <include name="${fix.includes}*.class"/>
431 <target name="-init-debug-args">
432 <property name="version-output" value="java version "${ant.java.version}"/>
433 <condition property="have-jdk-older-than-1.4">
435 <contains string="${version-output}" substring="java version "1.0"/>
436 <contains string="${version-output}" substring="java version "1.1"/>
437 <contains string="${version-output}" substring="java version "1.2"/>
438 <contains string="${version-output}" substring="java version "1.3"/>
441 <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
442 <istrue value="${have-jdk-older-than-1.4}"/>
444 <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
445 <os family="windows"/>
447 <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
448 <isset property="debug.transport"/>
451 <target depends="-init-debug-args" name="-init-macrodef-debug">
452 <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
453 <attribute default="${main.class}" name="classname"/>
454 <attribute default="${debug.classpath}" name="classpath"/>
455 <element name="customize" optional="true"/>
457 <java classname="@{classname}" dir="${work.dir}" fork="true">
458 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
459 <jvmarg line="${debug-args-line}"/>
460 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
461 <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
462 <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
463 <jvmarg line="${run.jvmargs}"/>
465 <path path="@{classpath}"/>
468 <propertyref prefix="run-sys-prop."/>
469 <mapper from="run-sys-prop.*" to="*" type="glob"/>
476 <target name="-init-macrodef-java">
477 <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
478 <attribute default="${main.class}" name="classname"/>
479 <attribute default="${run.classpath}" name="classpath"/>
480 <element name="customize" optional="true"/>
482 <java classname="@{classname}" dir="${work.dir}" fork="true">
483 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
484 <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
485 <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
486 <jvmarg line="${run.jvmargs}"/>
488 <path path="@{classpath}"/>
491 <propertyref prefix="run-sys-prop."/>
492 <mapper from="run-sys-prop.*" to="*" type="glob"/>
499 <target name="-init-macrodef-copylibs">
500 <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">
501 <attribute default="${manifest.file}" name="manifest"/>
502 <element name="customize" optional="true"/>
504 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
505 <pathconvert property="run.classpath.without.build.classes.dir">
506 <path path="${run.classpath}"/>
507 <map from="${build.classes.dir.resolved}" to=""/>
509 <pathconvert pathsep=" " property="jar.classpath">
510 <path path="${run.classpath.without.build.classes.dir}"/>
513 <globmapper from="*" to="lib/*"/>
516 <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
517 <copylibs compress="${jar.compress}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
518 <fileset dir="${build.classes.dir}"/>
520 <attribute name="Class-Path" value="${jar.classpath}"/>
527 <target name="-init-presetdef-jar">
528 <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
529 <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">
530 <j2seproject1:fileset dir="${build.classes.dir}"/>
534 <target name="-init-ap-cmdline-properties">
535 <property name="annotation.processing.enabled" value="true"/>
536 <property name="annotation.processing.processors.list" value=""/>
537 <property name="annotation.processing.processor.options" value=""/>
538 <property name="annotation.processing.run.all.processors" value="true"/>
539 <property name="javac.processorpath" value="${javac.classpath}"/>
540 <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
541 <condition property="ap.supported.internal" value="true">
543 <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
547 <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
548 <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
549 <isfalse value="${annotation.processing.run.all.processors}"/>
551 <condition else="" property="ap.proc.none.internal" value="-proc:none">
552 <isfalse value="${annotation.processing.enabled}"/>
555 <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
556 <property name="ap.cmd.line.internal" value=""/>
558 <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,-init-ap-cmdline" name="init"/>
564 <target name="-deps-jar-init" unless="built-jar.properties">
565 <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>
566 <delete file="${built-jar.properties}" quiet="true"/>
568 <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
569 <echo level="warn" message="Cycle detected: alt2xml was already built"/>
571 <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
572 <mkdir dir="${build.dir}"/>
573 <touch file="${built-jar.properties}" verbose="false"/>
574 <property file="${built-jar.properties}" prefix="already.built.jar."/>
575 <antcall target="-warn-already-built-jar"/>
576 <propertyfile file="${built-jar.properties}">
577 <entry key="${basedir}" value=""/>
580 <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
581 <target depends="init" name="-check-automatic-build">
582 <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
584 <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
585 <antcall target="clean"/>
587 <target depends="init,deps-jar" name="-pre-pre-compile">
588 <mkdir dir="${build.classes.dir}"/>
590 <target name="-pre-compile">
591 <!-- Empty placeholder for easier customization. -->
592 <!-- You can override this target in the ../build.xml file. -->
594 <target if="do.depend.true" name="-compile-depend">
595 <pathconvert property="build.generated.subdirs">
596 <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
600 <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>
602 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">
603 <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
604 <copy todir="${build.classes.dir}">
605 <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
608 <target if="has.persistence.xml" name="-copy-persistence-xml">
609 <mkdir dir="${build.classes.dir}/META-INF"/>
610 <copy todir="${build.classes.dir}/META-INF">
611 <fileset dir="${meta.inf.dir}" includes="persistence.xml"/>
614 <target name="-post-compile">
615 <!-- Empty placeholder for easier customization. -->
616 <!-- You can override this target in the ../build.xml file. -->
618 <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
619 <target name="-pre-compile-single">
620 <!-- Empty placeholder for easier customization. -->
621 <!-- You can override this target in the ../build.xml file. -->
623 <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
624 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
625 <j2seproject3:force-recompile/>
626 <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>
628 <target name="-post-compile-single">
629 <!-- Empty placeholder for easier customization. -->
630 <!-- You can override this target in the ../build.xml file. -->
632 <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
638 <target depends="init" name="-pre-pre-jar">
639 <dirname file="${dist.jar}" property="dist.jar.dir"/>
640 <mkdir dir="${dist.jar.dir}"/>
642 <target name="-pre-jar">
643 <!-- Empty placeholder for easier customization. -->
644 <!-- You can override this target in the ../build.xml file. -->
646 <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive" name="-do-jar-without-manifest" unless="manifest.available-mkdist.available">
649 <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class-mkdist.available">
650 <j2seproject1:jar manifest="${manifest.file}"/>
652 <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available">
653 <j2seproject1:jar manifest="${manifest.file}">
654 <j2seproject1:manifest>
655 <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
656 </j2seproject1:manifest>
658 <echo level="info">To run this application from the command line without Ant, try:</echo>
659 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
660 <property location="${dist.jar}" name="dist.jar.resolved"/>
661 <pathconvert property="run.classpath.with.dist.jar">
662 <path path="${run.classpath}"/>
663 <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
665 <echo level="info">java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
667 <target depends="init" if="do.archive" name="-do-jar-with-libraries-create-manifest" unless="manifest.available">
668 <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
669 <touch file="${tmp.manifest.file}" verbose="false"/>
671 <target depends="init" if="do.archive+manifest.available" name="-do-jar-with-libraries-copy-manifest">
672 <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
673 <copy file="${manifest.file}" tofile="${tmp.manifest.file}"/>
675 <target depends="init,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest" if="do.archive+main.class.available" name="-do-jar-with-libraries-set-main">
676 <manifest file="${tmp.manifest.file}" mode="update">
677 <attribute name="Main-Class" value="${main.class}"/>
680 <target depends="init,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-with-libraries-set-splashscreen">
681 <basename file="${application.splash}" property="splashscreen.basename"/>
682 <mkdir dir="${build.classes.dir}/META-INF"/>
683 <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
684 <manifest file="${tmp.manifest.file}" mode="update">
685 <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
688 <target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen" if="do.mkdist" name="-do-jar-with-libraries-pack">
689 <j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
690 <echo level="info">To run this application from the command line without Ant, try:</echo>
691 <property location="${dist.jar}" name="dist.jar.resolved"/>
692 <echo level="info">java -jar "${dist.jar.resolved}"</echo>
694 <target depends="-do-jar-with-libraries-pack" if="do.archive" name="-do-jar-with-libraries-delete-manifest">
696 <fileset file="${tmp.manifest.file}"/>
699 <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen,-do-jar-with-libraries-pack,-do-jar-with-libraries-delete-manifest" name="-do-jar-with-libraries"/>
700 <target name="-post-jar">
701 <!-- Empty placeholder for easier customization. -->
702 <!-- You can override this target in the ../build.xml file. -->
704 <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"/>
710 <target depends="init,compile" description="Run a main class." name="run">
713 <arg line="${application.args}"/>
717 <target name="-do-not-recompile">
718 <property name="javac.includes.binary" value=""/>
720 <target depends="init,compile-single" name="run-single">
721 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
722 <j2seproject1:java classname="${run.class}"/>
724 <target depends="init,compile-test-single" name="run-test-with-main">
725 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
726 <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
733 <target depends="init" if="netbeans.home" name="-debug-start-debugger">
734 <j2seproject1:nbjpdastart name="${debug.class}"/>
736 <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
737 <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
739 <target depends="init,compile" name="-debug-start-debuggee">
742 <arg line="${application.args}"/>
744 </j2seproject3:debug>
746 <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
747 <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
748 <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
750 <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
751 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
752 <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
753 <j2seproject3:debug classname="${debug.class}"/>
755 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
756 <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
757 <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
758 <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
760 <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
761 <target depends="init" name="-pre-debug-fix">
762 <fail unless="fix.includes">Must set fix.includes</fail>
763 <property name="javac.includes" value="${fix.includes}.java"/>
765 <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
766 <j2seproject1:nbjpdareload/>
768 <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
774 <target depends="profile-init,compile" description="Profile a project in the IDE." if="netbeans.home" name="profile">
777 <path path="${run.classpath}"/>
782 <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="netbeans.home" name="profile-single">
783 <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail>
786 <path path="${run.classpath}"/>
789 <profile classname="${profile.class}"/>
792 =========================
793 APPLET PROFILING SECTION
794 =========================
796 <target depends="profile-init,compile-single" if="netbeans.home" name="profile-applet">
799 <path path="${run.classpath}"/>
802 <profile classname="sun.applet.AppletViewer">
804 <arg value="${applet.url}"/>
809 =========================
810 TESTS PROFILING SECTION
811 =========================
813 <target depends="profile-init,compile-test-single" if="netbeans.home" name="profile-test-single">
816 <path path="${run.test.classpath}"/>
819 <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
820 <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
821 <jvmarg value="${profiler.info.jvmargs.agent}"/>
822 <jvmarg line="${profiler.info.jvmargs}"/>
823 <test name="${profile.class}"/>
825 <path path="${run.test.classpath}"/>
828 <propertyref prefix="test-sys-prop."/>
829 <mapper from="test-sys-prop.*" to="*" type="glob"/>
831 <formatter type="brief" usefile="false"/>
832 <formatter type="xml"/>
840 <target depends="init" if="have.sources" name="-javadoc-build">
841 <mkdir dir="${dist.javadoc.dir}"/>
842 <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}">
844 <path path="${javac.classpath}"/>
846 <fileset dir="${src.dir}" excludes="*.java,${excludes}" includes="${includes}">
847 <filename name="**/*.java"/>
849 <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
850 <include name="**/*.java"/>
851 <exclude name="*.java"/>
854 <copy todir="${dist.javadoc.dir}">
855 <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
856 <filename name="**/doc-files/**"/>
858 <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
859 <include name="**/doc-files/**"/>
863 <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
864 <nbbrowse file="${dist.javadoc.dir}/index.html"/>
866 <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
868 =========================
869 JUNIT COMPILATION SECTION
870 =========================
872 <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
873 <mkdir dir="${build.test.classes.dir}"/>
875 <target name="-pre-compile-test">
876 <!-- Empty placeholder for easier customization. -->
877 <!-- You can override this target in the ../build.xml file. -->
879 <target if="do.depend.true" name="-compile-test-depend">
880 <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
882 <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
883 <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" processorpath="${javac.test.processorpath}" srcdir="${test.src.dir}"/>
884 <copy todir="${build.test.classes.dir}">
885 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
888 <target name="-post-compile-test">
889 <!-- Empty placeholder for easier customization. -->
890 <!-- You can override this target in the ../build.xml file. -->
892 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
893 <target name="-pre-compile-test-single">
894 <!-- Empty placeholder for easier customization. -->
895 <!-- You can override this target in the ../build.xml file. -->
897 <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
898 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
899 <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
900 <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" processorpath="${javac.test.processorpath}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}"/>
901 <copy todir="${build.test.classes.dir}">
902 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
905 <target name="-post-compile-test-single">
906 <!-- Empty placeholder for easier customization. -->
907 <!-- You can override this target in the ../build.xml file. -->
909 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
911 =======================
912 JUNIT EXECUTION SECTION
913 =======================
915 <target depends="init" if="have.tests" name="-pre-test-run">
916 <mkdir dir="${build.test.results.dir}"/>
918 <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
919 <j2seproject3:junit testincludes="**/*Test.java"/>
921 <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
922 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
924 <target depends="init" if="have.tests" name="test-report"/>
925 <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
926 <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
927 <target depends="init" if="have.tests" name="-pre-test-run-single">
928 <mkdir dir="${build.test.results.dir}"/>
930 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
931 <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
932 <j2seproject3:junit excludes="" includes="${test.includes}"/>
934 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
935 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
937 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>
939 =======================
940 JUNIT DEBUGGING SECTION
941 =======================
943 <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
944 <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
945 <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
946 <delete file="${test.report.file}"/>
947 <mkdir dir="${build.test.results.dir}"/>
948 <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}">
951 <propertyref prefix="test-sys-prop."/>
952 <mapper from="test-sys-prop.*" to="*" type="glob"/>
954 <arg value="${test.class}"/>
955 <arg value="showoutput=true"/>
956 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
957 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
959 </j2seproject3:debug>
961 <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
962 <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
964 <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
965 <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
966 <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
968 <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
970 =========================
971 APPLET EXECUTION SECTION
972 =========================
974 <target depends="init,compile-single" name="run-applet">
975 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
976 <j2seproject1:java classname="sun.applet.AppletViewer">
978 <arg value="${applet.url}"/>
983 =========================
984 APPLET DEBUGGING SECTION
985 =========================
987 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
988 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
989 <j2seproject3:debug classname="sun.applet.AppletViewer">
991 <arg value="${applet.url}"/>
993 </j2seproject3:debug>
995 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
1001 <target name="-deps-clean-init" unless="built-clean.properties">
1002 <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>
1003 <delete file="${built-clean.properties}" quiet="true"/>
1005 <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
1006 <echo level="warn" message="Cycle detected: alt2xml was already built"/>
1008 <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
1009 <mkdir dir="${build.dir}"/>
1010 <touch file="${built-clean.properties}" verbose="false"/>
1011 <property file="${built-clean.properties}" prefix="already.built.clean."/>
1012 <antcall target="-warn-already-built-clean"/>
1013 <propertyfile file="${built-clean.properties}">
1014 <entry key="${basedir}" value=""/>
1017 <target depends="init" name="-do-clean">
1018 <delete dir="${build.dir}"/>
1019 <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
1021 <target name="-post-clean">
1022 <!-- Empty placeholder for easier customization. -->
1023 <!-- You can override this target in the ../build.xml file. -->
1025 <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
1026 <target name="-check-call-dep">
1027 <property file="${call.built.properties}" prefix="already.built."/>
1028 <condition property="should.call.dep">
1030 <isset property="already.built.${call.subproject}"/>
1034 <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
1035 <ant antfile="${call.script}" inheritall="false" target="${call.target}">
1037 <propertyref prefix="transfer."/>
1038 <mapper from="transfer.*" to="*" type="glob"/>