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