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