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