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