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