PageRenderTime 30ms CodeModel.GetById 3ms app.highlight 15ms RepoModel.GetById 1ms 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
   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}/META-INF"/>
 942        <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
 943        <manifest file="${tmp.manifest.file}" mode="update">
 944            <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
 945        </manifest>
 946    </target>
 947    <target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen" if="do.mkdist" name="-do-jar-with-libraries-pack">
 948        <j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
 949        <echo level="info">To run this application from the command line without Ant, try:</echo>
 950        <property location="${dist.jar}" name="dist.jar.resolved"/>
 951        <echo level="info">java -jar "${dist.jar.resolved}"</echo>
 952    </target>
 953    <target depends="-do-jar-with-libraries-pack" if="do.archive" name="-do-jar-with-libraries-delete-manifest">
 954        <delete>
 955            <fileset file="${tmp.manifest.file}"/>
 956        </delete>
 957    </target>
 958    <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen,-do-jar-with-libraries-pack,-do-jar-with-libraries-delete-manifest" name="-do-jar-with-libraries"/>
 959    <target name="-post-jar">
 960        <!-- Empty placeholder for easier customization. -->
 961        <!-- You can override this target in the ../build.xml file. -->
 962    </target>
 963    <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-post-jar,jnlp" description="Build JAR." name="jar"/>
 964    <!--
 965                =================
 966                EXECUTION SECTION
 967                =================
 968            -->
 969    <target depends="init,compile" description="Run a main class." name="run">
 970        <j2seproject1:java>
 971            <customize>
 972                <arg line="${application.args}"/>
 973            </customize>
 974        </j2seproject1:java>
 975    </target>
 976    <target name="-do-not-recompile">
 977        <property name="javac.includes.binary" value=""/>
 978    </target>
 979    <target depends="init,compile-single" name="run-single">
 980        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
 981        <j2seproject1:java classname="${run.class}"/>
 982    </target>
 983    <target depends="init,compile-test-single" name="run-test-with-main">
 984        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
 985        <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
 986    </target>
 987    <!--
 988                =================
 989                DEBUGGING SECTION
 990                =================
 991            -->
 992    <target depends="init" if="netbeans.home" name="-debug-start-debugger">
 993        <j2seproject1:nbjpdastart name="${debug.class}"/>
 994    </target>
 995    <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
 996        <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
 997    </target>
 998    <target depends="init,compile" name="-debug-start-debuggee">
 999        <j2seproject3:debug>
1000            <customize>
1001                <arg line="${application.args}"/>
1002            </customize>
1003        </j2seproject3:debug>
1004    </target>
1005    <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
1006    <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
1007        <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
1008    </target>
1009    <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
1010    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
1011        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
1012        <j2seproject3:debug classname="${debug.class}"/>
1013    </target>
1014    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
1015    <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
1016        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
1017        <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
1018    </target>
1019    <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
1020    <target depends="init" name="-pre-debug-fix">
1021        <fail unless="fix.includes">Must set fix.includes</fail>
1022        <property name="javac.includes" value="${fix.includes}.java"/>
1023    </target>
1024    <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
1025        <j2seproject1:nbjpdareload/>
1026    </target>
1027    <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
1028    <!--
1029                =================
1030                PROFILING SECTION
1031                =================
1032            -->
1033    <!--
1034                pre NB7.2 profiler integration
1035            -->
1036    <target depends="profile-init,compile" description="Profile a project in the IDE." if="profiler.info.jvmargs.agent" name="-profile-pre72">
1037        <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
1038        <nbprofiledirect>
1039            <classpath>
1040                <path path="${run.classpath}"/>
1041            </classpath>
1042        </nbprofiledirect>
1043        <profile/>
1044    </target>
1045    <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="profiler.info.jvmargs.agent" name="-profile-single-pre72">
1046        <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail>
1047        <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
1048        <nbprofiledirect>
1049            <classpath>
1050                <path path="${run.classpath}"/>
1051            </classpath>
1052        </nbprofiledirect>
1053        <profile classname="${profile.class}"/>
1054    </target>
1055    <target depends="profile-init,compile-single" if="profiler.info.jvmargs.agent" name="-profile-applet-pre72">
1056        <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
1057        <nbprofiledirect>
1058            <classpath>
1059                <path path="${run.classpath}"/>
1060            </classpath>
1061        </nbprofiledirect>
1062        <profile classname="sun.applet.AppletViewer">
1063            <customize>
1064                <arg value="${applet.url}"/>
1065            </customize>
1066        </profile>
1067    </target>
1068    <target depends="profile-init,compile-test-single" if="profiler.info.jvmargs.agent" name="-profile-test-single-pre72">
1069        <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
1070        <nbprofiledirect>
1071            <classpath>
1072                <path path="${run.test.classpath}"/>
1073            </classpath>
1074        </nbprofiledirect>
1075        <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
1076            <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
1077            <jvmarg value="${profiler.info.jvmargs.agent}"/>
1078            <jvmarg line="${profiler.info.jvmargs}"/>
1079            <test name="${profile.class}"/>
1080            <classpath>
1081                <path path="${run.test.classpath}"/>
1082            </classpath>
1083            <syspropertyset>
1084                <propertyref prefix="test-sys-prop."/>
1085                <mapper from="test-sys-prop.*" to="*" type="glob"/>
1086            </syspropertyset>
1087            <formatter type="brief" usefile="false"/>
1088            <formatter type="xml"/>
1089        </junit>
1090    </target>
1091    <!--
1092                end of pre NB72 profiling section
1093            -->
1094    <target if="netbeans.home" name="-profile-check">
1095        <condition property="profiler.configured">
1096            <or>
1097                <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-agentpath:"/>
1098                <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-javaagent:"/>
1099            </or>
1100        </condition>
1101    </target>
1102    <target depends="-profile-check,-profile-pre72" description="Profile a project in the IDE." if="profiler.configured" name="profile" unless="profiler.info.jvmargs.agent">
1103        <startprofiler/>
1104        <antcall target="run"/>
1105    </target>
1106    <target depends="-profile-check,-profile-single-pre72" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-single" unless="profiler.info.jvmargs.agent">
1107        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
1108        <startprofiler/>
1109        <antcall target="run-single"/>
1110    </target>
1111    <target depends="-profile-test-single-pre72" description="Profile a selected test in the IDE." name="profile-test-single"/>
1112    <target depends="-profile-check" description="Profile a selected test in the IDE." if="profiler.configured" name="profile-test" unless="profiler.info.jvmargs">
1113        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
1114        <startprofiler/>
1115        <antcall target="test-single"/>
1116    </target>
1117    <target depends="-profile-check" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-test-with-main">
1118        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
1119        <startprofiler/>
1120        <antcal target="run-test-with-main"/>
1121    </target>
1122    <target depends="-profile-check,-profile-applet-pre72" if="profiler.configured" name="profile-applet" unless="profiler.info.jvmargs.agent">
1123        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
1124        <startprofiler/>
1125        <antcall target="run-applet"/>
1126    </target>
1127    <!--
1128                ===============
1129                JAVADOC SECTION
1130                ===============
1131            -->
1132    <target depends="init" if="have.sources" name="-javadoc-build">
1133        <mkdir dir="${dist.javadoc.dir}"/>
1134        <condition else="" property="javadoc.endorsed.classpath.cmd.line.arg" value="-J${endorsed.classpath.cmd.line.arg}">
1135            <and>
1136                <isset property="endorsed.classpath.cmd.line.arg"/>
1137                <not>
1138                    <equals arg1="${endorsed.classpath.cmd.line.arg}" arg2=""/>
1139                </not>
1140            </and>
1141        </condition>
1142        <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}">
1143            <classpath>
1144                <path path="${javac.classpath}"/>
1145            </classpath>
1146            <fileset dir="${src.dir}" excludes="*.java,${excludes}" includes="${includes}">
1147                <filename name="**/*.java"/>
1148            </fileset>
1149            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
1150                <include name="**/*.java"/>
1151                <exclude name="*.java"/>
1152            </fileset>
1153            <arg line="${javadoc.endorsed.classpath.cmd.line.arg}"/>
1154        </javadoc>
1155        <copy todir="${dist.javadoc.dir}">
1156            <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
1157                <filename name="**/doc-files/**"/>
1158            </fileset>
1159            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
1160                <include name="**/doc-files/**"/>
1161            </fileset>
1162        </copy>
1163    </target>
1164    <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
1165        <nbbrowse file="${dist.javadoc.dir}/index.html"/>
1166    </target>
1167    <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
1168    <!--
1169                =========================
1170                TEST COMPILATION SECTION
1171                =========================
1172            -->
1173    <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
1174        <mkdir dir="${build.test.classes.dir}"/>
1175    </target>
1176    <target name="-pre-compile-test">
1177        <!-- Empty placeholder for easier customization. -->
1178        <!-- You can override this target in the ../build.xml file. -->
1179    </target>
1180    <target if="do.depend.true" name="-compile-test-depend">
1181        <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
1182    </target>
1183    <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
1184        <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}"/>
1185        <copy todir="${build.test.classes.dir}">
1186            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
1187        </copy>
1188    </target>
1189    <target name="-post-compile-test">
1190        <!-- Empty placeholder for easier customization. -->
1191        <!-- You can override this target in the ../build.xml file. -->
1192    </target>
1193    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
1194    <target name="-pre-compile-test-single">
1195        <!-- Empty placeholder for easier customization. -->
1196        <!-- You can override this target in the ../build.xml file. -->
1197    </target>
1198    <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
1199        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
1200        <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
1201        <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}"/>
1202        <copy todir="${build.test.classes.dir}">
1203            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
1204        </copy>
1205    </target>
1206    <target name="-post-compile-test-single">
1207        <!-- Empty placeholder for easier customization. -->
1208        <!-- You can override this target in the ../build.xml file. -->
1209    </target>
1210    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-s