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