java/alt2xml-lib-output/nbproject/build-impl.xml
author František Kučera <franta-hg@frantovo.cz>
Sun, 15 Nov 2020 20:20:39 +0100
changeset 116 94081a55bf41
parent 114 c3a2c32afaae
permissions -rw-r--r--
Added tag v0.2 for changeset 96e1125c8500
franta-hg@33
     1
<?xml version="1.0" encoding="UTF-8"?>
franta-hg@33
     2
<!--
franta-hg@33
     3
*** GENERATED FROM project.xml - DO NOT EDIT  ***
franta-hg@33
     4
***         EDIT ../build.xml INSTEAD         ***
franta-hg@33
     5
franta-hg@33
     6
For the purpose of easier reading the script
franta-hg@33
     7
is divided into following sections:
franta-hg@33
     8
franta-hg@33
     9
  - initialization
franta-hg@33
    10
  - compilation
franta-hg@33
    11
  - jar
franta-hg@33
    12
  - execution
franta-hg@33
    13
  - debugging
franta-hg@33
    14
  - javadoc
franta-hg@33
    15
  - test compilation
franta-hg@33
    16
  - test execution
franta-hg@33
    17
  - test debugging
franta-hg@33
    18
  - applet
franta-hg@33
    19
  - cleanup
franta-hg@33
    20
franta-hg@33
    21
        -->
franta-hg@33
    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="alt2xml-lib-output-impl">
franta-hg@33
    23
    <fail message="Please build using Ant 1.8.0 or higher.">
franta-hg@33
    24
        <condition>
franta-hg@33
    25
            <not>
franta-hg@33
    26
                <antversion atleast="1.8.0"/>
franta-hg@33
    27
            </not>
franta-hg@33
    28
        </condition>
franta-hg@33
    29
    </fail>
franta-hg@33
    30
    <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
franta-hg@33
    31
    <!-- 
franta-hg@33
    32
                ======================
franta-hg@33
    33
                INITIALIZATION SECTION 
franta-hg@33
    34
                ======================
franta-hg@33
    35
            -->
franta-hg@33
    36
    <target name="-pre-init">
franta-hg@33
    37
        <!-- Empty placeholder for easier customization. -->
franta-hg@33
    38
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@33
    39
    </target>
franta-hg@33
    40
    <target depends="-pre-init" name="-init-private">
franta-hg@33
    41
        <property file="nbproject/private/config.properties"/>
franta-hg@33
    42
        <property file="nbproject/private/configs/${config}.properties"/>
franta-hg@33
    43
        <property file="nbproject/private/private.properties"/>
franta-hg@33
    44
    </target>
franta-hg@33
    45
    <target depends="-pre-init,-init-private" name="-init-user">
franta-hg@33
    46
        <property file="${user.properties.file}"/>
franta-hg@33
    47
        <!-- The two properties below are usually overridden -->
franta-hg@33
    48
        <!-- by the active platform. Just a fallback. -->
franta-hg@114
    49
        <property name="default.javac.source" value="1.6"/>
franta-hg@114
    50
        <property name="default.javac.target" value="1.6"/>
franta-hg@33
    51
    </target>
franta-hg@33
    52
    <target depends="-pre-init,-init-private,-init-user" name="-init-project">
franta-hg@33
    53
        <property file="nbproject/configs/${config}.properties"/>
franta-hg@33
    54
        <property file="nbproject/project.properties"/>
franta-hg@33
    55
    </target>
franta-hg@33
    56
    <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
franta-hg@33
    57
        <property name="platform.java" value="${java.home}/bin/java"/>
franta-hg@33
    58
        <available file="${manifest.file}" property="manifest.available"/>
franta-hg@33
    59
        <condition property="splashscreen.available">
franta-hg@33
    60
            <and>
franta-hg@33
    61
                <not>
franta-hg@33
    62
                    <equals arg1="${application.splash}" arg2="" trim="true"/>
franta-hg@33
    63
                </not>
franta-hg@33
    64
                <available file="${application.splash}"/>
franta-hg@33
    65
            </and>
franta-hg@33
    66
        </condition>
franta-hg@33
    67
        <condition property="main.class.available">
franta-hg@33
    68
            <and>
franta-hg@33
    69
                <isset property="main.class"/>
franta-hg@33
    70
                <not>
franta-hg@33
    71
                    <equals arg1="${main.class}" arg2="" trim="true"/>
franta-hg@33
    72
                </not>
franta-hg@33
    73
            </and>
franta-hg@33
    74
        </condition>
franta-hg@33
    75
        <condition property="profile.available">
franta-hg@33
    76
            <and>
franta-hg@33
    77
                <isset property="javac.profile"/>
franta-hg@33
    78
                <length length="0" string="${javac.profile}" when="greater"/>
franta-hg@114
    79
                <matches pattern="((1\.[89])|9)(\..*)?" string="${javac.source}"/>
franta-hg@33
    80
            </and>
franta-hg@33
    81
        </condition>
franta-hg@33
    82
        <condition property="do.archive">
franta-hg@33
    83
            <or>
franta-hg@33
    84
                <not>
franta-hg@33
    85
                    <istrue value="${jar.archive.disabled}"/>
franta-hg@33
    86
                </not>
franta-hg@33
    87
                <istrue value="${not.archive.disabled}"/>
franta-hg@33
    88
            </or>
franta-hg@33
    89
        </condition>
franta-hg@33
    90
        <condition property="do.mkdist">
franta-hg@33
    91
            <and>
franta-hg@33
    92
                <isset property="do.archive"/>
franta-hg@33
    93
                <isset property="libs.CopyLibs.classpath"/>
franta-hg@33
    94
                <not>
franta-hg@33
    95
                    <istrue value="${mkdist.disabled}"/>
franta-hg@33
    96
                </not>
franta-hg@33
    97
            </and>
franta-hg@33
    98
        </condition>
franta-hg@33
    99
        <condition property="do.archive+manifest.available">
franta-hg@33
   100
            <and>
franta-hg@33
   101
                <isset property="manifest.available"/>
franta-hg@33
   102
                <istrue value="${do.archive}"/>
franta-hg@33
   103
            </and>
franta-hg@33
   104
        </condition>
franta-hg@33
   105
        <condition property="do.archive+main.class.available">
franta-hg@33
   106
            <and>
franta-hg@33
   107
                <isset property="main.class.available"/>
franta-hg@33
   108
                <istrue value="${do.archive}"/>
franta-hg@33
   109
            </and>
franta-hg@33
   110
        </condition>
franta-hg@33
   111
        <condition property="do.archive+splashscreen.available">
franta-hg@33
   112
            <and>
franta-hg@33
   113
                <isset property="splashscreen.available"/>
franta-hg@33
   114
                <istrue value="${do.archive}"/>
franta-hg@33
   115
            </and>
franta-hg@33
   116
        </condition>
franta-hg@33
   117
        <condition property="do.archive+profile.available">
franta-hg@33
   118
            <and>
franta-hg@33
   119
                <isset property="profile.available"/>
franta-hg@33
   120
                <istrue value="${do.archive}"/>
franta-hg@33
   121
            </and>
franta-hg@33
   122
        </condition>
franta-hg@33
   123
        <condition property="have.tests">
franta-hg@33
   124
            <or>
franta-hg@33
   125
                <available file="${test.src.dir}"/>
franta-hg@33
   126
            </or>
franta-hg@33
   127
        </condition>
franta-hg@33
   128
        <condition property="have.sources">
franta-hg@33
   129
            <or>
franta-hg@33
   130
                <available file="${src.dir}"/>
franta-hg@33
   131
            </or>
franta-hg@33
   132
        </condition>
franta-hg@33
   133
        <condition property="netbeans.home+have.tests">
franta-hg@33
   134
            <and>
franta-hg@33
   135
                <isset property="netbeans.home"/>
franta-hg@33
   136
                <isset property="have.tests"/>
franta-hg@33
   137
            </and>
franta-hg@33
   138
        </condition>
franta-hg@33
   139
        <condition property="no.javadoc.preview">
franta-hg@33
   140
            <and>
franta-hg@33
   141
                <isset property="javadoc.preview"/>
franta-hg@33
   142
                <isfalse value="${javadoc.preview}"/>
franta-hg@33
   143
            </and>
franta-hg@33
   144
        </condition>
franta-hg@33
   145
        <property name="run.jvmargs" value=""/>
franta-hg@33
   146
        <property name="run.jvmargs.ide" value=""/>
franta-hg@33
   147
        <property name="javac.compilerargs" value=""/>
franta-hg@33
   148
        <property name="work.dir" value="${basedir}"/>
franta-hg@33
   149
        <condition property="no.deps">
franta-hg@33
   150
            <and>
franta-hg@33
   151
                <istrue value="${no.dependencies}"/>
franta-hg@33
   152
            </and>
franta-hg@33
   153
        </condition>
franta-hg@33
   154
        <property name="javac.debug" value="true"/>
franta-hg@33
   155
        <property name="javadoc.preview" value="true"/>
franta-hg@33
   156
        <property name="application.args" value=""/>
franta-hg@33
   157
        <property name="source.encoding" value="${file.encoding}"/>
franta-hg@33
   158
        <property name="runtime.encoding" value="${source.encoding}"/>
franta-hg@114
   159
        <property name="manifest.encoding" value="${source.encoding}"/>
franta-hg@33
   160
        <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
franta-hg@33
   161
            <and>
franta-hg@33
   162
                <isset property="javadoc.encoding"/>
franta-hg@33
   163
                <not>
franta-hg@33
   164
                    <equals arg1="${javadoc.encoding}" arg2=""/>
franta-hg@33
   165
                </not>
franta-hg@33
   166
            </and>
franta-hg@33
   167
        </condition>
franta-hg@33
   168
        <property name="javadoc.encoding.used" value="${source.encoding}"/>
franta-hg@33
   169
        <property name="includes" value="**"/>
franta-hg@33
   170
        <property name="excludes" value=""/>
franta-hg@33
   171
        <property name="do.depend" value="false"/>
franta-hg@33
   172
        <condition property="do.depend.true">
franta-hg@33
   173
            <istrue value="${do.depend}"/>
franta-hg@33
   174
        </condition>
franta-hg@33
   175
        <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
franta-hg@33
   176
        <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
franta-hg@33
   177
            <and>
franta-hg@33
   178
                <isset property="endorsed.classpath"/>
franta-hg@33
   179
                <not>
franta-hg@33
   180
                    <equals arg1="${endorsed.classpath}" arg2="" trim="true"/>
franta-hg@33
   181
                </not>
franta-hg@33
   182
            </and>
franta-hg@33
   183
        </condition>
franta-hg@33
   184
        <condition else="" property="javac.profile.cmd.line.arg" value="-profile ${javac.profile}">
franta-hg@33
   185
            <isset property="profile.available"/>
franta-hg@33
   186
        </condition>
franta-hg@33
   187
        <condition else="false" property="jdkBug6558476">
franta-hg@33
   188
            <and>
franta-hg@33
   189
                <matches pattern="1\.[56]" string="${java.specification.version}"/>
franta-hg@33
   190
                <not>
franta-hg@33
   191
                    <os family="unix"/>
franta-hg@33
   192
                </not>
franta-hg@33
   193
            </and>
franta-hg@33
   194
        </condition>
franta-hg@110
   195
        <condition else="false" property="javac.fork">
franta-hg@110
   196
            <or>
franta-hg@110
   197
                <istrue value="${jdkBug6558476}"/>
franta-hg@110
   198
                <istrue value="${javac.external.vm}"/>
franta-hg@110
   199
            </or>
franta-hg@110
   200
        </condition>
franta-hg@33
   201
        <property name="jar.index" value="false"/>
franta-hg@33
   202
        <property name="jar.index.metainf" value="${jar.index}"/>
franta-hg@33
   203
        <property name="copylibs.rebase" value="true"/>
franta-hg@33
   204
        <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
franta-hg@33
   205
        <condition property="junit.available">
franta-hg@33
   206
            <or>
franta-hg@33
   207
                <available classname="org.junit.Test" classpath="${run.test.classpath}"/>
franta-hg@33
   208
                <available classname="junit.framework.Test" classpath="${run.test.classpath}"/>
franta-hg@33
   209
            </or>
franta-hg@33
   210
        </condition>
franta-hg@33
   211
        <condition property="testng.available">
franta-hg@33
   212
            <available classname="org.testng.annotations.Test" classpath="${run.test.classpath}"/>
franta-hg@33
   213
        </condition>
franta-hg@33
   214
        <condition property="junit+testng.available">
franta-hg@33
   215
            <and>
franta-hg@33
   216
                <istrue value="${junit.available}"/>
franta-hg@33
   217
                <istrue value="${testng.available}"/>
franta-hg@33
   218
            </and>
franta-hg@33
   219
        </condition>
franta-hg@33
   220
        <condition else="testng" property="testng.mode" value="mixed">
franta-hg@33
   221
            <istrue value="${junit+testng.available}"/>
franta-hg@33
   222
        </condition>
franta-hg@33
   223
        <condition else="" property="testng.debug.mode" value="-mixed">
franta-hg@33
   224
            <istrue value="${junit+testng.available}"/>
franta-hg@33
   225
        </condition>
franta-hg@110
   226
        <property name="java.failonerror" value="true"/>
franta-hg@33
   227
    </target>
franta-hg@33
   228
    <target name="-post-init">
franta-hg@33
   229
        <!-- Empty placeholder for easier customization. -->
franta-hg@33
   230
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@33
   231
    </target>
franta-hg@33
   232
    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
franta-hg@33
   233
        <fail unless="src.dir">Must set src.dir</fail>
franta-hg@33
   234
        <fail unless="test.src.dir">Must set test.src.dir</fail>
franta-hg@33
   235
        <fail unless="build.dir">Must set build.dir</fail>
franta-hg@33
   236
        <fail unless="dist.dir">Must set dist.dir</fail>
franta-hg@33
   237
        <fail unless="build.classes.dir">Must set build.classes.dir</fail>
franta-hg@33
   238
        <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
franta-hg@33
   239
        <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
franta-hg@33
   240
        <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
franta-hg@33
   241
        <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
franta-hg@33
   242
        <fail unless="dist.jar">Must set dist.jar</fail>
franta-hg@33
   243
    </target>
franta-hg@33
   244
    <target name="-init-macrodef-property">
franta-hg@33
   245
        <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
franta-hg@33
   246
            <attribute name="name"/>
franta-hg@33
   247
            <attribute name="value"/>
franta-hg@33
   248
            <sequential>
franta-hg@33
   249
                <property name="@{name}" value="${@{value}}"/>
franta-hg@33
   250
            </sequential>
franta-hg@33
   251
        </macrodef>
franta-hg@33
   252
    </target>
franta-hg@33
   253
    <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
franta-hg@33
   254
        <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
franta-hg@33
   255
            <attribute default="${src.dir}" name="srcdir"/>
franta-hg@33
   256
            <attribute default="${build.classes.dir}" name="destdir"/>
franta-hg@33
   257
            <attribute default="${javac.classpath}" name="classpath"/>
franta-hg@33
   258
            <attribute default="${javac.processorpath}" name="processorpath"/>
franta-hg@33
   259
            <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
franta-hg@33
   260
            <attribute default="${includes}" name="includes"/>
franta-hg@33
   261
            <attribute default="${excludes}" name="excludes"/>
franta-hg@33
   262
            <attribute default="${javac.debug}" name="debug"/>
franta-hg@33
   263
            <attribute default="${empty.dir}" name="sourcepath"/>
franta-hg@33
   264
            <attribute default="${empty.dir}" name="gensrcdir"/>
franta-hg@33
   265
            <element name="customize" optional="true"/>
franta-hg@33
   266
            <sequential>
franta-hg@33
   267
                <property location="${build.dir}/empty" name="empty.dir"/>
franta-hg@33
   268
                <mkdir dir="${empty.dir}"/>
franta-hg@33
   269
                <mkdir dir="@{apgeneratedsrcdir}"/>
franta-hg@33
   270
                <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}">
franta-hg@33
   271
                    <src>
franta-hg@33
   272
                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
franta-hg@33
   273
                            <include name="*"/>
franta-hg@33
   274
                        </dirset>
franta-hg@33
   275
                    </src>
franta-hg@33
   276
                    <classpath>
franta-hg@33
   277
                        <path path="@{classpath}"/>
franta-hg@33
   278
                    </classpath>
franta-hg@33
   279
                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
franta-hg@33
   280
                    <compilerarg line="${javac.profile.cmd.line.arg}"/>
franta-hg@33
   281
                    <compilerarg line="${javac.compilerargs}"/>
franta-hg@33
   282
                    <compilerarg value="-processorpath"/>
franta-hg@33
   283
                    <compilerarg path="@{processorpath}:${empty.dir}"/>
franta-hg@33
   284
                    <compilerarg line="${ap.processors.internal}"/>
franta-hg@33
   285
                    <compilerarg line="${annotation.processing.processor.options}"/>
franta-hg@33
   286
                    <compilerarg value="-s"/>
franta-hg@33
   287
                    <compilerarg path="@{apgeneratedsrcdir}"/>
franta-hg@33
   288
                    <compilerarg line="${ap.proc.none.internal}"/>
franta-hg@33
   289
                    <customize/>
franta-hg@33
   290
                </javac>
franta-hg@33
   291
            </sequential>
franta-hg@33
   292
        </macrodef>
franta-hg@33
   293
    </target>
franta-hg@33
   294
    <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
franta-hg@33
   295
        <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
franta-hg@33
   296
            <attribute default="${src.dir}" name="srcdir"/>
franta-hg@33
   297
            <attribute default="${build.classes.dir}" name="destdir"/>
franta-hg@33
   298
            <attribute default="${javac.classpath}" name="classpath"/>
franta-hg@33
   299
            <attribute default="${javac.processorpath}" name="processorpath"/>
franta-hg@33
   300
            <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
franta-hg@33
   301
            <attribute default="${includes}" name="includes"/>
franta-hg@33
   302
            <attribute default="${excludes}" name="excludes"/>
franta-hg@33
   303
            <attribute default="${javac.debug}" name="debug"/>
franta-hg@33
   304
            <attribute default="${empty.dir}" name="sourcepath"/>
franta-hg@33
   305
            <attribute default="${empty.dir}" name="gensrcdir"/>
franta-hg@33
   306
            <element name="customize" optional="true"/>
franta-hg@33
   307
            <sequential>
franta-hg@33
   308
                <property location="${build.dir}/empty" name="empty.dir"/>
franta-hg@33
   309
                <mkdir dir="${empty.dir}"/>
franta-hg@33
   310
                <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}">
franta-hg@33
   311
                    <src>
franta-hg@33
   312
                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
franta-hg@33
   313
                            <include name="*"/>
franta-hg@33
   314
                        </dirset>
franta-hg@33
   315
                    </src>
franta-hg@33
   316
                    <classpath>
franta-hg@33
   317
                        <path path="@{classpath}"/>
franta-hg@33
   318
                    </classpath>
franta-hg@33
   319
                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
franta-hg@33
   320
                    <compilerarg line="${javac.profile.cmd.line.arg}"/>
franta-hg@33
   321
                    <compilerarg line="${javac.compilerargs}"/>
franta-hg@33
   322
                    <customize/>
franta-hg@33
   323
                </javac>
franta-hg@33
   324
            </sequential>
franta-hg@33
   325
        </macrodef>
franta-hg@33
   326
    </target>
franta-hg@33
   327
    <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
franta-hg@33
   328
        <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
franta-hg@33
   329
            <attribute default="${src.dir}" name="srcdir"/>
franta-hg@33
   330
            <attribute default="${build.classes.dir}" name="destdir"/>
franta-hg@33
   331
            <attribute default="${javac.classpath}" name="classpath"/>
franta-hg@33
   332
            <sequential>
franta-hg@33
   333
                <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
franta-hg@33
   334
                    <classpath>
franta-hg@33
   335
                        <path path="@{classpath}"/>
franta-hg@33
   336
                    </classpath>
franta-hg@33
   337
                </depend>
franta-hg@33
   338
            </sequential>
franta-hg@33
   339
        </macrodef>
franta-hg@33
   340
        <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
franta-hg@33
   341
            <attribute default="${build.classes.dir}" name="destdir"/>
franta-hg@33
   342
            <sequential>
franta-hg@33
   343
                <fail unless="javac.includes">Must set javac.includes</fail>
franta-hg@33
   344
                <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
franta-hg@33
   345
                    <path>
franta-hg@33
   346
                        <filelist dir="@{destdir}" files="${javac.includes}"/>
franta-hg@33
   347
                    </path>
franta-hg@33
   348
                    <globmapper from="*.java" to="*.class"/>
franta-hg@33
   349
                </pathconvert>
franta-hg@33
   350
                <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
franta-hg@33
   351
                <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
franta-hg@33
   352
                <delete>
franta-hg@33
   353
                    <files includesfile="${javac.includesfile.binary}"/>
franta-hg@33
   354
                </delete>
franta-hg@33
   355
                <delete>
franta-hg@33
   356
                    <fileset file="${javac.includesfile.binary}"/>
franta-hg@33
   357
                </delete>
franta-hg@33
   358
            </sequential>
franta-hg@33
   359
        </macrodef>
franta-hg@33
   360
    </target>
franta-hg@33
   361
    <target if="${junit.available}" name="-init-macrodef-junit-init">
franta-hg@33
   362
        <condition else="false" property="nb.junit.batch" value="true">
franta-hg@33
   363
            <and>
franta-hg@33
   364
                <istrue value="${junit.available}"/>
franta-hg@33
   365
                <not>
franta-hg@33
   366
                    <isset property="test.method"/>
franta-hg@33
   367
                </not>
franta-hg@33
   368
            </and>
franta-hg@33
   369
        </condition>
franta-hg@33
   370
        <condition else="false" property="nb.junit.single" value="true">
franta-hg@33
   371
            <and>
franta-hg@33
   372
                <istrue value="${junit.available}"/>
franta-hg@33
   373
                <isset property="test.method"/>
franta-hg@33
   374
            </and>
franta-hg@33
   375
        </condition>
franta-hg@33
   376
    </target>
franta-hg@33
   377
    <target name="-init-test-properties">
franta-hg@33
   378
        <property name="test.binaryincludes" value="&lt;nothing&gt;"/>
franta-hg@33
   379
        <property name="test.binarytestincludes" value=""/>
franta-hg@33
   380
        <property name="test.binaryexcludes" value=""/>
franta-hg@33
   381
    </target>
franta-hg@33
   382
    <target if="${nb.junit.single}" name="-init-macrodef-junit-single" unless="${nb.junit.batch}">
franta-hg@33
   383
        <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
franta-hg@33
   384
            <attribute default="${includes}" name="includes"/>
franta-hg@33
   385
            <attribute default="${excludes}" name="excludes"/>
franta-hg@33
   386
            <attribute default="**" name="testincludes"/>
franta-hg@33
   387
            <attribute default="" name="testmethods"/>
franta-hg@33
   388
            <element name="customize" optional="true"/>
franta-hg@33
   389
            <sequential>
franta-hg@33
   390
                <property name="junit.forkmode" value="perTest"/>
franta-hg@33
   391
                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
franta-hg@33
   392
                    <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
franta-hg@33
   393
                    <syspropertyset>
franta-hg@33
   394
                        <propertyref prefix="test-sys-prop."/>
franta-hg@33
   395
                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
franta-hg@33
   396
                    </syspropertyset>
franta-hg@33
   397
                    <formatter type="brief" usefile="false"/>
franta-hg@33
   398
                    <formatter type="xml"/>
franta-hg@33
   399
                    <jvmarg value="-ea"/>
franta-hg@33
   400
                    <customize/>
franta-hg@33
   401
                </junit>
franta-hg@33
   402
            </sequential>
franta-hg@33
   403
        </macrodef>
franta-hg@33
   404
    </target>
franta-hg@33
   405
    <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-batch" unless="${nb.junit.single}">
franta-hg@33
   406
        <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
franta-hg@33
   407
            <attribute default="${includes}" name="includes"/>
franta-hg@33
   408
            <attribute default="${excludes}" name="excludes"/>
franta-hg@33
   409
            <attribute default="**" name="testincludes"/>
franta-hg@33
   410
            <attribute default="" name="testmethods"/>
franta-hg@33
   411
            <element name="customize" optional="true"/>
franta-hg@33
   412
            <sequential>
franta-hg@33
   413
                <property name="junit.forkmode" value="perTest"/>
franta-hg@33
   414
                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
franta-hg@33
   415
                    <batchtest todir="${build.test.results.dir}">
franta-hg@33
   416
                        <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
franta-hg@33
   417
                            <filename name="@{testincludes}"/>
franta-hg@33
   418
                        </fileset>
franta-hg@33
   419
                        <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
franta-hg@33
   420
                            <filename name="${test.binarytestincludes}"/>
franta-hg@33
   421
                        </fileset>
franta-hg@33
   422
                    </batchtest>
franta-hg@33
   423
                    <syspropertyset>
franta-hg@33
   424
                        <propertyref prefix="test-sys-prop."/>
franta-hg@33
   425
                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
franta-hg@33
   426
                    </syspropertyset>
franta-hg@33
   427
                    <formatter type="brief" usefile="false"/>
franta-hg@33
   428
                    <formatter type="xml"/>
franta-hg@33
   429
                    <jvmarg value="-ea"/>
franta-hg@33
   430
                    <customize/>
franta-hg@33
   431
                </junit>
franta-hg@33
   432
            </sequential>
franta-hg@33
   433
        </macrodef>
franta-hg@33
   434
    </target>
franta-hg@33
   435
    <target depends="-init-macrodef-junit-init,-init-macrodef-junit-single, -init-macrodef-junit-batch" if="${junit.available}" name="-init-macrodef-junit"/>
franta-hg@33
   436
    <target if="${testng.available}" name="-init-macrodef-testng">
franta-hg@33
   437
        <macrodef name="testng" uri="http://www.netbeans.org/ns/j2se-project/3">
franta-hg@33
   438
            <attribute default="${includes}" name="includes"/>
franta-hg@33
   439
            <attribute default="${excludes}" name="excludes"/>
franta-hg@33
   440
            <attribute default="**" name="testincludes"/>
franta-hg@33
   441
            <attribute default="" name="testmethods"/>
franta-hg@33
   442
            <element name="customize" optional="true"/>
franta-hg@33
   443
            <sequential>
franta-hg@33
   444
                <condition else="" property="testng.methods.arg" value="@{testincludes}.@{testmethods}">
franta-hg@33
   445
                    <isset property="test.method"/>
franta-hg@33
   446
                </condition>
franta-hg@33
   447
                <union id="test.set">
franta-hg@33
   448
                    <fileset dir="${test.src.dir}" excludes="@{excludes},**/*.xml,${excludes}" includes="@{includes}">
franta-hg@33
   449
                        <filename name="@{testincludes}"/>
franta-hg@33
   450
                    </fileset>
franta-hg@33
   451
                </union>
franta-hg@33
   452
                <taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
franta-hg@33
   453
                <testng classfilesetref="test.set" failureProperty="tests.failed" listeners="org.testng.reporters.VerboseReporter" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="alt2xml-lib-output" testname="TestNG tests" workingDir="${work.dir}">
franta-hg@33
   454
                    <xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
franta-hg@33
   455
                    <propertyset>
franta-hg@33
   456
                        <propertyref prefix="test-sys-prop."/>
franta-hg@33
   457
                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
franta-hg@33
   458
                    </propertyset>
franta-hg@33
   459
                    <customize/>
franta-hg@33
   460
                </testng>
franta-hg@33
   461
            </sequential>
franta-hg@33
   462
        </macrodef>
franta-hg@33
   463
    </target>
franta-hg@33
   464
    <target name="-init-macrodef-test-impl">
franta-hg@33
   465
        <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
franta-hg@33
   466
            <attribute default="${includes}" name="includes"/>
franta-hg@33
   467
            <attribute default="${excludes}" name="excludes"/>
franta-hg@33
   468
            <attribute default="**" name="testincludes"/>
franta-hg@33
   469
            <attribute default="" name="testmethods"/>
franta-hg@33
   470
            <element implicit="true" name="customize" optional="true"/>
franta-hg@33
   471
            <sequential>
franta-hg@33
   472
                <echo>No tests executed.</echo>
franta-hg@33
   473
            </sequential>
franta-hg@33
   474
        </macrodef>
franta-hg@33
   475
    </target>
franta-hg@33
   476
    <target depends="-init-macrodef-junit" if="${junit.available}" name="-init-macrodef-junit-impl">
franta-hg@33
   477
        <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
franta-hg@33
   478
            <attribute default="${includes}" name="includes"/>
franta-hg@33
   479
            <attribute default="${excludes}" name="excludes"/>
franta-hg@33
   480
            <attribute default="**" name="testincludes"/>
franta-hg@33
   481
            <attribute default="" name="testmethods"/>
franta-hg@33
   482
            <element implicit="true" name="customize" optional="true"/>
franta-hg@33
   483
            <sequential>
franta-hg@33
   484
                <j2seproject3:junit excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
franta-hg@33
   485
                    <customize/>
franta-hg@33
   486
                </j2seproject3:junit>
franta-hg@33
   487
            </sequential>
franta-hg@33
   488
        </macrodef>
franta-hg@33
   489
    </target>
franta-hg@33
   490
    <target depends="-init-macrodef-testng" if="${testng.available}" name="-init-macrodef-testng-impl">
franta-hg@33
   491
        <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
franta-hg@33
   492
            <attribute default="${includes}" name="includes"/>
franta-hg@33
   493
            <attribute default="${excludes}" name="excludes"/>
franta-hg@33
   494
            <attribute default="**" name="testincludes"/>
franta-hg@33
   495
            <attribute default="" name="testmethods"/>
franta-hg@33
   496
            <element implicit="true" name="customize" optional="true"/>
franta-hg@33
   497
            <sequential>
franta-hg@33
   498
                <j2seproject3:testng excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
franta-hg@33
   499
                    <customize/>
franta-hg@33
   500
                </j2seproject3:testng>
franta-hg@33
   501
            </sequential>
franta-hg@33
   502
        </macrodef>
franta-hg@33
   503
    </target>
franta-hg@33
   504
    <target depends="-init-macrodef-test-impl,-init-macrodef-junit-impl,-init-macrodef-testng-impl" name="-init-macrodef-test">
franta-hg@33
   505
        <macrodef name="test" uri="http://www.netbeans.org/ns/j2se-project/3">
franta-hg@33
   506
            <attribute default="${includes}" name="includes"/>
franta-hg@33
   507
            <attribute default="${excludes}" name="excludes"/>
franta-hg@33
   508
            <attribute default="**" name="testincludes"/>
franta-hg@33
   509
            <attribute default="" name="testmethods"/>
franta-hg@33
   510
            <sequential>
franta-hg@33
   511
                <j2seproject3:test-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
franta-hg@33
   512
                    <customize>
franta-hg@33
   513
                        <classpath>
franta-hg@33
   514
                            <path path="${run.test.classpath}"/>
franta-hg@33
   515
                        </classpath>
franta-hg@33
   516
                        <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
franta-hg@33
   517
                        <jvmarg line="${run.jvmargs}"/>
franta-hg@33
   518
                        <jvmarg line="${run.jvmargs.ide}"/>
franta-hg@33
   519
                    </customize>
franta-hg@33
   520
                </j2seproject3:test-impl>
franta-hg@33
   521
            </sequential>
franta-hg@33
   522
        </macrodef>
franta-hg@33
   523
    </target>
franta-hg@33
   524
    <target if="${junit.available}" name="-init-macrodef-junit-debug" unless="${nb.junit.batch}">
franta-hg@33
   525
        <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
franta-hg@33
   526
            <attribute default="${includes}" name="includes"/>
franta-hg@33
   527
            <attribute default="${excludes}" name="excludes"/>
franta-hg@33
   528
            <attribute default="**" name="testincludes"/>
franta-hg@33
   529
            <attribute default="" name="testmethods"/>
franta-hg@33
   530
            <element name="customize" optional="true"/>
franta-hg@33
   531
            <sequential>
franta-hg@33
   532
                <property name="junit.forkmode" value="perTest"/>
franta-hg@33
   533
                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
franta-hg@33
   534
                    <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
franta-hg@33
   535
                    <syspropertyset>
franta-hg@33
   536
                        <propertyref prefix="test-sys-prop."/>
franta-hg@33
   537
                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
franta-hg@33
   538
                    </syspropertyset>
franta-hg@33
   539
                    <formatter type="brief" usefile="false"/>
franta-hg@33
   540
                    <formatter type="xml"/>
franta-hg@33
   541
                    <jvmarg value="-ea"/>
franta-hg@33
   542
                    <jvmarg line="${debug-args-line}"/>
franta-hg@33
   543
                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
franta-hg@33
   544
                    <customize/>
franta-hg@33
   545
                </junit>
franta-hg@33
   546
            </sequential>
franta-hg@33
   547
        </macrodef>
franta-hg@33
   548
    </target>
franta-hg@33
   549
    <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-debug-batch">
franta-hg@33
   550
        <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
franta-hg@33
   551
            <attribute default="${includes}" name="includes"/>
franta-hg@33
   552
            <attribute default="${excludes}" name="excludes"/>
franta-hg@33
   553
            <attribute default="**" name="testincludes"/>
franta-hg@33
   554
            <attribute default="" name="testmethods"/>
franta-hg@33
   555
            <element name="customize" optional="true"/>
franta-hg@33
   556
            <sequential>
franta-hg@33
   557
                <property name="junit.forkmode" value="perTest"/>
franta-hg@33
   558
                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
franta-hg@33
   559
                    <batchtest todir="${build.test.results.dir}">
franta-hg@33
   560
                        <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
franta-hg@33
   561
                            <filename name="@{testincludes}"/>
franta-hg@33
   562
                        </fileset>
franta-hg@33
   563
                        <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
franta-hg@33
   564
                            <filename name="${test.binarytestincludes}"/>
franta-hg@33
   565
                        </fileset>
franta-hg@33
   566
                    </batchtest>
franta-hg@33
   567
                    <syspropertyset>
franta-hg@33
   568
                        <propertyref prefix="test-sys-prop."/>
franta-hg@33
   569
                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
franta-hg@33
   570
                    </syspropertyset>
franta-hg@33
   571
                    <formatter type="brief" usefile="false"/>
franta-hg@33
   572
                    <formatter type="xml"/>
franta-hg@33
   573
                    <jvmarg value="-ea"/>
franta-hg@33
   574
                    <jvmarg line="${debug-args-line}"/>
franta-hg@33
   575
                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
franta-hg@33
   576
                    <customize/>
franta-hg@33
   577
                </junit>
franta-hg@33
   578
            </sequential>
franta-hg@33
   579
        </macrodef>
franta-hg@33
   580
    </target>
franta-hg@33
   581
    <target depends="-init-macrodef-junit-debug,-init-macrodef-junit-debug-batch" if="${junit.available}" name="-init-macrodef-junit-debug-impl">
franta-hg@33
   582
        <macrodef name="test-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
franta-hg@33
   583
            <attribute default="${includes}" name="includes"/>
franta-hg@33
   584
            <attribute default="${excludes}" name="excludes"/>
franta-hg@33
   585
            <attribute default="**" name="testincludes"/>
franta-hg@33
   586
            <attribute default="" name="testmethods"/>
franta-hg@33
   587
            <element implicit="true" name="customize" optional="true"/>
franta-hg@33
   588
            <sequential>
franta-hg@33
   589
                <j2seproject3:junit-debug excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
franta-hg@33
   590
                    <customize/>
franta-hg@33
   591
                </j2seproject3:junit-debug>
franta-hg@33
   592
            </sequential>
franta-hg@33
   593
        </macrodef>
franta-hg@33
   594
    </target>
franta-hg@33
   595
    <target if="${testng.available}" name="-init-macrodef-testng-debug">
franta-hg@33
   596
        <macrodef name="testng-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
franta-hg@33
   597
            <attribute default="${main.class}" name="testClass"/>
franta-hg@33
   598
            <attribute default="" name="testMethod"/>
franta-hg@33
   599
            <element name="customize2" optional="true"/>
franta-hg@33
   600
            <sequential>
franta-hg@33
   601
                <condition else="-testclass @{testClass}" property="test.class.or.method" value="-methods @{testClass}.@{testMethod}">
franta-hg@33
   602
                    <isset property="test.method"/>
franta-hg@33
   603
                </condition>
franta-hg@33
   604
                <condition else="-suitename alt2xml-lib-output -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}">
franta-hg@33
   605
                    <matches pattern=".*\.xml" string="@{testClass}"/>
franta-hg@33
   606
                </condition>
franta-hg@33
   607
                <delete dir="${build.test.results.dir}" quiet="true"/>
franta-hg@33
   608
                <mkdir dir="${build.test.results.dir}"/>
franta-hg@33
   609
                <j2seproject3:debug classname="org.testng.TestNG" classpath="${debug.test.classpath}">
franta-hg@33
   610
                    <customize>
franta-hg@33
   611
                        <customize2/>
franta-hg@33
   612
                        <jvmarg value="-ea"/>
franta-hg@33
   613
                        <arg line="${testng.debug.mode}"/>
franta-hg@33
   614
                        <arg line="-d ${build.test.results.dir}"/>
franta-hg@33
   615
                        <arg line="-listener org.testng.reporters.VerboseReporter"/>
franta-hg@33
   616
                        <arg line="${testng.cmd.args}"/>
franta-hg@33
   617
                    </customize>
franta-hg@33
   618
                </j2seproject3:debug>
franta-hg@33
   619
            </sequential>
franta-hg@33
   620
        </macrodef>
franta-hg@33
   621
    </target>
franta-hg@33
   622
    <target depends="-init-macrodef-testng-debug" if="${testng.available}" name="-init-macrodef-testng-debug-impl">
franta-hg@33
   623
        <macrodef name="testng-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
franta-hg@33
   624
            <attribute default="${main.class}" name="testClass"/>
franta-hg@33
   625
            <attribute default="" name="testMethod"/>
franta-hg@33
   626
            <element implicit="true" name="customize2" optional="true"/>
franta-hg@33
   627
            <sequential>
franta-hg@33
   628
                <j2seproject3:testng-debug testClass="@{testClass}" testMethod="@{testMethod}">
franta-hg@33
   629
                    <customize2/>
franta-hg@33
   630
                </j2seproject3:testng-debug>
franta-hg@33
   631
            </sequential>
franta-hg@33
   632
        </macrodef>
franta-hg@33
   633
    </target>
franta-hg@33
   634
    <target depends="-init-macrodef-junit-debug-impl" if="${junit.available}" name="-init-macrodef-test-debug-junit">
franta-hg@33
   635
        <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
franta-hg@33
   636
            <attribute default="${includes}" name="includes"/>
franta-hg@33
   637
            <attribute default="${excludes}" name="excludes"/>
franta-hg@33
   638
            <attribute default="**" name="testincludes"/>
franta-hg@33
   639
            <attribute default="" name="testmethods"/>
franta-hg@33
   640
            <attribute default="${main.class}" name="testClass"/>
franta-hg@33
   641
            <attribute default="" name="testMethod"/>
franta-hg@33
   642
            <sequential>
franta-hg@33
   643
                <j2seproject3:test-debug-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
franta-hg@33
   644
                    <customize>
franta-hg@33
   645
                        <classpath>
franta-hg@33
   646
                            <path path="${run.test.classpath}"/>
franta-hg@33
   647
                        </classpath>
franta-hg@33
   648
                        <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
franta-hg@33
   649
                        <jvmarg line="${run.jvmargs}"/>
franta-hg@33
   650
                        <jvmarg line="${run.jvmargs.ide}"/>
franta-hg@33
   651
                    </customize>
franta-hg@33
   652
                </j2seproject3:test-debug-impl>
franta-hg@33
   653
            </sequential>
franta-hg@33
   654
        </macrodef>
franta-hg@33
   655
    </target>
franta-hg@33
   656
    <target depends="-init-macrodef-testng-debug-impl" if="${testng.available}" name="-init-macrodef-test-debug-testng">
franta-hg@33
   657
        <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
franta-hg@33
   658
            <attribute default="${includes}" name="includes"/>
franta-hg@33
   659
            <attribute default="${excludes}" name="excludes"/>
franta-hg@33
   660
            <attribute default="**" name="testincludes"/>
franta-hg@33
   661
            <attribute default="" name="testmethods"/>
franta-hg@33
   662
            <attribute default="${main.class}" name="testClass"/>
franta-hg@33
   663
            <attribute default="" name="testMethod"/>
franta-hg@33
   664
            <sequential>
franta-hg@33
   665
                <j2seproject3:testng-debug-impl testClass="@{testClass}" testMethod="@{testMethod}">
franta-hg@33
   666
                    <customize2>
franta-hg@33
   667
                        <syspropertyset>
franta-hg@33
   668
                            <propertyref prefix="test-sys-prop."/>
franta-hg@33
   669
                            <mapper from="test-sys-prop.*" to="*" type="glob"/>
franta-hg@33
   670
                        </syspropertyset>
franta-hg@33
   671
                    </customize2>
franta-hg@33
   672
                </j2seproject3:testng-debug-impl>
franta-hg@33
   673
            </sequential>
franta-hg@33
   674
        </macrodef>
franta-hg@33
   675
    </target>
franta-hg@33
   676
    <target depends="-init-macrodef-test-debug-junit,-init-macrodef-test-debug-testng" name="-init-macrodef-test-debug"/>
franta-hg@33
   677
    <!--
franta-hg@33
   678
                pre NB7.2 profiling section; consider it deprecated
franta-hg@33
   679
            -->
franta-hg@33
   680
    <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" if="profiler.info.jvmargs.agent" name="profile-init"/>
franta-hg@33
   681
    <target if="profiler.info.jvmargs.agent" name="-profile-pre-init">
franta-hg@33
   682
        <!-- Empty placeholder for easier customization. -->
franta-hg@33
   683
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@33
   684
    </target>
franta-hg@33
   685
    <target if="profiler.info.jvmargs.agent" name="-profile-post-init">
franta-hg@33
   686
        <!-- Empty placeholder for easier customization. -->
franta-hg@33
   687
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@33
   688
    </target>
franta-hg@33
   689
    <target if="profiler.info.jvmargs.agent" name="-profile-init-macrodef-profile">
franta-hg@33
   690
        <macrodef name="resolve">
franta-hg@33
   691
            <attribute name="name"/>
franta-hg@33
   692
            <attribute name="value"/>
franta-hg@33
   693
            <sequential>
franta-hg@33
   694
                <property name="@{name}" value="${env.@{value}}"/>
franta-hg@33
   695
            </sequential>
franta-hg@33
   696
        </macrodef>
franta-hg@33
   697
        <macrodef name="profile">
franta-hg@33
   698
            <attribute default="${main.class}" name="classname"/>
franta-hg@33
   699
            <element name="customize" optional="true"/>
franta-hg@33
   700
            <sequential>
franta-hg@33
   701
                <property environment="env"/>
franta-hg@33
   702
                <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
franta-hg@110
   703
                <java classname="@{classname}" dir="${profiler.info.dir}" failonerror="${java.failonerror}" fork="true" jvm="${profiler.info.jvm}">
franta-hg@33
   704
                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
franta-hg@33
   705
                    <jvmarg value="${profiler.info.jvmargs.agent}"/>
franta-hg@33
   706
                    <jvmarg line="${profiler.info.jvmargs}"/>
franta-hg@33
   707
                    <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
franta-hg@33
   708
                    <arg line="${application.args}"/>
franta-hg@33
   709
                    <classpath>
franta-hg@33
   710
                        <path path="${run.classpath}"/>
franta-hg@33
   711
                    </classpath>
franta-hg@33
   712
                    <syspropertyset>
franta-hg@33
   713
                        <propertyref prefix="run-sys-prop."/>
franta-hg@33
   714
                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
franta-hg@33
   715
                    </syspropertyset>
franta-hg@33
   716
                    <customize/>
franta-hg@33
   717
                </java>
franta-hg@33
   718
            </sequential>
franta-hg@33
   719
        </macrodef>
franta-hg@33
   720
    </target>
franta-hg@33
   721
    <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" if="profiler.info.jvmargs.agent" name="-profile-init-check">
franta-hg@33
   722
        <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
franta-hg@33
   723
        <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
franta-hg@33
   724
    </target>
franta-hg@33
   725
    <!--
franta-hg@33
   726
                end of pre NB7.2 profiling section
franta-hg@33
   727
            -->
franta-hg@33
   728
    <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
franta-hg@33
   729
        <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
franta-hg@33
   730
            <attribute default="${main.class}" name="name"/>
franta-hg@33
   731
            <attribute default="${debug.classpath}" name="classpath"/>
franta-hg@33
   732
            <attribute default="" name="stopclassname"/>
franta-hg@33
   733
            <sequential>
franta-hg@33
   734
                <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
franta-hg@33
   735
                    <classpath>
franta-hg@33
   736
                        <path path="@{classpath}"/>
franta-hg@33
   737
                    </classpath>
franta-hg@33
   738
                </nbjpdastart>
franta-hg@33
   739
            </sequential>
franta-hg@33
   740
        </macrodef>
franta-hg@33
   741
        <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
franta-hg@33
   742
            <attribute default="${build.classes.dir}" name="dir"/>
franta-hg@33
   743
            <sequential>
franta-hg@33
   744
                <nbjpdareload>
franta-hg@33
   745
                    <fileset dir="@{dir}" includes="${fix.classes}">
franta-hg@33
   746
                        <include name="${fix.includes}*.class"/>
franta-hg@33
   747
                    </fileset>
franta-hg@33
   748
                </nbjpdareload>
franta-hg@33
   749
            </sequential>
franta-hg@33
   750
        </macrodef>
franta-hg@33
   751
    </target>
franta-hg@33
   752
    <target name="-init-debug-args">
franta-hg@33
   753
        <property name="version-output" value="java version &quot;${ant.java.version}"/>
franta-hg@33
   754
        <condition property="have-jdk-older-than-1.4">
franta-hg@33
   755
            <or>
franta-hg@33
   756
                <contains string="${version-output}" substring="java version &quot;1.0"/>
franta-hg@33
   757
                <contains string="${version-output}" substring="java version &quot;1.1"/>
franta-hg@33
   758
                <contains string="${version-output}" substring="java version &quot;1.2"/>
franta-hg@33
   759
                <contains string="${version-output}" substring="java version &quot;1.3"/>
franta-hg@33
   760
            </or>
franta-hg@33
   761
        </condition>
franta-hg@33
   762
        <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
franta-hg@33
   763
            <istrue value="${have-jdk-older-than-1.4}"/>
franta-hg@33
   764
        </condition>
franta-hg@33
   765
        <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
franta-hg@33
   766
            <os family="windows"/>
franta-hg@33
   767
        </condition>
franta-hg@33
   768
        <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
franta-hg@33
   769
            <isset property="debug.transport"/>
franta-hg@33
   770
        </condition>
franta-hg@33
   771
    </target>
franta-hg@33
   772
    <target depends="-init-debug-args" name="-init-macrodef-debug">
franta-hg@33
   773
        <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
franta-hg@33
   774
            <attribute default="${main.class}" name="classname"/>
franta-hg@33
   775
            <attribute default="${debug.classpath}" name="classpath"/>
franta-hg@33
   776
            <element name="customize" optional="true"/>
franta-hg@33
   777
            <sequential>
franta-hg@110
   778
                <java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true">
franta-hg@33
   779
                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
franta-hg@33
   780
                    <jvmarg line="${debug-args-line}"/>
franta-hg@33
   781
                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
franta-hg@33
   782
                    <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
franta-hg@33
   783
                    <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
franta-hg@33
   784
                    <jvmarg line="${run.jvmargs}"/>
franta-hg@33
   785
                    <jvmarg line="${run.jvmargs.ide}"/>
franta-hg@33
   786
                    <classpath>
franta-hg@33
   787
                        <path path="@{classpath}"/>
franta-hg@33
   788
                    </classpath>
franta-hg@33
   789
                    <syspropertyset>
franta-hg@33
   790
                        <propertyref prefix="run-sys-prop."/>
franta-hg@33
   791
                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
franta-hg@33
   792
                    </syspropertyset>
franta-hg@33
   793
                    <customize/>
franta-hg@33
   794
                </java>
franta-hg@33
   795
            </sequential>
franta-hg@33
   796
        </macrodef>
franta-hg@33
   797
    </target>
franta-hg@33
   798
    <target name="-init-macrodef-java">
franta-hg@33
   799
        <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
franta-hg@33
   800
            <attribute default="${main.class}" name="classname"/>
franta-hg@33
   801
            <attribute default="${run.classpath}" name="classpath"/>
franta-hg@33
   802
            <attribute default="jvm" name="jvm"/>
franta-hg@33
   803
            <element name="customize" optional="true"/>
franta-hg@33
   804
            <sequential>
franta-hg@110
   805
                <java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true">
franta-hg@33
   806
                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
franta-hg@33
   807
                    <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
franta-hg@33
   808
                    <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
franta-hg@33
   809
                    <jvmarg line="${run.jvmargs}"/>
franta-hg@33
   810
                    <jvmarg line="${run.jvmargs.ide}"/>
franta-hg@33
   811
                    <classpath>
franta-hg@33
   812
                        <path path="@{classpath}"/>
franta-hg@33
   813
                    </classpath>
franta-hg@33
   814
                    <syspropertyset>
franta-hg@33
   815
                        <propertyref prefix="run-sys-prop."/>
franta-hg@33
   816
                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
franta-hg@33
   817
                    </syspropertyset>
franta-hg@33
   818
                    <customize/>
franta-hg@33
   819
                </java>
franta-hg@33
   820
            </sequential>
franta-hg@33
   821
        </macrodef>
franta-hg@33
   822
    </target>
franta-hg@33
   823
    <target name="-init-macrodef-copylibs">
franta-hg@33
   824
        <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">
franta-hg@33
   825
            <attribute default="${manifest.file}" name="manifest"/>
franta-hg@33
   826
            <element name="customize" optional="true"/>
franta-hg@33
   827
            <sequential>
franta-hg@33
   828
                <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
franta-hg@33
   829
                <pathconvert property="run.classpath.without.build.classes.dir">
franta-hg@33
   830
                    <path path="${run.classpath}"/>
franta-hg@33
   831
                    <map from="${build.classes.dir.resolved}" to=""/>
franta-hg@33
   832
                </pathconvert>
franta-hg@33
   833
                <pathconvert pathsep=" " property="jar.classpath">
franta-hg@33
   834
                    <path path="${run.classpath.without.build.classes.dir}"/>
franta-hg@33
   835
                    <chainedmapper>
franta-hg@33
   836
                        <flattenmapper/>
franta-hg@33
   837
                        <filtermapper>
franta-hg@33
   838
                            <replacestring from=" " to="%20"/>
franta-hg@33
   839
                        </filtermapper>
franta-hg@33
   840
                        <globmapper from="*" to="lib/*"/>
franta-hg@33
   841
                    </chainedmapper>
franta-hg@33
   842
                </pathconvert>
franta-hg@33
   843
                <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
franta-hg@114
   844
                <copylibs compress="${jar.compress}" excludeFromCopy="${copylibs.excludes}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" manifestencoding="UTF-8" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
franta-hg@33
   845
                    <fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
franta-hg@33
   846
                    <manifest>
franta-hg@33
   847
                        <attribute name="Class-Path" value="${jar.classpath}"/>
franta-hg@33
   848
                        <customize/>
franta-hg@33
   849
                    </manifest>
franta-hg@33
   850
                </copylibs>
franta-hg@33
   851
            </sequential>
franta-hg@33
   852
        </macrodef>
franta-hg@33
   853
    </target>
franta-hg@33
   854
    <target name="-init-presetdef-jar">
franta-hg@33
   855
        <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
franta-hg@114
   856
            <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}" manifestencoding="UTF-8">
franta-hg@33
   857
                <j2seproject1:fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
franta-hg@33
   858
            </jar>
franta-hg@33
   859
        </presetdef>
franta-hg@33
   860
    </target>
franta-hg@33
   861
    <target name="-init-ap-cmdline-properties">
franta-hg@33
   862
        <property name="annotation.processing.enabled" value="true"/>
franta-hg@33
   863
        <property name="annotation.processing.processors.list" value=""/>
franta-hg@33
   864
        <property name="annotation.processing.processor.options" value=""/>
franta-hg@33
   865
        <property name="annotation.processing.run.all.processors" value="true"/>
franta-hg@33
   866
        <property name="javac.processorpath" value="${javac.classpath}"/>
franta-hg@33
   867
        <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
franta-hg@33
   868
        <condition property="ap.supported.internal" value="true">
franta-hg@33
   869
            <not>
franta-hg@33
   870
                <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
franta-hg@33
   871
            </not>
franta-hg@33
   872
        </condition>
franta-hg@33
   873
    </target>
franta-hg@33
   874
    <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
franta-hg@33
   875
        <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
franta-hg@33
   876
            <isfalse value="${annotation.processing.run.all.processors}"/>
franta-hg@33
   877
        </condition>
franta-hg@33
   878
        <condition else="" property="ap.proc.none.internal" value="-proc:none">
franta-hg@33
   879
            <isfalse value="${annotation.processing.enabled}"/>
franta-hg@33
   880
        </condition>
franta-hg@33
   881
    </target>
franta-hg@33
   882
    <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
franta-hg@33
   883
        <property name="ap.cmd.line.internal" value=""/>
franta-hg@33
   884
    </target>
franta-hg@33
   885
    <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"/>
franta-hg@33
   886
    <!--
franta-hg@33
   887
                ===================
franta-hg@33
   888
                COMPILATION SECTION
franta-hg@33
   889
                ===================
franta-hg@33
   890
            -->
franta-hg@33
   891
    <target name="-deps-jar-init" unless="built-jar.properties">
franta-hg@33
   892
        <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>
franta-hg@33
   893
        <delete file="${built-jar.properties}" quiet="true"/>
franta-hg@33
   894
    </target>
franta-hg@33
   895
    <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
franta-hg@33
   896
        <echo level="warn" message="Cycle detected: alt2xml-lib-output was already built"/>
franta-hg@33
   897
    </target>
franta-hg@33
   898
    <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
franta-hg@33
   899
        <mkdir dir="${build.dir}"/>
franta-hg@33
   900
        <touch file="${built-jar.properties}" verbose="false"/>
franta-hg@33
   901
        <property file="${built-jar.properties}" prefix="already.built.jar."/>
franta-hg@33
   902
        <antcall target="-warn-already-built-jar"/>
franta-hg@33
   903
        <propertyfile file="${built-jar.properties}">
franta-hg@33
   904
            <entry key="${basedir}" value=""/>
franta-hg@33
   905
        </propertyfile>
franta-hg@33
   906
    </target>
franta-hg@33
   907
    <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
franta-hg@33
   908
    <target depends="init" name="-check-automatic-build">
franta-hg@33
   909
        <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
franta-hg@33
   910
    </target>
franta-hg@33
   911
    <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
franta-hg@33
   912
        <antcall target="clean"/>
franta-hg@33
   913
    </target>
franta-hg@33
   914
    <target depends="init,deps-jar" name="-pre-pre-compile">
franta-hg@33
   915
        <mkdir dir="${build.classes.dir}"/>
franta-hg@33
   916
    </target>
franta-hg@33
   917
    <target name="-pre-compile">
franta-hg@33
   918
        <!-- Empty placeholder for easier customization. -->
franta-hg@33
   919
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@33
   920
    </target>
franta-hg@33
   921
    <target if="do.depend.true" name="-compile-depend">
franta-hg@33
   922
        <pathconvert property="build.generated.subdirs">
franta-hg@33
   923
            <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
franta-hg@33
   924
                <include name="*"/>
franta-hg@33
   925
            </dirset>
franta-hg@33
   926
        </pathconvert>
franta-hg@33
   927
        <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>
franta-hg@33
   928
    </target>
franta-hg@33
   929
    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">
franta-hg@33
   930
        <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
franta-hg@33
   931
        <copy todir="${build.classes.dir}">
franta-hg@33
   932
            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
franta-hg@33
   933
        </copy>
franta-hg@33
   934
    </target>
franta-hg@33
   935
    <target if="has.persistence.xml" name="-copy-persistence-xml">
franta-hg@33
   936
        <mkdir dir="${build.classes.dir}/META-INF"/>
franta-hg@33
   937
        <copy todir="${build.classes.dir}/META-INF">
franta-hg@33
   938
            <fileset dir="${meta.inf.dir}" includes="persistence.xml orm.xml"/>
franta-hg@33
   939
        </copy>
franta-hg@33
   940
    </target>
franta-hg@33
   941
    <target name="-post-compile">
franta-hg@33
   942
        <!-- Empty placeholder for easier customization. -->
franta-hg@33
   943
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@33
   944
    </target>
franta-hg@33
   945
    <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
franta-hg@33
   946
    <target name="-pre-compile-single">
franta-hg@33
   947
        <!-- Empty placeholder for easier customization. -->
franta-hg@33
   948
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@33
   949
    </target>
franta-hg@33
   950
    <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
franta-hg@33
   951
        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
franta-hg@33
   952
        <j2seproject3:force-recompile/>
franta-hg@33
   953
        <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>
franta-hg@33
   954
    </target>
franta-hg@33
   955
    <target name="-post-compile-single">
franta-hg@33
   956
        <!-- Empty placeholder for easier customization. -->
franta-hg@33
   957
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@33
   958
    </target>
franta-hg@33
   959
    <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
franta-hg@33
   960
    <!--
franta-hg@33
   961
                ====================
franta-hg@33
   962
                JAR BUILDING SECTION
franta-hg@33
   963
                ====================
franta-hg@33
   964
            -->
franta-hg@33
   965
    <target depends="init" name="-pre-pre-jar">
franta-hg@33
   966
        <dirname file="${dist.jar}" property="dist.jar.dir"/>
franta-hg@33
   967
        <mkdir dir="${dist.jar.dir}"/>
franta-hg@33
   968
    </target>
franta-hg@33
   969
    <target name="-pre-jar">
franta-hg@33
   970
        <!-- Empty placeholder for easier customization. -->
franta-hg@33
   971
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@33
   972
    </target>
franta-hg@33
   973
    <target depends="init" if="do.archive" name="-do-jar-create-manifest" unless="manifest.available">
franta-hg@33
   974
        <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
franta-hg@33
   975
        <touch file="${tmp.manifest.file}" verbose="false"/>
franta-hg@33
   976
    </target>
franta-hg@33
   977
    <target depends="init" if="do.archive+manifest.available" name="-do-jar-copy-manifest">
franta-hg@33
   978
        <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
franta-hg@114
   979
        <copy encoding="${manifest.encoding}" file="${manifest.file}" outputencoding="UTF-8" tofile="${tmp.manifest.file}"/>
franta-hg@33
   980
    </target>
franta-hg@33
   981
    <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+main.class.available" name="-do-jar-set-mainclass">
franta-hg@114
   982
        <manifest encoding="UTF-8" file="${tmp.manifest.file}" mode="update">
franta-hg@33
   983
            <attribute name="Main-Class" value="${main.class}"/>
franta-hg@33
   984
        </manifest>
franta-hg@33
   985
    </target>
franta-hg@33
   986
    <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+profile.available" name="-do-jar-set-profile">
franta-hg@114
   987
        <manifest encoding="UTF-8" file="${tmp.manifest.file}" mode="update">
franta-hg@33
   988
            <attribute name="Profile" value="${javac.profile}"/>
franta-hg@33
   989
        </manifest>
franta-hg@33
   990
    </target>
franta-hg@33
   991
    <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-set-splashscreen">
franta-hg@33
   992
        <basename file="${application.splash}" property="splashscreen.basename"/>
franta-hg@33
   993
        <mkdir dir="${build.classes.dir}/META-INF"/>
franta-hg@33
   994
        <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
franta-hg@114
   995
        <manifest encoding="UTF-8" file="${tmp.manifest.file}" mode="update">
franta-hg@33
   996
            <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
franta-hg@33
   997
        </manifest>
franta-hg@33
   998
    </target>
franta-hg@33
   999
    <target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen" if="do.mkdist" name="-do-jar-copylibs">
franta-hg@33
  1000
        <j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
franta-hg@33
  1001
        <echo level="info">To run this application from the command line without Ant, try:</echo>
franta-hg@33
  1002
        <property location="${dist.jar}" name="dist.jar.resolved"/>
franta-hg@33
  1003
        <echo level="info">java -jar "${dist.jar.resolved}"</echo>
franta-hg@33
  1004
    </target>
franta-hg@33
  1005
    <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen" if="do.archive" name="-do-jar-jar" unless="do.mkdist">
franta-hg@33
  1006
        <j2seproject1:jar manifest="${tmp.manifest.file}"/>
franta-hg@33
  1007
        <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
franta-hg@33
  1008
        <property location="${dist.jar}" name="dist.jar.resolved"/>
franta-hg@33
  1009
        <pathconvert property="run.classpath.with.dist.jar">
franta-hg@33
  1010
            <path path="${run.classpath}"/>
franta-hg@33
  1011
            <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
franta-hg@33
  1012
        </pathconvert>
franta-hg@33
  1013
        <condition else="" property="jar.usage.message" value="To run this application from the command line without Ant, try:${line.separator}${platform.java} -cp ${run.classpath.with.dist.jar} ${main.class}">
franta-hg@33
  1014
            <isset property="main.class.available"/>
franta-hg@33
  1015
        </condition>
franta-hg@33
  1016
        <condition else="debug" property="jar.usage.level" value="info">
franta-hg@33
  1017
            <isset property="main.class.available"/>
franta-hg@33
  1018
        </condition>
franta-hg@33
  1019
        <echo level="${jar.usage.level}" message="${jar.usage.message}"/>
franta-hg@33
  1020
    </target>
franta-hg@33
  1021
    <target depends="-do-jar-copylibs" if="do.archive" name="-do-jar-delete-manifest">
franta-hg@33
  1022
        <delete>
franta-hg@33
  1023
            <fileset file="${tmp.manifest.file}"/>
franta-hg@33
  1024
        </delete>
franta-hg@33
  1025
    </target>
franta-hg@33
  1026
    <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-do-jar-jar,-do-jar-delete-manifest" name="-do-jar-without-libraries"/>
franta-hg@33
  1027
    <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-do-jar-copylibs,-do-jar-delete-manifest" name="-do-jar-with-libraries"/>
franta-hg@33
  1028
    <target name="-post-jar">
franta-hg@33
  1029
        <!-- Empty placeholder for easier customization. -->
franta-hg@33
  1030
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@33
  1031
    </target>
franta-hg@33
  1032
    <target depends="init,compile,-pre-jar,-do-jar-without-libraries,-do-jar-with-libraries,-post-jar" name="-do-jar"/>
franta-hg@33
  1033
    <target depends="init,compile,-pre-jar,-do-jar,-post-jar" description="Build JAR." name="jar"/>
franta-hg@33
  1034
    <!--
franta-hg@33
  1035
                =================
franta-hg@33
  1036
                EXECUTION SECTION
franta-hg@33
  1037
                =================
franta-hg@33
  1038
            -->
franta-hg@33
  1039
    <target depends="init,compile" description="Run a main class." name="run">
franta-hg@33
  1040
        <j2seproject1:java>
franta-hg@33
  1041
            <customize>
franta-hg@33
  1042
                <arg line="${application.args}"/>
franta-hg@33
  1043
            </customize>
franta-hg@33
  1044
        </j2seproject1:java>
franta-hg@33
  1045
    </target>
franta-hg@33
  1046
    <target name="-do-not-recompile">
franta-hg@33
  1047
        <property name="javac.includes.binary" value=""/>
franta-hg@33
  1048
    </target>
franta-hg@33
  1049
    <target depends="init,compile-single" name="run-single">
franta-hg@33
  1050
        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
franta-hg@33
  1051
        <j2seproject1:java classname="${run.class}"/>
franta-hg@33
  1052
    </target>
franta-hg@33
  1053
    <target depends="init,compile-test-single" name="run-test-with-main">
franta-hg@33
  1054
        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
franta-hg@33
  1055
        <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
franta-hg@33
  1056
    </target>
franta-hg@33
  1057
    <!--
franta-hg@33
  1058
                =================
franta-hg@33
  1059
                DEBUGGING SECTION
franta-hg@33
  1060
                =================
franta-hg@33
  1061
            -->
franta-hg@33
  1062
    <target depends="init" if="netbeans.home" name="-debug-start-debugger">
franta-hg@33
  1063
        <j2seproject1:nbjpdastart name="${debug.class}"/>
franta-hg@33
  1064
    </target>
franta-hg@33
  1065
    <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
franta-hg@33
  1066
        <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
franta-hg@33
  1067
    </target>
franta-hg@33
  1068
    <target depends="init,compile" name="-debug-start-debuggee">
franta-hg@33
  1069
        <j2seproject3:debug>
franta-hg@33
  1070
            <customize>
franta-hg@33
  1071
                <arg line="${application.args}"/>
franta-hg@33
  1072
            </customize>
franta-hg@33
  1073
        </j2seproject3:debug>
franta-hg@33
  1074
    </target>
franta-hg@33
  1075
    <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
franta-hg@33
  1076
    <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
franta-hg@33
  1077
        <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
franta-hg@33
  1078
    </target>
franta-hg@33
  1079
    <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
franta-hg@33
  1080
    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
franta-hg@33
  1081
        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
franta-hg@33
  1082
        <j2seproject3:debug classname="${debug.class}"/>
franta-hg@33
  1083
    </target>
franta-hg@33
  1084
    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
franta-hg@33
  1085
    <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
franta-hg@33
  1086
        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
franta-hg@33
  1087
        <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
franta-hg@33
  1088
    </target>
franta-hg@33
  1089
    <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
franta-hg@33
  1090
    <target depends="init" name="-pre-debug-fix">
franta-hg@33
  1091
        <fail unless="fix.includes">Must set fix.includes</fail>
franta-hg@33
  1092
        <property name="javac.includes" value="${fix.includes}.java"/>
franta-hg@33
  1093
    </target>
franta-hg@33
  1094
    <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
franta-hg@33
  1095
        <j2seproject1:nbjpdareload/>
franta-hg@33
  1096
    </target>
franta-hg@33
  1097
    <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
franta-hg@33
  1098
    <!--
franta-hg@33
  1099
                =================
franta-hg@33
  1100
                PROFILING SECTION
franta-hg@33
  1101
                =================
franta-hg@33
  1102
            -->
franta-hg@33
  1103
    <!--
franta-hg@33
  1104
                pre NB7.2 profiler integration
franta-hg@33
  1105
            -->
franta-hg@33
  1106
    <target depends="profile-init,compile" description="Profile a project in the IDE." if="profiler.info.jvmargs.agent" name="-profile-pre72">
franta-hg@33
  1107
        <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
franta-hg@33
  1108
        <nbprofiledirect>
franta-hg@33
  1109
            <classpath>
franta-hg@33
  1110
                <path path="${run.classpath}"/>
franta-hg@33
  1111
            </classpath>
franta-hg@33
  1112
        </nbprofiledirect>
franta-hg@33
  1113
        <profile/>
franta-hg@33
  1114
    </target>
franta-hg@33
  1115
    <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="profiler.info.jvmargs.agent" name="-profile-single-pre72">
franta-hg@33
  1116
        <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail>
franta-hg@33
  1117
        <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
franta-hg@33
  1118
        <nbprofiledirect>
franta-hg@33
  1119
            <classpath>
franta-hg@33
  1120
                <path path="${run.classpath}"/>
franta-hg@33
  1121
            </classpath>
franta-hg@33
  1122
        </nbprofiledirect>
franta-hg@33
  1123
        <profile classname="${profile.class}"/>
franta-hg@33
  1124
    </target>
franta-hg@33
  1125
    <target depends="profile-init,compile-single" if="profiler.info.jvmargs.agent" name="-profile-applet-pre72">
franta-hg@33
  1126
        <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
franta-hg@33
  1127
        <nbprofiledirect>
franta-hg@33
  1128
            <classpath>
franta-hg@33
  1129
                <path path="${run.classpath}"/>
franta-hg@33
  1130
            </classpath>
franta-hg@33
  1131
        </nbprofiledirect>
franta-hg@33
  1132
        <profile classname="sun.applet.AppletViewer">
franta-hg@33
  1133
            <customize>
franta-hg@33
  1134
                <arg value="${applet.url}"/>
franta-hg@33
  1135
            </customize>
franta-hg@33
  1136
        </profile>
franta-hg@33
  1137
    </target>
franta-hg@33
  1138
    <target depends="profile-init,compile-test-single" if="profiler.info.jvmargs.agent" name="-profile-test-single-pre72">
franta-hg@33
  1139
        <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
franta-hg@33
  1140
        <nbprofiledirect>
franta-hg@33
  1141
            <classpath>
franta-hg@33
  1142
                <path path="${run.test.classpath}"/>
franta-hg@33
  1143
            </classpath>
franta-hg@33
  1144
        </nbprofiledirect>
franta-hg@33
  1145
        <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
franta-hg@33
  1146
            <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
franta-hg@33
  1147
            <jvmarg value="${profiler.info.jvmargs.agent}"/>
franta-hg@33
  1148
            <jvmarg line="${profiler.info.jvmargs}"/>
franta-hg@33
  1149
            <test name="${profile.class}"/>
franta-hg@33
  1150
            <classpath>
franta-hg@33
  1151
                <path path="${run.test.classpath}"/>
franta-hg@33
  1152
            </classpath>
franta-hg@33
  1153
            <syspropertyset>
franta-hg@33
  1154
                <propertyref prefix="test-sys-prop."/>
franta-hg@33
  1155
                <mapper from="test-sys-prop.*" to="*" type="glob"/>
franta-hg@33
  1156
            </syspropertyset>
franta-hg@33
  1157
            <formatter type="brief" usefile="false"/>
franta-hg@33
  1158
            <formatter type="xml"/>
franta-hg@33
  1159
        </junit>
franta-hg@33
  1160
    </target>
franta-hg@33
  1161
    <!--
franta-hg@33
  1162
                end of pre NB72 profiling section
franta-hg@33
  1163
            -->
franta-hg@33
  1164
    <target if="netbeans.home" name="-profile-check">
franta-hg@33
  1165
        <condition property="profiler.configured">
franta-hg@33
  1166
            <or>
franta-hg@33
  1167
                <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-agentpath:"/>
franta-hg@33
  1168
                <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-javaagent:"/>
franta-hg@33
  1169
            </or>
franta-hg@33
  1170
        </condition>
franta-hg@33
  1171
    </target>
franta-hg@33
  1172
    <target depends="-profile-check,-profile-pre72" description="Profile a project in the IDE." if="profiler.configured" name="profile" unless="profiler.info.jvmargs.agent">
franta-hg@33
  1173
        <startprofiler/>
franta-hg@33
  1174
        <antcall target="run"/>
franta-hg@33
  1175
    </target>
franta-hg@33
  1176
    <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">
franta-hg@33
  1177
        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
franta-hg@33
  1178
        <startprofiler/>
franta-hg@33
  1179
        <antcall target="run-single"/>
franta-hg@33
  1180
    </target>
franta-hg@33
  1181
    <target depends="-profile-test-single-pre72" description="Profile a selected test in the IDE." name="profile-test-single"/>
franta-hg@33
  1182
    <target depends="-profile-check" description="Profile a selected test in the IDE." if="profiler.configured" name="profile-test" unless="profiler.info.jvmargs">
franta-hg@33
  1183
        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
franta-hg@33
  1184
        <startprofiler/>
franta-hg@33
  1185
        <antcall target="test-single"/>
franta-hg@33
  1186
    </target>
franta-hg@33
  1187
    <target depends="-profile-check" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-test-with-main">
franta-hg@33
  1188
        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
franta-hg@33
  1189
        <startprofiler/>
franta-hg@114
  1190
        <antcall target="run-test-with-main"/>
franta-hg@33
  1191
    </target>
franta-hg@33
  1192
    <target depends="-profile-check,-profile-applet-pre72" if="profiler.configured" name="profile-applet" unless="profiler.info.jvmargs.agent">
franta-hg@33
  1193
        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
franta-hg@33
  1194
        <startprofiler/>
franta-hg@33
  1195
        <antcall target="run-applet"/>
franta-hg@33
  1196
    </target>
franta-hg@33
  1197
    <!--
franta-hg@33
  1198
                ===============
franta-hg@33
  1199
                JAVADOC SECTION
franta-hg@33
  1200
                ===============
franta-hg@33
  1201
            -->
franta-hg@33
  1202
    <target depends="init" if="have.sources" name="-javadoc-build">
franta-hg@33
  1203
        <mkdir dir="${dist.javadoc.dir}"/>
franta-hg@33
  1204
        <condition else="" property="javadoc.endorsed.classpath.cmd.line.arg" value="-J${endorsed.classpath.cmd.line.arg}">
franta-hg@33
  1205
            <and>
franta-hg@33
  1206
                <isset property="endorsed.classpath.cmd.line.arg"/>
franta-hg@33
  1207
                <not>
franta-hg@33
  1208
                    <equals arg1="${endorsed.classpath.cmd.line.arg}" arg2=""/>
franta-hg@33
  1209
                </not>
franta-hg@33
  1210
            </and>
franta-hg@33
  1211
        </condition>
franta-hg@33
  1212
        <condition else="" property="bug5101868workaround" value="*.java">
franta-hg@33
  1213
            <matches pattern="1\.[56](\..*)?" string="${java.version}"/>
franta-hg@33
  1214
        </condition>
franta-hg@33
  1215
        <javadoc additionalparam="-J-Dfile.encoding=${file.encoding} ${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}">
franta-hg@33
  1216
            <classpath>
franta-hg@33
  1217
                <path path="${javac.classpath}"/>
franta-hg@33
  1218
            </classpath>
franta-hg@33
  1219
            <fileset dir="${src.dir}" excludes="${bug5101868workaround},${excludes}" includes="${includes}">
franta-hg@33
  1220
                <filename name="**/*.java"/>
franta-hg@33
  1221
            </fileset>
franta-hg@33
  1222
            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
franta-hg@33
  1223
                <include name="**/*.java"/>
franta-hg@33
  1224
                <exclude name="*.java"/>
franta-hg@33
  1225
            </fileset>
franta-hg@33
  1226
            <arg line="${javadoc.endorsed.classpath.cmd.line.arg}"/>
franta-hg@33
  1227
        </javadoc>
franta-hg@33
  1228
        <copy todir="${dist.javadoc.dir}">
franta-hg@33
  1229
            <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
franta-hg@33
  1230
                <filename name="**/doc-files/**"/>
franta-hg@33
  1231
            </fileset>
franta-hg@33
  1232
            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
franta-hg@33
  1233
                <include name="**/doc-files/**"/>
franta-hg@33
  1234
            </fileset>
franta-hg@33
  1235
        </copy>
franta-hg@33
  1236
    </target>
franta-hg@33
  1237
    <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
franta-hg@33
  1238
        <nbbrowse file="${dist.javadoc.dir}/index.html"/>
franta-hg@33
  1239
    </target>
franta-hg@33
  1240
    <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
franta-hg@33
  1241
    <!--
franta-hg@33
  1242
                =========================
franta-hg@33
  1243
                TEST COMPILATION SECTION
franta-hg@33
  1244
                =========================
franta-hg@33
  1245
            -->
franta-hg@33
  1246
    <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
franta-hg@33
  1247
        <mkdir dir="${build.test.classes.dir}"/>
franta-hg@33
  1248
    </target>
franta-hg@33
  1249
    <target name="-pre-compile-test">
franta-hg@33
  1250
        <!-- Empty placeholder for easier customization. -->
franta-hg@33
  1251
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@33
  1252
    </target>
franta-hg@33
  1253
    <target if="do.depend.true" name="-compile-test-depend">
franta-hg@33
  1254
        <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
franta-hg@33
  1255
    </target>
franta-hg@33
  1256
    <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
franta-hg@33
  1257
        <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}"/>
franta-hg@33
  1258
        <copy todir="${build.test.classes.dir}">
franta-hg@33
  1259
            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
franta-hg@33
  1260
        </copy>
franta-hg@33
  1261
    </target>
franta-hg@33
  1262
    <target name="-post-compile-test">
franta-hg@33
  1263
        <!-- Empty placeholder for easier customization. -->
franta-hg@33
  1264
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@33
  1265
    </target>
franta-hg@33
  1266
    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
franta-hg@33
  1267
    <target name="-pre-compile-test-single">
franta-hg@33
  1268
        <!-- Empty placeholder for easier customization. -->
franta-hg@33
  1269
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@33
  1270
    </target>
franta-hg@33
  1271
    <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
franta-hg@33
  1272
        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
franta-hg@33
  1273
        <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
franta-hg@33
  1274
        <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}"/>
franta-hg@33
  1275
        <copy todir="${build.test.classes.dir}">
franta-hg@33
  1276
            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
franta-hg@33
  1277
        </copy>
franta-hg@33
  1278
    </target>
franta-hg@33
  1279
    <target name="-post-compile-test-single">
franta-hg@33
  1280
        <!-- Empty placeholder for easier customization. -->
franta-hg@33
  1281
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@33
  1282
    </target>
franta-hg@33
  1283
    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
franta-hg@33
  1284
    <!--
franta-hg@33
  1285
                =======================
franta-hg@33
  1286
                TEST EXECUTION SECTION
franta-hg@33
  1287
                =======================
franta-hg@33
  1288
            -->
franta-hg@33
  1289
    <target depends="init" if="have.tests" name="-pre-test-run">
franta-hg@33
  1290
        <mkdir dir="${build.test.results.dir}"/>
franta-hg@33
  1291
    </target>
franta-hg@33
  1292
    <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
franta-hg@33
  1293
        <j2seproject3:test includes="${includes}" testincludes="**/*Test.java"/>
franta-hg@33
  1294
    </target>
franta-hg@33
  1295
    <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
franta-hg@33
  1296
        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
franta-hg@33
  1297
    </target>
franta-hg@33
  1298
    <target depends="init" if="have.tests" name="test-report"/>
franta-hg@33
  1299
    <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
franta-hg@33
  1300
    <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
franta-hg@33
  1301
    <target depends="init" if="have.tests" name="-pre-test-run-single">
franta-hg@33
  1302
        <mkdir dir="${build.test.results.dir}"/>
franta-hg@33
  1303
    </target>
franta-hg@33
  1304
    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
franta-hg@33
  1305
        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
franta-hg@33
  1306
        <j2seproject3:test excludes="" includes="${test.includes}" testincludes="${test.includes}"/>
franta-hg@33
  1307
    </target>
franta-hg@33
  1308
    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
franta-hg@33
  1309
        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
franta-hg@33
  1310
    </target>
franta-hg@33
  1311
    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>
franta-hg@33
  1312
    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single-method">
franta-hg@33
  1313
        <fail unless="test.class">Must select some files in the IDE or set test.class</fail>
franta-hg@33
  1314
        <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
franta-hg@33
  1315
        <j2seproject3:test excludes="" includes="${javac.includes}" testincludes="${test.class}" testmethods="${test.method}"/>
franta-hg@33
  1316
    </target>
franta-hg@33
  1317
    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method" if="have.tests" name="-post-test-run-single-method">
franta-hg@33
  1318
        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
franta-hg@33
  1319
    </target>
franta-hg@33
  1320
    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method,-post-test-run-single-method" description="Run single unit test." name="test-single-method"/>
franta-hg@33
  1321
    <!--
franta-hg@33
  1322
                =======================
franta-hg@33
  1323
                TEST DEBUGGING SECTION
franta-hg@33
  1324
                =======================
franta-hg@33
  1325
            -->
franta-hg@33
  1326
    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test">
franta-hg@33
  1327
        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
franta-hg@33
  1328
        <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testincludes="${javac.includes}"/>
franta-hg@33
  1329
    </target>
franta-hg@33
  1330
    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test-method">
franta-hg@33
  1331
        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
franta-hg@33
  1332
        <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
franta-hg@33
  1333
        <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testMethod="${test.method}" testincludes="${test.class}" testmethods="${test.method}"/>
franta-hg@33
  1334
    </target>
franta-hg@33
  1335
    <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
franta-hg@33
  1336
        <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
franta-hg@33
  1337
    </target>
franta-hg@33
  1338
    <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
franta-hg@33
  1339
    <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test-method" name="debug-test-method"/>
franta-hg@33
  1340
    <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
franta-hg@33
  1341
        <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
franta-hg@33
  1342
    </target>
franta-hg@33
  1343
    <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
franta-hg@33
  1344
    <!--
franta-hg@33
  1345
                =========================
franta-hg@33
  1346
                APPLET EXECUTION SECTION
franta-hg@33
  1347
                =========================
franta-hg@33
  1348
            -->
franta-hg@33
  1349
    <target depends="init,compile-single" name="run-applet">
franta-hg@33
  1350
        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
franta-hg@33
  1351
        <j2seproject1:java classname="sun.applet.AppletViewer">
franta-hg@33
  1352
            <customize>
franta-hg@33
  1353
                <arg value="${applet.url}"/>
franta-hg@33
  1354
            </customize>
franta-hg@33
  1355
        </j2seproject1:java>
franta-hg@33
  1356
    </target>
franta-hg@33
  1357
    <!--
franta-hg@33
  1358
                =========================
franta-hg@33
  1359
                APPLET DEBUGGING  SECTION
franta-hg@33
  1360
                =========================
franta-hg@33
  1361
            -->
franta-hg@33
  1362
    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
franta-hg@33
  1363
        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
franta-hg@33
  1364
        <j2seproject3:debug classname="sun.applet.AppletViewer">
franta-hg@33
  1365
            <customize>
franta-hg@33
  1366
                <arg value="${applet.url}"/>
franta-hg@33
  1367
            </customize>
franta-hg@33
  1368
        </j2seproject3:debug>
franta-hg@33
  1369
    </target>
franta-hg@33
  1370
    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
franta-hg@33
  1371
    <!--
franta-hg@33
  1372
                ===============
franta-hg@33
  1373
                CLEANUP SECTION
franta-hg@33
  1374
                ===============
franta-hg@33
  1375
            -->
franta-hg@33
  1376
    <target name="-deps-clean-init" unless="built-clean.properties">
franta-hg@33
  1377
        <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>
franta-hg@33
  1378
        <delete file="${built-clean.properties}" quiet="true"/>
franta-hg@33
  1379
    </target>
franta-hg@33
  1380
    <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
franta-hg@33
  1381
        <echo level="warn" message="Cycle detected: alt2xml-lib-output was already built"/>
franta-hg@33
  1382
    </target>
franta-hg@33
  1383
    <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
franta-hg@33
  1384
        <mkdir dir="${build.dir}"/>
franta-hg@33
  1385
        <touch file="${built-clean.properties}" verbose="false"/>
franta-hg@33
  1386
        <property file="${built-clean.properties}" prefix="already.built.clean."/>
franta-hg@33
  1387
        <antcall target="-warn-already-built-clean"/>
franta-hg@33
  1388
        <propertyfile file="${built-clean.properties}">
franta-hg@33
  1389
            <entry key="${basedir}" value=""/>
franta-hg@33
  1390
        </propertyfile>
franta-hg@33
  1391
    </target>
franta-hg@33
  1392
    <target depends="init" name="-do-clean">
franta-hg@33
  1393
        <delete dir="${build.dir}"/>
franta-hg@33
  1394
        <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
franta-hg@33
  1395
    </target>
franta-hg@33
  1396
    <target name="-post-clean">
franta-hg@33
  1397
        <!-- Empty placeholder for easier customization. -->
franta-hg@33
  1398
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@33
  1399
    </target>
franta-hg@33
  1400
    <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
franta-hg@33
  1401
    <target name="-check-call-dep">
franta-hg@33
  1402
        <property file="${call.built.properties}" prefix="already.built."/>
franta-hg@33
  1403
        <condition property="should.call.dep">
franta-hg@33
  1404
            <and>
franta-hg@33
  1405
                <not>
franta-hg@33
  1406
                    <isset property="already.built.${call.subproject}"/>
franta-hg@33
  1407
                </not>
franta-hg@33
  1408
                <available file="${call.script}"/>
franta-hg@33
  1409
            </and>
franta-hg@33
  1410
        </condition>
franta-hg@33
  1411
    </target>
franta-hg@33
  1412
    <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
franta-hg@33
  1413
        <ant antfile="${call.script}" inheritall="false" target="${call.target}">
franta-hg@33
  1414
            <propertyset>
franta-hg@33
  1415
                <propertyref prefix="transfer."/>
franta-hg@33
  1416
                <mapper from="transfer.*" to="*" type="glob"/>
franta-hg@33
  1417
            </propertyset>
franta-hg@33
  1418
        </ant>
franta-hg@33
  1419
    </target>
franta-hg@33
  1420
</project>