samples/effectivelist/nbproject/build-impl.xml
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Thu, 30 Oct 2014 20:46:27 +0100
changeset 408 9a439a79c6d0
parent 402 e25dbfce40e9
permissions -rw-r--r--
Use scala 2.10.4 to compile on JDK8
jtulach@402
     1
<?xml version="1.0" encoding="UTF-8"?>
jtulach@402
     2
<!--
jtulach@402
     3
*** GENERATED FROM project.xml - DO NOT EDIT  ***
jtulach@402
     4
***         EDIT ../build.xml INSTEAD         ***
jtulach@402
     5
jtulach@402
     6
For the purpose of easier reading the script
jtulach@402
     7
is divided into following sections:
jtulach@402
     8
jtulach@402
     9
  - initialization
jtulach@402
    10
  - compilation
jtulach@402
    11
  - jar
jtulach@402
    12
  - execution
jtulach@402
    13
  - debugging
jtulach@402
    14
  - javadoc
jtulach@402
    15
  - junit compilation
jtulach@402
    16
  - junit execution
jtulach@402
    17
  - junit debugging
jtulach@402
    18
  - applet
jtulach@402
    19
  - cleanup
jtulach@402
    20
jtulach@402
    21
        
jtulach@402
    22
        -->
jtulach@402
    23
<project xmlns:jaxrpc="http://www.netbeans.org/ns/scala-project/jax-rpc" xmlns:scalaProject1="http://www.netbeans.org/ns/scala-project/1" basedir=".." default="default" name="Effective_List-impl">
jtulach@402
    24
    <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
jtulach@402
    25
    <!--
jtulach@402
    26
                ======================
jtulach@402
    27
                INITIALIZATION SECTION
jtulach@402
    28
                ======================
jtulach@402
    29
            -->
jtulach@402
    30
    <target name="-pre-init">
jtulach@402
    31
        <!-- Empty placeholder for easier customization. -->
jtulach@402
    32
        <!-- You can override this target in the ../build.xml file. -->
jtulach@402
    33
    </target>
jtulach@402
    34
    <target depends="-pre-init" name="-init-private">
jtulach@402
    35
        <property file="nbproject/private/config.properties"/>
jtulach@402
    36
        <property file="nbproject/private/configs/${config}.properties"/>
jtulach@402
    37
        <property file="nbproject/private/private.properties"/>
jtulach@402
    38
        <property environment="env"/>
jtulach@402
    39
        <condition property="scala.home" value="${env.SCALA_HOME}">
jtulach@402
    40
            <isset property="env.SCALA_HOME"/>
jtulach@402
    41
        </condition>
jtulach@402
    42
        <fail unless="scala.home">
jtulach@402
    43
                    You must set SCALA_HOME or environment property and append "-J-Dscala.home=scalahomepath"
jtulach@402
    44
                    property to the end of "netbeans_default_options" in NetBeansInstallationPath/etc/netbeans.conf to point to
jtulach@402
    45
                    Scala installation directory.
jtulach@402
    46
                </fail>
jtulach@402
    47
        <property name="scala.compiler" value="${scala.home}/lib/scala-compiler.jar"/>
jtulach@402
    48
        <property name="scala.library" value="${scala.home}/lib/scala-library.jar"/>
jtulach@402
    49
        <property name="scala.lib" value="${scala.home}/lib"/>
jtulach@402
    50
        <taskdef resource="scala/tools/ant/antlib.xml">
jtulach@402
    51
            <classpath>
jtulach@402
    52
                <pathelement location="${scala.compiler}"/>
jaroslav@408
    53
                <pathelement location="${scala.compiler}/../scala-reflect.jar"/>
jtulach@402
    54
                <pathelement location="${scala.library}"/>
jtulach@402
    55
            </classpath>
jtulach@402
    56
        </taskdef>
jtulach@402
    57
    </target>
jtulach@402
    58
    <target depends="-pre-init,-init-private" name="-init-user">
jtulach@402
    59
        <property file="${user.properties.file}"/>
jtulach@402
    60
        <!-- The two properties below are usually overridden -->
jtulach@402
    61
        <!-- by the active platform. Just a fallback. -->
jtulach@402
    62
        <property name="default.javac.source" value="1.5"/>
jtulach@402
    63
        <property name="default.javac.target" value="1.5"/>
jtulach@402
    64
    </target>
jtulach@402
    65
    <target depends="-pre-init,-init-private,-init-user" name="-init-project">
jtulach@402
    66
        <property file="nbproject/configs/${config}.properties"/>
jtulach@402
    67
        <property file="nbproject/project.properties"/>
jtulach@402
    68
    </target>
jtulach@402
    69
    <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
jtulach@402
    70
        <available file="${manifest.file}" property="manifest.available"/>
jtulach@402
    71
        <condition property="manifest.available+main.class">
jtulach@402
    72
            <and>
jtulach@402
    73
                <isset property="manifest.available"/>
jtulach@402
    74
                <isset property="main.class"/>
jtulach@402
    75
                <not>
jtulach@402
    76
                    <equals arg1="${main.class}" arg2="" trim="true"/>
jtulach@402
    77
                </not>
jtulach@402
    78
            </and>
jtulach@402
    79
        </condition>
jtulach@402
    80
        <condition property="manifest.available+main.class+mkdist.available">
jtulach@402
    81
            <and>
jtulach@402
    82
                <istrue value="${manifest.available+main.class}"/>
jtulach@402
    83
                <isset property="libs.CopyLibs.classpath"/>
jtulach@402
    84
            </and>
jtulach@402
    85
        </condition>
jtulach@402
    86
        <condition property="have.tests">
jtulach@402
    87
            <or>
jtulach@402
    88
                <available file="${test.src.dir}"/>
jtulach@402
    89
            </or>
jtulach@402
    90
        </condition>
jtulach@402
    91
        <condition property="have.sources">
jtulach@402
    92
            <or>
jtulach@402
    93
                <available file="${src.dir}"/>
jtulach@402
    94
            </or>
jtulach@402
    95
        </condition>
jtulach@402
    96
        <condition property="netbeans.home+have.tests">
jtulach@402
    97
            <and>
jtulach@402
    98
                <isset property="netbeans.home"/>
jtulach@402
    99
                <isset property="have.tests"/>
jtulach@402
   100
            </and>
jtulach@402
   101
        </condition>
jtulach@402
   102
        <condition property="no.javadoc.preview">
jtulach@402
   103
            <and>
jtulach@402
   104
                <isset property="javadoc.preview"/>
jtulach@402
   105
                <isfalse value="${javadoc.preview}"/>
jtulach@402
   106
            </and>
jtulach@402
   107
        </condition>
jtulach@402
   108
        <property name="run.jvmargs" value=""/>
jtulach@402
   109
        <property name="javac.compilerargs" value=""/>
jtulach@402
   110
        <property name="work.dir" value="${basedir}"/>
jtulach@402
   111
        <condition property="no.deps">
jtulach@402
   112
            <and>
jtulach@402
   113
                <istrue value="${no.dependencies}"/>
jtulach@402
   114
            </and>
jtulach@402
   115
        </condition>
jtulach@402
   116
        <property name="javac.debug" value="true"/>
jtulach@402
   117
        <property name="javadoc.preview" value="true"/>
jtulach@402
   118
        <property name="application.args" value=""/>
jtulach@402
   119
        <property name="source.encoding" value="${file.encoding}"/>
jtulach@402
   120
        <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
jtulach@402
   121
            <and>
jtulach@402
   122
                <isset property="javadoc.encoding"/>
jtulach@402
   123
                <not>
jtulach@402
   124
                    <equals arg1="${javadoc.encoding}" arg2=""/>
jtulach@402
   125
                </not>
jtulach@402
   126
            </and>
jtulach@402
   127
        </condition>
jtulach@402
   128
        <property name="javadoc.encoding.used" value="${source.encoding}"/>
jtulach@402
   129
        <property name="includes" value="**"/>
jtulach@402
   130
        <property name="excludes" value=""/>
jtulach@402
   131
        <property name="extdirs" value=" "/>
jtulach@402
   132
        <property name="do.depend" value="false"/>
jtulach@402
   133
        <condition property="do.depend.true">
jtulach@402
   134
            <istrue value="${do.depend}"/>
jtulach@402
   135
        </condition>
jtulach@402
   136
        <condition else="" property="javac.compilerargs.jaxws" value="-Djava.endorsed.dirs='${jaxws.endorsed.dir}'">
jtulach@402
   137
            <and>
jtulach@402
   138
                <isset property="jaxws.endorsed.dir"/>
jtulach@402
   139
                <available file="nbproject/jaxws-build.xml"/>
jtulach@402
   140
            </and>
jtulach@402
   141
        </condition>
jtulach@402
   142
    </target>
jtulach@402
   143
    <target name="-post-init">
jtulach@402
   144
        <!-- Empty placeholder for easier customization. -->
jtulach@402
   145
        <!-- You can override this target in the ../build.xml file. -->
jtulach@402
   146
    </target>
jtulach@402
   147
    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
jtulach@402
   148
        <fail unless="src.dir">Must set src.dir</fail>
jtulach@402
   149
        <fail unless="test.src.dir">Must set test.src.dir</fail>
jtulach@402
   150
        <fail unless="build.dir">Must set build.dir</fail>
jtulach@402
   151
        <fail unless="dist.dir">Must set dist.dir</fail>
jtulach@402
   152
        <fail unless="build.classes.dir">Must set build.classes.dir</fail>
jtulach@402
   153
        <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
jtulach@402
   154
        <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
jtulach@402
   155
        <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
jtulach@402
   156
        <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
jtulach@402
   157
        <fail unless="dist.jar">Must set dist.jar</fail>
jtulach@402
   158
    </target>
jtulach@402
   159
    <target name="-init-macrodef-property">
jtulach@402
   160
        <macrodef name="property" uri="http://www.netbeans.org/ns/scala-project/1">
jtulach@402
   161
            <attribute name="name"/>
jtulach@402
   162
            <attribute name="value"/>
jtulach@402
   163
            <sequential>
jtulach@402
   164
                <property name="@{name}" value="${@{value}}"/>
jtulach@402
   165
            </sequential>
jtulach@402
   166
        </macrodef>
jtulach@402
   167
    </target>
jtulach@402
   168
    <target name="-init-macrodef-javac">
jtulach@402
   169
        <macrodef name="javac" uri="http://www.netbeans.org/ns/scala-project/1">
jtulach@402
   170
            <attribute default="${src.dir}" name="srcdir"/>
jtulach@402
   171
            <attribute default="${build.classes.dir}" name="destdir"/>
jtulach@402
   172
            <attribute default="${javac.classpath}" name="classpath"/>
jtulach@402
   173
            <attribute default="${includes}" name="includes"/>
jtulach@402
   174
            <attribute default="${excludes}" name="excludes"/>
jtulach@402
   175
            <attribute default="${javac.debug}" name="debug"/>
jtulach@402
   176
            <attribute default="" name="sourcepath"/>
jtulach@402
   177
            <element name="customize" optional="true"/>
jtulach@402
   178
            <sequential>
jtulach@402
   179
                <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}">
jtulach@402
   180
                    <classpath>
jtulach@402
   181
                        <path path="@{classpath}"/>
jtulach@402
   182
                        <fileset dir="${scala.lib}">
jtulach@402
   183
                            <include name="**/*.jar"/>
jtulach@402
   184
                        </fileset>
jtulach@402
   185
                    </classpath>
jtulach@402
   186
                    <compilerarg line="${javac.compilerargs} ${javac.compilerargs.jaxws}"/>
jtulach@402
   187
                    <customize/>
jtulach@402
   188
                </javac>
jtulach@402
   189
            </sequential>
jtulach@402
   190
        </macrodef>
jtulach@402
   191
        <macrodef name="depend" uri="http://www.netbeans.org/ns/scala-project/1">
jtulach@402
   192
            <attribute default="${src.dir}" name="srcdir"/>
jtulach@402
   193
            <attribute default="${build.classes.dir}" name="destdir"/>
jtulach@402
   194
            <attribute default="${javac.classpath}" name="classpath"/>
jtulach@402
   195
            <sequential>
jtulach@402
   196
                <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
jtulach@402
   197
                    <classpath>
jtulach@402
   198
                        <path>
jtulach@402
   199
                            <pathelement path="@{classpath}"/>
jtulach@402
   200
                            <fileset dir="${scala.lib}">
jtulach@402
   201
                                <include name="**/*.jar"/>
jtulach@402
   202
                            </fileset>
jtulach@402
   203
                            <pathelement location="${build.classes.dir}"/>
jtulach@402
   204
                        </path>
jtulach@402
   205
                    </classpath>
jtulach@402
   206
                </depend>
jtulach@402
   207
            </sequential>
jtulach@402
   208
        </macrodef>
jtulach@402
   209
        <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/scala-project/1">
jtulach@402
   210
            <attribute default="${build.classes.dir}" name="destdir"/>
jtulach@402
   211
            <sequential>
jtulach@402
   212
                <fail unless="javac.includes">Must set javac.includes</fail>
jtulach@402
   213
                <pathconvert pathsep="," property="javac.includes.binary">
jtulach@402
   214
                    <path>
jtulach@402
   215
                        <filelist dir="@{destdir}" files="${javac.includes}"/>
jtulach@402
   216
                    </path>
jtulach@402
   217
                    <globmapper from="*.java" to="*.class"/>
jtulach@402
   218
                </pathconvert>
jtulach@402
   219
                <delete>
jtulach@402
   220
                    <files includes="${javac.includes.binary}"/>
jtulach@402
   221
                </delete>
jtulach@402
   222
            </sequential>
jtulach@402
   223
        </macrodef>
jtulach@402
   224
    </target>
jtulach@402
   225
    <target name="-init-macrodef-scalac">
jtulach@402
   226
        <macrodef name="scalac" uri="http://www.netbeans.org/ns/scala-project/1">
jtulach@402
   227
            <attribute default="${src.dir}" name="srcdir"/>
jtulach@402
   228
            <attribute default="${build.classes.dir}" name="destdir"/>
jtulach@402
   229
            <attribute default="${javac.classpath}" name="classpath"/>
jtulach@402
   230
            <attribute default="${extdirs}" name="extdirs"/>
jtulach@402
   231
            <attribute default="${includes}" name="includes"/>
jtulach@402
   232
            <attribute default="${excludes}" name="excludes"/>
jtulach@402
   233
            <attribute default="${scalac.compilerargs}" name="addparams"/>
jtulach@402
   234
            <attribute default="" name="sourcepath"/>
jtulach@402
   235
            <element name="customize" optional="true"/>
jtulach@402
   236
            <sequential>
jtulach@402
   237
                <scalac addparams="-make:transitive -dependencyfile &quot;${basedir}/${build.dir}/.scala_dependencies&quot; @{addparams}" deprecation="${scalac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" extdirs="@{extdirs}" force="yes" fork="true" includes="@{includes}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="jvm-${javac.target}" unchecked="${scalac.unchecked}">
jtulach@402
   238
                    <classpath>
jtulach@402
   239
                        <path>
jtulach@402
   240
                            <pathelement path="@{classpath}"/>
jtulach@402
   241
                            <fileset dir="${scala.lib}">
jtulach@402
   242
                                <include name="**/*.jar"/>
jtulach@402
   243
                            </fileset>
jtulach@402
   244
                            <pathelement location="${build.classes.dir}"/>
jtulach@402
   245
                        </path>
jtulach@402
   246
                    </classpath>
jtulach@402
   247
                    <customize/>
jtulach@402
   248
                </scalac>
jtulach@402
   249
            </sequential>
jtulach@402
   250
        </macrodef>
jtulach@402
   251
        <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/scala-project/1">
jtulach@402
   252
            <attribute default="${build.classes.dir}" name="destdir"/>
jtulach@402
   253
            <sequential>
jtulach@402
   254
                <fail unless="javac.includes">Must set javac.includes</fail>
jtulach@402
   255
                <pathconvert pathsep="," property="javac.includes.binary">
jtulach@402
   256
                    <path>
jtulach@402
   257
                        <filelist dir="@{destdir}" files="${javac.includes}"/>
jtulach@402
   258
                    </path>
jtulach@402
   259
                    <globmapper from="*.scala" to="*.class"/>
jtulach@402
   260
                </pathconvert>
jtulach@402
   261
                <delete>
jtulach@402
   262
                    <files includes="${javac.includes.binary}"/>
jtulach@402
   263
                </delete>
jtulach@402
   264
            </sequential>
jtulach@402
   265
        </macrodef>
jtulach@402
   266
    </target>
jtulach@402
   267
    <target name="-init-macrodef-junit">
jtulach@402
   268
        <macrodef name="junit" uri="http://www.netbeans.org/ns/scala-project/1">
jtulach@402
   269
            <attribute default="${includes}" name="includes"/>
jtulach@402
   270
            <attribute default="${excludes}" name="excludes"/>
jtulach@402
   271
            <attribute default="**" name="testincludes"/>
jtulach@402
   272
            <sequential>
jtulach@402
   273
                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true">
jtulach@402
   274
                    <batchtest todir="${build.test.results.dir}">
jtulach@402
   275
                        <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
jtulach@402
   276
                            <filename name="@{testincludes}"/>
jtulach@402
   277
                        </fileset>
jtulach@402
   278
                    </batchtest>
jtulach@402
   279
                    <classpath>
jtulach@402
   280
                        <path path="${run.test.classpath}"/>
jtulach@402
   281
                        <fileset dir="${scala.lib}">
jtulach@402
   282
                            <include name="**/*.jar"/>
jtulach@402
   283
                        </fileset>
jtulach@402
   284
                    </classpath>
jtulach@402
   285
                    <syspropertyset>
jtulach@402
   286
                        <propertyref prefix="test-sys-prop."/>
jtulach@402
   287
                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
jtulach@402
   288
                    </syspropertyset>
jtulach@402
   289
                    <formatter type="brief" usefile="false"/>
jtulach@402
   290
                    <formatter type="xml"/>
jtulach@402
   291
                    <jvmarg line="${run.jvmargs}"/>
jtulach@402
   292
                </junit>
jtulach@402
   293
            </sequential>
jtulach@402
   294
        </macrodef>
jtulach@402
   295
    </target>
jtulach@402
   296
    <target name="-init-macrodef-nbjpda">
jtulach@402
   297
        <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/scala-project/1">
jtulach@402
   298
            <attribute default="${main.class}" name="name"/>
jtulach@402
   299
            <attribute default="${debug.classpath}" name="classpath"/>
jtulach@402
   300
            <attribute default="" name="stopclassname"/>
jtulach@402
   301
            <sequential>
jtulach@402
   302
                <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="dt_socket">
jtulach@402
   303
                    <classpath>
jtulach@402
   304
                        <path path="@{classpath}"/>
jtulach@402
   305
                    </classpath>
jtulach@402
   306
                </nbjpdastart>
jtulach@402
   307
            </sequential>
jtulach@402
   308
        </macrodef>
jtulach@402
   309
        <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/scala-project/1">
jtulach@402
   310
            <attribute default="${build.classes.dir}" name="dir"/>
jtulach@402
   311
            <sequential>
jtulach@402
   312
                <nbjpdareload>
jtulach@402
   313
                    <fileset dir="@{dir}" includes="${fix.includes}*.class"/>
jtulach@402
   314
                </nbjpdareload>
jtulach@402
   315
            </sequential>
jtulach@402
   316
        </macrodef>
jtulach@402
   317
    </target>
jtulach@402
   318
    <target name="-init-debug-args">
jtulach@402
   319
        <property name="version-output" value="java version &quot;${ant.java.version}"/>
jtulach@402
   320
        <condition property="have-jdk-older-than-1.4">
jtulach@402
   321
            <or>
jtulach@402
   322
                <contains string="${version-output}" substring="java version &quot;1.0"/>
jtulach@402
   323
                <contains string="${version-output}" substring="java version &quot;1.1"/>
jtulach@402
   324
                <contains string="${version-output}" substring="java version &quot;1.2"/>
jtulach@402
   325
                <contains string="${version-output}" substring="java version &quot;1.3"/>
jtulach@402
   326
            </or>
jtulach@402
   327
        </condition>
jtulach@402
   328
        <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
jtulach@402
   329
            <istrue value="${have-jdk-older-than-1.4}"/>
jtulach@402
   330
        </condition>
jtulach@402
   331
    </target>
jtulach@402
   332
    <target depends="-init-debug-args" name="-init-macrodef-debug">
jtulach@402
   333
        <macrodef name="debug" uri="http://www.netbeans.org/ns/scala-project/1">
jtulach@402
   334
            <attribute default="${main.class}" name="classname"/>
jtulach@402
   335
            <attribute default="${debug.classpath}" name="classpath"/>
jtulach@402
   336
            <element name="customize" optional="true"/>
jtulach@402
   337
            <sequential>
jtulach@402
   338
                <java classname="@{classname}" dir="${work.dir}" fork="true">
jtulach@402
   339
                    <jvmarg line="${debug-args-line}"/>
jtulach@402
   340
                    <jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
jtulach@402
   341
                    <jvmarg line="${run.jvmargs}"/>
jtulach@402
   342
                    <classpath>
jtulach@402
   343
                        <path path="@{classpath}"/>
jtulach@402
   344
                        <fileset dir="${scala.lib}">
jtulach@402
   345
                            <include name="**/*.jar"/>
jtulach@402
   346
                        </fileset>
jtulach@402
   347
                    </classpath>
jtulach@402
   348
                    <syspropertyset>
jtulach@402
   349
                        <propertyref prefix="run-sys-prop."/>
jtulach@402
   350
                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
jtulach@402
   351
                    </syspropertyset>
jtulach@402
   352
                    <customize/>
jtulach@402
   353
                </java>
jtulach@402
   354
            </sequential>
jtulach@402
   355
        </macrodef>
jtulach@402
   356
    </target>
jtulach@402
   357
    <target name="-init-macrodef-java">
jtulach@402
   358
        <macrodef name="java" uri="http://www.netbeans.org/ns/scala-project/1">
jtulach@402
   359
            <attribute default="${main.class}" name="classname"/>
jtulach@402
   360
            <element name="customize" optional="true"/>
jtulach@402
   361
            <sequential>
jtulach@402
   362
                <java classname="@{classname}" dir="${work.dir}" fork="true">
jtulach@402
   363
                    <jvmarg line="${run.jvmargs}"/>
jtulach@402
   364
                    <classpath>
jtulach@402
   365
                        <path path="${run.classpath}"/>
jtulach@402
   366
                        <fileset dir="${scala.lib}">
jtulach@402
   367
                            <include name="**/*.jar"/>
jtulach@402
   368
                        </fileset>
jtulach@402
   369
                    </classpath>
jtulach@402
   370
                    <syspropertyset>
jtulach@402
   371
                        <propertyref prefix="run-sys-prop."/>
jtulach@402
   372
                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
jtulach@402
   373
                    </syspropertyset>
jtulach@402
   374
                    <customize/>
jtulach@402
   375
                </java>
jtulach@402
   376
            </sequential>
jtulach@402
   377
        </macrodef>
jtulach@402
   378
    </target>
jtulach@402
   379
    <target name="-init-presetdef-jar">
jtulach@402
   380
        <presetdef name="jar" uri="http://www.netbeans.org/ns/scala-project/1">
jtulach@402
   381
            <jar compress="${jar.compress}" jarfile="${dist.jar}">
jtulach@402
   382
                <scalaProject1:fileset dir="${build.classes.dir}"/>
jtulach@402
   383
            </jar>
jtulach@402
   384
        </presetdef>
jtulach@402
   385
    </target>
jtulach@402
   386
    <target depends="-pre-init,-init-private ,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-scalac,-init-macrodef-junit,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar" name="init"/>
jtulach@402
   387
    <!--
jtulach@402
   388
                ===================
jtulach@402
   389
                COMPILATION SECTION
jtulach@402
   390
                ===================
jtulach@402
   391
            -->
jtulach@402
   392
    <target depends="init" name="deps-jar" unless="no.deps"/>
jtulach@402
   393
    <target depends="init,deps-jar" name="-pre-pre-compile">
jtulach@402
   394
        <mkdir dir="${build.classes.dir}"/>
jtulach@402
   395
    </target>
jtulach@402
   396
    <target name="-pre-compile">
jtulach@402
   397
        <!-- Empty placeholder for easier customization. -->
jtulach@402
   398
        <!-- You can override this target in the ../build.xml file. -->
jtulach@402
   399
    </target>
jtulach@402
   400
    <target if="do.depend.true" name="-compile-depend">
jtulach@402
   401
        <scalaProject1:depend/>
jtulach@402
   402
    </target>
jtulach@402
   403
    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-compile-depend" if="have.sources" name="-do-compile">
jtulach@402
   404
        <scalaProject1:scalac/>
jtulach@402
   405
        <scalaProject1:javac/>
jtulach@402
   406
        <copy todir="${build.classes.dir}">
jtulach@402
   407
            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}&#10;                        " includes="${includes}"/>
jtulach@402
   408
        </copy>
jtulach@402
   409
    </target>
jtulach@402
   410
    <target name="-post-compile">
jtulach@402
   411
        <!-- Empty placeholder for easier customization. -->
jtulach@402
   412
        <!-- You can override this target in the ../build.xml file. -->
jtulach@402
   413
    </target>
jtulach@402
   414
    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
jtulach@402
   415
    <target name="-pre-compile-single">
jtulach@402
   416
        <!-- Empty placeholder for easier customization. -->
jtulach@402
   417
        <!-- You can override this target in the ../build.xml file. -->
jtulach@402
   418
    </target>
jtulach@402
   419
    <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
jtulach@402
   420
        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
jtulach@402
   421
        <scalaProject1:force-recompile/>
jtulach@402
   422
        <scalaProject1:scalac excludes="" includes="${javac.includes}" sourcepath="${src.dir}"/>
jtulach@402
   423
    </target>
jtulach@402
   424
    <target name="-post-compile-single">
jtulach@402
   425
        <!-- Empty placeholder for easier customization. -->
jtulach@402
   426
        <!-- You can override this target in the ../build.xml file. -->
jtulach@402
   427
    </target>
jtulach@402
   428
    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
jtulach@402
   429
    <!--
jtulach@402
   430
                ====================
jtulach@402
   431
                JAR BUILDING SECTION
jtulach@402
   432
                ====================
jtulach@402
   433
            -->
jtulach@402
   434
    <target depends="init" name="-pre-pre-jar">
jtulach@402
   435
        <dirname file="${dist.jar}" property="dist.jar.dir"/>
jtulach@402
   436
        <mkdir dir="${dist.jar.dir}"/>
jtulach@402
   437
    </target>
jtulach@402
   438
    <target name="-pre-jar">
jtulach@402
   439
        <!-- Empty placeholder for easier customization. -->
jtulach@402
   440
        <!-- You can override this target in the ../build.xml file. -->
jtulach@402
   441
    </target>
jtulach@402
   442
    <target depends="init,compile,-pre-pre-jar,-pre-jar" name="-do-jar-without-manifest" unless="manifest.available">
jtulach@402
   443
        <scalaProject1:jar/>
jtulach@402
   444
    </target>
jtulach@402
   445
    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class">
jtulach@402
   446
        <scalaProject1:jar manifest="${manifest.file}"/>
jtulach@402
   447
    </target>
jtulach@402
   448
    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available">
jtulach@402
   449
        <scalaProject1:jar manifest="${manifest.file}">
jtulach@402
   450
            <scalaProject1:manifest>
jtulach@402
   451
                <scalaProject1:attribute name="Main-Class" value="${main.class}"/>
jtulach@402
   452
            </scalaProject1:manifest>
jtulach@402
   453
        </scalaProject1:jar>
jtulach@402
   454
        <echo>To run this application from the command line without Ant, try:</echo>
jtulach@402
   455
        <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
jtulach@402
   456
        <property location="${dist.jar}" name="dist.jar.resolved"/>
jtulach@402
   457
        <pathconvert property="run.classpath.with.dist.jar">
jtulach@402
   458
            <path path="${run.classpath}"/>
jtulach@402
   459
            <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
jtulach@402
   460
        </pathconvert>
jtulach@402
   461
        <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}
jtulach@402
   462
                </echo>
jtulach@402
   463
    </target>
jtulach@402
   464
    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries">
jtulach@402
   465
        <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
jtulach@402
   466
        <pathconvert property="run.classpath.without.build.classes.dir">
jtulach@402
   467
            <path path="${run.classpath}"/>
jtulach@402
   468
            <map from="${build.classes.dir.resolved}" to=""/>
jtulach@402
   469
        </pathconvert>
jtulach@402
   470
        <pathconvert pathsep=" " property="jar.classpath">
jtulach@402
   471
            <path path="${run.classpath.without.build.classes.dir}"/>
jtulach@402
   472
            <chainedmapper>
jtulach@402
   473
                <flattenmapper/>
jtulach@402
   474
                <globmapper from="*" to="lib/*"/>
jtulach@402
   475
            </chainedmapper>
jtulach@402
   476
        </pathconvert>
jtulach@402
   477
        <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
jtulach@402
   478
        <copylibs compress="${jar.compress}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
jtulach@402
   479
            <fileset dir="${build.classes.dir}"/>
jtulach@402
   480
            <manifest>
jtulach@402
   481
                <attribute name="Main-Class" value="${main.class}"/>
jtulach@402
   482
                <attribute name="Class-Path" value="${jar.classpath}"/>
jtulach@402
   483
            </manifest>
jtulach@402
   484
        </copylibs>
jtulach@402
   485
        <echo>To run this application from the command line without Ant, try:</echo>
jtulach@402
   486
        <property location="${dist.jar}" name="dist.jar.resolved"/>
jtulach@402
   487
        <echo>java -jar "${dist.jar.resolved}"
jtulach@402
   488
                </echo>
jtulach@402
   489
    </target>
jtulach@402
   490
    <target name="-post-jar">
jtulach@402
   491
        <!-- Empty placeholder for easier customization. -->
jtulach@402
   492
        <!-- You can override this target in the ../build.xml file. -->
jtulach@402
   493
    </target>
jtulach@402
   494
    <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@402
   495
    <!--
jtulach@402
   496
                =================
jtulach@402
   497
                EXECUTION SECTION
jtulach@402
   498
                =================
jtulach@402
   499
            -->
jtulach@402
   500
    <target depends="init,compile" description="Run a main class." name="run">
jtulach@402
   501
        <scalaProject1:java>
jtulach@402
   502
            <customize>
jtulach@402
   503
                <arg line="${application.args}"/>
jtulach@402
   504
            </customize>
jtulach@402
   505
        </scalaProject1:java>
jtulach@402
   506
    </target>
jtulach@402
   507
    <target name="-do-not-recompile">
jtulach@402
   508
        <property name="javac.includes.binary" value=""/>
jtulach@402
   509
    </target>
jtulach@402
   510
    <target depends="init,-do-not-recompile,compile-single" name="run-single">
jtulach@402
   511
        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
jtulach@402
   512
        <scalaProject1:java classname="${run.class}"/>
jtulach@402
   513
    </target>
jtulach@402
   514
    <!--
jtulach@402
   515
                =================
jtulach@402
   516
                DEBUGGING SECTION
jtulach@402
   517
                =================
jtulach@402
   518
            -->
jtulach@402
   519
    <target depends="init" if="netbeans.home" name="-debug-start-debugger">
jtulach@402
   520
        <scalaProject1:nbjpdastart name="${debug.class}"/>
jtulach@402
   521
    </target>
jtulach@402
   522
    <target depends="init,compile" name="-debug-start-debuggee">
jtulach@402
   523
        <scalaProject1:debug>
jtulach@402
   524
            <customize>
jtulach@402
   525
                <arg line="${application.args}"/>
jtulach@402
   526
            </customize>
jtulach@402
   527
        </scalaProject1:debug>
jtulach@402
   528
    </target>
jtulach@402
   529
    <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
jtulach@402
   530
    <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
jtulach@402
   531
        <scalaProject1:nbjpdastart stopclassname="${main.class}"/>
jtulach@402
   532
    </target>
jtulach@402
   533
    <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
jtulach@402
   534
    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
jtulach@402
   535
        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
jtulach@402
   536
        <scalaProject1:debug classname="${debug.class}"/>
jtulach@402
   537
    </target>
jtulach@402
   538
    <target depends="init,-do-not-recompile,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
jtulach@402
   539
    <target depends="init" name="-pre-debug-fix">
jtulach@402
   540
        <fail unless="fix.includes">Must set fix.includes</fail>
jtulach@402
   541
        <property name="javac.includes" value="${fix.includes}.java"/>
jtulach@402
   542
    </target>
jtulach@402
   543
    <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
jtulach@402
   544
        <scalaProject1:nbjpdareload/>
jtulach@402
   545
    </target>
jtulach@402
   546
    <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
jtulach@402
   547
    <!--
jtulach@402
   548
                ===============
jtulach@402
   549
                JAVADOC SECTION
jtulach@402
   550
                ===============
jtulach@402
   551
            -->
jtulach@402
   552
    <target depends="init" name="-javadoc-build">
jtulach@402
   553
        <mkdir dir="${dist.javadoc.dir}"/>
jtulach@402
   554
        <scaladoc addparams="${javadoc.additionalparam}" deprecation="yes" destdir="${dist.javadoc.dir}" doctitle="${javadoc.windowtitle}" encoding="${javadoc.encoding.used}" srcdir="${src.dir}" unchecked="yes">
jtulach@402
   555
            <classpath>
jtulach@402
   556
                <path path="${javac.classpath}"/>
jtulach@402
   557
                <fileset dir="${scala.lib}">
jtulach@402
   558
                    <include name="**/*.jar"/>
jtulach@402
   559
                </fileset>
jtulach@402
   560
            </classpath>
jtulach@402
   561
        </scaladoc>
jtulach@402
   562
    </target>
jtulach@402
   563
    <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
jtulach@402
   564
        <nbbrowse file="${dist.javadoc.dir}/index.html"/>
jtulach@402
   565
    </target>
jtulach@402
   566
    <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
jtulach@402
   567
    <!--
jtulach@402
   568
                =========================
jtulach@402
   569
                JUNIT COMPILATION SECTION
jtulach@402
   570
                =========================
jtulach@402
   571
            -->
jtulach@402
   572
    <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
jtulach@402
   573
        <mkdir dir="${build.test.classes.dir}"/>
jtulach@402
   574
    </target>
jtulach@402
   575
    <target name="-pre-compile-test">
jtulach@402
   576
        <!-- Empty placeholder for easier customization. -->
jtulach@402
   577
        <!-- You can override this target in the ../build.xml file. -->
jtulach@402
   578
    </target>
jtulach@402
   579
    <target if="do.depend.true" name="-compile-test-depend">
jtulach@402
   580
        <scalaProject1:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
jtulach@402
   581
    </target>
jtulach@402
   582
    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
jtulach@402
   583
        <scalaProject1:scalac classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
jtulach@402
   584
        <copy todir="${build.test.classes.dir}">
jtulach@402
   585
            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}&#10;                        " includes="${includes}"/>
jtulach@402
   586
        </copy>
jtulach@402
   587
    </target>
jtulach@402
   588
    <target name="-post-compile-test">
jtulach@402
   589
        <!-- Empty placeholder for easier customization. -->
jtulach@402
   590
        <!-- You can override this target in the ../build.xml file. -->
jtulach@402
   591
    </target>
jtulach@402
   592
    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
jtulach@402
   593
    <target name="-pre-compile-test-single">
jtulach@402
   594
        <!-- Empty placeholder for easier customization. -->
jtulach@402
   595
        <!-- You can override this target in the ../build.xml file. -->
jtulach@402
   596
    </target>
jtulach@402
   597
    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
jtulach@402
   598
        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
jtulach@402
   599
        <scalaProject1:force-recompile destdir="${build.test.classes.dir}"/>
jtulach@402
   600
        <scalaProject1:scalac classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}"/>
jtulach@402
   601
        <copy todir="${build.test.classes.dir}">
jtulach@402
   602
            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}&#10;                        " includes="${includes}"/>
jtulach@402
   603
        </copy>
jtulach@402
   604
    </target>
jtulach@402
   605
    <target name="-post-compile-test-single">
jtulach@402
   606
        <!-- Empty placeholder for easier customization. -->
jtulach@402
   607
        <!-- You can override this target in the ../build.xml file. -->
jtulach@402
   608
    </target>
jtulach@402
   609
    <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@402
   610
    <!--
jtulach@402
   611
                =======================
jtulach@402
   612
                JUNIT EXECUTION SECTION
jtulach@402
   613
                =======================
jtulach@402
   614
            -->
jtulach@402
   615
    <target depends="init" if="have.tests" name="-pre-test-run">
jtulach@402
   616
        <mkdir dir="${build.test.results.dir}"/>
jtulach@402
   617
    </target>
jtulach@402
   618
    <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
jtulach@402
   619
        <scalaProject1:junit testincludes="**/*Test.class"/>
jtulach@402
   620
    </target>
jtulach@402
   621
    <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
jtulach@402
   622
        <fail if="tests.failed">Some tests failed; see details above.</fail>
jtulach@402
   623
    </target>
jtulach@402
   624
    <target depends="init" if="have.tests" name="test-report"/>
jtulach@402
   625
    <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
jtulach@402
   626
    <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@402
   627
    <target depends="init" if="have.tests" name="-pre-test-run-single">
jtulach@402
   628
        <mkdir dir="${build.test.results.dir}"/>
jtulach@402
   629
    </target>
jtulach@402
   630
    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
jtulach@402
   631
        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
jtulach@402
   632
        <scalaProject1:junit excludes="" includes="${test.includes}"/>
jtulach@402
   633
    </target>
jtulach@402
   634
    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
jtulach@402
   635
        <fail if="tests.failed">Some tests failed; see details above.</fail>
jtulach@402
   636
    </target>
jtulach@402
   637
    <target depends="init,-do-not-recompile,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>
jtulach@402
   638
    <!--
jtulach@402
   639
                =======================
jtulach@402
   640
                JUNIT DEBUGGING SECTION
jtulach@402
   641
                =======================
jtulach@402
   642
            -->
jtulach@402
   643
    <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
jtulach@402
   644
        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
jtulach@402
   645
        <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
jtulach@402
   646
        <delete file="${test.report.file}"/>
jtulach@402
   647
        <mkdir dir="${build.test.results.dir}"/>
jtulach@402
   648
        <scalaProject1: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@402
   649
            <customize>
jtulach@402
   650
                <syspropertyset>
jtulach@402
   651
                    <propertyref prefix="test-sys-prop."/>
jtulach@402
   652
                    <mapper from="test-sys-prop.*" to="*" type="glob"/>
jtulach@402
   653
                </syspropertyset>
jtulach@402
   654
                <arg value="${test.class}"/>
jtulach@402
   655
                <arg value="showoutput=true"/>
jtulach@402
   656
                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
jtulach@402
   657
                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
jtulach@402
   658
            </customize>
jtulach@402
   659
        </scalaProject1:debug>
jtulach@402
   660
    </target>
jtulach@402
   661
    <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
jtulach@402
   662
        <scalaProject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
jtulach@402
   663
    </target>
jtulach@402
   664
    <target depends="init,-do-not-recompile,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
jtulach@402
   665
    <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
jtulach@402
   666
        <scalaProject1:nbjpdareload dir="${build.test.classes.dir}"/>
jtulach@402
   667
    </target>
jtulach@402
   668
    <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
jtulach@402
   669
    <!--
jtulach@402
   670
                =========================
jtulach@402
   671
                APPLET EXECUTION SECTION
jtulach@402
   672
                =========================
jtulach@402
   673
            -->
jtulach@402
   674
    <target depends="init,compile-single" name="run-applet">
jtulach@402
   675
        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
jtulach@402
   676
        <scalaProject1:java classname="sun.applet.AppletViewer">
jtulach@402
   677
            <customize>
jtulach@402
   678
                <arg value="${applet.url}"/>
jtulach@402
   679
            </customize>
jtulach@402
   680
        </scalaProject1:java>
jtulach@402
   681
    </target>
jtulach@402
   682
    <!--
jtulach@402
   683
                =========================
jtulach@402
   684
                APPLET DEBUGGING  SECTION
jtulach@402
   685
                =========================
jtulach@402
   686
            -->
jtulach@402
   687
    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
jtulach@402
   688
        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
jtulach@402
   689
        <scalaProject1:debug classname="sun.applet.AppletViewer">
jtulach@402
   690
            <customize>
jtulach@402
   691
                <arg value="${applet.url}"/>
jtulach@402
   692
            </customize>
jtulach@402
   693
        </scalaProject1:debug>
jtulach@402
   694
    </target>
jtulach@402
   695
    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
jtulach@402
   696
    <!--
jtulach@402
   697
                ===============
jtulach@402
   698
                CLEANUP SECTION
jtulach@402
   699
                ===============
jtulach@402
   700
            -->
jtulach@402
   701
    <target depends="init" name="deps-clean" unless="no.deps"/>
jtulach@402
   702
    <target depends="init" name="-do-clean">
jtulach@402
   703
        <delete dir="${build.dir}"/>
jtulach@402
   704
        <delete dir="${dist.dir}"/>
jtulach@402
   705
    </target>
jtulach@402
   706
    <target name="-post-clean">
jtulach@402
   707
        <!-- Empty placeholder for easier customization. -->
jtulach@402
   708
        <!-- You can override this target in the ../build.xml file. -->
jtulach@402
   709
    </target>
jtulach@402
   710
    <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
jtulach@402
   711
</project>