java/Postak/nbproject/build-impl.xml
author František Kučera <franta-hg@frantovo.cz>
Tue Nov 29 17:16:47 2011 +0100 (2011-11-29)
changeset 13 b15d81be8af3
parent 8 218a80f12411
child 16 290074b53aca
permissions -rw-r--r--
drobnosti: lgoování, formátování, netbeans…
franta-hg@0
     1
<?xml version="1.0" encoding="UTF-8"?>
franta-hg@0
     2
<!--
franta-hg@0
     3
*** GENERATED FROM project.xml - DO NOT EDIT  ***
franta-hg@0
     4
***         EDIT ../build.xml INSTEAD         ***
franta-hg@0
     5
franta-hg@0
     6
For the purpose of easier reading the script
franta-hg@0
     7
is divided into following sections:
franta-hg@0
     8
franta-hg@0
     9
  - initialization
franta-hg@0
    10
  - compilation
franta-hg@0
    11
  - jar
franta-hg@0
    12
  - execution
franta-hg@0
    13
  - debugging
franta-hg@0
    14
  - javadoc
franta-hg@0
    15
  - junit compilation
franta-hg@0
    16
  - junit execution
franta-hg@0
    17
  - junit debugging
franta-hg@0
    18
  - applet
franta-hg@0
    19
  - cleanup
franta-hg@0
    20
franta-hg@0
    21
        -->
franta-hg@0
    22
<project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="Postak-impl">
franta-hg@5
    23
    <fail message="Please build using Ant 1.7.1 or higher.">
franta-hg@5
    24
        <condition>
franta-hg@5
    25
            <not>
franta-hg@5
    26
                <antversion atleast="1.7.1"/>
franta-hg@5
    27
            </not>
franta-hg@5
    28
        </condition>
franta-hg@5
    29
    </fail>
franta-hg@0
    30
    <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
franta-hg@0
    31
    <!-- 
franta-hg@0
    32
                ======================
franta-hg@0
    33
                INITIALIZATION SECTION 
franta-hg@0
    34
                ======================
franta-hg@0
    35
            -->
franta-hg@0
    36
    <target name="-pre-init">
franta-hg@0
    37
        <!-- Empty placeholder for easier customization. -->
franta-hg@0
    38
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@0
    39
    </target>
franta-hg@0
    40
    <target depends="-pre-init" name="-init-private">
franta-hg@0
    41
        <property file="nbproject/private/config.properties"/>
franta-hg@0
    42
        <property file="nbproject/private/configs/${config}.properties"/>
franta-hg@0
    43
        <property file="nbproject/private/private.properties"/>
franta-hg@0
    44
    </target>
franta-hg@0
    45
    <target depends="-pre-init,-init-private" name="-init-user">
franta-hg@0
    46
        <property file="${user.properties.file}"/>
franta-hg@0
    47
        <!-- The two properties below are usually overridden -->
franta-hg@0
    48
        <!-- by the active platform. Just a fallback. -->
franta-hg@0
    49
        <property name="default.javac.source" value="1.4"/>
franta-hg@0
    50
        <property name="default.javac.target" value="1.4"/>
franta-hg@0
    51
    </target>
franta-hg@0
    52
    <target depends="-pre-init,-init-private,-init-user" name="-init-project">
franta-hg@0
    53
        <property file="nbproject/configs/${config}.properties"/>
franta-hg@0
    54
        <property file="nbproject/project.properties"/>
franta-hg@0
    55
    </target>
franta-hg@0
    56
    <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
franta-hg@0
    57
        <available file="${manifest.file}" property="manifest.available"/>
franta-hg@13
    58
        <condition property="splashscreen.available">
franta-hg@13
    59
            <and>
franta-hg@13
    60
                <not>
franta-hg@13
    61
                    <equals arg1="${application.splash}" arg2="" trim="true"/>
franta-hg@13
    62
                </not>
franta-hg@13
    63
                <available file="${application.splash}"/>
franta-hg@13
    64
            </and>
franta-hg@13
    65
        </condition>
franta-hg@5
    66
        <condition property="main.class.available">
franta-hg@0
    67
            <and>
franta-hg@0
    68
                <isset property="main.class"/>
franta-hg@0
    69
                <not>
franta-hg@0
    70
                    <equals arg1="${main.class}" arg2="" trim="true"/>
franta-hg@0
    71
                </not>
franta-hg@0
    72
            </and>
franta-hg@0
    73
        </condition>
franta-hg@5
    74
        <condition property="manifest.available+main.class">
franta-hg@5
    75
            <and>
franta-hg@5
    76
                <isset property="manifest.available"/>
franta-hg@5
    77
                <isset property="main.class.available"/>
franta-hg@5
    78
            </and>
franta-hg@5
    79
        </condition>
franta-hg@13
    80
        <condition property="do.archive">
franta-hg@13
    81
            <not>
franta-hg@13
    82
                <istrue value="${jar.archive.disabled}"/>
franta-hg@13
    83
            </not>
franta-hg@13
    84
        </condition>
franta-hg@5
    85
        <condition property="do.mkdist">
franta-hg@5
    86
            <and>
franta-hg@13
    87
                <isset property="do.archive"/>
franta-hg@5
    88
                <isset property="libs.CopyLibs.classpath"/>
franta-hg@5
    89
                <not>
franta-hg@5
    90
                    <istrue value="${mkdist.disabled}"/>
franta-hg@5
    91
                </not>
franta-hg@5
    92
            </and>
franta-hg@5
    93
        </condition>
franta-hg@0
    94
        <condition property="manifest.available+main.class+mkdist.available">
franta-hg@0
    95
            <and>
franta-hg@0
    96
                <istrue value="${manifest.available+main.class}"/>
franta-hg@5
    97
                <isset property="do.mkdist"/>
franta-hg@5
    98
            </and>
franta-hg@5
    99
        </condition>
franta-hg@5
   100
        <condition property="do.archive+manifest.available">
franta-hg@5
   101
            <and>
franta-hg@5
   102
                <isset property="manifest.available"/>
franta-hg@5
   103
                <istrue value="${do.archive}"/>
franta-hg@5
   104
            </and>
franta-hg@5
   105
        </condition>
franta-hg@13
   106
        <condition property="do.archive+main.class.available">
franta-hg@13
   107
            <and>
franta-hg@13
   108
                <isset property="main.class.available"/>
franta-hg@13
   109
                <istrue value="${do.archive}"/>
franta-hg@13
   110
            </and>
franta-hg@13
   111
        </condition>
franta-hg@13
   112
        <condition property="do.archive+splashscreen.available">
franta-hg@13
   113
            <and>
franta-hg@13
   114
                <isset property="splashscreen.available"/>
franta-hg@13
   115
                <istrue value="${do.archive}"/>
franta-hg@13
   116
            </and>
franta-hg@13
   117
        </condition>
franta-hg@5
   118
        <condition property="do.archive+manifest.available+main.class">
franta-hg@5
   119
            <and>
franta-hg@5
   120
                <istrue value="${manifest.available+main.class}"/>
franta-hg@5
   121
                <istrue value="${do.archive}"/>
franta-hg@5
   122
            </and>
franta-hg@5
   123
        </condition>
franta-hg@13
   124
        <condition property="manifest.available-mkdist.available">
franta-hg@13
   125
            <or>
franta-hg@13
   126
                <istrue value="${manifest.available}"/>
franta-hg@13
   127
                <isset property="do.mkdist"/>
franta-hg@13
   128
            </or>
franta-hg@5
   129
        </condition>
franta-hg@13
   130
        <condition property="manifest.available+main.class-mkdist.available">
franta-hg@13
   131
            <or>
franta-hg@13
   132
                <istrue value="${manifest.available+main.class}"/>
franta-hg@13
   133
                <isset property="do.mkdist"/>
franta-hg@13
   134
            </or>
franta-hg@0
   135
        </condition>
franta-hg@0
   136
        <condition property="have.tests">
franta-hg@0
   137
            <or>
franta-hg@0
   138
                <available file="${test.src.dir}"/>
franta-hg@0
   139
            </or>
franta-hg@0
   140
        </condition>
franta-hg@0
   141
        <condition property="have.sources">
franta-hg@0
   142
            <or>
franta-hg@0
   143
                <available file="${src.dir}"/>
franta-hg@0
   144
            </or>
franta-hg@0
   145
        </condition>
franta-hg@0
   146
        <condition property="netbeans.home+have.tests">
franta-hg@0
   147
            <and>
franta-hg@0
   148
                <isset property="netbeans.home"/>
franta-hg@0
   149
                <isset property="have.tests"/>
franta-hg@0
   150
            </and>
franta-hg@0
   151
        </condition>
franta-hg@0
   152
        <condition property="no.javadoc.preview">
franta-hg@0
   153
            <and>
franta-hg@0
   154
                <isset property="javadoc.preview"/>
franta-hg@0
   155
                <isfalse value="${javadoc.preview}"/>
franta-hg@0
   156
            </and>
franta-hg@0
   157
        </condition>
franta-hg@0
   158
        <property name="run.jvmargs" value=""/>
franta-hg@0
   159
        <property name="javac.compilerargs" value=""/>
franta-hg@0
   160
        <property name="work.dir" value="${basedir}"/>
franta-hg@0
   161
        <condition property="no.deps">
franta-hg@0
   162
            <and>
franta-hg@0
   163
                <istrue value="${no.dependencies}"/>
franta-hg@0
   164
            </and>
franta-hg@0
   165
        </condition>
franta-hg@0
   166
        <property name="javac.debug" value="true"/>
franta-hg@0
   167
        <property name="javadoc.preview" value="true"/>
franta-hg@0
   168
        <property name="application.args" value=""/>
franta-hg@0
   169
        <property name="source.encoding" value="${file.encoding}"/>
franta-hg@5
   170
        <property name="runtime.encoding" value="${source.encoding}"/>
franta-hg@0
   171
        <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
franta-hg@0
   172
            <and>
franta-hg@0
   173
                <isset property="javadoc.encoding"/>
franta-hg@0
   174
                <not>
franta-hg@0
   175
                    <equals arg1="${javadoc.encoding}" arg2=""/>
franta-hg@0
   176
                </not>
franta-hg@0
   177
            </and>
franta-hg@0
   178
        </condition>
franta-hg@0
   179
        <property name="javadoc.encoding.used" value="${source.encoding}"/>
franta-hg@0
   180
        <property name="includes" value="**"/>
franta-hg@0
   181
        <property name="excludes" value=""/>
franta-hg@0
   182
        <property name="do.depend" value="false"/>
franta-hg@0
   183
        <condition property="do.depend.true">
franta-hg@0
   184
            <istrue value="${do.depend}"/>
franta-hg@0
   185
        </condition>
franta-hg@5
   186
        <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
franta-hg@5
   187
        <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
franta-hg@5
   188
            <length length="0" string="${endorsed.classpath}" when="greater"/>
franta-hg@0
   189
        </condition>
franta-hg@13
   190
        <condition else="false" property="jdkBug6558476">
franta-hg@13
   191
            <and>
franta-hg@13
   192
                <matches pattern="1\.[56]" string="${java.specification.version}"/>
franta-hg@13
   193
                <not>
franta-hg@13
   194
                    <os family="unix"/>
franta-hg@13
   195
                </not>
franta-hg@13
   196
            </and>
franta-hg@13
   197
        </condition>
franta-hg@13
   198
        <property name="javac.fork" value="${jdkBug6558476}"/>
franta-hg@5
   199
        <property name="jar.index" value="false"/>
franta-hg@13
   200
        <property name="jar.index.metainf" value="${jar.index}"/>
franta-hg@5
   201
        <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
franta-hg@0
   202
    </target>
franta-hg@0
   203
    <target name="-post-init">
franta-hg@0
   204
        <!-- Empty placeholder for easier customization. -->
franta-hg@0
   205
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@0
   206
    </target>
franta-hg@0
   207
    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
franta-hg@0
   208
        <fail unless="src.dir">Must set src.dir</fail>
franta-hg@0
   209
        <fail unless="test.src.dir">Must set test.src.dir</fail>
franta-hg@0
   210
        <fail unless="build.dir">Must set build.dir</fail>
franta-hg@0
   211
        <fail unless="dist.dir">Must set dist.dir</fail>
franta-hg@0
   212
        <fail unless="build.classes.dir">Must set build.classes.dir</fail>
franta-hg@0
   213
        <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
franta-hg@0
   214
        <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
franta-hg@0
   215
        <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
franta-hg@0
   216
        <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
franta-hg@0
   217
        <fail unless="dist.jar">Must set dist.jar</fail>
franta-hg@0
   218
    </target>
franta-hg@0
   219
    <target name="-init-macrodef-property">
franta-hg@0
   220
        <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
franta-hg@0
   221
            <attribute name="name"/>
franta-hg@0
   222
            <attribute name="value"/>
franta-hg@0
   223
            <sequential>
franta-hg@0
   224
                <property name="@{name}" value="${@{value}}"/>
franta-hg@0
   225
            </sequential>
franta-hg@0
   226
        </macrodef>
franta-hg@0
   227
    </target>
franta-hg@5
   228
    <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
franta-hg@0
   229
        <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
franta-hg@0
   230
            <attribute default="${src.dir}" name="srcdir"/>
franta-hg@0
   231
            <attribute default="${build.classes.dir}" name="destdir"/>
franta-hg@0
   232
            <attribute default="${javac.classpath}" name="classpath"/>
franta-hg@5
   233
            <attribute default="${javac.processorpath}" name="processorpath"/>
franta-hg@5
   234
            <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
franta-hg@0
   235
            <attribute default="${includes}" name="includes"/>
franta-hg@0
   236
            <attribute default="${excludes}" name="excludes"/>
franta-hg@0
   237
            <attribute default="${javac.debug}" name="debug"/>
franta-hg@5
   238
            <attribute default="${empty.dir}" name="sourcepath"/>
franta-hg@5
   239
            <attribute default="${empty.dir}" name="gensrcdir"/>
franta-hg@0
   240
            <element name="customize" optional="true"/>
franta-hg@0
   241
            <sequential>
franta-hg@5
   242
                <property location="${build.dir}/empty" name="empty.dir"/>
franta-hg@5
   243
                <mkdir dir="${empty.dir}"/>
franta-hg@5
   244
                <mkdir dir="@{apgeneratedsrcdir}"/>
franta-hg@5
   245
                <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@5
   246
                    <src>
franta-hg@5
   247
                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
franta-hg@5
   248
                            <include name="*"/>
franta-hg@5
   249
                        </dirset>
franta-hg@5
   250
                    </src>
franta-hg@0
   251
                    <classpath>
franta-hg@0
   252
                        <path path="@{classpath}"/>
franta-hg@0
   253
                    </classpath>
franta-hg@5
   254
                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
franta-hg@5
   255
                    <compilerarg line="${javac.compilerargs}"/>
franta-hg@5
   256
                    <compilerarg value="-processorpath"/>
franta-hg@5
   257
                    <compilerarg path="@{processorpath}:${empty.dir}"/>
franta-hg@5
   258
                    <compilerarg line="${ap.processors.internal}"/>
franta-hg@5
   259
                    <compilerarg line="${annotation.processing.processor.options}"/>
franta-hg@5
   260
                    <compilerarg value="-s"/>
franta-hg@5
   261
                    <compilerarg path="@{apgeneratedsrcdir}"/>
franta-hg@5
   262
                    <compilerarg line="${ap.proc.none.internal}"/>
franta-hg@0
   263
                    <customize/>
franta-hg@0
   264
                </javac>
franta-hg@0
   265
            </sequential>
franta-hg@0
   266
        </macrodef>
franta-hg@5
   267
    </target>
franta-hg@5
   268
    <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
franta-hg@5
   269
        <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
franta-hg@5
   270
            <attribute default="${src.dir}" name="srcdir"/>
franta-hg@5
   271
            <attribute default="${build.classes.dir}" name="destdir"/>
franta-hg@5
   272
            <attribute default="${javac.classpath}" name="classpath"/>
franta-hg@5
   273
            <attribute default="${javac.processorpath}" name="processorpath"/>
franta-hg@5
   274
            <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
franta-hg@5
   275
            <attribute default="${includes}" name="includes"/>
franta-hg@5
   276
            <attribute default="${excludes}" name="excludes"/>
franta-hg@5
   277
            <attribute default="${javac.debug}" name="debug"/>
franta-hg@5
   278
            <attribute default="${empty.dir}" name="sourcepath"/>
franta-hg@5
   279
            <attribute default="${empty.dir}" name="gensrcdir"/>
franta-hg@5
   280
            <element name="customize" optional="true"/>
franta-hg@5
   281
            <sequential>
franta-hg@5
   282
                <property location="${build.dir}/empty" name="empty.dir"/>
franta-hg@5
   283
                <mkdir dir="${empty.dir}"/>
franta-hg@5
   284
                <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@5
   285
                    <src>
franta-hg@5
   286
                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
franta-hg@5
   287
                            <include name="*"/>
franta-hg@5
   288
                        </dirset>
franta-hg@5
   289
                    </src>
franta-hg@5
   290
                    <classpath>
franta-hg@5
   291
                        <path path="@{classpath}"/>
franta-hg@5
   292
                    </classpath>
franta-hg@5
   293
                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
franta-hg@5
   294
                    <compilerarg line="${javac.compilerargs}"/>
franta-hg@5
   295
                    <customize/>
franta-hg@5
   296
                </javac>
franta-hg@5
   297
            </sequential>
franta-hg@5
   298
        </macrodef>
franta-hg@5
   299
    </target>
franta-hg@5
   300
    <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
franta-hg@0
   301
        <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
franta-hg@0
   302
            <attribute default="${src.dir}" name="srcdir"/>
franta-hg@0
   303
            <attribute default="${build.classes.dir}" name="destdir"/>
franta-hg@0
   304
            <attribute default="${javac.classpath}" name="classpath"/>
franta-hg@0
   305
            <sequential>
franta-hg@0
   306
                <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
franta-hg@0
   307
                    <classpath>
franta-hg@0
   308
                        <path path="@{classpath}"/>
franta-hg@0
   309
                    </classpath>
franta-hg@0
   310
                </depend>
franta-hg@0
   311
            </sequential>
franta-hg@0
   312
        </macrodef>
franta-hg@0
   313
        <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
franta-hg@0
   314
            <attribute default="${build.classes.dir}" name="destdir"/>
franta-hg@0
   315
            <sequential>
franta-hg@0
   316
                <fail unless="javac.includes">Must set javac.includes</fail>
franta-hg@8
   317
                <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
franta-hg@0
   318
                    <path>
franta-hg@0
   319
                        <filelist dir="@{destdir}" files="${javac.includes}"/>
franta-hg@0
   320
                    </path>
franta-hg@0
   321
                    <globmapper from="*.java" to="*.class"/>
franta-hg@0
   322
                </pathconvert>
franta-hg@8
   323
                <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
franta-hg@8
   324
                <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
franta-hg@0
   325
                <delete>
franta-hg@8
   326
                    <files includesfile="${javac.includesfile.binary}"/>
franta-hg@0
   327
                </delete>
franta-hg@13
   328
                <delete>
franta-hg@13
   329
                    <fileset file="${javac.includesfile.binary}"/>
franta-hg@13
   330
                </delete>
franta-hg@0
   331
            </sequential>
franta-hg@0
   332
        </macrodef>
franta-hg@0
   333
    </target>
franta-hg@0
   334
    <target name="-init-macrodef-junit">
franta-hg@0
   335
        <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
franta-hg@0
   336
            <attribute default="${includes}" name="includes"/>
franta-hg@0
   337
            <attribute default="${excludes}" name="excludes"/>
franta-hg@0
   338
            <attribute default="**" name="testincludes"/>
franta-hg@0
   339
            <sequential>
franta-hg@13
   340
                <property name="junit.forkmode" value="perTest"/>
franta-hg@13
   341
                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
franta-hg@0
   342
                    <batchtest todir="${build.test.results.dir}">
franta-hg@0
   343
                        <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
franta-hg@0
   344
                            <filename name="@{testincludes}"/>
franta-hg@0
   345
                        </fileset>
franta-hg@0
   346
                    </batchtest>
franta-hg@0
   347
                    <classpath>
franta-hg@0
   348
                        <path path="${run.test.classpath}"/>
franta-hg@0
   349
                    </classpath>
franta-hg@0
   350
                    <syspropertyset>
franta-hg@0
   351
                        <propertyref prefix="test-sys-prop."/>
franta-hg@0
   352
                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
franta-hg@0
   353
                    </syspropertyset>
franta-hg@0
   354
                    <formatter type="brief" usefile="false"/>
franta-hg@0
   355
                    <formatter type="xml"/>
franta-hg@5
   356
                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
franta-hg@13
   357
                    <jvmarg value="-ea"/>
franta-hg@0
   358
                    <jvmarg line="${run.jvmargs}"/>
franta-hg@0
   359
                </junit>
franta-hg@0
   360
            </sequential>
franta-hg@0
   361
        </macrodef>
franta-hg@0
   362
    </target>
franta-hg@13
   363
    <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" name="profile-init"/>
franta-hg@13
   364
    <target name="-profile-pre-init">
franta-hg@13
   365
        <!-- Empty placeholder for easier customization. -->
franta-hg@13
   366
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@13
   367
    </target>
franta-hg@13
   368
    <target name="-profile-post-init">
franta-hg@13
   369
        <!-- Empty placeholder for easier customization. -->
franta-hg@13
   370
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@13
   371
    </target>
franta-hg@13
   372
    <target name="-profile-init-macrodef-profile">
franta-hg@13
   373
        <macrodef name="resolve">
franta-hg@13
   374
            <attribute name="name"/>
franta-hg@13
   375
            <attribute name="value"/>
franta-hg@13
   376
            <sequential>
franta-hg@13
   377
                <property name="@{name}" value="${env.@{value}}"/>
franta-hg@13
   378
            </sequential>
franta-hg@13
   379
        </macrodef>
franta-hg@13
   380
        <macrodef name="profile">
franta-hg@13
   381
            <attribute default="${main.class}" name="classname"/>
franta-hg@13
   382
            <element name="customize" optional="true"/>
franta-hg@13
   383
            <sequential>
franta-hg@13
   384
                <property environment="env"/>
franta-hg@13
   385
                <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
franta-hg@13
   386
                <java classname="@{classname}" dir="${profiler.info.dir}" fork="true" jvm="${profiler.info.jvm}">
franta-hg@13
   387
                    <jvmarg value="${profiler.info.jvmargs.agent}"/>
franta-hg@13
   388
                    <jvmarg line="${profiler.info.jvmargs}"/>
franta-hg@13
   389
                    <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
franta-hg@13
   390
                    <arg line="${application.args}"/>
franta-hg@13
   391
                    <classpath>
franta-hg@13
   392
                        <path path="${run.classpath}"/>
franta-hg@13
   393
                    </classpath>
franta-hg@13
   394
                    <syspropertyset>
franta-hg@13
   395
                        <propertyref prefix="run-sys-prop."/>
franta-hg@13
   396
                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
franta-hg@13
   397
                    </syspropertyset>
franta-hg@13
   398
                    <customize/>
franta-hg@13
   399
                </java>
franta-hg@13
   400
            </sequential>
franta-hg@13
   401
        </macrodef>
franta-hg@13
   402
    </target>
franta-hg@13
   403
    <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" name="-profile-init-check">
franta-hg@13
   404
        <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
franta-hg@13
   405
        <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
franta-hg@13
   406
    </target>
franta-hg@3
   407
    <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
franta-hg@0
   408
        <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
franta-hg@0
   409
            <attribute default="${main.class}" name="name"/>
franta-hg@0
   410
            <attribute default="${debug.classpath}" name="classpath"/>
franta-hg@0
   411
            <attribute default="" name="stopclassname"/>
franta-hg@0
   412
            <sequential>
franta-hg@3
   413
                <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
franta-hg@0
   414
                    <classpath>
franta-hg@0
   415
                        <path path="@{classpath}"/>
franta-hg@0
   416
                    </classpath>
franta-hg@0
   417
                </nbjpdastart>
franta-hg@0
   418
            </sequential>
franta-hg@0
   419
        </macrodef>
franta-hg@0
   420
        <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
franta-hg@0
   421
            <attribute default="${build.classes.dir}" name="dir"/>
franta-hg@0
   422
            <sequential>
franta-hg@0
   423
                <nbjpdareload>
franta-hg@0
   424
                    <fileset dir="@{dir}" includes="${fix.classes}">
franta-hg@0
   425
                        <include name="${fix.includes}*.class"/>
franta-hg@0
   426
                    </fileset>
franta-hg@0
   427
                </nbjpdareload>
franta-hg@0
   428
            </sequential>
franta-hg@0
   429
        </macrodef>
franta-hg@0
   430
    </target>
franta-hg@0
   431
    <target name="-init-debug-args">
franta-hg@0
   432
        <property name="version-output" value="java version &quot;${ant.java.version}"/>
franta-hg@0
   433
        <condition property="have-jdk-older-than-1.4">
franta-hg@0
   434
            <or>
franta-hg@0
   435
                <contains string="${version-output}" substring="java version &quot;1.0"/>
franta-hg@0
   436
                <contains string="${version-output}" substring="java version &quot;1.1"/>
franta-hg@0
   437
                <contains string="${version-output}" substring="java version &quot;1.2"/>
franta-hg@0
   438
                <contains string="${version-output}" substring="java version &quot;1.3"/>
franta-hg@0
   439
            </or>
franta-hg@0
   440
        </condition>
franta-hg@0
   441
        <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
franta-hg@0
   442
            <istrue value="${have-jdk-older-than-1.4}"/>
franta-hg@0
   443
        </condition>
franta-hg@3
   444
        <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
franta-hg@3
   445
            <os family="windows"/>
franta-hg@3
   446
        </condition>
franta-hg@3
   447
        <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
franta-hg@3
   448
            <isset property="debug.transport"/>
franta-hg@3
   449
        </condition>
franta-hg@0
   450
    </target>
franta-hg@0
   451
    <target depends="-init-debug-args" name="-init-macrodef-debug">
franta-hg@0
   452
        <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
franta-hg@0
   453
            <attribute default="${main.class}" name="classname"/>
franta-hg@0
   454
            <attribute default="${debug.classpath}" name="classpath"/>
franta-hg@0
   455
            <element name="customize" optional="true"/>
franta-hg@0
   456
            <sequential>
franta-hg@0
   457
                <java classname="@{classname}" dir="${work.dir}" fork="true">
franta-hg@5
   458
                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
franta-hg@0
   459
                    <jvmarg line="${debug-args-line}"/>
franta-hg@3
   460
                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
franta-hg@5
   461
                    <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
franta-hg@5
   462
                    <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
franta-hg@0
   463
                    <jvmarg line="${run.jvmargs}"/>
franta-hg@0
   464
                    <classpath>
franta-hg@0
   465
                        <path path="@{classpath}"/>
franta-hg@0
   466
                    </classpath>
franta-hg@0
   467
                    <syspropertyset>
franta-hg@0
   468
                        <propertyref prefix="run-sys-prop."/>
franta-hg@0
   469
                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
franta-hg@0
   470
                    </syspropertyset>
franta-hg@0
   471
                    <customize/>
franta-hg@0
   472
                </java>
franta-hg@0
   473
            </sequential>
franta-hg@0
   474
        </macrodef>
franta-hg@0
   475
    </target>
franta-hg@0
   476
    <target name="-init-macrodef-java">
franta-hg@0
   477
        <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
franta-hg@0
   478
            <attribute default="${main.class}" name="classname"/>
franta-hg@5
   479
            <attribute default="${run.classpath}" name="classpath"/>
franta-hg@0
   480
            <element name="customize" optional="true"/>
franta-hg@0
   481
            <sequential>
franta-hg@0
   482
                <java classname="@{classname}" dir="${work.dir}" fork="true">
franta-hg@5
   483
                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
franta-hg@5
   484
                    <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
franta-hg@5
   485
                    <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
franta-hg@0
   486
                    <jvmarg line="${run.jvmargs}"/>
franta-hg@0
   487
                    <classpath>
franta-hg@5
   488
                        <path path="@{classpath}"/>
franta-hg@0
   489
                    </classpath>
franta-hg@0
   490
                    <syspropertyset>
franta-hg@0
   491
                        <propertyref prefix="run-sys-prop."/>
franta-hg@0
   492
                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
franta-hg@0
   493
                    </syspropertyset>
franta-hg@0
   494
                    <customize/>
franta-hg@0
   495
                </java>
franta-hg@0
   496
            </sequential>
franta-hg@0
   497
        </macrodef>
franta-hg@0
   498
    </target>
franta-hg@5
   499
    <target name="-init-macrodef-copylibs">
franta-hg@5
   500
        <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">
franta-hg@13
   501
            <attribute default="${manifest.file}" name="manifest"/>
franta-hg@5
   502
            <element name="customize" optional="true"/>
franta-hg@5
   503
            <sequential>
franta-hg@5
   504
                <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
franta-hg@5
   505
                <pathconvert property="run.classpath.without.build.classes.dir">
franta-hg@5
   506
                    <path path="${run.classpath}"/>
franta-hg@5
   507
                    <map from="${build.classes.dir.resolved}" to=""/>
franta-hg@5
   508
                </pathconvert>
franta-hg@5
   509
                <pathconvert pathsep=" " property="jar.classpath">
franta-hg@5
   510
                    <path path="${run.classpath.without.build.classes.dir}"/>
franta-hg@5
   511
                    <chainedmapper>
franta-hg@5
   512
                        <flattenmapper/>
franta-hg@5
   513
                        <globmapper from="*" to="lib/*"/>
franta-hg@5
   514
                    </chainedmapper>
franta-hg@5
   515
                </pathconvert>
franta-hg@5
   516
                <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
franta-hg@13
   517
                <copylibs compress="${jar.compress}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
franta-hg@5
   518
                    <fileset dir="${build.classes.dir}"/>
franta-hg@5
   519
                    <manifest>
franta-hg@5
   520
                        <attribute name="Class-Path" value="${jar.classpath}"/>
franta-hg@5
   521
                        <customize/>
franta-hg@5
   522
                    </manifest>
franta-hg@5
   523
                </copylibs>
franta-hg@5
   524
            </sequential>
franta-hg@5
   525
        </macrodef>
franta-hg@5
   526
    </target>
franta-hg@0
   527
    <target name="-init-presetdef-jar">
franta-hg@0
   528
        <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
franta-hg@5
   529
            <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">
franta-hg@0
   530
                <j2seproject1:fileset dir="${build.classes.dir}"/>
franta-hg@0
   531
            </jar>
franta-hg@0
   532
        </presetdef>
franta-hg@0
   533
    </target>
franta-hg@5
   534
    <target name="-init-ap-cmdline-properties">
franta-hg@5
   535
        <property name="annotation.processing.enabled" value="true"/>
franta-hg@5
   536
        <property name="annotation.processing.processors.list" value=""/>
franta-hg@5
   537
        <property name="annotation.processing.processor.options" value=""/>
franta-hg@5
   538
        <property name="annotation.processing.run.all.processors" value="true"/>
franta-hg@5
   539
        <property name="javac.processorpath" value="${javac.classpath}"/>
franta-hg@5
   540
        <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
franta-hg@5
   541
        <condition property="ap.supported.internal" value="true">
franta-hg@5
   542
            <not>
franta-hg@5
   543
                <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
franta-hg@5
   544
            </not>
franta-hg@5
   545
        </condition>
franta-hg@5
   546
    </target>
franta-hg@5
   547
    <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
franta-hg@5
   548
        <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
franta-hg@5
   549
            <isfalse value="${annotation.processing.run.all.processors}"/>
franta-hg@5
   550
        </condition>
franta-hg@5
   551
        <condition else="" property="ap.proc.none.internal" value="-proc:none">
franta-hg@5
   552
            <isfalse value="${annotation.processing.enabled}"/>
franta-hg@5
   553
        </condition>
franta-hg@5
   554
    </target>
franta-hg@5
   555
    <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
franta-hg@5
   556
        <property name="ap.cmd.line.internal" value=""/>
franta-hg@5
   557
    </target>
franta-hg@5
   558
    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-junit,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar,-init-ap-cmdline" name="init"/>
franta-hg@0
   559
    <!--
franta-hg@0
   560
                ===================
franta-hg@0
   561
                COMPILATION SECTION
franta-hg@0
   562
                ===================
franta-hg@0
   563
            -->
franta-hg@5
   564
    <target name="-deps-jar-init" unless="built-jar.properties">
franta-hg@5
   565
        <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>
franta-hg@5
   566
        <delete file="${built-jar.properties}" quiet="true"/>
franta-hg@5
   567
    </target>
franta-hg@5
   568
    <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
franta-hg@5
   569
        <echo level="warn" message="Cycle detected: Postak was already built"/>
franta-hg@5
   570
    </target>
franta-hg@5
   571
    <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
franta-hg@5
   572
        <mkdir dir="${build.dir}"/>
franta-hg@5
   573
        <touch file="${built-jar.properties}" verbose="false"/>
franta-hg@5
   574
        <property file="${built-jar.properties}" prefix="already.built.jar."/>
franta-hg@5
   575
        <antcall target="-warn-already-built-jar"/>
franta-hg@5
   576
        <propertyfile file="${built-jar.properties}">
franta-hg@5
   577
            <entry key="${basedir}" value=""/>
franta-hg@5
   578
        </propertyfile>
franta-hg@5
   579
    </target>
franta-hg@3
   580
    <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
franta-hg@3
   581
    <target depends="init" name="-check-automatic-build">
franta-hg@3
   582
        <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
franta-hg@3
   583
    </target>
franta-hg@3
   584
    <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
franta-hg@3
   585
        <antcall target="clean"/>
franta-hg@3
   586
    </target>
franta-hg@0
   587
    <target depends="init,deps-jar" name="-pre-pre-compile">
franta-hg@0
   588
        <mkdir dir="${build.classes.dir}"/>
franta-hg@0
   589
    </target>
franta-hg@0
   590
    <target name="-pre-compile">
franta-hg@0
   591
        <!-- Empty placeholder for easier customization. -->
franta-hg@0
   592
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@0
   593
    </target>
franta-hg@0
   594
    <target if="do.depend.true" name="-compile-depend">
franta-hg@5
   595
        <pathconvert property="build.generated.subdirs">
franta-hg@5
   596
            <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
franta-hg@5
   597
                <include name="*"/>
franta-hg@5
   598
            </dirset>
franta-hg@5
   599
        </pathconvert>
franta-hg@5
   600
        <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>
franta-hg@0
   601
    </target>
franta-hg@5
   602
    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">
franta-hg@5
   603
        <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
franta-hg@0
   604
        <copy todir="${build.classes.dir}">
franta-hg@0
   605
            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
franta-hg@0
   606
        </copy>
franta-hg@0
   607
    </target>
franta-hg@5
   608
    <target if="has.persistence.xml" name="-copy-persistence-xml">
franta-hg@5
   609
        <mkdir dir="${build.classes.dir}/META-INF"/>
franta-hg@5
   610
        <copy todir="${build.classes.dir}/META-INF">
franta-hg@5
   611
            <fileset dir="${meta.inf.dir}" includes="persistence.xml"/>
franta-hg@5
   612
        </copy>
franta-hg@5
   613
    </target>
franta-hg@0
   614
    <target name="-post-compile">
franta-hg@0
   615
        <!-- Empty placeholder for easier customization. -->
franta-hg@0
   616
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@0
   617
    </target>
franta-hg@3
   618
    <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
franta-hg@0
   619
    <target name="-pre-compile-single">
franta-hg@0
   620
        <!-- Empty placeholder for easier customization. -->
franta-hg@0
   621
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@0
   622
    </target>
franta-hg@0
   623
    <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
franta-hg@0
   624
        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
franta-hg@0
   625
        <j2seproject3:force-recompile/>
franta-hg@5
   626
        <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>
franta-hg@0
   627
    </target>
franta-hg@0
   628
    <target name="-post-compile-single">
franta-hg@0
   629
        <!-- Empty placeholder for easier customization. -->
franta-hg@0
   630
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@0
   631
    </target>
franta-hg@3
   632
    <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
franta-hg@0
   633
    <!--
franta-hg@0
   634
                ====================
franta-hg@0
   635
                JAR BUILDING SECTION
franta-hg@0
   636
                ====================
franta-hg@0
   637
            -->
franta-hg@0
   638
    <target depends="init" name="-pre-pre-jar">
franta-hg@0
   639
        <dirname file="${dist.jar}" property="dist.jar.dir"/>
franta-hg@0
   640
        <mkdir dir="${dist.jar.dir}"/>
franta-hg@0
   641
    </target>
franta-hg@0
   642
    <target name="-pre-jar">
franta-hg@0
   643
        <!-- Empty placeholder for easier customization. -->
franta-hg@0
   644
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@0
   645
    </target>
franta-hg@13
   646
    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive" name="-do-jar-without-manifest" unless="manifest.available-mkdist.available">
franta-hg@0
   647
        <j2seproject1:jar/>
franta-hg@0
   648
    </target>
franta-hg@13
   649
    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class-mkdist.available">
franta-hg@0
   650
        <j2seproject1:jar manifest="${manifest.file}"/>
franta-hg@0
   651
    </target>
franta-hg@5
   652
    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available">
franta-hg@0
   653
        <j2seproject1:jar manifest="${manifest.file}">
franta-hg@0
   654
            <j2seproject1:manifest>
franta-hg@0
   655
                <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
franta-hg@0
   656
            </j2seproject1:manifest>
franta-hg@0
   657
        </j2seproject1:jar>
franta-hg@13
   658
        <echo level="info">To run this application from the command line without Ant, try:</echo>
franta-hg@0
   659
        <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
franta-hg@0
   660
        <property location="${dist.jar}" name="dist.jar.resolved"/>
franta-hg@0
   661
        <pathconvert property="run.classpath.with.dist.jar">
franta-hg@0
   662
            <path path="${run.classpath}"/>
franta-hg@0
   663
            <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
franta-hg@0
   664
        </pathconvert>
franta-hg@13
   665
        <echo level="info">java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
franta-hg@0
   666
    </target>
franta-hg@13
   667
    <target depends="init" if="do.archive" name="-do-jar-with-libraries-create-manifest" unless="manifest.available">
franta-hg@13
   668
        <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
franta-hg@13
   669
        <touch file="${tmp.manifest.file}" verbose="false"/>
franta-hg@13
   670
    </target>
franta-hg@13
   671
    <target depends="init" if="do.archive+manifest.available" name="-do-jar-with-libraries-copy-manifest">
franta-hg@13
   672
        <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
franta-hg@13
   673
        <copy file="${manifest.file}" tofile="${tmp.manifest.file}"/>
franta-hg@13
   674
    </target>
franta-hg@13
   675
    <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@13
   676
        <manifest file="${tmp.manifest.file}" mode="update">
franta-hg@13
   677
            <attribute name="Main-Class" value="${main.class}"/>
franta-hg@13
   678
        </manifest>
franta-hg@13
   679
    </target>
franta-hg@13
   680
    <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@5
   681
        <basename file="${application.splash}" property="splashscreen.basename"/>
franta-hg@5
   682
        <mkdir dir="${build.classes.dir}/META-INF"/>
franta-hg@5
   683
        <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
franta-hg@13
   684
        <manifest file="${tmp.manifest.file}" mode="update">
franta-hg@13
   685
            <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
franta-hg@13
   686
        </manifest>
franta-hg@13
   687
    </target>
franta-hg@13
   688
    <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@13
   689
        <j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
franta-hg@13
   690
        <echo level="info">To run this application from the command line without Ant, try:</echo>
franta-hg@5
   691
        <property location="${dist.jar}" name="dist.jar.resolved"/>
franta-hg@13
   692
        <echo level="info">java -jar "${dist.jar.resolved}"</echo>
franta-hg@5
   693
    </target>
franta-hg@13
   694
    <target depends="-do-jar-with-libraries-pack" if="do.archive" name="-do-jar-with-libraries-delete-manifest">
franta-hg@13
   695
        <delete>
franta-hg@13
   696
            <fileset file="${tmp.manifest.file}"/>
franta-hg@13
   697
        </delete>
franta-hg@0
   698
    </target>
franta-hg@13
   699
    <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen,-do-jar-with-libraries-pack,-do-jar-with-libraries-delete-manifest" name="-do-jar-with-libraries"/>
franta-hg@0
   700
    <target name="-post-jar">
franta-hg@0
   701
        <!-- Empty placeholder for easier customization. -->
franta-hg@0
   702
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@0
   703
    </target>
franta-hg@13
   704
    <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-post-jar" description="Build JAR." name="jar"/>
franta-hg@0
   705
    <!--
franta-hg@0
   706
                =================
franta-hg@0
   707
                EXECUTION SECTION
franta-hg@0
   708
                =================
franta-hg@0
   709
            -->
franta-hg@0
   710
    <target depends="init,compile" description="Run a main class." name="run">
franta-hg@0
   711
        <j2seproject1:java>
franta-hg@0
   712
            <customize>
franta-hg@0
   713
                <arg line="${application.args}"/>
franta-hg@0
   714
            </customize>
franta-hg@0
   715
        </j2seproject1:java>
franta-hg@0
   716
    </target>
franta-hg@0
   717
    <target name="-do-not-recompile">
franta-hg@0
   718
        <property name="javac.includes.binary" value=""/>
franta-hg@0
   719
    </target>
franta-hg@5
   720
    <target depends="init,compile-single" name="run-single">
franta-hg@0
   721
        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
franta-hg@0
   722
        <j2seproject1:java classname="${run.class}"/>
franta-hg@0
   723
    </target>
franta-hg@5
   724
    <target depends="init,compile-test-single" name="run-test-with-main">
franta-hg@5
   725
        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
franta-hg@5
   726
        <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
franta-hg@5
   727
    </target>
franta-hg@0
   728
    <!--
franta-hg@0
   729
                =================
franta-hg@0
   730
                DEBUGGING SECTION
franta-hg@0
   731
                =================
franta-hg@0
   732
            -->
franta-hg@0
   733
    <target depends="init" if="netbeans.home" name="-debug-start-debugger">
franta-hg@0
   734
        <j2seproject1:nbjpdastart name="${debug.class}"/>
franta-hg@0
   735
    </target>
franta-hg@5
   736
    <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
franta-hg@5
   737
        <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
franta-hg@5
   738
    </target>
franta-hg@0
   739
    <target depends="init,compile" name="-debug-start-debuggee">
franta-hg@0
   740
        <j2seproject3:debug>
franta-hg@0
   741
            <customize>
franta-hg@0
   742
                <arg line="${application.args}"/>
franta-hg@0
   743
            </customize>
franta-hg@0
   744
        </j2seproject3:debug>
franta-hg@0
   745
    </target>
franta-hg@0
   746
    <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
franta-hg@0
   747
    <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
franta-hg@0
   748
        <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
franta-hg@0
   749
    </target>
franta-hg@0
   750
    <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
franta-hg@0
   751
    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
franta-hg@0
   752
        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
franta-hg@0
   753
        <j2seproject3:debug classname="${debug.class}"/>
franta-hg@0
   754
    </target>
franta-hg@5
   755
    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
franta-hg@5
   756
    <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
franta-hg@5
   757
        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
franta-hg@5
   758
        <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
franta-hg@5
   759
    </target>
franta-hg@5
   760
    <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
franta-hg@0
   761
    <target depends="init" name="-pre-debug-fix">
franta-hg@0
   762
        <fail unless="fix.includes">Must set fix.includes</fail>
franta-hg@0
   763
        <property name="javac.includes" value="${fix.includes}.java"/>
franta-hg@0
   764
    </target>
franta-hg@0
   765
    <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
franta-hg@0
   766
        <j2seproject1:nbjpdareload/>
franta-hg@0
   767
    </target>
franta-hg@0
   768
    <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
franta-hg@0
   769
    <!--
franta-hg@13
   770
                =================
franta-hg@13
   771
                PROFILING SECTION
franta-hg@13
   772
                =================
franta-hg@13
   773
            -->
franta-hg@13
   774
    <target depends="profile-init,compile" description="Profile a project in the IDE." if="netbeans.home" name="profile">
franta-hg@13
   775
        <nbprofiledirect>
franta-hg@13
   776
            <classpath>
franta-hg@13
   777
                <path path="${run.classpath}"/>
franta-hg@13
   778
            </classpath>
franta-hg@13
   779
        </nbprofiledirect>
franta-hg@13
   780
        <profile/>
franta-hg@13
   781
    </target>
franta-hg@13
   782
    <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="netbeans.home" name="profile-single">
franta-hg@13
   783
        <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail>
franta-hg@13
   784
        <nbprofiledirect>
franta-hg@13
   785
            <classpath>
franta-hg@13
   786
                <path path="${run.classpath}"/>
franta-hg@13
   787
            </classpath>
franta-hg@13
   788
        </nbprofiledirect>
franta-hg@13
   789
        <profile classname="${profile.class}"/>
franta-hg@13
   790
    </target>
franta-hg@13
   791
    <!--
franta-hg@13
   792
                =========================
franta-hg@13
   793
                APPLET PROFILING  SECTION
franta-hg@13
   794
                =========================
franta-hg@13
   795
            -->
franta-hg@13
   796
    <target depends="profile-init,compile-single" if="netbeans.home" name="profile-applet">
franta-hg@13
   797
        <nbprofiledirect>
franta-hg@13
   798
            <classpath>
franta-hg@13
   799
                <path path="${run.classpath}"/>
franta-hg@13
   800
            </classpath>
franta-hg@13
   801
        </nbprofiledirect>
franta-hg@13
   802
        <profile classname="sun.applet.AppletViewer">
franta-hg@13
   803
            <customize>
franta-hg@13
   804
                <arg value="${applet.url}"/>
franta-hg@13
   805
            </customize>
franta-hg@13
   806
        </profile>
franta-hg@13
   807
    </target>
franta-hg@13
   808
    <!--
franta-hg@13
   809
                =========================
franta-hg@13
   810
                TESTS PROFILING  SECTION
franta-hg@13
   811
                =========================
franta-hg@13
   812
            -->
franta-hg@13
   813
    <target depends="profile-init,compile-test-single" if="netbeans.home" name="profile-test-single">
franta-hg@13
   814
        <nbprofiledirect>
franta-hg@13
   815
            <classpath>
franta-hg@13
   816
                <path path="${run.test.classpath}"/>
franta-hg@13
   817
            </classpath>
franta-hg@13
   818
        </nbprofiledirect>
franta-hg@13
   819
        <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
franta-hg@13
   820
            <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
franta-hg@13
   821
            <jvmarg value="${profiler.info.jvmargs.agent}"/>
franta-hg@13
   822
            <jvmarg line="${profiler.info.jvmargs}"/>
franta-hg@13
   823
            <test name="${profile.class}"/>
franta-hg@13
   824
            <classpath>
franta-hg@13
   825
                <path path="${run.test.classpath}"/>
franta-hg@13
   826
            </classpath>
franta-hg@13
   827
            <syspropertyset>
franta-hg@13
   828
                <propertyref prefix="test-sys-prop."/>
franta-hg@13
   829
                <mapper from="test-sys-prop.*" to="*" type="glob"/>
franta-hg@13
   830
            </syspropertyset>
franta-hg@13
   831
            <formatter type="brief" usefile="false"/>
franta-hg@13
   832
            <formatter type="xml"/>
franta-hg@13
   833
        </junit>
franta-hg@13
   834
    </target>
franta-hg@13
   835
    <!--
franta-hg@0
   836
                ===============
franta-hg@0
   837
                JAVADOC SECTION
franta-hg@0
   838
                ===============
franta-hg@0
   839
            -->
franta-hg@5
   840
    <target depends="init" if="have.sources" name="-javadoc-build">
franta-hg@0
   841
        <mkdir dir="${dist.javadoc.dir}"/>
franta-hg@0
   842
        <javadoc additionalparam="${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}">
franta-hg@0
   843
            <classpath>
franta-hg@0
   844
                <path path="${javac.classpath}"/>
franta-hg@0
   845
            </classpath>
franta-hg@13
   846
            <fileset dir="${src.dir}" excludes="*.java,${excludes}" includes="${includes}">
franta-hg@0
   847
                <filename name="**/*.java"/>
franta-hg@0
   848
            </fileset>
franta-hg@5
   849
            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
franta-hg@5
   850
                <include name="**/*.java"/>
franta-hg@13
   851
                <exclude name="*.java"/>
franta-hg@5
   852
            </fileset>
franta-hg@0
   853
        </javadoc>
franta-hg@5
   854
        <copy todir="${dist.javadoc.dir}">
franta-hg@5
   855
            <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
franta-hg@5
   856
                <filename name="**/doc-files/**"/>
franta-hg@5
   857
            </fileset>
franta-hg@5
   858
            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
franta-hg@5
   859
                <include name="**/doc-files/**"/>
franta-hg@5
   860
            </fileset>
franta-hg@5
   861
        </copy>
franta-hg@0
   862
    </target>
franta-hg@0
   863
    <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
franta-hg@0
   864
        <nbbrowse file="${dist.javadoc.dir}/index.html"/>
franta-hg@0
   865
    </target>
franta-hg@0
   866
    <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
franta-hg@0
   867
    <!--
franta-hg@0
   868
                =========================
franta-hg@0
   869
                JUNIT COMPILATION SECTION
franta-hg@0
   870
                =========================
franta-hg@0
   871
            -->
franta-hg@0
   872
    <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
franta-hg@0
   873
        <mkdir dir="${build.test.classes.dir}"/>
franta-hg@0
   874
    </target>
franta-hg@0
   875
    <target name="-pre-compile-test">
franta-hg@0
   876
        <!-- Empty placeholder for easier customization. -->
franta-hg@0
   877
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@0
   878
    </target>
franta-hg@0
   879
    <target if="do.depend.true" name="-compile-test-depend">
franta-hg@0
   880
        <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
franta-hg@0
   881
    </target>
franta-hg@13
   882
    <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@5
   883
        <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" processorpath="${javac.test.processorpath}" srcdir="${test.src.dir}"/>
franta-hg@0
   884
        <copy todir="${build.test.classes.dir}">
franta-hg@0
   885
            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
franta-hg@0
   886
        </copy>
franta-hg@0
   887
    </target>
franta-hg@0
   888
    <target name="-post-compile-test">
franta-hg@0
   889
        <!-- Empty placeholder for easier customization. -->
franta-hg@0
   890
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@0
   891
    </target>
franta-hg@0
   892
    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
franta-hg@0
   893
    <target name="-pre-compile-test-single">
franta-hg@0
   894
        <!-- Empty placeholder for easier customization. -->
franta-hg@0
   895
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@0
   896
    </target>
franta-hg@13
   897
    <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
franta-hg@0
   898
        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
franta-hg@0
   899
        <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
franta-hg@5
   900
        <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" processorpath="${javac.test.processorpath}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}"/>
franta-hg@0
   901
        <copy todir="${build.test.classes.dir}">
franta-hg@0
   902
            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
franta-hg@0
   903
        </copy>
franta-hg@0
   904
    </target>
franta-hg@0
   905
    <target name="-post-compile-test-single">
franta-hg@0
   906
        <!-- Empty placeholder for easier customization. -->
franta-hg@0
   907
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@0
   908
    </target>
franta-hg@0
   909
    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
franta-hg@0
   910
    <!--
franta-hg@0
   911
                =======================
franta-hg@0
   912
                JUNIT EXECUTION SECTION
franta-hg@0
   913
                =======================
franta-hg@0
   914
            -->
franta-hg@0
   915
    <target depends="init" if="have.tests" name="-pre-test-run">
franta-hg@0
   916
        <mkdir dir="${build.test.results.dir}"/>
franta-hg@0
   917
    </target>
franta-hg@0
   918
    <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
franta-hg@0
   919
        <j2seproject3:junit testincludes="**/*Test.java"/>
franta-hg@0
   920
    </target>
franta-hg@0
   921
    <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
franta-hg@5
   922
        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
franta-hg@0
   923
    </target>
franta-hg@0
   924
    <target depends="init" if="have.tests" name="test-report"/>
franta-hg@0
   925
    <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
franta-hg@0
   926
    <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
franta-hg@0
   927
    <target depends="init" if="have.tests" name="-pre-test-run-single">
franta-hg@0
   928
        <mkdir dir="${build.test.results.dir}"/>
franta-hg@0
   929
    </target>
franta-hg@0
   930
    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
franta-hg@0
   931
        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
franta-hg@0
   932
        <j2seproject3:junit excludes="" includes="${test.includes}"/>
franta-hg@0
   933
    </target>
franta-hg@0
   934
    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
franta-hg@5
   935
        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
franta-hg@0
   936
    </target>
franta-hg@5
   937
    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>
franta-hg@0
   938
    <!--
franta-hg@0
   939
                =======================
franta-hg@0
   940
                JUNIT DEBUGGING SECTION
franta-hg@0
   941
                =======================
franta-hg@0
   942
            -->
franta-hg@0
   943
    <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
franta-hg@0
   944
        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
franta-hg@0
   945
        <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
franta-hg@0
   946
        <delete file="${test.report.file}"/>
franta-hg@0
   947
        <mkdir dir="${build.test.results.dir}"/>
franta-hg@0
   948
        <j2seproject3:debug classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner" classpath="${ant.home}/lib/ant.jar:${ant.home}/lib/ant-junit.jar:${debug.test.classpath}">
franta-hg@0
   949
            <customize>
franta-hg@0
   950
                <syspropertyset>
franta-hg@0
   951
                    <propertyref prefix="test-sys-prop."/>
franta-hg@0
   952
                    <mapper from="test-sys-prop.*" to="*" type="glob"/>
franta-hg@0
   953
                </syspropertyset>
franta-hg@0
   954
                <arg value="${test.class}"/>
franta-hg@0
   955
                <arg value="showoutput=true"/>
franta-hg@0
   956
                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
franta-hg@0
   957
                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
franta-hg@0
   958
            </customize>
franta-hg@0
   959
        </j2seproject3:debug>
franta-hg@0
   960
    </target>
franta-hg@0
   961
    <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
franta-hg@0
   962
        <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
franta-hg@0
   963
    </target>
franta-hg@5
   964
    <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
franta-hg@0
   965
    <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
franta-hg@0
   966
        <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
franta-hg@0
   967
    </target>
franta-hg@0
   968
    <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
franta-hg@0
   969
    <!--
franta-hg@0
   970
                =========================
franta-hg@0
   971
                APPLET EXECUTION SECTION
franta-hg@0
   972
                =========================
franta-hg@0
   973
            -->
franta-hg@0
   974
    <target depends="init,compile-single" name="run-applet">
franta-hg@0
   975
        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
franta-hg@0
   976
        <j2seproject1:java classname="sun.applet.AppletViewer">
franta-hg@0
   977
            <customize>
franta-hg@0
   978
                <arg value="${applet.url}"/>
franta-hg@0
   979
            </customize>
franta-hg@0
   980
        </j2seproject1:java>
franta-hg@0
   981
    </target>
franta-hg@0
   982
    <!--
franta-hg@0
   983
                =========================
franta-hg@0
   984
                APPLET DEBUGGING  SECTION
franta-hg@0
   985
                =========================
franta-hg@0
   986
            -->
franta-hg@0
   987
    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
franta-hg@0
   988
        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
franta-hg@0
   989
        <j2seproject3:debug classname="sun.applet.AppletViewer">
franta-hg@0
   990
            <customize>
franta-hg@0
   991
                <arg value="${applet.url}"/>
franta-hg@0
   992
            </customize>
franta-hg@0
   993
        </j2seproject3:debug>
franta-hg@0
   994
    </target>
franta-hg@0
   995
    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
franta-hg@0
   996
    <!--
franta-hg@0
   997
                ===============
franta-hg@0
   998
                CLEANUP SECTION
franta-hg@0
   999
                ===============
franta-hg@0
  1000
            -->
franta-hg@5
  1001
    <target name="-deps-clean-init" unless="built-clean.properties">
franta-hg@5
  1002
        <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>
franta-hg@5
  1003
        <delete file="${built-clean.properties}" quiet="true"/>
franta-hg@5
  1004
    </target>
franta-hg@5
  1005
    <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
franta-hg@5
  1006
        <echo level="warn" message="Cycle detected: Postak was already built"/>
franta-hg@5
  1007
    </target>
franta-hg@5
  1008
    <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
franta-hg@5
  1009
        <mkdir dir="${build.dir}"/>
franta-hg@5
  1010
        <touch file="${built-clean.properties}" verbose="false"/>
franta-hg@5
  1011
        <property file="${built-clean.properties}" prefix="already.built.clean."/>
franta-hg@5
  1012
        <antcall target="-warn-already-built-clean"/>
franta-hg@5
  1013
        <propertyfile file="${built-clean.properties}">
franta-hg@5
  1014
            <entry key="${basedir}" value=""/>
franta-hg@5
  1015
        </propertyfile>
franta-hg@5
  1016
    </target>
franta-hg@0
  1017
    <target depends="init" name="-do-clean">
franta-hg@0
  1018
        <delete dir="${build.dir}"/>
franta-hg@5
  1019
        <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
franta-hg@0
  1020
    </target>
franta-hg@0
  1021
    <target name="-post-clean">
franta-hg@0
  1022
        <!-- Empty placeholder for easier customization. -->
franta-hg@0
  1023
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@0
  1024
    </target>
franta-hg@0
  1025
    <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
franta-hg@5
  1026
    <target name="-check-call-dep">
franta-hg@5
  1027
        <property file="${call.built.properties}" prefix="already.built."/>
franta-hg@5
  1028
        <condition property="should.call.dep">
franta-hg@5
  1029
            <not>
franta-hg@5
  1030
                <isset property="already.built.${call.subproject}"/>
franta-hg@5
  1031
            </not>
franta-hg@5
  1032
        </condition>
franta-hg@5
  1033
    </target>
franta-hg@5
  1034
    <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
franta-hg@5
  1035
        <ant antfile="${call.script}" inheritall="false" target="${call.target}">
franta-hg@5
  1036
            <propertyset>
franta-hg@5
  1037
                <propertyref prefix="transfer."/>
franta-hg@5
  1038
                <mapper from="transfer.*" to="*" type="glob"/>
franta-hg@5
  1039
            </propertyset>
franta-hg@5
  1040
        </ant>
franta-hg@5
  1041
    </target>
franta-hg@0
  1042
</project>