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