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