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