Free cookie consent management tool by TermsFeed Policy Generator

source: branches/OKBJavaConnector/ECJClient/nbproject/build-impl.xml @ 11194

Last change on this file since 11194 was 6152, checked in by bfarka, 14 years ago

added ecj and custom statistics to communicate with the okb services #1441

File size: 58.7 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3*** GENERATED FROM project.xml - DO NOT EDIT  ***
4***         EDIT ../build.xml INSTEAD         ***
5
6For the purpose of easier reading the script
7is divided into following sections:
8
9  - initialization
10  - compilation
11  - jar
12  - execution
13  - debugging
14  - javadoc
15  - junit compilation
16  - junit execution
17  - junit debugging
18  - applet
19  - cleanup
20
21        -->
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="ECJClient-impl">
23    <fail message="Please build using Ant 1.7.1 or higher.">
24        <condition>
25            <not>
26                <antversion atleast="1.7.1"/>
27            </not>
28        </condition>
29    </fail>
30    <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
31    <!--
32                ======================
33                INITIALIZATION SECTION
34                ======================
35            -->
36    <target name="-pre-init">
37        <!-- Empty placeholder for easier customization. -->
38        <!-- You can override this target in the ../build.xml file. -->
39    </target>
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"/>
44    </target>
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"/>
51    </target>
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"/>
55    </target>
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">
59            <and>
60                <not>
61                    <equals arg1="${application.splash}" arg2="" trim="true"/>
62                </not>
63                <available file="${application.splash}"/>
64            </and>
65        </condition>
66        <condition property="main.class.available">
67            <and>
68                <isset property="main.class"/>
69                <not>
70                    <equals arg1="${main.class}" arg2="" trim="true"/>
71                </not>
72            </and>
73        </condition>
74        <condition property="manifest.available+main.class">
75            <and>
76                <isset property="manifest.available"/>
77                <isset property="main.class.available"/>
78            </and>
79        </condition>
80        <condition property="do.archive">
81            <not>
82                <istrue value="${jar.archive.disabled}"/>
83            </not>
84        </condition>
85        <condition property="do.mkdist">
86            <and>
87                <isset property="do.archive"/>
88                <isset property="libs.CopyLibs.classpath"/>
89                <not>
90                    <istrue value="${mkdist.disabled}"/>
91                </not>
92            </and>
93        </condition>
94        <condition property="manifest.available+main.class+mkdist.available">
95            <and>
96                <istrue value="${manifest.available+main.class}"/>
97                <isset property="do.mkdist"/>
98            </and>
99        </condition>
100        <condition property="do.archive+manifest.available">
101            <and>
102                <isset property="manifest.available"/>
103                <istrue value="${do.archive}"/>
104            </and>
105        </condition>
106        <condition property="do.archive+main.class.available">
107            <and>
108                <isset property="main.class.available"/>
109                <istrue value="${do.archive}"/>
110            </and>
111        </condition>
112        <condition property="do.archive+splashscreen.available">
113            <and>
114                <isset property="splashscreen.available"/>
115                <istrue value="${do.archive}"/>
116            </and>
117        </condition>
118        <condition property="do.archive+manifest.available+main.class">
119            <and>
120                <istrue value="${manifest.available+main.class}"/>
121                <istrue value="${do.archive}"/>
122            </and>
123        </condition>
124        <condition property="manifest.available-mkdist.available">
125            <or>
126                <istrue value="${manifest.available}"/>
127                <isset property="do.mkdist"/>
128            </or>
129        </condition>
130        <condition property="manifest.available+main.class-mkdist.available">
131            <or>
132                <istrue value="${manifest.available+main.class}"/>
133                <isset property="do.mkdist"/>
134            </or>
135        </condition>
136        <condition property="have.tests">
137            <or>
138                <available file="${test.src.dir}"/>
139            </or>
140        </condition>
141        <condition property="have.sources">
142            <or>
143                <available file="${src.dir}"/>
144            </or>
145        </condition>
146        <condition property="netbeans.home+have.tests">
147            <and>
148                <isset property="netbeans.home"/>
149                <isset property="have.tests"/>
150            </and>
151        </condition>
152        <condition property="no.javadoc.preview">
153            <and>
154                <isset property="javadoc.preview"/>
155                <isfalse value="${javadoc.preview}"/>
156            </and>
157        </condition>
158        <property name="run.jvmargs" value=""/>
159        <property name="javac.compilerargs" value=""/>
160        <property name="work.dir" value="${basedir}"/>
161        <condition property="no.deps">
162            <and>
163                <istrue value="${no.dependencies}"/>
164            </and>
165        </condition>
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}">
172            <and>
173                <isset property="javadoc.encoding"/>
174                <not>
175                    <equals arg1="${javadoc.encoding}" arg2=""/>
176                </not>
177            </and>
178        </condition>
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}"/>
185        </condition>
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"/>
189        </condition>
190        <condition else="false" property="jdkBug6558476">
191            <and>
192                <matches pattern="1\.[56]" string="${java.specification.version}"/>
193                <not>
194                    <os family="unix"/>
195                </not>
196            </and>
197        </condition>
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"/>
202    </target>
203    <target name="-post-init">
204        <!-- Empty placeholder for easier customization. -->
205        <!-- You can override this target in the ../build.xml file. -->
206    </target>
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>
218    </target>
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"/>
223            <sequential>
224                <property name="@{name}" value="${@{value}}"/>
225            </sequential>
226        </macrodef>
227    </target>
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"/>
241            <sequential>
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}">
246                    <src>
247                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
248                            <include name="*"/>
249                        </dirset>
250                    </src>
251                    <classpath>
252                        <path path="@{classpath}"/>
253                    </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}"/>
263                    <customize/>
264                </javac>
265            </sequential>
266        </macrodef>
267    </target>
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"/>
281            <sequential>
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}">
285                    <src>
286                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
287                            <include name="*"/>
288                        </dirset>
289                    </src>
290                    <classpath>
291                        <path path="@{classpath}"/>
292                    </classpath>
293                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
294                    <compilerarg line="${javac.compilerargs}"/>
295                    <customize/>
296                </javac>
297            </sequential>
298        </macrodef>
299    </target>
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"/>
305            <sequential>
306                <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
307                    <classpath>
308                        <path path="@{classpath}"/>
309                    </classpath>
310                </depend>
311            </sequential>
312        </macrodef>
313        <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
314            <attribute default="${build.classes.dir}" name="destdir"/>
315            <sequential>
316                <fail unless="javac.includes">Must set javac.includes</fail>
317                <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
318                    <path>
319                        <filelist dir="@{destdir}" files="${javac.includes}"/>
320                    </path>
321                    <globmapper from="*.java" to="*.class"/>
322                </pathconvert>
323                <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
324                <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
325                <delete>
326                    <files includesfile="${javac.includesfile.binary}"/>
327                </delete>
328                <delete>
329                    <fileset file="${javac.includesfile.binary}"/>
330                </delete>
331            </sequential>
332        </macrodef>
333    </target>
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"/>
339            <sequential>
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}"/>
345                        </fileset>
346                    </batchtest>
347                    <classpath>
348                        <path path="${run.test.classpath}"/>
349                    </classpath>
350                    <syspropertyset>
351                        <propertyref prefix="test-sys-prop."/>
352                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
353                    </syspropertyset>
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}"/>
359                </junit>
360            </sequential>
361        </macrodef>
362    </target>
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. -->
367    </target>
368    <target name="-profile-post-init">
369        <!-- Empty placeholder for easier customization. -->
370        <!-- You can override this target in the ../build.xml file. -->
371    </target>
372    <target name="-profile-init-macrodef-profile">
373        <macrodef name="resolve">
374            <attribute name="name"/>
375            <attribute name="value"/>
376            <sequential>
377                <property name="@{name}" value="${env.@{value}}"/>
378            </sequential>
379        </macrodef>
380        <macrodef name="profile">
381            <attribute default="${main.class}" name="classname"/>
382            <element name="customize" optional="true"/>
383            <sequential>
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}"/>
391                    <classpath>
392                        <path path="${run.classpath}"/>
393                    </classpath>
394                    <syspropertyset>
395                        <propertyref prefix="run-sys-prop."/>
396                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
397                    </syspropertyset>
398                    <customize/>
399                </java>
400            </sequential>
401        </macrodef>
402    </target>
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>
406    </target>
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"/>
412            <sequential>
413                <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
414                    <classpath>
415                        <path path="@{classpath}"/>
416                    </classpath>
417                </nbjpdastart>
418            </sequential>
419        </macrodef>
420        <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
421            <attribute default="${build.classes.dir}" name="dir"/>
422            <sequential>
423                <nbjpdareload>
424                    <fileset dir="@{dir}" includes="${fix.classes}">
425                        <include name="${fix.includes}*.class"/>
426                    </fileset>
427                </nbjpdareload>
428            </sequential>
429        </macrodef>
430    </target>
431    <target name="-init-debug-args">
432        <property name="version-output" value="java version &quot;${ant.java.version}"/>
433        <condition property="have-jdk-older-than-1.4">
434            <or>
435                <contains string="${version-output}" substring="java version &quot;1.0"/>
436                <contains string="${version-output}" substring="java version &quot;1.1"/>
437                <contains string="${version-output}" substring="java version &quot;1.2"/>
438                <contains string="${version-output}" substring="java version &quot;1.3"/>
439            </or>
440        </condition>
441        <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
442            <istrue value="${have-jdk-older-than-1.4}"/>
443        </condition>
444        <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
445            <os family="windows"/>
446        </condition>
447        <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
448            <isset property="debug.transport"/>
449        </condition>
450    </target>
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"/>
456            <sequential>
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}"/>
464                    <classpath>
465                        <path path="@{classpath}"/>
466                    </classpath>
467                    <syspropertyset>
468                        <propertyref prefix="run-sys-prop."/>
469                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
470                    </syspropertyset>
471                    <customize/>
472                </java>
473            </sequential>
474        </macrodef>
475    </target>
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"/>
481            <sequential>
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}"/>
487                    <classpath>
488                        <path path="@{classpath}"/>
489                    </classpath>
490                    <syspropertyset>
491                        <propertyref prefix="run-sys-prop."/>
492                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
493                    </syspropertyset>
494                    <customize/>
495                </java>
496            </sequential>
497        </macrodef>
498    </target>
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"/>
503            <sequential>
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=""/>
508                </pathconvert>
509                <pathconvert pathsep=" " property="jar.classpath">
510                    <path path="${run.classpath.without.build.classes.dir}"/>
511                    <chainedmapper>
512                        <flattenmapper/>
513                        <globmapper from="*" to="lib/*"/>
514                    </chainedmapper>
515                </pathconvert>
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}"/>
519                    <manifest>
520                        <attribute name="Class-Path" value="${jar.classpath}"/>
521                        <customize/>
522                    </manifest>
523                </copylibs>
524            </sequential>
525        </macrodef>
526    </target>
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}"/>
531            </jar>
532        </presetdef>
533    </target>
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">
542            <not>
543                <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
544            </not>
545        </condition>
546    </target>
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}"/>
550        </condition>
551        <condition else="" property="ap.proc.none.internal" value="-proc:none">
552            <isfalse value="${annotation.processing.enabled}"/>
553        </condition>
554    </target>
555    <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
556        <property name="ap.cmd.line.internal" value=""/>
557    </target>
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"/>
559    <!--
560                ===================
561                COMPILATION SECTION
562                ===================
563            -->
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"/>
567    </target>
568    <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
569        <echo level="warn" message="Cycle detected: ECJClient was already built"/>
570    </target>
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=""/>
578        </propertyfile>
579        <antcall target="-maybe-call-dep">
580            <param name="call.built.properties" value="${built-jar.properties}"/>
581            <param location="${project.AdministrationService}" name="call.subproject"/>
582            <param location="${project.AdministrationService}/build.xml" name="call.script"/>
583            <param name="call.target" value="jar"/>
584            <param name="transfer.built-jar.properties" value="${built-jar.properties}"/>
585        </antcall>
586        <antcall target="-maybe-call-dep">
587            <param name="call.built.properties" value="${built-jar.properties}"/>
588            <param location="${project.AuthenticationService}" name="call.subproject"/>
589            <param location="${project.AuthenticationService}/build.xml" name="call.script"/>
590            <param name="call.target" value="jar"/>
591            <param name="transfer.built-jar.properties" value="${built-jar.properties}"/>
592        </antcall>
593        <antcall target="-maybe-call-dep">
594            <param name="call.built.properties" value="${built-jar.properties}"/>
595            <param location="${project.QueryService}" name="call.subproject"/>
596            <param location="${project.QueryService}/build.xml" name="call.script"/>
597            <param name="call.target" value="jar"/>
598            <param name="transfer.built-jar.properties" value="${built-jar.properties}"/>
599        </antcall>
600        <antcall target="-maybe-call-dep">
601            <param name="call.built.properties" value="${built-jar.properties}"/>
602            <param location="${project.RunCreationService}" name="call.subproject"/>
603            <param location="${project.RunCreationService}/build.xml" name="call.script"/>
604            <param name="call.target" value="jar"/>
605            <param name="transfer.built-jar.properties" value="${built-jar.properties}"/>
606        </antcall>
607    </target>
608    <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
609    <target depends="init" name="-check-automatic-build">
610        <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
611    </target>
612    <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
613        <antcall target="clean"/>
614    </target>
615    <target depends="init,deps-jar" name="-pre-pre-compile">
616        <mkdir dir="${build.classes.dir}"/>
617    </target>
618    <target name="-pre-compile">
619        <!-- Empty placeholder for easier customization. -->
620        <!-- You can override this target in the ../build.xml file. -->
621    </target>
622    <target if="do.depend.true" name="-compile-depend">
623        <pathconvert property="build.generated.subdirs">
624            <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
625                <include name="*"/>
626            </dirset>
627        </pathconvert>
628        <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>
629    </target>
630    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">
631        <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
632        <copy todir="${build.classes.dir}">
633            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
634        </copy>
635    </target>
636    <target if="has.persistence.xml" name="-copy-persistence-xml">
637        <mkdir dir="${build.classes.dir}/META-INF"/>
638        <copy todir="${build.classes.dir}/META-INF">
639            <fileset dir="${meta.inf.dir}" includes="persistence.xml"/>
640        </copy>
641    </target>
642    <target name="-post-compile">
643        <!-- Empty placeholder for easier customization. -->
644        <!-- You can override this target in the ../build.xml file. -->
645    </target>
646    <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
647    <target name="-pre-compile-single">
648        <!-- Empty placeholder for easier customization. -->
649        <!-- You can override this target in the ../build.xml file. -->
650    </target>
651    <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
652        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
653        <j2seproject3:force-recompile/>
654        <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>
655    </target>
656    <target name="-post-compile-single">
657        <!-- Empty placeholder for easier customization. -->
658        <!-- You can override this target in the ../build.xml file. -->
659    </target>
660    <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
661    <!--
662                ====================
663                JAR BUILDING SECTION
664                ====================
665            -->
666    <target depends="init" name="-pre-pre-jar">
667        <dirname file="${dist.jar}" property="dist.jar.dir"/>
668        <mkdir dir="${dist.jar.dir}"/>
669    </target>
670    <target name="-pre-jar">
671        <!-- Empty placeholder for easier customization. -->
672        <!-- You can override this target in the ../build.xml file. -->
673    </target>
674    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive" name="-do-jar-without-manifest" unless="manifest.available-mkdist.available">
675        <j2seproject1:jar/>
676    </target>
677    <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">
678        <j2seproject1:jar manifest="${manifest.file}"/>
679    </target>
680    <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">
681        <j2seproject1:jar manifest="${manifest.file}">
682            <j2seproject1:manifest>
683                <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
684            </j2seproject1:manifest>
685        </j2seproject1:jar>
686        <echo level="info">To run this application from the command line without Ant, try:</echo>
687        <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
688        <property location="${dist.jar}" name="dist.jar.resolved"/>
689        <pathconvert property="run.classpath.with.dist.jar">
690            <path path="${run.classpath}"/>
691            <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
692        </pathconvert>
693        <echo level="info">java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
694    </target>
695    <target depends="init" if="do.archive" name="-do-jar-with-libraries-create-manifest" unless="manifest.available">
696        <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
697        <touch file="${tmp.manifest.file}" verbose="false"/>
698    </target>
699    <target depends="init" if="do.archive+manifest.available" name="-do-jar-with-libraries-copy-manifest">
700        <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
701        <copy file="${manifest.file}" tofile="${tmp.manifest.file}"/>
702    </target>
703    <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">
704        <manifest file="${tmp.manifest.file}" mode="update">
705            <attribute name="Main-Class" value="${main.class}"/>
706        </manifest>
707    </target>
708    <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">
709        <basename file="${application.splash}" property="splashscreen.basename"/>
710        <mkdir dir="${build.classes.dir}/META-INF"/>
711        <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
712        <manifest file="${tmp.manifest.file}" mode="update">
713            <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
714        </manifest>
715    </target>
716    <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">
717        <j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
718        <echo level="info">To run this application from the command line without Ant, try:</echo>
719        <property location="${dist.jar}" name="dist.jar.resolved"/>
720        <echo level="info">java -jar "${dist.jar.resolved}"</echo>
721    </target>
722    <target depends="-do-jar-with-libraries-pack" if="do.archive" name="-do-jar-with-libraries-delete-manifest">
723        <delete>
724            <fileset file="${tmp.manifest.file}"/>
725        </delete>
726    </target>
727    <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"/>
728    <target name="-post-jar">
729        <!-- Empty placeholder for easier customization. -->
730        <!-- You can override this target in the ../build.xml file. -->
731    </target>
732    <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"/>
733    <!--
734                =================
735                EXECUTION SECTION
736                =================
737            -->
738    <target depends="init,compile" description="Run a main class." name="run">
739        <j2seproject1:java>
740            <customize>
741                <arg line="${application.args}"/>
742            </customize>
743        </j2seproject1:java>
744    </target>
745    <target name="-do-not-recompile">
746        <property name="javac.includes.binary" value=""/>
747    </target>
748    <target depends="init,compile-single" name="run-single">
749        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
750        <j2seproject1:java classname="${run.class}"/>
751    </target>
752    <target depends="init,compile-test-single" name="run-test-with-main">
753        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
754        <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
755    </target>
756    <!--
757                =================
758                DEBUGGING SECTION
759                =================
760            -->
761    <target depends="init" if="netbeans.home" name="-debug-start-debugger">
762        <j2seproject1:nbjpdastart name="${debug.class}"/>
763    </target>
764    <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
765        <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
766    </target>
767    <target depends="init,compile" name="-debug-start-debuggee">
768        <j2seproject3:debug>
769            <customize>
770                <arg line="${application.args}"/>
771            </customize>
772        </j2seproject3:debug>
773    </target>
774    <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
775    <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
776        <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
777    </target>
778    <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
779    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
780        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
781        <j2seproject3:debug classname="${debug.class}"/>
782    </target>
783    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
784    <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
785        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
786        <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
787    </target>
788    <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
789    <target depends="init" name="-pre-debug-fix">
790        <fail unless="fix.includes">Must set fix.includes</fail>
791        <property name="javac.includes" value="${fix.includes}.java"/>
792    </target>
793    <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
794        <j2seproject1:nbjpdareload/>
795    </target>
796    <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
797    <!--
798                =================
799                PROFILING SECTION
800                =================
801            -->
802    <target depends="profile-init,compile" description="Profile a project in the IDE." if="netbeans.home" name="profile">
803        <nbprofiledirect>
804            <classpath>
805                <path path="${run.classpath}"/>
806            </classpath>
807        </nbprofiledirect>
808        <profile/>
809    </target>
810    <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="netbeans.home" name="profile-single">
811        <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail>
812        <nbprofiledirect>
813            <classpath>
814                <path path="${run.classpath}"/>
815            </classpath>
816        </nbprofiledirect>
817        <profile classname="${profile.class}"/>
818    </target>
819    <!--
820                =========================
821                APPLET PROFILING  SECTION
822                =========================
823            -->
824    <target depends="profile-init,compile-single" if="netbeans.home" name="profile-applet">
825        <nbprofiledirect>
826            <classpath>
827                <path path="${run.classpath}"/>
828            </classpath>
829        </nbprofiledirect>
830        <profile classname="sun.applet.AppletViewer">
831            <customize>
832                <arg value="${applet.url}"/>
833            </customize>
834        </profile>
835    </target>
836    <!--
837                =========================
838                TESTS PROFILING  SECTION
839                =========================
840            -->
841    <target depends="profile-init,compile-test-single" if="netbeans.home" name="profile-test-single">
842        <nbprofiledirect>
843            <classpath>
844                <path path="${run.test.classpath}"/>
845            </classpath>
846        </nbprofiledirect>
847        <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
848            <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
849            <jvmarg value="${profiler.info.jvmargs.agent}"/>
850            <jvmarg line="${profiler.info.jvmargs}"/>
851            <test name="${profile.class}"/>
852            <classpath>
853                <path path="${run.test.classpath}"/>
854            </classpath>
855            <syspropertyset>
856                <propertyref prefix="test-sys-prop."/>
857                <mapper from="test-sys-prop.*" to="*" type="glob"/>
858            </syspropertyset>
859            <formatter type="brief" usefile="false"/>
860            <formatter type="xml"/>
861        </junit>
862    </target>
863    <!--
864                ===============
865                JAVADOC SECTION
866                ===============
867            -->
868    <target depends="init" if="have.sources" name="-javadoc-build">
869        <mkdir dir="${dist.javadoc.dir}"/>
870        <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}">
871            <classpath>
872                <path path="${javac.classpath}"/>
873            </classpath>
874            <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
875                <filename name="**/*.java"/>
876            </fileset>
877            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
878                <include name="**/*.java"/>
879            </fileset>
880        </javadoc>
881        <copy todir="${dist.javadoc.dir}">
882            <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
883                <filename name="**/doc-files/**"/>
884            </fileset>
885            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
886                <include name="**/doc-files/**"/>
887            </fileset>
888        </copy>
889    </target>
890    <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
891        <nbbrowse file="${dist.javadoc.dir}/index.html"/>
892    </target>
893    <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
894    <!--
895                =========================
896                JUNIT COMPILATION SECTION
897                =========================
898            -->
899    <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
900        <mkdir dir="${build.test.classes.dir}"/>
901    </target>
902    <target name="-pre-compile-test">
903        <!-- Empty placeholder for easier customization. -->
904        <!-- You can override this target in the ../build.xml file. -->
905    </target>
906    <target if="do.depend.true" name="-compile-test-depend">
907        <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
908    </target>
909    <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
910        <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}"/>
911        <copy todir="${build.test.classes.dir}">
912            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
913        </copy>
914    </target>
915    <target name="-post-compile-test">
916        <!-- Empty placeholder for easier customization. -->
917        <!-- You can override this target in the ../build.xml file. -->
918    </target>
919    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
920    <target name="-pre-compile-test-single">
921        <!-- Empty placeholder for easier customization. -->
922        <!-- You can override this target in the ../build.xml file. -->
923    </target>
924    <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
925        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
926        <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
927        <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}"/>
928        <copy todir="${build.test.classes.dir}">
929            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
930        </copy>
931    </target>
932    <target name="-post-compile-test-single">
933        <!-- Empty placeholder for easier customization. -->
934        <!-- You can override this target in the ../build.xml file. -->
935    </target>
936    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
937    <!--
938                =======================
939                JUNIT EXECUTION SECTION
940                =======================
941            -->
942    <target depends="init" if="have.tests" name="-pre-test-run">
943        <mkdir dir="${build.test.results.dir}"/>
944    </target>
945    <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
946        <j2seproject3:junit testincludes="**/*Test.java"/>
947    </target>
948    <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
949        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
950    </target>
951    <target depends="init" if="have.tests" name="test-report"/>
952    <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
953    <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
954    <target depends="init" if="have.tests" name="-pre-test-run-single">
955        <mkdir dir="${build.test.results.dir}"/>
956    </target>
957    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
958        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
959        <j2seproject3:junit excludes="" includes="${test.includes}"/>
960    </target>
961    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
962        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
963    </target>
964    <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"/>
965    <!--
966                =======================
967                JUNIT DEBUGGING SECTION
968                =======================
969            -->
970    <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
971        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
972        <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
973        <delete file="${test.report.file}"/>
974        <mkdir dir="${build.test.results.dir}"/>
975        <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}">
976            <customize>
977                <syspropertyset>
978                    <propertyref prefix="test-sys-prop."/>
979                    <mapper from="test-sys-prop.*" to="*" type="glob"/>
980                </syspropertyset>
981                <arg value="${test.class}"/>
982                <arg value="showoutput=true"/>
983                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
984                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
985            </customize>
986        </j2seproject3:debug>
987    </target>
988    <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
989        <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
990    </target>
991    <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
992    <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
993        <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
994    </target>
995    <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
996    <!--
997                =========================
998                APPLET EXECUTION SECTION
999                =========================
1000            -->
1001    <target depends="init,compile-single" name="run-applet">
1002        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
1003        <j2seproject1:java classname="sun.applet.AppletViewer">
1004            <customize>
1005                <arg value="${applet.url}"/>
1006            </customize>
1007        </j2seproject1:java>
1008    </target>
1009    <!--
1010                =========================
1011                APPLET DEBUGGING  SECTION
1012                =========================
1013            -->
1014    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
1015        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
1016        <j2seproject3:debug classname="sun.applet.AppletViewer">
1017            <customize>
1018                <arg value="${applet.url}"/>
1019            </customize>
1020        </j2seproject3:debug>
1021    </target>
1022    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
1023    <!--
1024                ===============
1025                CLEANUP SECTION
1026                ===============
1027            -->
1028    <target name="-deps-clean-init" unless="built-clean.properties">
1029        <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>
1030        <delete file="${built-clean.properties}" quiet="true"/>
1031    </target>
1032    <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
1033        <echo level="warn" message="Cycle detected: ECJClient was already built"/>
1034    </target>
1035    <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
1036        <mkdir dir="${build.dir}"/>
1037        <touch file="${built-clean.properties}" verbose="false"/>
1038        <property file="${built-clean.properties}" prefix="already.built.clean."/>
1039        <antcall target="-warn-already-built-clean"/>
1040        <propertyfile file="${built-clean.properties}">
1041            <entry key="${basedir}" value=""/>
1042        </propertyfile>
1043        <antcall target="-maybe-call-dep">
1044            <param name="call.built.properties" value="${built-clean.properties}"/>
1045            <param location="${project.AdministrationService}" name="call.subproject"/>
1046            <param location="${project.AdministrationService}/build.xml" name="call.script"/>
1047            <param name="call.target" value="clean"/>
1048            <param name="transfer.built-clean.properties" value="${built-clean.properties}"/>
1049        </antcall>
1050        <antcall target="-maybe-call-dep">
1051            <param name="call.built.properties" value="${built-clean.properties}"/>
1052            <param location="${project.AuthenticationService}" name="call.subproject"/>
1053            <param location="${project.AuthenticationService}/build.xml" name="call.script"/>
1054            <param name="call.target" value="clean"/>
1055            <param name="transfer.built-clean.properties" value="${built-clean.properties}"/>
1056        </antcall>
1057        <antcall target="-maybe-call-dep">
1058            <param name="call.built.properties" value="${built-clean.properties}"/>
1059            <param location="${project.QueryService}" name="call.subproject"/>
1060            <param location="${project.QueryService}/build.xml" name="call.script"/>
1061            <param name="call.target" value="clean"/>
1062            <param name="transfer.built-clean.properties" value="${built-clean.properties}"/>
1063        </antcall>
1064        <antcall target="-maybe-call-dep">
1065            <param name="call.built.properties" value="${built-clean.properties}"/>
1066            <param location="${project.RunCreationService}" name="call.subproject"/>
1067            <param location="${project.RunCreationService}/build.xml" name="call.script"/>
1068            <param name="call.target" value="clean"/>
1069            <param name="transfer.built-clean.properties" value="${built-clean.properties}"/>
1070        </antcall>
1071    </target>
1072    <target depends="init" name="-do-clean">
1073        <delete dir="${build.dir}"/>
1074        <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
1075    </target>
1076    <target name="-post-clean">
1077        <!-- Empty placeholder for easier customization. -->
1078        <!-- You can override this target in the ../build.xml file. -->
1079    </target>
1080    <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
1081    <target name="-check-call-dep">
1082        <property file="${call.built.properties}" prefix="already.built."/>
1083        <condition property="should.call.dep">
1084            <not>
1085                <isset property="already.built.${call.subproject}"/>
1086            </not>
1087        </condition>
1088    </target>
1089    <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
1090        <ant antfile="${call.script}" inheritall="false" target="${call.target}">
1091            <propertyset>
1092                <propertyref prefix="transfer."/>
1093                <mapper from="transfer.*" to="*" type="glob"/>
1094            </propertyset>
1095        </ant>
1096    </target>
1097</project>
Note: See TracBrowser for help on using the repository browser.