PageRenderTime 254ms CodeModel.GetById 181ms app.highlight 24ms RepoModel.GetById 36ms app.codeStats 1ms

/nbproject/build-impl.xml

http://mp-rechnungs-und-kundenverwaltung.googlecode.com/
XML | 1210 lines | 1108 code | 0 blank | 102 comment | 0 complexity | ce02594cac9c407d9507c5a7cc8a8f3c MD5 | raw file

Large files files are truncated, but you can click here to view the full file

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

Large files files are truncated, but you can click here to view the full file