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="Markups-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 <available file="${application.splash}" property="splashscreen.available"/>
59 <condition property="main.class.available">
61 <isset property="main.class"/>
63 <equals arg1="${main.class}" arg2="" trim="true"/>
67 <condition property="manifest.available+main.class">
69 <isset property="manifest.available"/>
70 <isset property="main.class.available"/>
73 <condition property="do.mkdist">
75 <isset property="libs.CopyLibs.classpath"/>
77 <istrue value="${mkdist.disabled}"/>
81 <condition property="manifest.available+main.class+mkdist.available">
83 <istrue value="${manifest.available+main.class}"/>
84 <isset property="do.mkdist"/>
87 <condition property="manifest.available+main.class+mkdist.available+splashscreen.available">
89 <istrue value="${manifest.available+main.class+mkdist.available}"/>
90 <istrue value="${splashscreen.available}"/>
93 <condition property="do.archive">
95 <istrue value="${jar.archive.disabled}"/>
98 <condition property="do.archive+manifest.available">
100 <isset property="manifest.available"/>
101 <istrue value="${do.archive}"/>
104 <condition property="do.archive+manifest.available+main.class">
106 <istrue value="${manifest.available+main.class}"/>
107 <istrue value="${do.archive}"/>
110 <condition property="do.archive+manifest.available+main.class+mkdist.available">
112 <istrue value="${manifest.available+main.class+mkdist.available}"/>
113 <istrue value="${do.archive}"/>
116 <condition property="do.archive+manifest.available+main.class+mkdist.available+splashscreen.available">
118 <istrue value="${manifest.available+main.class+mkdist.available+splashscreen.available}"/>
119 <istrue value="${do.archive}"/>
122 <condition property="have.tests">
124 <available file="${test.src.dir}"/>
127 <condition property="have.sources">
129 <available file="${src.dir}"/>
132 <condition property="netbeans.home+have.tests">
134 <isset property="netbeans.home"/>
135 <isset property="have.tests"/>
138 <condition property="no.javadoc.preview">
140 <isset property="javadoc.preview"/>
141 <isfalse value="${javadoc.preview}"/>
144 <property name="run.jvmargs" value=""/>
145 <property name="javac.compilerargs" value=""/>
146 <property name="work.dir" value="${basedir}"/>
147 <condition property="no.deps">
149 <istrue value="${no.dependencies}"/>
152 <property name="javac.debug" value="true"/>
153 <property name="javadoc.preview" value="true"/>
154 <property name="application.args" value=""/>
155 <property name="source.encoding" value="${file.encoding}"/>
156 <property name="runtime.encoding" value="${source.encoding}"/>
157 <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
159 <isset property="javadoc.encoding"/>
161 <equals arg1="${javadoc.encoding}" arg2=""/>
165 <property name="javadoc.encoding.used" value="${source.encoding}"/>
166 <property name="includes" value="**"/>
167 <property name="excludes" value=""/>
168 <property name="do.depend" value="false"/>
169 <condition property="do.depend.true">
170 <istrue value="${do.depend}"/>
172 <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
173 <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
174 <length length="0" string="${endorsed.classpath}" when="greater"/>
176 <property name="javac.fork" value="false"/>
177 <property name="jar.index" value="false"/>
178 <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
180 <target name="-post-init">
181 <!-- Empty placeholder for easier customization. -->
182 <!-- You can override this target in the ../build.xml file. -->
184 <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
185 <fail unless="src.dir">Must set src.dir</fail>
186 <fail unless="test.src.dir">Must set test.src.dir</fail>
187 <fail unless="build.dir">Must set build.dir</fail>
188 <fail unless="dist.dir">Must set dist.dir</fail>
189 <fail unless="build.classes.dir">Must set build.classes.dir</fail>
190 <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
191 <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
192 <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
193 <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
194 <fail unless="dist.jar">Must set dist.jar</fail>
196 <target name="-init-macrodef-property">
197 <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
198 <attribute name="name"/>
199 <attribute name="value"/>
201 <property name="@{name}" value="${@{value}}"/>
205 <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
206 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
207 <attribute default="${src.dir}" name="srcdir"/>
208 <attribute default="${build.classes.dir}" name="destdir"/>
209 <attribute default="${javac.classpath}" name="classpath"/>
210 <attribute default="${javac.processorpath}" name="processorpath"/>
211 <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
212 <attribute default="${includes}" name="includes"/>
213 <attribute default="${excludes}" name="excludes"/>
214 <attribute default="${javac.debug}" name="debug"/>
215 <attribute default="${empty.dir}" name="sourcepath"/>
216 <attribute default="${empty.dir}" name="gensrcdir"/>
217 <element name="customize" optional="true"/>
219 <property location="${build.dir}/empty" name="empty.dir"/>
220 <mkdir dir="${empty.dir}"/>
221 <mkdir dir="@{apgeneratedsrcdir}"/>
222 <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}">
224 <dirset dir="@{gensrcdir}" erroronmissingdir="false">
229 <path path="@{classpath}"/>
231 <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
232 <compilerarg line="${javac.compilerargs}"/>
233 <compilerarg value="-processorpath"/>
234 <compilerarg path="@{processorpath}:${empty.dir}"/>
235 <compilerarg line="${ap.processors.internal}"/>
236 <compilerarg line="${annotation.processing.processor.options}"/>
237 <compilerarg value="-s"/>
238 <compilerarg path="@{apgeneratedsrcdir}"/>
239 <compilerarg line="${ap.proc.none.internal}"/>
245 <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
246 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
247 <attribute default="${src.dir}" name="srcdir"/>
248 <attribute default="${build.classes.dir}" name="destdir"/>
249 <attribute default="${javac.classpath}" name="classpath"/>
250 <attribute default="${javac.processorpath}" name="processorpath"/>
251 <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
252 <attribute default="${includes}" name="includes"/>
253 <attribute default="${excludes}" name="excludes"/>
254 <attribute default="${javac.debug}" name="debug"/>
255 <attribute default="${empty.dir}" name="sourcepath"/>
256 <attribute default="${empty.dir}" name="gensrcdir"/>
257 <element name="customize" optional="true"/>
259 <property location="${build.dir}/empty" name="empty.dir"/>
260 <mkdir dir="${empty.dir}"/>
261 <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}">
263 <dirset dir="@{gensrcdir}" erroronmissingdir="false">
268 <path path="@{classpath}"/>
270 <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
271 <compilerarg line="${javac.compilerargs}"/>
277 <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
278 <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
279 <attribute default="${src.dir}" name="srcdir"/>
280 <attribute default="${build.classes.dir}" name="destdir"/>
281 <attribute default="${javac.classpath}" name="classpath"/>
283 <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
285 <path path="@{classpath}"/>
290 <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
291 <attribute default="${build.classes.dir}" name="destdir"/>
293 <fail unless="javac.includes">Must set javac.includes</fail>
294 <pathconvert pathsep="," property="javac.includes.binary">
296 <filelist dir="@{destdir}" files="${javac.includes}"/>
298 <globmapper from="*.java" to="*.class"/>
301 <files includes="${javac.includes.binary}"/>
306 <target name="-init-macrodef-junit">
307 <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
308 <attribute default="${includes}" name="includes"/>
309 <attribute default="${excludes}" name="excludes"/>
310 <attribute default="**" name="testincludes"/>
312 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${build.dir}">
313 <batchtest todir="${build.test.results.dir}">
314 <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
315 <filename name="@{testincludes}"/>
319 <path path="${run.test.classpath}"/>
322 <propertyref prefix="test-sys-prop."/>
323 <mapper from="test-sys-prop.*" to="*" type="glob"/>
325 <formatter type="brief" usefile="false"/>
326 <formatter type="xml"/>
327 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
328 <jvmarg line="${run.jvmargs}"/>
333 <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
334 <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
335 <attribute default="${main.class}" name="name"/>
336 <attribute default="${debug.classpath}" name="classpath"/>
337 <attribute default="" name="stopclassname"/>
339 <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
341 <path path="@{classpath}"/>
346 <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
347 <attribute default="${build.classes.dir}" name="dir"/>
350 <fileset dir="@{dir}" includes="${fix.classes}">
351 <include name="${fix.includes}*.class"/>
357 <target name="-init-debug-args">
358 <property name="version-output" value="java version "${ant.java.version}"/>
359 <condition property="have-jdk-older-than-1.4">
361 <contains string="${version-output}" substring="java version "1.0"/>
362 <contains string="${version-output}" substring="java version "1.1"/>
363 <contains string="${version-output}" substring="java version "1.2"/>
364 <contains string="${version-output}" substring="java version "1.3"/>
367 <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
368 <istrue value="${have-jdk-older-than-1.4}"/>
370 <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
371 <os family="windows"/>
373 <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
374 <isset property="debug.transport"/>
377 <target depends="-init-debug-args" name="-init-macrodef-debug">
378 <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
379 <attribute default="${main.class}" name="classname"/>
380 <attribute default="${debug.classpath}" name="classpath"/>
381 <element name="customize" optional="true"/>
383 <java classname="@{classname}" dir="${work.dir}" fork="true">
384 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
385 <jvmarg line="${debug-args-line}"/>
386 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
387 <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
388 <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
389 <jvmarg line="${run.jvmargs}"/>
391 <path path="@{classpath}"/>
394 <propertyref prefix="run-sys-prop."/>
395 <mapper from="run-sys-prop.*" to="*" type="glob"/>
402 <target name="-init-macrodef-java">
403 <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
404 <attribute default="${main.class}" name="classname"/>
405 <attribute default="${run.classpath}" name="classpath"/>
406 <element name="customize" optional="true"/>
408 <java classname="@{classname}" dir="${work.dir}" fork="true">
409 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
410 <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
411 <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
412 <jvmarg line="${run.jvmargs}"/>
414 <path path="@{classpath}"/>
417 <propertyref prefix="run-sys-prop."/>
418 <mapper from="run-sys-prop.*" to="*" type="glob"/>
425 <target name="-init-macrodef-copylibs">
426 <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">
427 <element name="customize" optional="true"/>
429 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
430 <pathconvert property="run.classpath.without.build.classes.dir">
431 <path path="${run.classpath}"/>
432 <map from="${build.classes.dir.resolved}" to=""/>
434 <pathconvert pathsep=" " property="jar.classpath">
435 <path path="${run.classpath.without.build.classes.dir}"/>
438 <globmapper from="*" to="lib/*"/>
441 <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
442 <copylibs compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
443 <fileset dir="${build.classes.dir}"/>
445 <attribute name="Class-Path" value="${jar.classpath}"/>
452 <target name="-init-presetdef-jar">
453 <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
454 <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">
455 <j2seproject1:fileset dir="${build.classes.dir}"/>
459 <target name="-init-ap-cmdline-properties">
460 <property name="annotation.processing.enabled" value="true"/>
461 <property name="annotation.processing.processors.list" value=""/>
462 <property name="annotation.processing.processor.options" value=""/>
463 <property name="annotation.processing.run.all.processors" value="true"/>
464 <property name="javac.processorpath" value="${javac.classpath}"/>
465 <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
466 <condition property="ap.supported.internal" value="true">
468 <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
472 <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
473 <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
474 <isfalse value="${annotation.processing.run.all.processors}"/>
476 <condition else="" property="ap.proc.none.internal" value="-proc:none">
477 <isfalse value="${annotation.processing.enabled}"/>
480 <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
481 <property name="ap.cmd.line.internal" value=""/>
483 <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"/>
489 <target name="-deps-jar-init" unless="built-jar.properties">
490 <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>
491 <delete file="${built-jar.properties}" quiet="true"/>
493 <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
494 <echo level="warn" message="Cycle detected: Markups was already built"/>
496 <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
497 <mkdir dir="${build.dir}"/>
498 <touch file="${built-jar.properties}" verbose="false"/>
499 <property file="${built-jar.properties}" prefix="already.built.jar."/>
500 <antcall target="-warn-already-built-jar"/>
501 <propertyfile file="${built-jar.properties}">
502 <entry key="${basedir}" value=""/>
504 <antcall target="-maybe-call-dep">
505 <param name="call.built.properties" value="${built-jar.properties}"/>
506 <param location="${project.Aprog}" name="call.subproject"/>
507 <param location="${project.Aprog}/build.xml" name="call.script"/>
508 <param name="call.target" value="jar"/>
509 <param name="transfer.built-jar.properties" value="${built-jar.properties}"/>
512 <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
513 <target depends="init" name="-check-automatic-build">
514 <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
516 <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
517 <antcall target="clean"/>
519 <target depends="init,deps-jar" name="-pre-pre-compile">
520 <mkdir dir="${build.classes.dir}"/>
522 <target name="-pre-compile">
523 <!-- Empty placeholder for easier customization. -->
524 <!-- You can override this target in the ../build.xml file. -->
526 <target if="do.depend.true" name="-compile-depend">
527 <pathconvert property="build.generated.subdirs">
528 <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
532 <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>
534 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">
535 <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
536 <copy todir="${build.classes.dir}">
537 <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
540 <target if="has.persistence.xml" name="-copy-persistence-xml">
541 <mkdir dir="${build.classes.dir}/META-INF"/>
542 <copy todir="${build.classes.dir}/META-INF">
543 <fileset dir="${meta.inf.dir}" includes="persistence.xml"/>
546 <target name="-post-compile">
547 <!-- Empty placeholder for easier customization. -->
548 <!-- You can override this target in the ../build.xml file. -->
550 <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
551 <target name="-pre-compile-single">
552 <!-- Empty placeholder for easier customization. -->
553 <!-- You can override this target in the ../build.xml file. -->
555 <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
556 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
557 <j2seproject3:force-recompile/>
558 <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>
560 <target name="-post-compile-single">
561 <!-- Empty placeholder for easier customization. -->
562 <!-- You can override this target in the ../build.xml file. -->
564 <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
570 <target depends="init" name="-pre-pre-jar">
571 <dirname file="${dist.jar}" property="dist.jar.dir"/>
572 <mkdir dir="${dist.jar.dir}"/>
574 <target name="-pre-jar">
575 <!-- Empty placeholder for easier customization. -->
576 <!-- You can override this target in the ../build.xml file. -->
578 <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive" name="-do-jar-without-manifest" unless="manifest.available">
581 <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class">
582 <j2seproject1:jar manifest="${manifest.file}"/>
584 <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">
585 <j2seproject1:jar manifest="${manifest.file}">
586 <j2seproject1:manifest>
587 <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
588 </j2seproject1:manifest>
590 <echo>To run this application from the command line without Ant, try:</echo>
591 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
592 <property location="${dist.jar}" name="dist.jar.resolved"/>
593 <pathconvert property="run.classpath.with.dist.jar">
594 <path path="${run.classpath}"/>
595 <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
597 <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
599 <target depends="init,compile,-pre-pre-jar,-pre-jar,-init-macrodef-copylibs" if="do.archive+manifest.available+main.class+mkdist.available+splashscreen.available" name="-do-jar-with-libraries-and-splashscreen">
600 <basename file="${application.splash}" property="splashscreen.basename"/>
601 <mkdir dir="${build.classes.dir}/META-INF"/>
602 <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
603 <j2seproject3:copylibs>
605 <attribute name="Main-Class" value="${main.class}"/>
606 <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
608 </j2seproject3:copylibs>
609 <echo>To run this application from the command line without Ant, try:</echo>
610 <property location="${dist.jar}" name="dist.jar.resolved"/>
611 <echo>java -jar "${dist.jar.resolved}"</echo>
613 <target depends="init,compile,-pre-pre-jar,-pre-jar,-init-macrodef-copylibs" if="do.archive+manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries" unless="splashscreen.available">
614 <j2seproject3:copylibs>
616 <attribute name="Main-Class" value="${main.class}"/>
618 </j2seproject3:copylibs>
619 <echo>To run this application from the command line without Ant, try:</echo>
620 <property location="${dist.jar}" name="dist.jar.resolved"/>
621 <echo>java -jar "${dist.jar.resolved}"</echo>
623 <target name="-post-jar">
624 <!-- Empty placeholder for easier customization. -->
625 <!-- You can override this target in the ../build.xml file. -->
627 <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries-and-splashscreen,-do-jar-with-libraries,-post-jar" description="Build JAR." name="jar"/>
633 <target depends="init,compile" description="Run a main class." name="run">
636 <arg line="${application.args}"/>
640 <target name="-do-not-recompile">
641 <property name="javac.includes.binary" value=""/>
643 <target depends="init,compile-single" name="run-single">
644 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
645 <j2seproject1:java classname="${run.class}"/>
647 <target depends="init,compile-test-single" name="run-test-with-main">
648 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
649 <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
656 <target depends="init" if="netbeans.home" name="-debug-start-debugger">
657 <j2seproject1:nbjpdastart name="${debug.class}"/>
659 <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
660 <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
662 <target depends="init,compile" name="-debug-start-debuggee">
665 <arg line="${application.args}"/>
667 </j2seproject3:debug>
669 <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
670 <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
671 <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
673 <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
674 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
675 <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
676 <j2seproject3:debug classname="${debug.class}"/>
678 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
679 <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
680 <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
681 <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
683 <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
684 <target depends="init" name="-pre-debug-fix">
685 <fail unless="fix.includes">Must set fix.includes</fail>
686 <property name="javac.includes" value="${fix.includes}.java"/>
688 <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
689 <j2seproject1:nbjpdareload/>
691 <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
697 <target depends="init" if="have.sources" name="-javadoc-build">
698 <mkdir dir="${dist.javadoc.dir}"/>
699 <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}">
701 <path path="${javac.classpath}"/>
703 <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
704 <filename name="**/*.java"/>
706 <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
707 <include name="**/*.java"/>
711 <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
712 <nbbrowse file="${dist.javadoc.dir}/index.html"/>
714 <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
716 =========================
717 JUNIT COMPILATION SECTION
718 =========================
720 <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
721 <mkdir dir="${build.test.classes.dir}"/>
723 <target name="-pre-compile-test">
724 <!-- Empty placeholder for easier customization. -->
725 <!-- You can override this target in the ../build.xml file. -->
727 <target if="do.depend.true" name="-compile-test-depend">
728 <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
730 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
731 <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}"/>
732 <copy todir="${build.test.classes.dir}">
733 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
736 <target name="-post-compile-test">
737 <!-- Empty placeholder for easier customization. -->
738 <!-- You can override this target in the ../build.xml file. -->
740 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
741 <target name="-pre-compile-test-single">
742 <!-- Empty placeholder for easier customization. -->
743 <!-- You can override this target in the ../build.xml file. -->
745 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
746 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
747 <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
748 <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}"/>
749 <copy todir="${build.test.classes.dir}">
750 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
753 <target name="-post-compile-test-single">
754 <!-- Empty placeholder for easier customization. -->
755 <!-- You can override this target in the ../build.xml file. -->
757 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
759 =======================
760 JUNIT EXECUTION SECTION
761 =======================
763 <target depends="init" if="have.tests" name="-pre-test-run">
764 <mkdir dir="${build.test.results.dir}"/>
766 <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
767 <j2seproject3:junit testincludes="**/*Test.java"/>
769 <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
770 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
772 <target depends="init" if="have.tests" name="test-report"/>
773 <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
774 <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
775 <target depends="init" if="have.tests" name="-pre-test-run-single">
776 <mkdir dir="${build.test.results.dir}"/>
778 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
779 <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
780 <j2seproject3:junit excludes="" includes="${test.includes}"/>
782 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
783 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
785 <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"/>
787 =======================
788 JUNIT DEBUGGING SECTION
789 =======================
791 <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
792 <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
793 <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
794 <delete file="${test.report.file}"/>
795 <mkdir dir="${build.test.results.dir}"/>
796 <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}">
799 <propertyref prefix="test-sys-prop."/>
800 <mapper from="test-sys-prop.*" to="*" type="glob"/>
802 <arg value="${test.class}"/>
803 <arg value="showoutput=true"/>
804 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
805 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
807 </j2seproject3:debug>
809 <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
810 <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
812 <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
813 <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
814 <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
816 <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
818 =========================
819 APPLET EXECUTION SECTION
820 =========================
822 <target depends="init,compile-single" name="run-applet">
823 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
824 <j2seproject1:java classname="sun.applet.AppletViewer">
826 <arg value="${applet.url}"/>
831 =========================
832 APPLET DEBUGGING SECTION
833 =========================
835 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
836 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
837 <j2seproject3:debug classname="sun.applet.AppletViewer">
839 <arg value="${applet.url}"/>
841 </j2seproject3:debug>
843 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
849 <target name="-deps-clean-init" unless="built-clean.properties">
850 <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>
851 <delete file="${built-clean.properties}" quiet="true"/>
853 <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
854 <echo level="warn" message="Cycle detected: Markups was already built"/>
856 <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
857 <mkdir dir="${build.dir}"/>
858 <touch file="${built-clean.properties}" verbose="false"/>
859 <property file="${built-clean.properties}" prefix="already.built.clean."/>
860 <antcall target="-warn-already-built-clean"/>
861 <propertyfile file="${built-clean.properties}">
862 <entry key="${basedir}" value=""/>
864 <antcall target="-maybe-call-dep">
865 <param name="call.built.properties" value="${built-clean.properties}"/>
866 <param location="${project.Aprog}" name="call.subproject"/>
867 <param location="${project.Aprog}/build.xml" name="call.script"/>
868 <param name="call.target" value="clean"/>
869 <param name="transfer.built-clean.properties" value="${built-clean.properties}"/>
872 <target depends="init" name="-do-clean">
873 <delete dir="${build.dir}"/>
874 <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
876 <target name="-post-clean">
877 <!-- Empty placeholder for easier customization. -->
878 <!-- You can override this target in the ../build.xml file. -->
880 <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
881 <target name="-check-call-dep">
882 <property file="${call.built.properties}" prefix="already.built."/>
883 <condition property="should.call.dep">
885 <isset property="already.built.${call.subproject}"/>
889 <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
890 <ant antfile="${call.script}" inheritall="false" target="${call.target}">
892 <propertyref prefix="transfer."/>
893 <mapper from="transfer.*" to="*" type="glob"/>