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