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