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