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