1 <?xml version="1.0" encoding="UTF-8"?>
\r
3 *** GENERATED FROM project.xml - DO NOT EDIT ***
\r
4 *** EDIT ../build.xml INSTEAD ***
\r
6 For the purpose of easier reading the script
\r
7 is divided into following sections:
\r
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="Desert-impl">
\r
23 <import file="jnlp-impl.xml"/>
\r
24 <fail message="Please build using Ant 1.7.1 or higher.">
\r
27 <antversion atleast="1.7.1"/>
\r
31 <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
\r
33 ======================
\r
34 INITIALIZATION SECTION
\r
35 ======================
\r
37 <target name="-pre-init">
\r
38 <!-- Empty placeholder for easier customization. -->
\r
39 <!-- You can override this target in the ../build.xml file. -->
\r
41 <target depends="-pre-init" name="-init-private">
\r
42 <property file="nbproject/private/config.properties"/>
\r
43 <property file="nbproject/private/configs/${config}.properties"/>
\r
44 <property file="nbproject/private/private.properties"/>
\r
46 <target depends="-pre-init,-init-private" name="-init-user">
\r
47 <property file="${user.properties.file}"/>
\r
48 <!-- The two properties below are usually overridden -->
\r
49 <!-- by the active platform. Just a fallback. -->
\r
50 <property name="default.javac.source" value="1.4"/>
\r
51 <property name="default.javac.target" value="1.4"/>
\r
53 <target depends="-pre-init,-init-private,-init-user" name="-init-project">
\r
54 <property file="nbproject/configs/${config}.properties"/>
\r
55 <property file="nbproject/project.properties"/>
\r
57 <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
\r
58 <available file="${manifest.file}" property="manifest.available"/>
\r
59 <available file="${application.splash}" property="splashscreen.available"/>
\r
60 <condition property="main.class.available">
\r
62 <isset property="main.class"/>
\r
64 <equals arg1="${main.class}" arg2="" trim="true"/>
\r
68 <condition property="manifest.available+main.class">
\r
70 <isset property="manifest.available"/>
\r
71 <isset property="main.class.available"/>
\r
74 <condition property="do.mkdist">
\r
76 <isset property="libs.CopyLibs.classpath"/>
\r
78 <istrue value="${mkdist.disabled}"/>
\r
82 <condition property="manifest.available+main.class+mkdist.available">
\r
84 <istrue value="${manifest.available+main.class}"/>
\r
85 <isset property="do.mkdist"/>
\r
88 <condition property="manifest.available+main.class+mkdist.available+splashscreen.available">
\r
90 <istrue value="${manifest.available+main.class+mkdist.available}"/>
\r
91 <istrue value="${splashscreen.available}"/>
\r
94 <condition property="do.archive">
\r
96 <istrue value="${jar.archive.disabled}"/>
\r
99 <condition property="do.archive+manifest.available">
\r
101 <isset property="manifest.available"/>
\r
102 <istrue value="${do.archive}"/>
\r
105 <condition property="do.archive+manifest.available+main.class">
\r
107 <istrue value="${manifest.available+main.class}"/>
\r
108 <istrue value="${do.archive}"/>
\r
111 <condition property="do.archive+manifest.available+main.class+mkdist.available">
\r
113 <istrue value="${manifest.available+main.class+mkdist.available}"/>
\r
114 <istrue value="${do.archive}"/>
\r
117 <condition property="do.archive+manifest.available+main.class+mkdist.available+splashscreen.available">
\r
119 <istrue value="${manifest.available+main.class+mkdist.available+splashscreen.available}"/>
\r
120 <istrue value="${do.archive}"/>
\r
123 <condition property="have.tests">
\r
125 <available file="${test.src.dir}"/>
\r
128 <condition property="have.sources">
\r
130 <available file="${src.dir}"/>
\r
133 <condition property="netbeans.home+have.tests">
\r
135 <isset property="netbeans.home"/>
\r
136 <isset property="have.tests"/>
\r
139 <condition property="no.javadoc.preview">
\r
141 <isset property="javadoc.preview"/>
\r
142 <isfalse value="${javadoc.preview}"/>
\r
145 <property name="run.jvmargs" value=""/>
\r
146 <property name="javac.compilerargs" value=""/>
\r
147 <property name="work.dir" value="${basedir}"/>
\r
148 <condition property="no.deps">
\r
150 <istrue value="${no.dependencies}"/>
\r
153 <property name="javac.debug" value="true"/>
\r
154 <property name="javadoc.preview" value="true"/>
\r
155 <property name="application.args" value=""/>
\r
156 <property name="source.encoding" value="${file.encoding}"/>
\r
157 <property name="runtime.encoding" value="${source.encoding}"/>
\r
158 <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
\r
160 <isset property="javadoc.encoding"/>
\r
162 <equals arg1="${javadoc.encoding}" arg2=""/>
\r
166 <property name="javadoc.encoding.used" value="${source.encoding}"/>
\r
167 <property name="includes" value="**"/>
\r
168 <property name="excludes" value=""/>
\r
169 <property name="do.depend" value="false"/>
\r
170 <condition property="do.depend.true">
\r
171 <istrue value="${do.depend}"/>
\r
173 <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
\r
174 <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
\r
175 <length length="0" string="${endorsed.classpath}" when="greater"/>
\r
177 <property name="javac.fork" value="false"/>
\r
178 <property name="jar.index" value="false"/>
\r
179 <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
\r
181 <target name="-post-init">
\r
182 <!-- Empty placeholder for easier customization. -->
\r
183 <!-- You can override this target in the ../build.xml file. -->
\r
185 <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
\r
186 <fail unless="src.dir">Must set src.dir</fail>
\r
187 <fail unless="test.src.dir">Must set test.src.dir</fail>
\r
188 <fail unless="build.dir">Must set build.dir</fail>
\r
189 <fail unless="dist.dir">Must set dist.dir</fail>
\r
190 <fail unless="build.classes.dir">Must set build.classes.dir</fail>
\r
191 <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
\r
192 <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
\r
193 <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
\r
194 <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
\r
195 <fail unless="dist.jar">Must set dist.jar</fail>
\r
197 <target name="-init-macrodef-property">
\r
198 <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
\r
199 <attribute name="name"/>
\r
200 <attribute name="value"/>
\r
202 <property name="@{name}" value="${@{value}}"/>
\r
206 <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
\r
207 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
\r
208 <attribute default="${src.dir}" name="srcdir"/>
\r
209 <attribute default="${build.classes.dir}" name="destdir"/>
\r
210 <attribute default="${javac.classpath}" name="classpath"/>
\r
211 <attribute default="${javac.processorpath}" name="processorpath"/>
\r
212 <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
\r
213 <attribute default="${includes}" name="includes"/>
\r
214 <attribute default="${excludes}" name="excludes"/>
\r
215 <attribute default="${javac.debug}" name="debug"/>
\r
216 <attribute default="${empty.dir}" name="sourcepath"/>
\r
217 <attribute default="${empty.dir}" name="gensrcdir"/>
\r
218 <element name="customize" optional="true"/>
\r
220 <property location="${build.dir}/empty" name="empty.dir"/>
\r
221 <mkdir dir="${empty.dir}"/>
\r
222 <mkdir dir="@{apgeneratedsrcdir}"/>
\r
223 <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}">
\r
225 <dirset dir="@{gensrcdir}" erroronmissingdir="false">
\r
226 <include name="*"/>
\r
230 <path path="@{classpath}"/>
\r
232 <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
\r
233 <compilerarg line="${javac.compilerargs}"/>
\r
234 <compilerarg value="-processorpath"/>
\r
235 <compilerarg path="@{processorpath}:${empty.dir}"/>
\r
236 <compilerarg line="${ap.processors.internal}"/>
\r
237 <compilerarg line="${annotation.processing.processor.options}"/>
\r
238 <compilerarg value="-s"/>
\r
239 <compilerarg path="@{apgeneratedsrcdir}"/>
\r
240 <compilerarg line="${ap.proc.none.internal}"/>
\r
246 <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
\r
247 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
\r
248 <attribute default="${src.dir}" name="srcdir"/>
\r
249 <attribute default="${build.classes.dir}" name="destdir"/>
\r
250 <attribute default="${javac.classpath}" name="classpath"/>
\r
251 <attribute default="${javac.processorpath}" name="processorpath"/>
\r
252 <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
\r
253 <attribute default="${includes}" name="includes"/>
\r
254 <attribute default="${excludes}" name="excludes"/>
\r
255 <attribute default="${javac.debug}" name="debug"/>
\r
256 <attribute default="${empty.dir}" name="sourcepath"/>
\r
257 <attribute default="${empty.dir}" name="gensrcdir"/>
\r
258 <element name="customize" optional="true"/>
\r
260 <property location="${build.dir}/empty" name="empty.dir"/>
\r
261 <mkdir dir="${empty.dir}"/>
\r
262 <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}">
\r
264 <dirset dir="@{gensrcdir}" erroronmissingdir="false">
\r
265 <include name="*"/>
\r
269 <path path="@{classpath}"/>
\r
271 <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
\r
272 <compilerarg line="${javac.compilerargs}"/>
\r
278 <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
\r
279 <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
\r
280 <attribute default="${src.dir}" name="srcdir"/>
\r
281 <attribute default="${build.classes.dir}" name="destdir"/>
\r
282 <attribute default="${javac.classpath}" name="classpath"/>
\r
284 <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
\r
286 <path path="@{classpath}"/>
\r
291 <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
\r
292 <attribute default="${build.classes.dir}" name="destdir"/>
\r
294 <fail unless="javac.includes">Must set javac.includes</fail>
\r
295 <pathconvert pathsep="," property="javac.includes.binary">
\r
297 <filelist dir="@{destdir}" files="${javac.includes}"/>
\r
299 <globmapper from="*.java" to="*.class"/>
\r
302 <files includes="${javac.includes.binary}"/>
\r
307 <target name="-init-macrodef-junit">
\r
308 <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
\r
309 <attribute default="${includes}" name="includes"/>
\r
310 <attribute default="${excludes}" name="excludes"/>
\r
311 <attribute default="**" name="testincludes"/>
\r
313 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${build.dir}">
\r
314 <batchtest todir="${build.test.results.dir}">
\r
315 <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
\r
316 <filename name="@{testincludes}"/>
\r
320 <path path="${run.test.classpath}"/>
\r
323 <propertyref prefix="test-sys-prop."/>
\r
324 <mapper from="test-sys-prop.*" to="*" type="glob"/>
\r
326 <formatter type="brief" usefile="false"/>
\r
327 <formatter type="xml"/>
\r
328 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
\r
329 <jvmarg line="${run.jvmargs}"/>
\r
334 <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
\r
335 <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
\r
336 <attribute default="${main.class}" name="name"/>
\r
337 <attribute default="${debug.classpath}" name="classpath"/>
\r
338 <attribute default="" name="stopclassname"/>
\r
340 <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
\r
342 <path path="@{classpath}"/>
\r
347 <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
\r
348 <attribute default="${build.classes.dir}" name="dir"/>
\r
351 <fileset dir="@{dir}" includes="${fix.classes}">
\r
352 <include name="${fix.includes}*.class"/>
\r
358 <target name="-init-debug-args">
\r
359 <property name="version-output" value="java version "${ant.java.version}"/>
\r
360 <condition property="have-jdk-older-than-1.4">
\r
362 <contains string="${version-output}" substring="java version "1.0"/>
\r
363 <contains string="${version-output}" substring="java version "1.1"/>
\r
364 <contains string="${version-output}" substring="java version "1.2"/>
\r
365 <contains string="${version-output}" substring="java version "1.3"/>
\r
368 <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
\r
369 <istrue value="${have-jdk-older-than-1.4}"/>
\r
371 <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
\r
372 <os family="windows"/>
\r
374 <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
\r
375 <isset property="debug.transport"/>
\r
378 <target depends="-init-debug-args" name="-init-macrodef-debug">
\r
379 <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
\r
380 <attribute default="${main.class}" name="classname"/>
\r
381 <attribute default="${debug.classpath}" name="classpath"/>
\r
382 <element name="customize" optional="true"/>
\r
384 <java classname="@{classname}" dir="${work.dir}" fork="true">
\r
385 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
\r
386 <jvmarg line="${debug-args-line}"/>
\r
387 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
\r
388 <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
\r
389 <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
\r
390 <jvmarg line="${run.jvmargs}"/>
\r
392 <path path="@{classpath}"/>
\r
395 <propertyref prefix="run-sys-prop."/>
\r
396 <mapper from="run-sys-prop.*" to="*" type="glob"/>
\r
403 <target name="-init-macrodef-java">
\r
404 <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
\r
405 <attribute default="${main.class}" name="classname"/>
\r
406 <attribute default="${run.classpath}" name="classpath"/>
\r
407 <element name="customize" optional="true"/>
\r
409 <java classname="@{classname}" dir="${work.dir}" fork="true">
\r
410 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
\r
411 <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
\r
412 <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
\r
413 <jvmarg line="${run.jvmargs}"/>
\r
415 <path path="@{classpath}"/>
\r
418 <propertyref prefix="run-sys-prop."/>
\r
419 <mapper from="run-sys-prop.*" to="*" type="glob"/>
\r
426 <target name="-init-macrodef-copylibs">
\r
427 <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">
\r
428 <element name="customize" optional="true"/>
\r
430 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
\r
431 <pathconvert property="run.classpath.without.build.classes.dir">
\r
432 <path path="${run.classpath}"/>
\r
433 <map from="${build.classes.dir.resolved}" to=""/>
\r
435 <pathconvert pathsep=" " property="jar.classpath">
\r
436 <path path="${run.classpath.without.build.classes.dir}"/>
\r
439 <globmapper from="*" to="lib/*"/>
\r
442 <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
\r
443 <copylibs compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
\r
444 <fileset dir="${build.classes.dir}"/>
\r
446 <attribute name="Class-Path" value="${jar.classpath}"/>
\r
453 <target name="-init-presetdef-jar">
\r
454 <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
\r
455 <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">
\r
456 <j2seproject1:fileset dir="${build.classes.dir}"/>
\r
460 <target name="-init-ap-cmdline-properties">
\r
461 <property name="annotation.processing.enabled" value="true"/>
\r
462 <property name="annotation.processing.processors.list" value=""/>
\r
463 <property name="annotation.processing.processor.options" value=""/>
\r
464 <property name="annotation.processing.run.all.processors" value="true"/>
\r
465 <property name="javac.processorpath" value="${javac.classpath}"/>
\r
466 <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
\r
467 <condition property="ap.supported.internal" value="true">
\r
469 <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
\r
473 <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
\r
474 <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
\r
475 <isfalse value="${annotation.processing.run.all.processors}"/>
\r
477 <condition else="" property="ap.proc.none.internal" value="-proc:none">
\r
478 <isfalse value="${annotation.processing.enabled}"/>
\r
481 <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
\r
482 <property name="ap.cmd.line.internal" value=""/>
\r
484 <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"/>
\r
486 ===================
\r
487 COMPILATION SECTION
\r
488 ===================
\r
490 <target name="-deps-jar-init" unless="built-jar.properties">
\r
491 <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>
\r
492 <delete file="${built-jar.properties}" quiet="true"/>
\r
494 <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
\r
495 <echo level="warn" message="Cycle detected: Desert was already built"/>
\r
497 <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
\r
498 <mkdir dir="${build.dir}"/>
\r
499 <touch file="${built-jar.properties}" verbose="false"/>
\r
500 <property file="${built-jar.properties}" prefix="already.built.jar."/>
\r
501 <antcall target="-warn-already-built-jar"/>
\r
502 <propertyfile file="${built-jar.properties}">
\r
503 <entry key="${basedir}" value=""/>
\r
506 <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
\r
507 <target depends="init" name="-check-automatic-build">
\r
508 <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
\r
510 <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
\r
511 <antcall target="clean"/>
\r
513 <target depends="init,deps-jar" name="-pre-pre-compile">
\r
514 <mkdir dir="${build.classes.dir}"/>
\r
516 <target name="-pre-compile">
\r
517 <!-- Empty placeholder for easier customization. -->
\r
518 <!-- You can override this target in the ../build.xml file. -->
\r
520 <target if="do.depend.true" name="-compile-depend">
\r
521 <pathconvert property="build.generated.subdirs">
\r
522 <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
\r
523 <include name="*"/>
\r
526 <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>
\r
528 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">
\r
529 <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
\r
530 <copy todir="${build.classes.dir}">
\r
531 <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
\r
534 <target if="has.persistence.xml" name="-copy-persistence-xml">
\r
535 <mkdir dir="${build.classes.dir}/META-INF"/>
\r
536 <copy todir="${build.classes.dir}/META-INF">
\r
537 <fileset dir="${meta.inf.dir}" includes="persistence.xml"/>
\r
540 <target name="-post-compile">
\r
541 <!-- Empty placeholder for easier customization. -->
\r
542 <!-- You can override this target in the ../build.xml file. -->
\r
544 <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
\r
545 <target name="-pre-compile-single">
\r
546 <!-- Empty placeholder for easier customization. -->
\r
547 <!-- You can override this target in the ../build.xml file. -->
\r
549 <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
\r
550 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
\r
551 <j2seproject3:force-recompile/>
\r
552 <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>
\r
554 <target name="-post-compile-single">
\r
555 <!-- Empty placeholder for easier customization. -->
\r
556 <!-- You can override this target in the ../build.xml file. -->
\r
558 <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
\r
560 ====================
\r
561 JAR BUILDING SECTION
\r
562 ====================
\r
564 <target depends="init" name="-pre-pre-jar">
\r
565 <dirname file="${dist.jar}" property="dist.jar.dir"/>
\r
566 <mkdir dir="${dist.jar.dir}"/>
\r
568 <target name="-pre-jar">
\r
569 <!-- Empty placeholder for easier customization. -->
\r
570 <!-- You can override this target in the ../build.xml file. -->
\r
572 <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive" name="-do-jar-without-manifest" unless="manifest.available">
\r
573 <j2seproject1:jar/>
\r
575 <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class">
\r
576 <j2seproject1:jar manifest="${manifest.file}"/>
\r
578 <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">
\r
579 <j2seproject1:jar manifest="${manifest.file}">
\r
580 <j2seproject1:manifest>
\r
581 <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
\r
582 </j2seproject1:manifest>
\r
583 </j2seproject1:jar>
\r
584 <echo>To run this application from the command line without Ant, try:</echo>
\r
585 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
\r
586 <property location="${dist.jar}" name="dist.jar.resolved"/>
\r
587 <pathconvert property="run.classpath.with.dist.jar">
\r
588 <path path="${run.classpath}"/>
\r
589 <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
\r
591 <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
\r
593 <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">
\r
594 <basename file="${application.splash}" property="splashscreen.basename"/>
\r
595 <mkdir dir="${build.classes.dir}/META-INF"/>
\r
596 <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
\r
597 <j2seproject3:copylibs>
\r
599 <attribute name="Main-Class" value="${main.class}"/>
\r
600 <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
\r
602 </j2seproject3:copylibs>
\r
603 <echo>To run this application from the command line without Ant, try:</echo>
\r
604 <property location="${dist.jar}" name="dist.jar.resolved"/>
\r
605 <echo>java -jar "${dist.jar.resolved}"</echo>
\r
607 <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">
\r
608 <j2seproject3:copylibs>
\r
610 <attribute name="Main-Class" value="${main.class}"/>
\r
612 </j2seproject3:copylibs>
\r
613 <echo>To run this application from the command line without Ant, try:</echo>
\r
614 <property location="${dist.jar}" name="dist.jar.resolved"/>
\r
615 <echo>java -jar "${dist.jar.resolved}"</echo>
\r
617 <target name="-post-jar">
\r
618 <!-- Empty placeholder for easier customization. -->
\r
619 <!-- You can override this target in the ../build.xml file. -->
\r
621 <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,jnlp" description="Build JAR." name="jar"/>
\r
627 <target depends="init,compile" description="Run a main class." name="run">
\r
628 <j2seproject1:java>
\r
630 <arg line="${application.args}"/>
\r
632 </j2seproject1:java>
\r
634 <target name="-do-not-recompile">
\r
635 <property name="javac.includes.binary" value=""/>
\r
637 <target depends="init,compile-single" name="run-single">
\r
638 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
\r
639 <j2seproject1:java classname="${run.class}"/>
\r
641 <target depends="init,compile-test-single" name="run-test-with-main">
\r
642 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
\r
643 <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
\r
650 <target depends="init" if="netbeans.home" name="-debug-start-debugger">
\r
651 <j2seproject1:nbjpdastart name="${debug.class}"/>
\r
653 <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
\r
654 <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
\r
656 <target depends="init,compile" name="-debug-start-debuggee">
\r
657 <j2seproject3:debug>
\r
659 <arg line="${application.args}"/>
\r
661 </j2seproject3:debug>
\r
663 <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
\r
664 <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
\r
665 <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
\r
667 <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
\r
668 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
\r
669 <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
\r
670 <j2seproject3:debug classname="${debug.class}"/>
\r
672 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
\r
673 <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
\r
674 <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
\r
675 <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
\r
677 <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
\r
678 <target depends="init" name="-pre-debug-fix">
\r
679 <fail unless="fix.includes">Must set fix.includes</fail>
\r
680 <property name="javac.includes" value="${fix.includes}.java"/>
\r
682 <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
\r
683 <j2seproject1:nbjpdareload/>
\r
685 <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
\r
691 <target depends="init" if="have.sources" name="-javadoc-build">
\r
692 <mkdir dir="${dist.javadoc.dir}"/>
\r
693 <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}">
\r
695 <path path="${javac.classpath}"/>
\r
697 <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
\r
698 <filename name="**/*.java"/>
\r
700 <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
\r
701 <include name="**/*.java"/>
\r
705 <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
\r
706 <nbbrowse file="${dist.javadoc.dir}/index.html"/>
\r
708 <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
\r
710 =========================
\r
711 JUNIT COMPILATION SECTION
\r
712 =========================
\r
714 <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
\r
715 <mkdir dir="${build.test.classes.dir}"/>
\r
717 <target name="-pre-compile-test">
\r
718 <!-- Empty placeholder for easier customization. -->
\r
719 <!-- You can override this target in the ../build.xml file. -->
\r
721 <target if="do.depend.true" name="-compile-test-depend">
\r
722 <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
\r
724 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
\r
725 <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}"/>
\r
726 <copy todir="${build.test.classes.dir}">
\r
727 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
\r
730 <target name="-post-compile-test">
\r
731 <!-- Empty placeholder for easier customization. -->
\r
732 <!-- You can override this target in the ../build.xml file. -->
\r
734 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
\r
735 <target name="-pre-compile-test-single">
\r
736 <!-- Empty placeholder for easier customization. -->
\r
737 <!-- You can override this target in the ../build.xml file. -->
\r
739 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
\r
740 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
\r
741 <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
\r
742 <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}"/>
\r
743 <copy todir="${build.test.classes.dir}">
\r
744 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
\r
747 <target name="-post-compile-test-single">
\r
748 <!-- Empty placeholder for easier customization. -->
\r
749 <!-- You can override this target in the ../build.xml file. -->
\r
751 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
\r
753 =======================
\r
754 JUNIT EXECUTION SECTION
\r
755 =======================
\r
757 <target depends="init" if="have.tests" name="-pre-test-run">
\r
758 <mkdir dir="${build.test.results.dir}"/>
\r
760 <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
\r
761 <j2seproject3:junit testincludes="**/*Test.java"/>
\r
763 <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
\r
764 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
\r
766 <target depends="init" if="have.tests" name="test-report"/>
\r
767 <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
\r
768 <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
\r
769 <target depends="init" if="have.tests" name="-pre-test-run-single">
\r
770 <mkdir dir="${build.test.results.dir}"/>
\r
772 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
\r
773 <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
\r
774 <j2seproject3:junit excludes="" includes="${test.includes}"/>
\r
776 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
\r
777 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
\r
779 <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"/>
\r
781 =======================
\r
782 JUNIT DEBUGGING SECTION
\r
783 =======================
\r
785 <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
\r
786 <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
\r
787 <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
\r
788 <delete file="${test.report.file}"/>
\r
789 <mkdir dir="${build.test.results.dir}"/>
\r
790 <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}">
\r
793 <propertyref prefix="test-sys-prop."/>
\r
794 <mapper from="test-sys-prop.*" to="*" type="glob"/>
\r
796 <arg value="${test.class}"/>
\r
797 <arg value="showoutput=true"/>
\r
798 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
\r
799 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
\r
801 </j2seproject3:debug>
\r
803 <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
\r
804 <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
\r
806 <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
\r
807 <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
\r
808 <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
\r
810 <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
\r
812 =========================
\r
813 APPLET EXECUTION SECTION
\r
814 =========================
\r
816 <target depends="init,compile-single" name="run-applet">
\r
817 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
\r
818 <j2seproject1:java classname="sun.applet.AppletViewer">
\r
820 <arg value="${applet.url}"/>
\r
822 </j2seproject1:java>
\r
825 =========================
\r
826 APPLET DEBUGGING SECTION
\r
827 =========================
\r
829 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
\r
830 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
\r
831 <j2seproject3:debug classname="sun.applet.AppletViewer">
\r
833 <arg value="${applet.url}"/>
\r
835 </j2seproject3:debug>
\r
837 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
\r
843 <target name="-deps-clean-init" unless="built-clean.properties">
\r
844 <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>
\r
845 <delete file="${built-clean.properties}" quiet="true"/>
\r
847 <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
\r
848 <echo level="warn" message="Cycle detected: Desert was already built"/>
\r
850 <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
\r
851 <mkdir dir="${build.dir}"/>
\r
852 <touch file="${built-clean.properties}" verbose="false"/>
\r
853 <property file="${built-clean.properties}" prefix="already.built.clean."/>
\r
854 <antcall target="-warn-already-built-clean"/>
\r
855 <propertyfile file="${built-clean.properties}">
\r
856 <entry key="${basedir}" value=""/>
\r
859 <target depends="init" name="-do-clean">
\r
860 <delete dir="${build.dir}"/>
\r
861 <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
\r
863 <target name="-post-clean">
\r
864 <!-- Empty placeholder for easier customization. -->
\r
865 <!-- You can override this target in the ../build.xml file. -->
\r
867 <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
\r
868 <target name="-check-call-dep">
\r
869 <property file="${call.built.properties}" prefix="already.built."/>
\r
870 <condition property="should.call.dep">
\r
872 <isset property="already.built.${call.subproject}"/>
\r
876 <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
\r
877 <ant antfile="${call.script}" inheritall="false" target="${call.target}">
\r
879 <propertyref prefix="transfer."/>
\r
880 <mapper from="transfer.*" to="*" type="glob"/>
\r