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