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