Free cookie consent management tool by TermsFeed Policy Generator

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

Last change on this file since 6080 was 6080, checked in by mholper, 13 years ago

creating ECJClient using all four subservice Projects #1441

File size: 51.6 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        <available file="${application.splash}" property="splashscreen.available"/>
59        <condition property="main.class.available">
60            <and>
61                <isset property="main.class"/>
62                <not>
63                    <equals arg1="${main.class}" arg2="" trim="true"/>
64                </not>
65            </and>
66        </condition>
67        <condition property="manifest.available+main.class">
68            <and>
69                <isset property="manifest.available"/>
70                <isset property="main.class.available"/>
71            </and>
72        </condition>
73        <condition property="do.mkdist">
74            <and>
75                <isset property="libs.CopyLibs.classpath"/>
76                <not>
77                    <istrue value="${mkdist.disabled}"/>
78                </not>
79            </and>
80        </condition>
81        <condition property="manifest.available+main.class+mkdist.available">
82            <and>
83                <istrue value="${manifest.available+main.class}"/>
84                <isset property="do.mkdist"/>
85            </and>
86        </condition>
87        <condition property="manifest.available+main.class+mkdist.available+splashscreen.available">
88            <and>
89                <istrue value="${manifest.available+main.class+mkdist.available}"/>
90                <istrue value="${splashscreen.available}"/>
91            </and>
92        </condition>
93        <condition property="do.archive">
94            <not>
95                <istrue value="${jar.archive.disabled}"/>
96            </not>
97        </condition>
98        <condition property="do.archive+manifest.available">
99            <and>
100                <isset property="manifest.available"/>
101                <istrue value="${do.archive}"/>
102            </and>
103        </condition>
104        <condition property="do.archive+manifest.available+main.class">
105            <and>
106                <istrue value="${manifest.available+main.class}"/>
107                <istrue value="${do.archive}"/>
108            </and>
109        </condition>
110        <condition property="do.archive+manifest.available+main.class+mkdist.available">
111            <and>
112                <istrue value="${manifest.available+main.class+mkdist.available}"/>
113                <istrue value="${do.archive}"/>
114            </and>
115        </condition>
116        <condition property="do.archive+manifest.available+main.class+mkdist.available+splashscreen.available">
117            <and>
118                <istrue value="${manifest.available+main.class+mkdist.available+splashscreen.available}"/>
119                <istrue value="${do.archive}"/>
120            </and>
121        </condition>
122        <condition property="have.tests">
123            <or>
124                <available file="${test.src.dir}"/>
125            </or>
126        </condition>
127        <condition property="have.sources">
128            <or>
129                <available file="${src.dir}"/>
130            </or>
131        </condition>
132        <condition property="netbeans.home+have.tests">
133            <and>
134                <isset property="netbeans.home"/>
135                <isset property="have.tests"/>
136            </and>
137        </condition>
138        <condition property="no.javadoc.preview">
139            <and>
140                <isset property="javadoc.preview"/>
141                <isfalse value="${javadoc.preview}"/>
142            </and>
143        </condition>
144        <property name="run.jvmargs" value=""/>
145        <property name="javac.compilerargs" value=""/>
146        <property name="work.dir" value="${basedir}"/>
147        <condition property="no.deps">
148            <and>
149                <istrue value="${no.dependencies}"/>
150            </and>
151        </condition>
152        <property name="javac.debug" value="true"/>
153        <property name="javadoc.preview" value="true"/>
154        <property name="application.args" value=""/>
155        <property name="source.encoding" value="${file.encoding}"/>
156        <property name="runtime.encoding" value="${source.encoding}"/>
157        <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
158            <and>
159                <isset property="javadoc.encoding"/>
160                <not>
161                    <equals arg1="${javadoc.encoding}" arg2=""/>
162                </not>
163            </and>
164        </condition>
165        <property name="javadoc.encoding.used" value="${source.encoding}"/>
166        <property name="includes" value="**"/>
167        <property name="excludes" value=""/>
168        <property name="do.depend" value="false"/>
169        <condition property="do.depend.true">
170            <istrue value="${do.depend}"/>
171        </condition>
172        <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
173        <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
174            <length length="0" string="${endorsed.classpath}" when="greater"/>
175        </condition>
176        <property name="javac.fork" value="false"/>
177        <property name="jar.index" value="false"/>
178        <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
179    </target>
180    <target name="-post-init">
181        <!-- Empty placeholder for easier customization. -->
182        <!-- You can override this target in the ../build.xml file. -->
183    </target>
184    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
185        <fail unless="src.dir">Must set src.dir</fail>
186        <fail unless="test.src.dir">Must set test.src.dir</fail>
187        <fail unless="build.dir">Must set build.dir</fail>
188        <fail unless="dist.dir">Must set dist.dir</fail>
189        <fail unless="build.classes.dir">Must set build.classes.dir</fail>
190        <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
191        <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
192        <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
193        <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
194        <fail unless="dist.jar">Must set dist.jar</fail>
195    </target>
196    <target name="-init-macrodef-property">
197        <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
198            <attribute name="name"/>
199            <attribute name="value"/>
200            <sequential>
201                <property name="@{name}" value="${@{value}}"/>
202            </sequential>
203        </macrodef>
204    </target>
205    <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
206        <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
207            <attribute default="${src.dir}" name="srcdir"/>
208            <attribute default="${build.classes.dir}" name="destdir"/>
209            <attribute default="${javac.classpath}" name="classpath"/>
210            <attribute default="${javac.processorpath}" name="processorpath"/>
211            <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
212            <attribute default="${includes}" name="includes"/>
213            <attribute default="${excludes}" name="excludes"/>
214            <attribute default="${javac.debug}" name="debug"/>
215            <attribute default="${empty.dir}" name="sourcepath"/>
216            <attribute default="${empty.dir}" name="gensrcdir"/>
217            <element name="customize" optional="true"/>
218            <sequential>
219                <property location="${build.dir}/empty" name="empty.dir"/>
220                <mkdir dir="${empty.dir}"/>
221                <mkdir dir="@{apgeneratedsrcdir}"/>
222                <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
223                    <src>
224                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
225                            <include name="*"/>
226                        </dirset>
227                    </src>
228                    <classpath>
229                        <path path="@{classpath}"/>
230                    </classpath>
231                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
232                    <compilerarg line="${javac.compilerargs}"/>
233                    <compilerarg value="-processorpath"/>
234                    <compilerarg path="@{processorpath}:${empty.dir}"/>
235                    <compilerarg line="${ap.processors.internal}"/>
236                    <compilerarg line="${annotation.processing.processor.options}"/>
237                    <compilerarg value="-s"/>
238                    <compilerarg path="@{apgeneratedsrcdir}"/>
239                    <compilerarg line="${ap.proc.none.internal}"/>
240                    <customize/>
241                </javac>
242            </sequential>
243        </macrodef>
244    </target>
245    <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
246        <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
247            <attribute default="${src.dir}" name="srcdir"/>
248            <attribute default="${build.classes.dir}" name="destdir"/>
249            <attribute default="${javac.classpath}" name="classpath"/>
250            <attribute default="${javac.processorpath}" name="processorpath"/>
251            <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
252            <attribute default="${includes}" name="includes"/>
253            <attribute default="${excludes}" name="excludes"/>
254            <attribute default="${javac.debug}" name="debug"/>
255            <attribute default="${empty.dir}" name="sourcepath"/>
256            <attribute default="${empty.dir}" name="gensrcdir"/>
257            <element name="customize" optional="true"/>
258            <sequential>
259                <property location="${build.dir}/empty" name="empty.dir"/>
260                <mkdir dir="${empty.dir}"/>
261                <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
262                    <src>
263                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
264                            <include name="*"/>
265                        </dirset>
266                    </src>
267                    <classpath>
268                        <path path="@{classpath}"/>
269                    </classpath>
270                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
271                    <compilerarg line="${javac.compilerargs}"/>
272                    <customize/>
273                </javac>
274            </sequential>
275        </macrodef>
276    </target>
277    <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
278        <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
279            <attribute default="${src.dir}" name="srcdir"/>
280            <attribute default="${build.classes.dir}" name="destdir"/>
281            <attribute default="${javac.classpath}" name="classpath"/>
282            <sequential>
283                <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
284                    <classpath>
285                        <path path="@{classpath}"/>
286                    </classpath>
287                </depend>
288            </sequential>
289        </macrodef>
290        <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
291            <attribute default="${build.classes.dir}" name="destdir"/>
292            <sequential>
293                <fail unless="javac.includes">Must set javac.includes</fail>
294                <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
295                    <path>
296                        <filelist dir="@{destdir}" files="${javac.includes}"/>
297                    </path>
298                    <globmapper from="*.java" to="*.class"/>
299                </pathconvert>
300                <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
301                <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
302                <delete>
303                    <files includesfile="${javac.includesfile.binary}"/>
304                </delete>
305                <delete file="${javac.includesfile.binary}"/>
306            </sequential>
307        </macrodef>
308    </target>
309    <target name="-init-macrodef-junit">
310        <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
311            <attribute default="${includes}" name="includes"/>
312            <attribute default="${excludes}" name="excludes"/>
313            <attribute default="**" name="testincludes"/>
314            <sequential>
315                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${build.dir}">
316                    <batchtest todir="${build.test.results.dir}">
317                        <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
318                            <filename name="@{testincludes}"/>
319                        </fileset>
320                    </batchtest>
321                    <classpath>
322                        <path path="${run.test.classpath}"/>
323                    </classpath>
324                    <syspropertyset>
325                        <propertyref prefix="test-sys-prop."/>
326                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
327                    </syspropertyset>
328                    <formatter type="brief" usefile="false"/>
329                    <formatter type="xml"/>
330                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
331                    <jvmarg line="${run.jvmargs}"/>
332                </junit>
333            </sequential>
334        </macrodef>
335    </target>
336    <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
337        <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
338            <attribute default="${main.class}" name="name"/>
339            <attribute default="${debug.classpath}" name="classpath"/>
340            <attribute default="" name="stopclassname"/>
341            <sequential>
342                <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
343                    <classpath>
344                        <path path="@{classpath}"/>
345                    </classpath>
346                </nbjpdastart>
347            </sequential>
348        </macrodef>
349        <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
350            <attribute default="${build.classes.dir}" name="dir"/>
351            <sequential>
352                <nbjpdareload>
353                    <fileset dir="@{dir}" includes="${fix.classes}">
354                        <include name="${fix.includes}*.class"/>
355                    </fileset>
356                </nbjpdareload>
357            </sequential>
358        </macrodef>
359    </target>
360    <target name="-init-debug-args">
361        <property name="version-output" value="java version &quot;${ant.java.version}"/>
362        <condition property="have-jdk-older-than-1.4">
363            <or>
364                <contains string="${version-output}" substring="java version &quot;1.0"/>
365                <contains string="${version-output}" substring="java version &quot;1.1"/>
366                <contains string="${version-output}" substring="java version &quot;1.2"/>
367                <contains string="${version-output}" substring="java version &quot;1.3"/>
368            </or>
369        </condition>
370        <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
371            <istrue value="${have-jdk-older-than-1.4}"/>
372        </condition>
373        <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
374            <os family="windows"/>
375        </condition>
376        <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
377            <isset property="debug.transport"/>
378        </condition>
379    </target>
380    <target depends="-init-debug-args" name="-init-macrodef-debug">
381        <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
382            <attribute default="${main.class}" name="classname"/>
383            <attribute default="${debug.classpath}" name="classpath"/>
384            <element name="customize" optional="true"/>
385            <sequential>
386                <java classname="@{classname}" dir="${work.dir}" fork="true">
387                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
388                    <jvmarg line="${debug-args-line}"/>
389                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
390                    <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
391                    <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
392                    <jvmarg line="${run.jvmargs}"/>
393                    <classpath>
394                        <path path="@{classpath}"/>
395                    </classpath>
396                    <syspropertyset>
397                        <propertyref prefix="run-sys-prop."/>
398                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
399                    </syspropertyset>
400                    <customize/>
401                </java>
402            </sequential>
403        </macrodef>
404    </target>
405    <target name="-init-macrodef-java">
406        <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
407            <attribute default="${main.class}" name="classname"/>
408            <attribute default="${run.classpath}" name="classpath"/>
409            <element name="customize" optional="true"/>
410            <sequential>
411                <java classname="@{classname}" dir="${work.dir}" fork="true">
412                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
413                    <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
414                    <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
415                    <jvmarg line="${run.jvmargs}"/>
416                    <classpath>
417                        <path path="@{classpath}"/>
418                    </classpath>
419                    <syspropertyset>
420                        <propertyref prefix="run-sys-prop."/>
421                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
422                    </syspropertyset>
423                    <customize/>
424                </java>
425            </sequential>
426        </macrodef>
427    </target>
428    <target name="-init-macrodef-copylibs">
429        <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">
430            <element name="customize" optional="true"/>
431            <sequential>
432                <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
433                <pathconvert property="run.classpath.without.build.classes.dir">
434                    <path path="${run.classpath}"/>
435                    <map from="${build.classes.dir.resolved}" to=""/>
436                </pathconvert>
437                <pathconvert pathsep=" " property="jar.classpath">
438                    <path path="${run.classpath.without.build.classes.dir}"/>
439                    <chainedmapper>
440                        <flattenmapper/>
441                        <globmapper from="*" to="lib/*"/>
442                    </chainedmapper>
443                </pathconvert>
444                <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
445                <copylibs compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
446                    <fileset dir="${build.classes.dir}"/>
447                    <manifest>
448                        <attribute name="Class-Path" value="${jar.classpath}"/>
449                        <customize/>
450                    </manifest>
451                </copylibs>
452            </sequential>
453        </macrodef>
454    </target>
455    <target name="-init-presetdef-jar">
456        <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
457            <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">
458                <j2seproject1:fileset dir="${build.classes.dir}"/>
459            </jar>
460        </presetdef>
461    </target>
462    <target name="-init-ap-cmdline-properties">
463        <property name="annotation.processing.enabled" value="true"/>
464        <property name="annotation.processing.processors.list" value=""/>
465        <property name="annotation.processing.processor.options" value=""/>
466        <property name="annotation.processing.run.all.processors" value="true"/>
467        <property name="javac.processorpath" value="${javac.classpath}"/>
468        <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
469        <condition property="ap.supported.internal" value="true">
470            <not>
471                <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
472            </not>
473        </condition>
474    </target>
475    <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
476        <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
477            <isfalse value="${annotation.processing.run.all.processors}"/>
478        </condition>
479        <condition else="" property="ap.proc.none.internal" value="-proc:none">
480            <isfalse value="${annotation.processing.enabled}"/>
481        </condition>
482    </target>
483    <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
484        <property name="ap.cmd.line.internal" value=""/>
485    </target>
486    <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"/>
487    <!--
488                ===================
489                COMPILATION SECTION
490                ===================
491            -->
492    <target name="-deps-jar-init" unless="built-jar.properties">
493        <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>
494        <delete file="${built-jar.properties}" quiet="true"/>
495    </target>
496    <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
497        <echo level="warn" message="Cycle detected: ECJClient was already built"/>
498    </target>
499    <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
500        <mkdir dir="${build.dir}"/>
501        <touch file="${built-jar.properties}" verbose="false"/>
502        <property file="${built-jar.properties}" prefix="already.built.jar."/>
503        <antcall target="-warn-already-built-jar"/>
504        <propertyfile file="${built-jar.properties}">
505            <entry key="${basedir}" value=""/>
506        </propertyfile>
507        <antcall target="-maybe-call-dep">
508            <param name="call.built.properties" value="${built-jar.properties}"/>
509            <param location="${project.AdministrationService}" name="call.subproject"/>
510            <param location="${project.AdministrationService}/build.xml" name="call.script"/>
511            <param name="call.target" value="jar"/>
512            <param name="transfer.built-jar.properties" value="${built-jar.properties}"/>
513        </antcall>
514        <antcall target="-maybe-call-dep">
515            <param name="call.built.properties" value="${built-jar.properties}"/>
516            <param location="${project.AuthenticationService}" name="call.subproject"/>
517            <param location="${project.AuthenticationService}/build.xml" name="call.script"/>
518            <param name="call.target" value="jar"/>
519            <param name="transfer.built-jar.properties" value="${built-jar.properties}"/>
520        </antcall>
521        <antcall target="-maybe-call-dep">
522            <param name="call.built.properties" value="${built-jar.properties}"/>
523            <param location="${project.QueryService}" name="call.subproject"/>
524            <param location="${project.QueryService}/build.xml" name="call.script"/>
525            <param name="call.target" value="jar"/>
526            <param name="transfer.built-jar.properties" value="${built-jar.properties}"/>
527        </antcall>
528        <antcall target="-maybe-call-dep">
529            <param name="call.built.properties" value="${built-jar.properties}"/>
530            <param location="${project.RunCreationService}" name="call.subproject"/>
531            <param location="${project.RunCreationService}/build.xml" name="call.script"/>
532            <param name="call.target" value="jar"/>
533            <param name="transfer.built-jar.properties" value="${built-jar.properties}"/>
534        </antcall>
535    </target>
536    <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
537    <target depends="init" name="-check-automatic-build">
538        <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
539    </target>
540    <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
541        <antcall target="clean"/>
542    </target>
543    <target depends="init,deps-jar" name="-pre-pre-compile">
544        <mkdir dir="${build.classes.dir}"/>
545    </target>
546    <target name="-pre-compile">
547        <!-- Empty placeholder for easier customization. -->
548        <!-- You can override this target in the ../build.xml file. -->
549    </target>
550    <target if="do.depend.true" name="-compile-depend">
551        <pathconvert property="build.generated.subdirs">
552            <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
553                <include name="*"/>
554            </dirset>
555        </pathconvert>
556        <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>
557    </target>
558    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">
559        <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
560        <copy todir="${build.classes.dir}">
561            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
562        </copy>
563    </target>
564    <target if="has.persistence.xml" name="-copy-persistence-xml">
565        <mkdir dir="${build.classes.dir}/META-INF"/>
566        <copy todir="${build.classes.dir}/META-INF">
567            <fileset dir="${meta.inf.dir}" includes="persistence.xml"/>
568        </copy>
569    </target>
570    <target name="-post-compile">
571        <!-- Empty placeholder for easier customization. -->
572        <!-- You can override this target in the ../build.xml file. -->
573    </target>
574    <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
575    <target name="-pre-compile-single">
576        <!-- Empty placeholder for easier customization. -->
577        <!-- You can override this target in the ../build.xml file. -->
578    </target>
579    <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
580        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
581        <j2seproject3:force-recompile/>
582        <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>
583    </target>
584    <target name="-post-compile-single">
585        <!-- Empty placeholder for easier customization. -->
586        <!-- You can override this target in the ../build.xml file. -->
587    </target>
588    <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
589    <!--
590                ====================
591                JAR BUILDING SECTION
592                ====================
593            -->
594    <target depends="init" name="-pre-pre-jar">
595        <dirname file="${dist.jar}" property="dist.jar.dir"/>
596        <mkdir dir="${dist.jar.dir}"/>
597    </target>
598    <target name="-pre-jar">
599        <!-- Empty placeholder for easier customization. -->
600        <!-- You can override this target in the ../build.xml file. -->
601    </target>
602    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive" name="-do-jar-without-manifest" unless="manifest.available">
603        <j2seproject1:jar/>
604    </target>
605    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class">
606        <j2seproject1:jar manifest="${manifest.file}"/>
607    </target>
608    <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">
609        <j2seproject1:jar manifest="${manifest.file}">
610            <j2seproject1:manifest>
611                <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
612            </j2seproject1:manifest>
613        </j2seproject1:jar>
614        <echo>To run this application from the command line without Ant, try:</echo>
615        <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
616        <property location="${dist.jar}" name="dist.jar.resolved"/>
617        <pathconvert property="run.classpath.with.dist.jar">
618            <path path="${run.classpath}"/>
619            <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
620        </pathconvert>
621        <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
622    </target>
623    <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">
624        <basename file="${application.splash}" property="splashscreen.basename"/>
625        <mkdir dir="${build.classes.dir}/META-INF"/>
626        <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
627        <j2seproject3:copylibs>
628            <customize>
629                <attribute name="Main-Class" value="${main.class}"/>
630                <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
631            </customize>
632        </j2seproject3:copylibs>
633        <echo>To run this application from the command line without Ant, try:</echo>
634        <property location="${dist.jar}" name="dist.jar.resolved"/>
635        <echo>java -jar "${dist.jar.resolved}"</echo>
636    </target>
637    <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">
638        <j2seproject3:copylibs>
639            <customize>
640                <attribute name="Main-Class" value="${main.class}"/>
641            </customize>
642        </j2seproject3:copylibs>
643        <echo>To run this application from the command line without Ant, try:</echo>
644        <property location="${dist.jar}" name="dist.jar.resolved"/>
645        <echo>java -jar "${dist.jar.resolved}"</echo>
646    </target>
647    <target name="-post-jar">
648        <!-- Empty placeholder for easier customization. -->
649        <!-- You can override this target in the ../build.xml file. -->
650    </target>
651    <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries-and-splashscreen,-do-jar-with-libraries,-post-jar" description="Build JAR." name="jar"/>
652    <!--
653                =================
654                EXECUTION SECTION
655                =================
656            -->
657    <target depends="init,compile" description="Run a main class." name="run">
658        <j2seproject1:java>
659            <customize>
660                <arg line="${application.args}"/>
661            </customize>
662        </j2seproject1:java>
663    </target>
664    <target name="-do-not-recompile">
665        <property name="javac.includes.binary" value=""/>
666    </target>
667    <target depends="init,compile-single" name="run-single">
668        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
669        <j2seproject1:java classname="${run.class}"/>
670    </target>
671    <target depends="init,compile-test-single" name="run-test-with-main">
672        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
673        <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
674    </target>
675    <!--
676                =================
677                DEBUGGING SECTION
678                =================
679            -->
680    <target depends="init" if="netbeans.home" name="-debug-start-debugger">
681        <j2seproject1:nbjpdastart name="${debug.class}"/>
682    </target>
683    <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
684        <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
685    </target>
686    <target depends="init,compile" name="-debug-start-debuggee">
687        <j2seproject3:debug>
688            <customize>
689                <arg line="${application.args}"/>
690            </customize>
691        </j2seproject3:debug>
692    </target>
693    <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
694    <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
695        <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
696    </target>
697    <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
698    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
699        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
700        <j2seproject3:debug classname="${debug.class}"/>
701    </target>
702    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
703    <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
704        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
705        <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
706    </target>
707    <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
708    <target depends="init" name="-pre-debug-fix">
709        <fail unless="fix.includes">Must set fix.includes</fail>
710        <property name="javac.includes" value="${fix.includes}.java"/>
711    </target>
712    <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
713        <j2seproject1:nbjpdareload/>
714    </target>
715    <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
716    <!--
717                ===============
718                JAVADOC SECTION
719                ===============
720            -->
721    <target depends="init" if="have.sources" name="-javadoc-build">
722        <mkdir dir="${dist.javadoc.dir}"/>
723        <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}">
724            <classpath>
725                <path path="${javac.classpath}"/>
726            </classpath>
727            <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
728                <filename name="**/*.java"/>
729            </fileset>
730            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
731                <include name="**/*.java"/>
732            </fileset>
733        </javadoc>
734        <copy todir="${dist.javadoc.dir}">
735            <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
736                <filename name="**/doc-files/**"/>
737            </fileset>
738            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
739                <include name="**/doc-files/**"/>
740            </fileset>
741        </copy>
742    </target>
743    <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
744        <nbbrowse file="${dist.javadoc.dir}/index.html"/>
745    </target>
746    <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
747    <!--
748                =========================
749                JUNIT COMPILATION SECTION
750                =========================
751            -->
752    <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
753        <mkdir dir="${build.test.classes.dir}"/>
754    </target>
755    <target name="-pre-compile-test">
756        <!-- Empty placeholder for easier customization. -->
757        <!-- You can override this target in the ../build.xml file. -->
758    </target>
759    <target if="do.depend.true" name="-compile-test-depend">
760        <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
761    </target>
762    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
763        <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}"/>
764        <copy todir="${build.test.classes.dir}">
765            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
766        </copy>
767    </target>
768    <target name="-post-compile-test">
769        <!-- Empty placeholder for easier customization. -->
770        <!-- You can override this target in the ../build.xml file. -->
771    </target>
772    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
773    <target name="-pre-compile-test-single">
774        <!-- Empty placeholder for easier customization. -->
775        <!-- You can override this target in the ../build.xml file. -->
776    </target>
777    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
778        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
779        <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
780        <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}"/>
781        <copy todir="${build.test.classes.dir}">
782            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
783        </copy>
784    </target>
785    <target name="-post-compile-test-single">
786        <!-- Empty placeholder for easier customization. -->
787        <!-- You can override this target in the ../build.xml file. -->
788    </target>
789    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
790    <!--
791                =======================
792                JUNIT EXECUTION SECTION
793                =======================
794            -->
795    <target depends="init" if="have.tests" name="-pre-test-run">
796        <mkdir dir="${build.test.results.dir}"/>
797    </target>
798    <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
799        <j2seproject3:junit testincludes="**/*Test.java"/>
800    </target>
801    <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
802        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
803    </target>
804    <target depends="init" if="have.tests" name="test-report"/>
805    <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
806    <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
807    <target depends="init" if="have.tests" name="-pre-test-run-single">
808        <mkdir dir="${build.test.results.dir}"/>
809    </target>
810    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
811        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
812        <j2seproject3:junit excludes="" includes="${test.includes}"/>
813    </target>
814    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
815        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
816    </target>
817    <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"/>
818    <!--
819                =======================
820                JUNIT DEBUGGING SECTION
821                =======================
822            -->
823    <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
824        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
825        <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
826        <delete file="${test.report.file}"/>
827        <mkdir dir="${build.test.results.dir}"/>
828        <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}">
829            <customize>
830                <syspropertyset>
831                    <propertyref prefix="test-sys-prop."/>
832                    <mapper from="test-sys-prop.*" to="*" type="glob"/>
833                </syspropertyset>
834                <arg value="${test.class}"/>
835                <arg value="showoutput=true"/>
836                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
837                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
838            </customize>
839        </j2seproject3:debug>
840    </target>
841    <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
842        <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
843    </target>
844    <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
845    <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
846        <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
847    </target>
848    <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
849    <!--
850                =========================
851                APPLET EXECUTION SECTION
852                =========================
853            -->
854    <target depends="init,compile-single" name="run-applet">
855        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
856        <j2seproject1:java classname="sun.applet.AppletViewer">
857            <customize>
858                <arg value="${applet.url}"/>
859            </customize>
860        </j2seproject1:java>
861    </target>
862    <!--
863                =========================
864                APPLET DEBUGGING  SECTION
865                =========================
866            -->
867    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
868        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
869        <j2seproject3:debug classname="sun.applet.AppletViewer">
870            <customize>
871                <arg value="${applet.url}"/>
872            </customize>
873        </j2seproject3:debug>
874    </target>
875    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
876    <!--
877                ===============
878                CLEANUP SECTION
879                ===============
880            -->
881    <target name="-deps-clean-init" unless="built-clean.properties">
882        <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>
883        <delete file="${built-clean.properties}" quiet="true"/>
884    </target>
885    <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
886        <echo level="warn" message="Cycle detected: ECJClient was already built"/>
887    </target>
888    <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
889        <mkdir dir="${build.dir}"/>
890        <touch file="${built-clean.properties}" verbose="false"/>
891        <property file="${built-clean.properties}" prefix="already.built.clean."/>
892        <antcall target="-warn-already-built-clean"/>
893        <propertyfile file="${built-clean.properties}">
894            <entry key="${basedir}" value=""/>
895        </propertyfile>
896        <antcall target="-maybe-call-dep">
897            <param name="call.built.properties" value="${built-clean.properties}"/>
898            <param location="${project.AdministrationService}" name="call.subproject"/>
899            <param location="${project.AdministrationService}/build.xml" name="call.script"/>
900            <param name="call.target" value="clean"/>
901            <param name="transfer.built-clean.properties" value="${built-clean.properties}"/>
902        </antcall>
903        <antcall target="-maybe-call-dep">
904            <param name="call.built.properties" value="${built-clean.properties}"/>
905            <param location="${project.AuthenticationService}" name="call.subproject"/>
906            <param location="${project.AuthenticationService}/build.xml" name="call.script"/>
907            <param name="call.target" value="clean"/>
908            <param name="transfer.built-clean.properties" value="${built-clean.properties}"/>
909        </antcall>
910        <antcall target="-maybe-call-dep">
911            <param name="call.built.properties" value="${built-clean.properties}"/>
912            <param location="${project.QueryService}" name="call.subproject"/>
913            <param location="${project.QueryService}/build.xml" name="call.script"/>
914            <param name="call.target" value="clean"/>
915            <param name="transfer.built-clean.properties" value="${built-clean.properties}"/>
916        </antcall>
917        <antcall target="-maybe-call-dep">
918            <param name="call.built.properties" value="${built-clean.properties}"/>
919            <param location="${project.RunCreationService}" name="call.subproject"/>
920            <param location="${project.RunCreationService}/build.xml" name="call.script"/>
921            <param name="call.target" value="clean"/>
922            <param name="transfer.built-clean.properties" value="${built-clean.properties}"/>
923        </antcall>
924    </target>
925    <target depends="init" name="-do-clean">
926        <delete dir="${build.dir}"/>
927        <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
928    </target>
929    <target name="-post-clean">
930        <!-- Empty placeholder for easier customization. -->
931        <!-- You can override this target in the ../build.xml file. -->
932    </target>
933    <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
934    <target name="-check-call-dep">
935        <property file="${call.built.properties}" prefix="already.built."/>
936        <condition property="should.call.dep">
937            <not>
938                <isset property="already.built.${call.subproject}"/>
939            </not>
940        </condition>
941    </target>
942    <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
943        <ant antfile="${call.script}" inheritall="false" target="${call.target}">
944            <propertyset>
945                <propertyref prefix="transfer."/>
946                <mapper from="transfer.*" to="*" type="glob"/>
947            </propertyset>
948        </ant>
949    </target>
950</project>
Note: See TracBrowser for help on using the repository browser.