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