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