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