java/sql-vyuka/nbproject/build-impl.xml
author fiki@dell.frantovo.cz
Wed Jul 01 20:58:36 2009 +0200 (2009-07-01)
changeset 46 da0e675db1cf
parent 15 8632e6037843
child 74 48066e753dd6
permissions -rw-r--r--
Správné české uvozovky u „citátů“.
Přechod na Netbeans 6.7
franta-hg@8
     1
<?xml version="1.0" encoding="UTF-8"?>
franta-hg@8
     2
<!--
franta-hg@8
     3
        *** GENERATED FROM project.xml - DO NOT EDIT  ***
franta-hg@8
     4
        ***         EDIT ../build.xml INSTEAD         ***
franta-hg@8
     5
franta-hg@8
     6
        For the purpose of easier reading the script
franta-hg@8
     7
        is divided into following sections:
franta-hg@8
     8
        - initialization
franta-hg@8
     9
        - compilation
franta-hg@8
    10
        - dist
franta-hg@8
    11
        - execution
franta-hg@8
    12
        - debugging
franta-hg@8
    13
        - javadoc
franta-hg@8
    14
        - junit compilation
franta-hg@8
    15
        - junit execution
franta-hg@8
    16
        - junit debugging
franta-hg@8
    17
        - cleanup
franta-hg@8
    18
franta-hg@8
    19
        -->
franta-hg@8
    20
<project xmlns:webproject1="http://www.netbeans.org/ns/web-project/1" xmlns:webproject2="http://www.netbeans.org/ns/web-project/2" xmlns:webproject3="http://www.netbeans.org/ns/web-project/3" basedir=".." default="default" name="sql-vyuka-impl">
franta-hg@8
    21
    <import file="ant-deploy.xml"/>
fiki@46
    22
    <fail message="Please build using Ant 1.7.1 or higher.">
fiki@46
    23
        <condition>
fiki@46
    24
            <not>
fiki@46
    25
                <antversion atleast="1.7.1"/>
fiki@46
    26
            </not>
fiki@46
    27
        </condition>
fiki@46
    28
    </fail>
franta-hg@8
    29
    <target depends="dist,javadoc" description="Build whole project." name="default"/>
franta-hg@8
    30
    <!--
franta-hg@8
    31
                INITIALIZATION SECTION
franta-hg@8
    32
            -->
franta-hg@8
    33
    <target name="-pre-init">
franta-hg@8
    34
        <!-- Empty placeholder for easier customization. -->
franta-hg@8
    35
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@8
    36
    </target>
franta-hg@8
    37
    <target depends="-pre-init" name="-init-private">
franta-hg@8
    38
        <property file="nbproject/private/private.properties"/>
franta-hg@8
    39
    </target>
franta-hg@8
    40
    <target depends="-pre-init,-init-private" name="-init-user">
franta-hg@8
    41
        <property file="${user.properties.file}"/>
franta-hg@8
    42
        <!-- The two properties below are usually overridden -->
franta-hg@8
    43
        <!-- by the active platform. Just a fallback. -->
franta-hg@8
    44
        <property name="default.javac.source" value="1.4"/>
franta-hg@8
    45
        <property name="default.javac.target" value="1.4"/>
franta-hg@8
    46
    </target>
franta-hg@8
    47
    <target depends="-pre-init,-init-private,-init-user" name="-init-project">
franta-hg@8
    48
        <property file="nbproject/project.properties"/>
franta-hg@8
    49
    </target>
franta-hg@8
    50
    <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" if="dist.ear.dir" name="-do-ear-init"/>
franta-hg@8
    51
    <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
franta-hg@8
    52
        <condition property="have.tests">
franta-hg@8
    53
            <or>
franta-hg@8
    54
                <available file="${test.src.dir}"/>
franta-hg@8
    55
            </or>
franta-hg@8
    56
        </condition>
franta-hg@8
    57
        <condition property="have.sources">
franta-hg@8
    58
            <or>
franta-hg@8
    59
                <available file="${src.dir}"/>
franta-hg@8
    60
            </or>
franta-hg@8
    61
        </condition>
franta-hg@8
    62
        <condition property="netbeans.home+have.tests">
franta-hg@8
    63
            <and>
franta-hg@8
    64
                <isset property="netbeans.home"/>
franta-hg@8
    65
                <isset property="have.tests"/>
franta-hg@8
    66
            </and>
franta-hg@8
    67
        </condition>
franta-hg@8
    68
        <condition property="no.javadoc.preview">
franta-hg@8
    69
            <isfalse value="${javadoc.preview}"/>
franta-hg@8
    70
        </condition>
franta-hg@8
    71
        <property name="javac.compilerargs" value=""/>
franta-hg@8
    72
        <condition property="no.deps">
franta-hg@8
    73
            <and>
franta-hg@8
    74
                <istrue value="${no.dependencies}"/>
franta-hg@8
    75
            </and>
franta-hg@8
    76
        </condition>
franta-hg@8
    77
        <condition property="no.dist.ear.dir">
franta-hg@8
    78
            <not>
franta-hg@8
    79
                <isset property="dist.ear.dir"/>
franta-hg@8
    80
            </not>
franta-hg@8
    81
        </condition>
franta-hg@8
    82
        <property name="build.web.excludes" value="${build.classes.excludes}"/>
franta-hg@8
    83
        <condition property="do.compile.jsps">
franta-hg@8
    84
            <istrue value="${compile.jsps}"/>
franta-hg@8
    85
        </condition>
franta-hg@8
    86
        <condition property="do.debug.server">
franta-hg@8
    87
            <or>
franta-hg@8
    88
                <not>
franta-hg@8
    89
                    <isset property="debug.server"/>
franta-hg@8
    90
                </not>
franta-hg@8
    91
                <istrue value="${debug.server}"/>
franta-hg@8
    92
                <and>
franta-hg@8
    93
                    <not>
franta-hg@8
    94
                        <istrue value="${debug.server}"/>
franta-hg@8
    95
                    </not>
franta-hg@8
    96
                    <not>
franta-hg@8
    97
                        <istrue value="${debug.client}"/>
franta-hg@8
    98
                    </not>
franta-hg@8
    99
                </and>
franta-hg@8
   100
            </or>
franta-hg@8
   101
        </condition>
franta-hg@8
   102
        <condition property="do.debug.client">
franta-hg@8
   103
            <istrue value="${debug.client}"/>
franta-hg@8
   104
        </condition>
franta-hg@8
   105
        <condition property="do.display.browser">
franta-hg@8
   106
            <istrue value="${display.browser}"/>
franta-hg@8
   107
        </condition>
franta-hg@8
   108
        <condition property="do.display.browser.debug">
franta-hg@8
   109
            <and>
franta-hg@8
   110
                <isset property="do.display.browser"/>
franta-hg@8
   111
                <not>
franta-hg@8
   112
                    <isset property="do.debug.client"/>
franta-hg@8
   113
                </not>
franta-hg@8
   114
            </and>
franta-hg@8
   115
        </condition>
franta-hg@8
   116
        <available file="${conf.dir}/MANIFEST.MF" property="has.custom.manifest"/>
franta-hg@8
   117
        <available file="${persistence.xml.dir}/persistence.xml" property="has.persistence.xml"/>
franta-hg@8
   118
        <condition property="do.war.package.with.custom.manifest">
franta-hg@8
   119
            <isset property="has.custom.manifest"/>
franta-hg@8
   120
        </condition>
franta-hg@8
   121
        <condition property="do.war.package.without.custom.manifest">
franta-hg@8
   122
            <not>
franta-hg@8
   123
                <isset property="has.custom.manifest"/>
franta-hg@8
   124
            </not>
franta-hg@8
   125
        </condition>
franta-hg@8
   126
        <condition property="do.tmp.war.package.with.custom.manifest">
franta-hg@8
   127
            <and>
franta-hg@8
   128
                <isset property="has.custom.manifest"/>
franta-hg@8
   129
                <isfalse value="${directory.deployment.supported}"/>
franta-hg@8
   130
            </and>
franta-hg@8
   131
        </condition>
franta-hg@8
   132
        <condition property="do.tmp.war.package.without.custom.manifest">
franta-hg@8
   133
            <and>
franta-hg@8
   134
                <not>
franta-hg@8
   135
                    <isset property="has.custom.manifest"/>
franta-hg@8
   136
                </not>
franta-hg@8
   137
                <isfalse value="${directory.deployment.supported}"/>
franta-hg@8
   138
            </and>
franta-hg@8
   139
        </condition>
fiki@46
   140
        <condition property="do.tmp.war.package">
fiki@46
   141
            <isfalse value="${directory.deployment.supported}"/>
fiki@46
   142
        </condition>
franta-hg@8
   143
        <property name="build.meta.inf.dir" value="${build.web.dir}/META-INF"/>
franta-hg@8
   144
        <condition else="" property="application.args.param" value="${application.args}">
franta-hg@8
   145
            <and>
franta-hg@8
   146
                <isset property="application.args"/>
franta-hg@8
   147
                <not>
franta-hg@8
   148
                    <equals arg1="${application.args}" arg2="" trim="true"/>
franta-hg@8
   149
                </not>
franta-hg@8
   150
            </and>
franta-hg@8
   151
        </condition>
franta-hg@8
   152
        <property name="source.encoding" value="${file.encoding}"/>
franta-hg@8
   153
        <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
franta-hg@8
   154
            <and>
franta-hg@8
   155
                <isset property="javadoc.encoding"/>
franta-hg@8
   156
                <not>
franta-hg@8
   157
                    <equals arg1="${javadoc.encoding}" arg2=""/>
franta-hg@8
   158
                </not>
franta-hg@8
   159
            </and>
franta-hg@8
   160
        </condition>
franta-hg@8
   161
        <property name="javadoc.encoding.used" value="${source.encoding}"/>
franta-hg@8
   162
        <property name="includes" value="**"/>
franta-hg@8
   163
        <property name="excludes" value=""/>
franta-hg@8
   164
        <condition else="" property="javac.compilerargs.jaxws" value="-Djava.endorsed.dirs='${jaxws.endorsed.dir}'">
franta-hg@8
   165
            <and>
franta-hg@8
   166
                <isset property="jaxws.endorsed.dir"/>
franta-hg@8
   167
                <available file="nbproject/jaxws-build.xml"/>
franta-hg@8
   168
            </and>
franta-hg@8
   169
        </condition>
franta-hg@8
   170
        <property name="runmain.jvmargs" value=""/>
franta-hg@8
   171
    </target>
franta-hg@8
   172
    <target depends="init" name="-init-cos" unless="deploy.on.save">
franta-hg@8
   173
        <condition property="deploy.on.save" value="true">
franta-hg@8
   174
            <istrue value="${j2ee.deploy.on.save}"/>
franta-hg@8
   175
        </condition>
franta-hg@8
   176
    </target>
franta-hg@8
   177
    <target name="-post-init">
franta-hg@8
   178
        <!-- Empty placeholder for easier customization. -->
franta-hg@8
   179
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@8
   180
    </target>
franta-hg@8
   181
    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
franta-hg@8
   182
        <fail unless="src.dir">Must set src.dir</fail>
franta-hg@8
   183
        <fail unless="test.src.dir">Must set test.src.dir</fail>
franta-hg@8
   184
        <fail unless="build.dir">Must set build.dir</fail>
franta-hg@8
   185
        <fail unless="build.web.dir">Must set build.web.dir</fail>
franta-hg@8
   186
        <fail unless="build.generated.dir">Must set build.generated.dir</fail>
franta-hg@8
   187
        <fail unless="dist.dir">Must set dist.dir</fail>
franta-hg@8
   188
        <fail unless="build.classes.dir">Must set build.classes.dir</fail>
franta-hg@8
   189
        <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
franta-hg@8
   190
        <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
franta-hg@8
   191
        <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
franta-hg@8
   192
        <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
franta-hg@8
   193
        <fail unless="dist.war">Must set dist.war</fail>
franta-hg@8
   194
        <fail unless="j2ee.platform.classpath">
franta-hg@8
   195
The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}.
franta-hg@8
   196
Either open the project in the IDE and assign the server or setup the server classpath manually.
franta-hg@8
   197
For example like this:
franta-hg@8
   198
   ant -Duser.properties.file=&lt;path_to_property_file&gt; (where you put the property "j2ee.platform.classpath" in a .properties file)
franta-hg@8
   199
or ant -Dj2ee.platform.classpath=&lt;server_classpath&gt; (where no properties file is used)
franta-hg@8
   200
                </fail>
franta-hg@8
   201
    </target>
franta-hg@8
   202
    <target name="-init-macrodef-property">
franta-hg@8
   203
        <macrodef name="property" uri="http://www.netbeans.org/ns/web-project/1">
franta-hg@8
   204
            <attribute name="name"/>
franta-hg@8
   205
            <attribute name="value"/>
franta-hg@8
   206
            <sequential>
franta-hg@8
   207
                <property name="@{name}" value="${@{value}}"/>
franta-hg@8
   208
            </sequential>
franta-hg@8
   209
        </macrodef>
franta-hg@8
   210
    </target>
franta-hg@8
   211
    <target name="-init-macrodef-javac">
franta-hg@8
   212
        <macrodef name="javac" uri="http://www.netbeans.org/ns/web-project/2">
franta-hg@8
   213
            <attribute default="${src.dir}" name="srcdir"/>
franta-hg@8
   214
            <attribute default="${build.classes.dir}" name="destdir"/>
franta-hg@8
   215
            <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
franta-hg@8
   216
            <attribute default="${includes}" name="includes"/>
franta-hg@8
   217
            <attribute default="${excludes}" name="excludes"/>
franta-hg@8
   218
            <attribute default="${javac.debug}" name="debug"/>
fiki@46
   219
            <attribute default="${empty.dir}" name="gensrcdir"/>
franta-hg@8
   220
            <element name="customize" optional="true"/>
franta-hg@8
   221
            <sequential>
fiki@46
   222
                <property location="${build.dir}/empty" name="empty.dir"/>
fiki@46
   223
                <mkdir dir="${empty.dir}"/>
franta-hg@8
   224
                <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" includeantruntime="false" includes="@{includes}" source="${javac.source}" srcdir="@{srcdir}" target="${javac.target}">
fiki@46
   225
                    <src>
fiki@46
   226
                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
fiki@46
   227
                            <include name="*"/>
fiki@46
   228
                        </dirset>
fiki@46
   229
                    </src>
franta-hg@8
   230
                    <classpath>
franta-hg@8
   231
                        <path path="@{classpath}"/>
franta-hg@8
   232
                    </classpath>
franta-hg@8
   233
                    <compilerarg line="${javac.compilerargs} ${javac.compilerargs.jaxws}"/>
franta-hg@8
   234
                    <customize/>
franta-hg@8
   235
                </javac>
franta-hg@8
   236
            </sequential>
franta-hg@8
   237
        </macrodef>
franta-hg@8
   238
    </target>
franta-hg@8
   239
    <target name="-init-macrodef-junit">
franta-hg@8
   240
        <macrodef name="junit" uri="http://www.netbeans.org/ns/web-project/2">
franta-hg@8
   241
            <attribute default="${includes}" name="includes"/>
franta-hg@8
   242
            <attribute default="${excludes}" name="excludes"/>
franta-hg@8
   243
            <attribute default="**" name="testincludes"/>
franta-hg@8
   244
            <sequential>
franta-hg@8
   245
                <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true">
franta-hg@8
   246
                    <batchtest todir="${build.test.results.dir}">
franta-hg@8
   247
                        <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
franta-hg@8
   248
                            <filename name="@{testincludes}"/>
franta-hg@8
   249
                        </fileset>
franta-hg@8
   250
                    </batchtest>
franta-hg@8
   251
                    <classpath>
franta-hg@8
   252
                        <path path="${run.test.classpath}:${j2ee.platform.classpath}"/>
franta-hg@8
   253
                    </classpath>
franta-hg@8
   254
                    <syspropertyset>
franta-hg@8
   255
                        <propertyref prefix="test-sys-prop."/>
franta-hg@8
   256
                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
franta-hg@8
   257
                    </syspropertyset>
franta-hg@8
   258
                    <formatter type="brief" usefile="false"/>
franta-hg@8
   259
                    <formatter type="xml"/>
franta-hg@8
   260
                    <jvmarg line="${runmain.jvmargs}"/>
franta-hg@8
   261
                </junit>
franta-hg@8
   262
            </sequential>
franta-hg@8
   263
        </macrodef>
franta-hg@8
   264
    </target>
franta-hg@8
   265
    <target name="-init-macrodef-java">
franta-hg@8
   266
        <macrodef name="java" uri="http://www.netbeans.org/ns/web-project/1">
franta-hg@8
   267
            <attribute default="${main.class}" name="classname"/>
fiki@46
   268
            <attribute default="${debug.classpath}" name="classpath"/>
franta-hg@8
   269
            <element name="customize" optional="true"/>
franta-hg@8
   270
            <sequential>
franta-hg@8
   271
                <java classname="@{classname}" fork="true">
franta-hg@8
   272
                    <jvmarg line="${runmain.jvmargs}"/>
franta-hg@8
   273
                    <classpath>
fiki@46
   274
                        <path path="@{classpath}:${j2ee.platform.classpath}"/>
franta-hg@8
   275
                    </classpath>
franta-hg@8
   276
                    <syspropertyset>
franta-hg@8
   277
                        <propertyref prefix="run-sys-prop."/>
franta-hg@8
   278
                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
franta-hg@8
   279
                    </syspropertyset>
franta-hg@8
   280
                    <customize/>
franta-hg@8
   281
                </java>
franta-hg@8
   282
            </sequential>
franta-hg@8
   283
        </macrodef>
franta-hg@8
   284
    </target>
franta-hg@8
   285
    <target name="-init-macrodef-nbjsdebug">
franta-hg@8
   286
        <macrodef name="nbjsdebugstart" uri="http://www.netbeans.org/ns/web-project/1">
franta-hg@8
   287
            <attribute default="${client.url}" name="webUrl"/>
franta-hg@8
   288
            <sequential>
franta-hg@8
   289
                <nbjsdebugstart urlPart="${client.urlPart}" webUrl="@{webUrl}"/>
franta-hg@8
   290
            </sequential>
franta-hg@8
   291
        </macrodef>
franta-hg@8
   292
    </target>
franta-hg@8
   293
    <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
franta-hg@8
   294
        <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/web-project/1">
franta-hg@8
   295
            <attribute default="${main.class}" name="name"/>
franta-hg@8
   296
            <attribute default="${debug.classpath}:${j2ee.platform.classpath}" name="classpath"/>
franta-hg@8
   297
            <sequential>
franta-hg@8
   298
                <nbjpdastart addressproperty="jpda.address" name="@{name}" transport="${debug-transport}">
franta-hg@8
   299
                    <classpath>
franta-hg@8
   300
                        <path path="@{classpath}"/>
franta-hg@8
   301
                    </classpath>
franta-hg@8
   302
                </nbjpdastart>
franta-hg@8
   303
            </sequential>
franta-hg@8
   304
        </macrodef>
franta-hg@8
   305
        <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/web-project/1">
franta-hg@8
   306
            <attribute default="${build.classes.dir}" name="dir"/>
franta-hg@8
   307
            <sequential>
franta-hg@8
   308
                <nbjpdareload>
franta-hg@8
   309
                    <fileset dir="@{dir}" includes="${fix.classes}">
franta-hg@8
   310
                        <include name="${fix.includes}*.class"/>
franta-hg@8
   311
                    </fileset>
franta-hg@8
   312
                </nbjpdareload>
franta-hg@8
   313
            </sequential>
franta-hg@8
   314
        </macrodef>
franta-hg@8
   315
        <macrodef name="nbjpdaappreloaded" uri="http://www.netbeans.org/ns/web-project/1">
franta-hg@8
   316
            <sequential>
franta-hg@8
   317
                <nbjpdaappreloaded/>
franta-hg@8
   318
            </sequential>
franta-hg@8
   319
        </macrodef>
franta-hg@8
   320
    </target>
franta-hg@8
   321
    <target name="-init-debug-args">
franta-hg@8
   322
        <property name="version-output" value="java version &quot;${ant.java.version}"/>
franta-hg@8
   323
        <condition property="have-jdk-older-than-1.4">
franta-hg@8
   324
            <or>
franta-hg@8
   325
                <contains string="${version-output}" substring="java version &quot;1.0"/>
franta-hg@8
   326
                <contains string="${version-output}" substring="java version &quot;1.1"/>
franta-hg@8
   327
                <contains string="${version-output}" substring="java version &quot;1.2"/>
franta-hg@8
   328
                <contains string="${version-output}" substring="java version &quot;1.3"/>
franta-hg@8
   329
            </or>
franta-hg@8
   330
        </condition>
franta-hg@8
   331
        <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
franta-hg@8
   332
            <istrue value="${have-jdk-older-than-1.4}"/>
franta-hg@8
   333
        </condition>
franta-hg@8
   334
        <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
franta-hg@8
   335
            <os family="windows"/>
franta-hg@8
   336
        </condition>
franta-hg@8
   337
        <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
franta-hg@8
   338
            <isset property="debug.transport"/>
franta-hg@8
   339
        </condition>
franta-hg@8
   340
    </target>
franta-hg@8
   341
    <target depends="-init-debug-args" name="-init-macrodef-debug">
franta-hg@8
   342
        <macrodef name="debug" uri="http://www.netbeans.org/ns/web-project/1">
franta-hg@8
   343
            <attribute default="${main.class}" name="classname"/>
franta-hg@8
   344
            <attribute default="${debug.classpath}:${j2ee.platform.classpath}" name="classpath"/>
franta-hg@8
   345
            <attribute default="${application.args.param}" name="args"/>
franta-hg@8
   346
            <element name="customize" optional="true"/>
franta-hg@8
   347
            <sequential>
franta-hg@8
   348
                <java classname="@{classname}" fork="true">
franta-hg@8
   349
                    <jvmarg line="${debug-args-line}"/>
franta-hg@8
   350
                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
franta-hg@8
   351
                    <jvmarg line="${runmain.jvmargs}"/>
franta-hg@8
   352
                    <classpath>
franta-hg@8
   353
                        <path path="@{classpath}"/>
franta-hg@8
   354
                    </classpath>
franta-hg@8
   355
                    <syspropertyset>
franta-hg@8
   356
                        <propertyref prefix="run-sys-prop."/>
franta-hg@8
   357
                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
franta-hg@8
   358
                    </syspropertyset>
franta-hg@8
   359
                    <arg line="@{args}"/>
franta-hg@8
   360
                    <customize/>
franta-hg@8
   361
                </java>
franta-hg@8
   362
            </sequential>
franta-hg@8
   363
        </macrodef>
franta-hg@8
   364
    </target>
franta-hg@8
   365
    <target name="-init-taskdefs">
franta-hg@8
   366
        <fail unless="libs.CopyLibs.classpath">
franta-hg@8
   367
The libs.CopyLibs.classpath property is not set up.
franta-hg@8
   368
This property must point to 
franta-hg@8
   369
org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
franta-hg@8
   370
of NetBeans IDE installation and is usually located at 
franta-hg@8
   371
&lt;netbeans_installation&gt;/java&lt;version&gt;/ant/extra folder.
franta-hg@8
   372
Either open the project in the IDE and make sure CopyLibs library
franta-hg@8
   373
exists or setup the property manually. For example like this:
franta-hg@8
   374
 ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar
franta-hg@8
   375
                </fail>
franta-hg@8
   376
        <taskdef classpath="${libs.CopyLibs.classpath}" resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
franta-hg@8
   377
    </target>
franta-hg@8
   378
    <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-java,-init-macrodef-nbjpda,-init-macrodef-nbjsdebug,-init-macrodef-debug,-init-taskdefs" name="init"/>
franta-hg@8
   379
    <!--
franta-hg@8
   380
                COMPILATION SECTION
franta-hg@8
   381
            -->
franta-hg@15
   382
    <target depends="init" if="no.dist.ear.dir" name="deps-module-jar" unless="no.deps">
fiki@46
   383
        <ant antfile="${project.SuperDAO}/build.xml" inheritall="false" target="jar">
fiki@46
   384
            <property name="deploy.on.save" value="false"/>
fiki@46
   385
        </ant>
franta-hg@15
   386
    </target>
franta-hg@15
   387
    <target depends="init" if="dist.ear.dir" name="deps-ear-jar" unless="no.deps">
fiki@46
   388
        <ant antfile="${project.SuperDAO}/build.xml" inheritall="false" target="jar">
fiki@46
   389
            <property name="deploy.on.save" value="false"/>
fiki@46
   390
        </ant>
franta-hg@15
   391
    </target>
franta-hg@8
   392
    <target depends="init, deps-module-jar, deps-ear-jar" name="deps-jar" unless="no.deps"/>
franta-hg@8
   393
    <target depends="init,deps-jar" name="-pre-pre-compile">
franta-hg@8
   394
        <mkdir dir="${build.classes.dir}"/>
franta-hg@8
   395
    </target>
franta-hg@8
   396
    <target name="-pre-compile">
franta-hg@8
   397
        <!-- Empty placeholder for easier customization. -->
franta-hg@8
   398
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@8
   399
    </target>
franta-hg@8
   400
    <target name="-copy-webdir">
franta-hg@8
   401
        <copy todir="${build.web.dir}">
franta-hg@8
   402
            <fileset dir="${web.docbase.dir}" excludes="${build.web.excludes},${excludes}" includes="${includes}"/>
franta-hg@8
   403
        </copy>
franta-hg@8
   404
        <copy todir="${build.web.dir}/WEB-INF">
franta-hg@8
   405
            <fileset dir="${webinf.dir}" excludes="${build.web.excludes}"/>
franta-hg@8
   406
        </copy>
franta-hg@8
   407
    </target>
fiki@46
   408
    <target depends="init, deps-jar, -pre-pre-compile, -pre-compile, -copy-manifest, -copy-persistence-xml, -copy-webdir, library-inclusion-in-archive,library-inclusion-in-manifest" if="have.sources" name="-do-compile">
fiki@46
   409
        <webproject2:javac destdir="${build.classes.dir}" gensrcdir="${build.generated.sources.dir}"/>
franta-hg@8
   410
        <copy todir="${build.classes.dir}">
franta-hg@8
   411
            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
franta-hg@8
   412
        </copy>
franta-hg@8
   413
    </target>
franta-hg@8
   414
    <target if="has.custom.manifest" name="-copy-manifest">
franta-hg@8
   415
        <mkdir dir="${build.meta.inf.dir}"/>
franta-hg@8
   416
        <copy todir="${build.meta.inf.dir}">
franta-hg@8
   417
            <fileset dir="${conf.dir}" includes="MANIFEST.MF"/>
franta-hg@8
   418
        </copy>
franta-hg@8
   419
    </target>
franta-hg@8
   420
    <target if="has.persistence.xml" name="-copy-persistence-xml">
franta-hg@8
   421
        <mkdir dir="${build.web.dir}/WEB-INF/classes/META-INF"/>
franta-hg@8
   422
        <copy todir="${build.web.dir}/WEB-INF/classes/META-INF">
franta-hg@8
   423
            <fileset dir="${persistence.xml.dir}" includes="persistence.xml"/>
franta-hg@8
   424
        </copy>
franta-hg@8
   425
    </target>
franta-hg@8
   426
    <target name="-post-compile">
franta-hg@8
   427
        <!-- Empty placeholder for easier customization. -->
franta-hg@8
   428
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@8
   429
    </target>
franta-hg@8
   430
    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
franta-hg@8
   431
    <target name="-pre-compile-single">
franta-hg@8
   432
        <!-- Empty placeholder for easier customization. -->
franta-hg@8
   433
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@8
   434
    </target>
franta-hg@8
   435
    <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
franta-hg@8
   436
        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
fiki@46
   437
        <webproject2:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}"/>
franta-hg@8
   438
        <copy todir="${build.classes.dir}">
franta-hg@8
   439
            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
franta-hg@8
   440
        </copy>
franta-hg@8
   441
    </target>
franta-hg@8
   442
    <target name="-post-compile-single">
franta-hg@8
   443
        <!-- Empty placeholder for easier customization. -->
franta-hg@8
   444
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@8
   445
    </target>
franta-hg@8
   446
    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
franta-hg@8
   447
    <target depends="compile" description="Test compile JSP pages to expose compilation errors." if="do.compile.jsps" name="compile-jsps">
franta-hg@8
   448
        <mkdir dir="${build.generated.dir}/src"/>
franta-hg@8
   449
        <java classname="org.netbeans.modules.web.project.ant.JspC" failonerror="true" fork="true">
franta-hg@8
   450
            <arg value="-uriroot"/>
franta-hg@8
   451
            <arg file="${basedir}/${build.web.dir}"/>
franta-hg@8
   452
            <arg value="-d"/>
franta-hg@8
   453
            <arg file="${basedir}/${build.generated.dir}/src"/>
franta-hg@8
   454
            <arg value="-die1"/>
franta-hg@8
   455
            <arg value="-compilerSourceVM ${javac.source}"/>
franta-hg@8
   456
            <arg value="-compilerTargetVM ${javac.target}"/>
franta-hg@8
   457
            <arg value="-javaEncoding ${source.encoding}"/>
franta-hg@8
   458
            <classpath path="${java.home}/../lib/tools.jar:${jspctask.classpath}:${jspcompilation.classpath}"/>
franta-hg@8
   459
        </java>
franta-hg@8
   460
        <mkdir dir="${build.generated.dir}/classes"/>
franta-hg@8
   461
        <webproject2:javac classpath="${j2ee.platform.classpath}:${build.classes.dir}:${jspcompilation.classpath}" destdir="${build.generated.dir}/classes" srcdir="${build.generated.dir}/src"/>
franta-hg@8
   462
    </target>
franta-hg@8
   463
    <target depends="compile" if="jsp.includes" name="-do-compile-single-jsp">
franta-hg@8
   464
        <fail unless="javac.jsp.includes">Must select some files in the IDE or set javac.jsp.includes</fail>
franta-hg@8
   465
        <mkdir dir="${build.generated.dir}/src"/>
franta-hg@8
   466
        <java classname="org.netbeans.modules.web.project.ant.JspCSingle" failonerror="true" fork="true">
franta-hg@8
   467
            <arg value="-uriroot"/>
franta-hg@8
   468
            <arg file="${basedir}/${build.web.dir}"/>
franta-hg@8
   469
            <arg value="-d"/>
franta-hg@8
   470
            <arg file="${basedir}/${build.generated.dir}/src"/>
franta-hg@8
   471
            <arg value="-die1"/>
franta-hg@8
   472
            <arg value="-jspc.files"/>
franta-hg@8
   473
            <arg path="${jsp.includes}"/>
franta-hg@8
   474
            <arg value="-compilerSourceVM ${javac.source}"/>
franta-hg@8
   475
            <arg value="-compilerTargetVM ${javac.target}"/>
franta-hg@8
   476
            <arg value="-javaEncoding ${source.encoding}"/>
franta-hg@8
   477
            <classpath path="${java.home}/../lib/tools.jar:${jspctask.classpath}:${jspcompilation.classpath}"/>
franta-hg@8
   478
        </java>
franta-hg@8
   479
        <mkdir dir="${build.generated.dir}/classes"/>
franta-hg@8
   480
        <webproject2:javac classpath="${j2ee.platform.classpath}:${build.classes.dir}:${jspcompilation.classpath}" destdir="${build.generated.dir}/classes" srcdir="${build.generated.dir}/src">
franta-hg@8
   481
            <customize>
franta-hg@8
   482
                <patternset includes="${javac.jsp.includes}"/>
franta-hg@8
   483
            </customize>
franta-hg@8
   484
        </webproject2:javac>
franta-hg@8
   485
    </target>
franta-hg@8
   486
    <target name="compile-single-jsp">
franta-hg@8
   487
        <fail unless="jsp.includes">Must select a file in the IDE or set jsp.includes</fail>
franta-hg@8
   488
        <antcall target="-do-compile-single-jsp"/>
franta-hg@8
   489
    </target>
franta-hg@8
   490
    <!--
franta-hg@8
   491
                DIST BUILDING SECTION
franta-hg@8
   492
            -->
franta-hg@8
   493
    <target name="-pre-dist">
franta-hg@8
   494
        <!-- Empty placeholder for easier customization. -->
franta-hg@8
   495
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@8
   496
    </target>
franta-hg@8
   497
    <target depends="init,compile,compile-jsps,-pre-dist" if="do.war.package.without.custom.manifest" name="-do-dist-without-manifest">
franta-hg@8
   498
        <dirname file="${dist.war}" property="dist.jar.dir"/>
franta-hg@8
   499
        <mkdir dir="${dist.jar.dir}"/>
franta-hg@8
   500
        <jar compress="${jar.compress}" jarfile="${dist.war}">
franta-hg@8
   501
            <fileset dir="${build.web.dir}"/>
franta-hg@8
   502
        </jar>
franta-hg@8
   503
    </target>
franta-hg@8
   504
    <target depends="init,compile,compile-jsps,-pre-dist" if="do.war.package.with.custom.manifest" name="-do-dist-with-manifest">
franta-hg@8
   505
        <dirname file="${dist.war}" property="dist.jar.dir"/>
franta-hg@8
   506
        <mkdir dir="${dist.jar.dir}"/>
franta-hg@8
   507
        <jar compress="${jar.compress}" jarfile="${dist.war}" manifest="${build.meta.inf.dir}/MANIFEST.MF">
franta-hg@8
   508
            <fileset dir="${build.web.dir}"/>
franta-hg@8
   509
        </jar>
franta-hg@8
   510
    </target>
franta-hg@8
   511
    <target depends="init,compile,compile-jsps,-pre-dist" if="do.tmp.war.package.without.custom.manifest" name="-do-tmp-dist-without-manifest">
franta-hg@8
   512
        <dirname file="${dist.war}" property="dist.jar.dir"/>
franta-hg@8
   513
        <mkdir dir="${dist.jar.dir}"/>
franta-hg@8
   514
        <jar compress="${jar.compress}" jarfile="${dist.war}">
franta-hg@8
   515
            <fileset dir="${build.web.dir}"/>
franta-hg@8
   516
        </jar>
franta-hg@8
   517
    </target>
franta-hg@8
   518
    <target depends="init,compile,compile-jsps,-pre-dist" if="do.tmp.war.package.with.custom.manifest" name="-do-tmp-dist-with-manifest">
franta-hg@8
   519
        <dirname file="${dist.war}" property="dist.jar.dir"/>
franta-hg@8
   520
        <mkdir dir="${dist.jar.dir}"/>
franta-hg@8
   521
        <jar compress="${jar.compress}" jarfile="${dist.war}" manifest="${build.meta.inf.dir}/MANIFEST.MF">
franta-hg@8
   522
            <fileset dir="${build.web.dir}"/>
franta-hg@8
   523
        </jar>
franta-hg@8
   524
    </target>
franta-hg@8
   525
    <target depends="init,compile,compile-jsps,-pre-dist,-do-dist-with-manifest,-do-dist-without-manifest" name="do-dist"/>
franta-hg@8
   526
    <target depends="init" if="dist.ear.dir" name="library-inclusion-in-manifest">
franta-hg@15
   527
        <copyfiles files="${reference.SuperDAO.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.reference.SuperDAO.jar" todir="${dist.ear.dir}"/>
franta-hg@8
   528
        <mkdir dir="${build.web.dir}/META-INF"/>
franta-hg@15
   529
        <manifest file="${build.web.dir}/META-INF/MANIFEST.MF" mode="update">
franta-hg@15
   530
            <attribute name="Class-Path" value="${manifest.reference.SuperDAO.jar} "/>
franta-hg@15
   531
        </manifest>
franta-hg@8
   532
    </target>
franta-hg@15
   533
    <target depends="init" name="library-inclusion-in-archive" unless="dist.ear.dir">
franta-hg@15
   534
        <copyfiles files="${reference.SuperDAO.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
franta-hg@15
   535
    </target>
fiki@46
   536
    <target depends="init,compile,compile-jsps,-pre-dist,library-inclusion-in-manifest" if="do.tmp.war.package" name="do-ear-dist">
franta-hg@8
   537
        <dirname file="${dist.ear.war}" property="dist.jar.dir"/>
franta-hg@8
   538
        <mkdir dir="${dist.jar.dir}"/>
franta-hg@8
   539
        <jar compress="${jar.compress}" jarfile="${dist.ear.war}" manifest="${build.web.dir}/META-INF/MANIFEST.MF">
franta-hg@8
   540
            <fileset dir="${build.web.dir}"/>
franta-hg@8
   541
        </jar>
franta-hg@8
   542
    </target>
franta-hg@8
   543
    <target name="-post-dist">
franta-hg@8
   544
        <!-- Empty placeholder for easier customization. -->
franta-hg@8
   545
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@8
   546
    </target>
franta-hg@8
   547
    <target depends="init,compile,-pre-dist,do-dist,-post-dist" description="Build distribution (WAR)." name="dist"/>
franta-hg@8
   548
    <target depends="init,-init-cos,compile,-pre-dist,do-ear-dist,-post-dist" description="Build distribution (WAR) to be packaged into an EAR." name="dist-ear"/>
franta-hg@8
   549
    <!--
franta-hg@8
   550
                EXECUTION SECTION
franta-hg@8
   551
            -->
franta-hg@8
   552
    <target depends="run-deploy,run-display-browser" description="Deploy to server and show in browser." name="run"/>
franta-hg@8
   553
    <target name="-pre-run-deploy">
franta-hg@8
   554
        <!-- Empty placeholder for easier customization. -->
franta-hg@8
   555
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@8
   556
    </target>
franta-hg@8
   557
    <target name="-post-run-deploy">
franta-hg@8
   558
        <!-- Empty placeholder for easier customization. -->
franta-hg@8
   559
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@8
   560
    </target>
franta-hg@8
   561
    <target name="-pre-nbmodule-run-deploy">
franta-hg@8
   562
        <!-- Empty placeholder for easier customization. -->
franta-hg@8
   563
        <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
franta-hg@8
   564
    </target>
franta-hg@8
   565
    <target name="-post-nbmodule-run-deploy">
franta-hg@8
   566
        <!-- Empty placeholder for easier customization. -->
franta-hg@8
   567
        <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
franta-hg@8
   568
    </target>
franta-hg@8
   569
    <target name="-run-deploy-am">
franta-hg@8
   570
        <!-- Task to deploy to the Access Manager runtime. -->
franta-hg@8
   571
    </target>
franta-hg@8
   572
    <target depends="init,-init-cos,compile,compile-jsps,-do-compile-single-jsp,-pre-dist,-do-tmp-dist-with-manifest,-do-tmp-dist-without-manifest,-pre-run-deploy,-pre-nbmodule-run-deploy,-run-deploy-nb,-init-deploy-ant,-deploy-ant,-run-deploy-am,-post-nbmodule-run-deploy,-post-run-deploy" name="run-deploy">
franta-hg@8
   573
        <nbjpdaappreloaded/>
franta-hg@8
   574
    </target>
franta-hg@8
   575
    <target if="netbeans.home" name="-run-deploy-nb">
franta-hg@8
   576
        <nbdeploy clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
franta-hg@8
   577
    </target>
franta-hg@8
   578
    <target name="-init-deploy-ant" unless="netbeans.home">
franta-hg@8
   579
        <property name="deploy.ant.archive" value="${dist.war}"/>
franta-hg@8
   580
        <property name="deploy.ant.docbase.dir" value="${web.docbase.dir}"/>
franta-hg@8
   581
        <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
franta-hg@8
   582
        <property name="deploy.ant.enabled" value="true"/>
franta-hg@8
   583
    </target>
franta-hg@8
   584
    <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
franta-hg@8
   585
    <target if="netbeans.home" name="-run-undeploy-nb">
franta-hg@8
   586
        <fail message="Undeploy is not supported from within the IDE"/>
franta-hg@8
   587
    </target>
franta-hg@8
   588
    <target depends="init,-pre-dist,dist,-post-dist" name="verify">
franta-hg@8
   589
        <nbverify file="${dist.war}"/>
franta-hg@8
   590
    </target>
franta-hg@8
   591
    <target depends="run-deploy,-init-display-browser,-display-browser-nb,-display-browser-cl" name="run-display-browser"/>
franta-hg@8
   592
    <target if="do.display.browser" name="-init-display-browser">
franta-hg@8
   593
        <condition property="do.display.browser.nb">
franta-hg@8
   594
            <isset property="netbeans.home"/>
franta-hg@8
   595
        </condition>
franta-hg@8
   596
        <condition property="do.display.browser.cl">
franta-hg@8
   597
            <isset property="deploy.ant.enabled"/>
franta-hg@8
   598
        </condition>
franta-hg@8
   599
    </target>
franta-hg@8
   600
    <target if="do.display.browser.nb" name="-display-browser-nb">
franta-hg@8
   601
        <nbbrowse url="${client.url}"/>
franta-hg@8
   602
    </target>
franta-hg@8
   603
    <target if="do.display.browser.cl" name="-get-browser" unless="browser">
franta-hg@8
   604
        <condition property="browser" value="rundll32">
franta-hg@8
   605
            <os family="windows"/>
franta-hg@8
   606
        </condition>
franta-hg@8
   607
        <condition else="" property="browser.args" value="url.dll,FileProtocolHandler">
franta-hg@8
   608
            <os family="windows"/>
franta-hg@8
   609
        </condition>
franta-hg@8
   610
        <condition property="browser" value="/usr/bin/open">
franta-hg@8
   611
            <os family="mac"/>
franta-hg@8
   612
        </condition>
franta-hg@8
   613
        <property environment="env"/>
franta-hg@8
   614
        <condition property="browser" value="${env.BROWSER}">
franta-hg@8
   615
            <isset property="env.BROWSER"/>
franta-hg@8
   616
        </condition>
franta-hg@8
   617
        <condition property="browser" value="/usr/bin/firefox">
franta-hg@8
   618
            <available file="/usr/bin/firefox"/>
franta-hg@8
   619
        </condition>
franta-hg@8
   620
        <condition property="browser" value="/usr/local/firefox/firefox">
franta-hg@8
   621
            <available file="/usr/local/firefox/firefox"/>
franta-hg@8
   622
        </condition>
franta-hg@8
   623
        <condition property="browser" value="/usr/bin/mozilla">
franta-hg@8
   624
            <available file="/usr/bin/mozilla"/>
franta-hg@8
   625
        </condition>
franta-hg@8
   626
        <condition property="browser" value="/usr/local/mozilla/mozilla">
franta-hg@8
   627
            <available file="/usr/local/mozilla/mozilla"/>
franta-hg@8
   628
        </condition>
franta-hg@8
   629
        <condition property="browser" value="/usr/sfw/lib/firefox/firefox">
franta-hg@8
   630
            <available file="/usr/sfw/lib/firefox/firefox"/>
franta-hg@8
   631
        </condition>
franta-hg@8
   632
        <condition property="browser" value="/opt/csw/bin/firefox">
franta-hg@8
   633
            <available file="/opt/csw/bin/firefox"/>
franta-hg@8
   634
        </condition>
franta-hg@8
   635
        <condition property="browser" value="/usr/sfw/lib/mozilla/mozilla">
franta-hg@8
   636
            <available file="/usr/sfw/lib/mozilla/mozilla"/>
franta-hg@8
   637
        </condition>
franta-hg@8
   638
        <condition property="browser" value="/opt/csw/bin/mozilla">
franta-hg@8
   639
            <available file="/opt/csw/bin/mozilla"/>
franta-hg@8
   640
        </condition>
franta-hg@8
   641
    </target>
franta-hg@8
   642
    <target depends="-get-browser" if="do.display.browser.cl" name="-display-browser-cl">
franta-hg@8
   643
        <fail unless="browser">
franta-hg@8
   644
                    Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable.
franta-hg@8
   645
                </fail>
franta-hg@8
   646
        <property name="browse.url" value="${deploy.ant.client.url}${client.urlPart}"/>
franta-hg@8
   647
        <echo>Launching ${browse.url}</echo>
franta-hg@8
   648
        <exec executable="${browser}" spawn="true">
franta-hg@8
   649
            <arg line="${browser.args} ${browse.url}"/>
franta-hg@8
   650
        </exec>
franta-hg@8
   651
    </target>
franta-hg@8
   652
    <target depends="init,-init-cos,compile-single" name="run-main">
franta-hg@8
   653
        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
franta-hg@8
   654
        <webproject1:java classname="${run.class}"/>
franta-hg@8
   655
    </target>
fiki@46
   656
    <target depends="init,compile-test-single,-pre-test-run-single" name="run-test-with-main">
fiki@46
   657
        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
fiki@46
   658
        <webproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
fiki@46
   659
    </target>
franta-hg@8
   660
    <!--
franta-hg@8
   661
                DEBUGGING SECTION
franta-hg@8
   662
            -->
franta-hg@8
   663
    <target depends="init,compile,compile-jsps,-do-compile-single-jsp,-pre-dist,-do-tmp-dist-with-manifest,-do-tmp-dist-without-manifest" description="Debug project in IDE." if="netbeans.home" name="debug">
fiki@46
   664
        <nbstartserver debugmode="true"/>
franta-hg@8
   665
        <antcall target="connect-debugger"/>
fiki@46
   666
        <nbdeploy clientUrlPart="${client.urlPart}" debugmode="true" forceRedeploy="true"/>
franta-hg@8
   667
        <antcall target="debug-display-browser"/>
franta-hg@8
   668
        <antcall target="connect-client-debugger"/>
franta-hg@8
   669
    </target>
franta-hg@8
   670
    <target if="do.debug.server" name="connect-debugger" unless="is.debugged">
franta-hg@8
   671
        <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
franta-hg@8
   672
            <classpath>
franta-hg@8
   673
                <path path="${debug.classpath}:${j2ee.platform.classpath}"/>
franta-hg@8
   674
            </classpath>
franta-hg@8
   675
            <sourcepath>
franta-hg@8
   676
                <path path="${web.docbase.dir}"/>
franta-hg@8
   677
            </sourcepath>
franta-hg@8
   678
        </nbjpdaconnect>
franta-hg@8
   679
    </target>
franta-hg@8
   680
    <target if="do.display.browser.debug" name="debug-display-browser">
franta-hg@8
   681
        <nbbrowse url="${client.url}"/>
franta-hg@8
   682
    </target>
franta-hg@8
   683
    <target if="do.debug.client" name="connect-client-debugger">
franta-hg@8
   684
        <webproject1:nbjsdebugstart webUrl="${client.url}"/>
franta-hg@8
   685
    </target>
fiki@46
   686
    <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
fiki@46
   687
        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
fiki@46
   688
        <webproject1:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
fiki@46
   689
    </target>
fiki@46
   690
    <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@8
   691
    <target depends="init,compile,compile-jsps,-do-compile-single-jsp,debug" if="netbeans.home" name="debug-single"/>
fiki@46
   692
    <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
fiki@46
   693
        <webproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
fiki@46
   694
    </target>
franta-hg@8
   695
    <target depends="init" if="netbeans.home" name="-debug-start-debugger">
franta-hg@8
   696
        <webproject1:nbjpdastart name="${debug.class}"/>
franta-hg@8
   697
    </target>
franta-hg@8
   698
    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
franta-hg@8
   699
        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
franta-hg@8
   700
        <webproject1:debug classname="${debug.class}"/>
franta-hg@8
   701
    </target>
franta-hg@8
   702
    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single-main"/>
franta-hg@8
   703
    <target depends="init" name="-pre-debug-fix">
franta-hg@8
   704
        <fail unless="fix.includes">Must set fix.includes</fail>
franta-hg@8
   705
        <property name="javac.includes" value="${fix.includes}.java"/>
franta-hg@8
   706
    </target>
franta-hg@8
   707
    <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
franta-hg@8
   708
        <webproject1:nbjpdareload/>
franta-hg@8
   709
    </target>
franta-hg@8
   710
    <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
franta-hg@8
   711
    <!--
franta-hg@8
   712
                JAVADOC SECTION
franta-hg@8
   713
            -->
franta-hg@8
   714
    <target depends="init" name="javadoc-build">
franta-hg@8
   715
        <mkdir dir="${dist.javadoc.dir}"/>
franta-hg@8
   716
        <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@8
   717
            <classpath>
franta-hg@8
   718
                <path path="${javac.classpath}:${j2ee.platform.classpath}"/>
franta-hg@8
   719
            </classpath>
franta-hg@8
   720
            <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
franta-hg@8
   721
                <filename name="**/*.java"/>
franta-hg@8
   722
            </fileset>
fiki@46
   723
            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
fiki@46
   724
                <include name="**/*.java"/>
fiki@46
   725
            </fileset>
franta-hg@8
   726
        </javadoc>
franta-hg@8
   727
    </target>
franta-hg@8
   728
    <target depends="init,javadoc-build" if="netbeans.home" name="javadoc-browse" unless="no.javadoc.preview">
franta-hg@8
   729
        <nbbrowse file="${dist.javadoc.dir}/index.html"/>
franta-hg@8
   730
    </target>
franta-hg@8
   731
    <target depends="init,javadoc-build,javadoc-browse" description="Build Javadoc." name="javadoc"/>
franta-hg@8
   732
    <!--
franta-hg@8
   733
                
franta-hg@8
   734
                JUNIT COMPILATION SECTION
franta-hg@8
   735
            -->
franta-hg@8
   736
    <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
franta-hg@8
   737
        <mkdir dir="${build.test.classes.dir}"/>
franta-hg@8
   738
    </target>
franta-hg@8
   739
    <target name="-pre-compile-test">
franta-hg@8
   740
        <!-- Empty placeholder for easier customization. -->
franta-hg@8
   741
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@8
   742
    </target>
franta-hg@8
   743
    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test" if="have.tests" name="-do-compile-test">
franta-hg@8
   744
        <webproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
franta-hg@8
   745
        <copy todir="${build.test.classes.dir}">
franta-hg@8
   746
            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
franta-hg@8
   747
        </copy>
franta-hg@8
   748
    </target>
franta-hg@8
   749
    <target name="-post-compile-test">
franta-hg@8
   750
        <!-- Empty placeholder for easier customization. -->
franta-hg@8
   751
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@8
   752
    </target>
franta-hg@8
   753
    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
franta-hg@8
   754
    <target name="-pre-compile-test-single">
franta-hg@8
   755
        <!-- Empty placeholder for easier customization. -->
franta-hg@8
   756
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@8
   757
    </target>
franta-hg@8
   758
    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
franta-hg@8
   759
        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
franta-hg@8
   760
        <webproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" srcdir="${test.src.dir}"/>
franta-hg@8
   761
        <copy todir="${build.test.classes.dir}">
franta-hg@8
   762
            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
franta-hg@8
   763
        </copy>
franta-hg@8
   764
    </target>
franta-hg@8
   765
    <target name="-post-compile-test-single">
franta-hg@8
   766
        <!-- Empty placeholder for easier customization. -->
franta-hg@8
   767
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@8
   768
    </target>
franta-hg@8
   769
    <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@8
   770
    <!--
franta-hg@8
   771
                
franta-hg@8
   772
                JUNIT EXECUTION SECTION
franta-hg@8
   773
            -->
franta-hg@8
   774
    <target depends="init" if="have.tests" name="-pre-test-run">
franta-hg@8
   775
        <mkdir dir="${build.test.results.dir}"/>
franta-hg@8
   776
    </target>
franta-hg@8
   777
    <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
franta-hg@8
   778
        <webproject2:junit testincludes="**/*Test.java"/>
franta-hg@8
   779
    </target>
franta-hg@8
   780
    <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
fiki@46
   781
        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
franta-hg@8
   782
    </target>
franta-hg@8
   783
    <target depends="init" if="have.tests" name="test-report"/>
franta-hg@8
   784
    <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
franta-hg@8
   785
    <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@8
   786
    <target depends="init" if="have.tests" name="-pre-test-run-single">
franta-hg@8
   787
        <mkdir dir="${build.test.results.dir}"/>
franta-hg@8
   788
    </target>
franta-hg@8
   789
    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
franta-hg@8
   790
        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
franta-hg@8
   791
        <webproject2:junit excludes="" includes="${test.includes}"/>
franta-hg@8
   792
    </target>
franta-hg@8
   793
    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
fiki@46
   794
        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
franta-hg@8
   795
    </target>
franta-hg@8
   796
    <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@8
   797
    <!--
franta-hg@8
   798
                
franta-hg@8
   799
                JUNIT DEBUGGING SECTION
franta-hg@8
   800
            -->
franta-hg@8
   801
    <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
franta-hg@8
   802
        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
franta-hg@8
   803
        <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
franta-hg@8
   804
        <delete file="${test.report.file}"/>
franta-hg@8
   805
        <!-- must exist, otherwise the XML formatter would fail -->
franta-hg@8
   806
        <mkdir dir="${build.test.results.dir}"/>
franta-hg@8
   807
        <webproject1:debug args="${test.class}" 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@8
   808
            <customize>
franta-hg@8
   809
                <arg value="showoutput=true"/>
franta-hg@8
   810
                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
franta-hg@8
   811
                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
franta-hg@8
   812
            </customize>
franta-hg@8
   813
        </webproject1:debug>
franta-hg@8
   814
    </target>
franta-hg@8
   815
    <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
franta-hg@8
   816
        <webproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
franta-hg@8
   817
    </target>
franta-hg@8
   818
    <target depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
franta-hg@8
   819
    <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
franta-hg@8
   820
        <webproject1:nbjpdareload dir="${build.test.classes.dir}"/>
franta-hg@8
   821
    </target>
franta-hg@8
   822
    <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
franta-hg@8
   823
    <!--
franta-hg@8
   824
                
franta-hg@8
   825
                CLEANUP SECTION
franta-hg@8
   826
            -->
franta-hg@15
   827
    <target depends="init" if="no.dist.ear.dir" name="deps-clean" unless="no.deps">
franta-hg@15
   828
        <ant antfile="${project.SuperDAO}/build.xml" inheritall="false" target="clean"/>
franta-hg@15
   829
    </target>
franta-hg@8
   830
    <target depends="init" name="do-clean">
franta-hg@8
   831
        <condition property="build.dir.to.clean" value="${build.web.dir}">
franta-hg@8
   832
            <isset property="dist.ear.dir"/>
franta-hg@8
   833
        </condition>
franta-hg@8
   834
        <property name="build.dir.to.clean" value="${build.web.dir}"/>
franta-hg@8
   835
        <delete includeEmptyDirs="true" quiet="true">
franta-hg@8
   836
            <fileset dir="${build.dir.to.clean}/WEB-INF/lib"/>
franta-hg@8
   837
        </delete>
franta-hg@8
   838
        <delete dir="${build.dir}"/>
franta-hg@8
   839
        <available file="${build.dir.to.clean}/WEB-INF/lib" property="status.clean-failed" type="dir"/>
franta-hg@8
   840
        <delete dir="${dist.dir}"/>
franta-hg@8
   841
    </target>
franta-hg@8
   842
    <target depends="do-clean" if="status.clean-failed" name="check-clean">
franta-hg@8
   843
        <echo message="Warning: unable to delete some files in ${build.web.dir}/WEB-INF/lib - they are probably locked by the J2EE server. "/>
franta-hg@8
   844
        <echo level="info" message="To delete all files undeploy the module from Server Registry in Runtime tab and then use Clean again."/>
franta-hg@8
   845
    </target>
franta-hg@8
   846
    <target depends="init" if="netbeans.home" name="undeploy-clean">
franta-hg@8
   847
        <nbundeploy failOnError="false" startServer="false"/>
franta-hg@8
   848
    </target>
franta-hg@8
   849
    <target name="-post-clean">
franta-hg@8
   850
        <!-- Empty placeholder for easier customization. -->
franta-hg@8
   851
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@8
   852
    </target>
franta-hg@8
   853
    <target depends="init,undeploy-clean,deps-clean,do-clean,check-clean,-post-clean" description="Clean build products." name="clean"/>
franta-hg@8
   854
    <target depends="clean" description="Clean build products." name="clean-ear"/>
franta-hg@8
   855
</project>