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