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