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