project initialization

Wed, 29 Mar 2017 15:03:25 +0200

author
Mike Becker <universe@uap-core.de>
date
Wed, 29 Mar 2017 15:03:25 +0200
changeset 0
ad22b29e3a40
child 1
34241be7db73

project initialization

.hgignore file | annotate | diff | comparison | revisions
LICENSE file | annotate | diff | comparison | revisions
build.xml file | annotate | diff | comparison | revisions
nbproject/ant-deploy.xml file | annotate | diff | comparison | revisions
nbproject/build-impl.xml file | annotate | diff | comparison | revisions
nbproject/genfiles.properties file | annotate | diff | comparison | revisions
nbproject/project.properties file | annotate | diff | comparison | revisions
nbproject/project.xml file | annotate | diff | comparison | revisions
src/conf/MANIFEST.MF file | annotate | diff | comparison | revisions
web/WEB-INF/glassfish-web.xml file | annotate | diff | comparison | revisions
web/index.html file | annotate | diff | comparison | revisions
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/.hgignore	Wed Mar 29 15:03:25 2017 +0200
     1.3 @@ -0,0 +1,3 @@
     1.4 +syntax: regexp
     1.5 +^nbproject/private/
     1.6 +^build/
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/LICENSE	Wed Mar 29 15:03:25 2017 +0200
     2.3 @@ -0,0 +1,22 @@
     2.4 +Copyright 2017 Mike Becker. All rights reserved.
     2.5 +
     2.6 +Redistribution and use in source and binary forms, with or without
     2.7 +modification, are permitted provided that the following conditions are met:
     2.8 +
     2.9 +1. Redistributions of source code must retain the above copyright
    2.10 +notice, this list of conditions and the following disclaimer.
    2.11 +
    2.12 +2. Redistributions in binary form must reproduce the above copyright
    2.13 +notice, this list of conditions and the following disclaimer in the
    2.14 +documentation and/or other materials provided with the distribution.
    2.15 +
    2.16 +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
    2.17 +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    2.18 +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
    2.19 +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
    2.20 +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    2.21 +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
    2.22 +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
    2.23 +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    2.24 +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    2.25 +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/build.xml	Wed Mar 29 15:03:25 2017 +0200
     3.3 @@ -0,0 +1,71 @@
     3.4 +<?xml version="1.0" encoding="UTF-8"?>
     3.5 +<!-- You may freely edit this file. See commented blocks below for -->
     3.6 +<!-- some examples of how to customize the build. -->
     3.7 +<!-- (If you delete it and reopen the project it will be recreated.) -->
     3.8 +<!-- By default, only the Clean and Build commands use this build script. -->
     3.9 +<!-- Commands such as Run, Debug, and Test only use this build script if -->
    3.10 +<!-- the Compile on Save feature is turned off for the project. -->
    3.11 +<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
    3.12 +<!-- in the project's Project Properties dialog box.-->
    3.13 +<project name="LightPIT" default="default" basedir=".">
    3.14 +    <description>Builds, tests, and runs the project LightPIT.</description>
    3.15 +    <import file="nbproject/build-impl.xml"/>
    3.16 +    <!--
    3.17 +
    3.18 +    There exist several targets which are by default empty and which can be 
    3.19 +    used for execution of your tasks. These targets are usually executed 
    3.20 +    before and after some main targets. They are: 
    3.21 +
    3.22 +      -pre-init:                 called before initialization of project properties 
    3.23 +      -post-init:                called after initialization of project properties 
    3.24 +      -pre-compile:              called before javac compilation 
    3.25 +      -post-compile:             called after javac compilation 
    3.26 +      -pre-compile-single:       called before javac compilation of single file
    3.27 +      -post-compile-single:      called after javac compilation of single file
    3.28 +      -pre-compile-test:         called before javac compilation of JUnit tests
    3.29 +      -post-compile-test:        called after javac compilation of JUnit tests
    3.30 +      -pre-compile-test-single:  called before javac compilation of single JUnit test
    3.31 +      -post-compile-test-single: called after javac compilation of single JUunit test
    3.32 +      -pre-dist:                 called before archive building 
    3.33 +      -post-dist:                called after archive building 
    3.34 +      -post-clean:               called after cleaning build products 
    3.35 +      -pre-run-deploy:           called before deploying
    3.36 +      -post-run-deploy:          called after deploying
    3.37 +
    3.38 +    Example of pluging an obfuscator after the compilation could look like 
    3.39 +
    3.40 +        <target name="-post-compile">
    3.41 +            <obfuscate>
    3.42 +                <fileset dir="${build.classes.dir}"/>
    3.43 +            </obfuscate>
    3.44 +        </target>
    3.45 +
    3.46 +    For list of available properties check the imported 
    3.47 +    nbproject/build-impl.xml file. 
    3.48 +
    3.49 +
    3.50 +    Other way how to customize the build is by overriding existing main targets.
    3.51 +    The target of interest are: 
    3.52 +
    3.53 +      init-macrodef-javac:    defines macro for javac compilation
    3.54 +      init-macrodef-junit:   defines macro for junit execution
    3.55 +      init-macrodef-debug:    defines macro for class debugging
    3.56 +      do-dist:                archive building
    3.57 +      run:                    execution of project 
    3.58 +      javadoc-build:          javadoc generation 
    3.59 +
    3.60 +    Example of overriding the target for project execution could look like 
    3.61 +
    3.62 +        <target name="run" depends="<PROJNAME>-impl.jar">
    3.63 +            <exec dir="bin" executable="launcher.exe">
    3.64 +                <arg file="${dist.jar}"/>
    3.65 +            </exec>
    3.66 +        </target>
    3.67 +
    3.68 +    Notice that overridden target depends on jar target and not only on 
    3.69 +    compile target as regular run target does. Again, for list of available 
    3.70 +    properties which you can use check the target you are overriding in 
    3.71 +    nbproject/build-impl.xml file. 
    3.72 +
    3.73 +    -->
    3.74 +</project>
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/nbproject/ant-deploy.xml	Wed Mar 29 15:03:25 2017 +0200
     4.3 @@ -0,0 +1,111 @@
     4.4 +<?xml version="1.0" encoding="UTF-8"?>
     4.5 +<project default="-deploy-ant" basedir=".">
     4.6 +    <target name="-init-cl-deployment-env" if="deploy.ant.enabled">
     4.7 +        <property file="${deploy.ant.properties.file}" />
     4.8 +        <available file="${deploy.ant.docbase.dir}/WEB-INF/sun-web.xml" property="sun.web.present"/>
     4.9 +        <available file="${deploy.ant.docbase.dir}/WEB-INF/glassfish-web.xml" property="glassfish.web.present"/>
    4.10 +        <available file="${deploy.ant.resource.dir}" property="has.setup"/>
    4.11 +        <tempfile prefix="gfv3" property="gfv3.password.file" destdir="${java.io.tmpdir}"/>  <!-- do not forget to delete this! -->
    4.12 +        <echo message="AS_ADMIN_PASSWORD=${gfv3.password}" file="${gfv3.password.file}"/>
    4.13 +    </target>
    4.14 +    
    4.15 +    <target name="-parse-sun-web" depends="-init-cl-deployment-env" if="sun.web.present">
    4.16 +        <tempfile prefix="gfv3" property="temp.sun.web" destdir="${java.io.tmpdir}"/>
    4.17 +        <copy file="${deploy.ant.docbase.dir}/WEB-INF/sun-web.xml" tofile="${temp.sun.web}"/>
    4.18 +        <!-- The doctype triggers resolution which can fail -->
    4.19 +        <replace file="${temp.sun.web}">
    4.20 +            <replacetoken><![CDATA[<!DOCTYPE]]></replacetoken>
    4.21 +            <replacevalue><![CDATA[<!-- <!DOCTYPE]]></replacevalue>
    4.22 +        </replace>
    4.23 +        <replace file="${temp.sun.web}">
    4.24 +            <replacetoken><![CDATA[<sun-web-app]]></replacetoken>
    4.25 +            <replacevalue><![CDATA[--> <sun-web-app]]></replacevalue>
    4.26 +        </replace>
    4.27 +        <xmlproperty file="${temp.sun.web}" validate="false">
    4.28 +        </xmlproperty>    
    4.29 +        <delete file="${temp.sun.web}"/>
    4.30 +        <condition property="deploy.ant.client.url" value="${gfv3.url}${sun-web-app.context-root}" else="${gfv3.url}/${ant.project.name}">
    4.31 +            <isset property="sun-web-app.context-root"/>
    4.32 +        </condition>
    4.33 +        <condition property="deploy.context.root.argument" value="&amp;contextroot=${sun-web-app.context-root}" else="/${ant.project.name}">
    4.34 +            <isset property="sun-web-app.context-root"/>
    4.35 +        </condition>
    4.36 +    </target>
    4.37 +    <target name="-parse-glassfish-web" depends="-init-cl-deployment-env" if="glassfish.web.present">
    4.38 +        <tempfile prefix="gfv3" property="temp.gf.web" destdir="${java.io.tmpdir}"/>
    4.39 +        <copy file="${deploy.ant.docbase.dir}/WEB-INF/glassfish-web.xml" tofile="${temp.gf.web}"/>
    4.40 +        <!-- The doctype triggers resolution which can fail -->
    4.41 +        <replace file="${temp.gf.web}">
    4.42 +            <replacetoken><![CDATA[<!DOCTYPE]]></replacetoken>
    4.43 +            <replacevalue><![CDATA[<!-- <!DOCTYPE]]></replacevalue>
    4.44 +        </replace>
    4.45 +        <replace file="${temp.gf.web}">
    4.46 +            <replacetoken><![CDATA[<glassfish-web-app]]></replacetoken>
    4.47 +            <replacevalue><![CDATA[--> <glassfish-web-app]]></replacevalue>
    4.48 +        </replace>
    4.49 +        <xmlproperty file="${temp.gf.web}" validate="false">
    4.50 +        </xmlproperty>
    4.51 +        <delete file="${temp.gf.web}"/>
    4.52 +        <condition property="deploy.ant.client.url" value="${gfv3.url}${glassfish-web-app.context-root}" else="${gfv3.url}/${ant.project.name}">
    4.53 +            <isset property="glassfish-web-app.context-root"/>
    4.54 +        </condition>
    4.55 +        <condition property="deploy.context.root.argument" value="&amp;contextroot=${glassfish-web-app.context-root}" else="/${ant.project.name}">
    4.56 +            <isset property="glassfish-web-app.context-root"/>
    4.57 +        </condition>
    4.58 +    </target>
    4.59 +    <target name="-no-parse-sun-web" depends="-init-cl-deployment-env" unless="sun.web.present">
    4.60 +        <property name="deploy.context.root.argument" value=""/>
    4.61 +    </target>
    4.62 +    <target name="-add-resources" depends="-init-cl-deployment-env" if="has.setup">
    4.63 +        <tempfile prefix="gfv3" property="gfv3.resources.dir" destdir="${java.io.tmpdir}"/>
    4.64 +        <mkdir dir="${gfv3.resources.dir}"/>
    4.65 +        <mkdir dir="${gfv3.resources.dir}/META-INF"/>
    4.66 +        <copy todir="${gfv3.resources.dir}/META-INF">
    4.67 +            <fileset dir="${deploy.ant.resource.dir}"/>
    4.68 +        </copy>
    4.69 +        <jar destfile="${deploy.ant.archive}" update="true">
    4.70 +            <fileset dir="${gfv3.resources.dir}"/>
    4.71 +        </jar>
    4.72 +        <delete dir="${gfv3.resources.dir}"/>
    4.73 +    </target>
    4.74 +    <target name="-deploy-ant" depends="-parse-glassfish-web, -parse-sun-web, -no-parse-sun-web,-add-resources" if="deploy.ant.enabled">
    4.75 +        <antcall target="-deploy-without-pw"/>
    4.76 +        <antcall target="-deploy-with-pw"/>
    4.77 +    </target>
    4.78 +
    4.79 +    <target name="-deploy-without-pw" unless="gfv3.password">
    4.80 +        <echo message="Deploying ${deploy.ant.archive}"/>
    4.81 +        <tempfile prefix="gfv3" property="gfv3.results.file" destdir="${java.io.tmpdir}"/>  <!-- do not forget to delete this! -->
    4.82 +        <property name="full.deploy.ant.archive" location="${deploy.ant.archive}"/>
    4.83 +        <get src="${gfv3.admin.url}/__asadmin/deploy?path=${full.deploy.ant.archive}${deploy.context.root.argument}&amp;force=true&amp;name=${ant.project.name}"
    4.84 +            dest="${gfv3.results.file}"/>
    4.85 +        <delete file="${gfv3.results.file}"/>    
    4.86 +    </target>
    4.87 +    <target name="-deploy-with-pw" if="gfv3.password">
    4.88 +        <echo message="Deploying ${deploy.ant.archive}"/>
    4.89 +        <tempfile prefix="gfv3" property="gfv3.results.file" destdir="${java.io.tmpdir}"/>  <!-- do not forget to delete this! -->
    4.90 +        <property name="full.deploy.ant.archive" location="${deploy.ant.archive}"/>
    4.91 +        <get username="${gfv3.username}" password="${gfv3.password}" src="${gfv3.admin.url}/__asadmin/deploy?path=${full.deploy.ant.archive}${deploy.context.root.argument}&amp;force=true&amp;name=${ant.project.name}"
    4.92 +            dest="${gfv3.results.file}"/>
    4.93 +        <delete file="${gfv3.results.file}"/>
    4.94 +    </target>
    4.95 +    <target name="-undeploy-ant" depends="-init-cl-deployment-env" if="deploy.ant.enabled">
    4.96 +        <antcall target="-undeploy-without-pw"/>
    4.97 +        <antcall target="-undeploy-with-pw"/>
    4.98 +    </target>
    4.99 +
   4.100 +    <target name="-undeploy-without-pw" unless="gfv3.password">
   4.101 +        <echo message="Undeploying ${deploy.ant.archive}"/>
   4.102 +        <tempfile prefix="gfv3" property="gfv3.results.file" destdir="${java.io.tmpdir}"/>  <!-- do not forget to delete this! -->
   4.103 +        <get src="${gfv3.admin.url}/__asadmin/undeploy?name=${ant.project.name}"
   4.104 +            dest="${gfv3.results.file}"/>
   4.105 +        <delete file="${gfv3.results.file}"/>    
   4.106 +    </target>
   4.107 +    <target name="-undeploy-with-pw" if="gfv3.password">
   4.108 +        <echo message="Undeploying ${deploy.ant.archive}"/>
   4.109 +        <tempfile prefix="gfv3" property="gfv3.results.file" destdir="${java.io.tmpdir}"/>  <!-- do not forget to delete this! -->
   4.110 +        <get username="${gfv3.username}" password="${gfv3.password}" src="${gfv3.admin.url}/__asadmin/undeploy?name=${ant.project.name}"
   4.111 +            dest="${gfv3.results.file}"/>
   4.112 +        <delete file="${gfv3.results.file}"/>
   4.113 +    </target>
   4.114 +</project>
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/nbproject/build-impl.xml	Wed Mar 29 15:03:25 2017 +0200
     5.3 @@ -0,0 +1,1441 @@
     5.4 +<?xml version="1.0" encoding="UTF-8"?>
     5.5 +<!--
     5.6 +        *** GENERATED FROM project.xml - DO NOT EDIT  ***
     5.7 +        ***         EDIT ../build.xml INSTEAD         ***
     5.8 +
     5.9 +        For the purpose of easier reading the script
    5.10 +        is divided into following sections:
    5.11 +        - initialization
    5.12 +        - compilation
    5.13 +        - dist
    5.14 +        - execution
    5.15 +        - debugging
    5.16 +        - javadoc
    5.17 +        - test compilation
    5.18 +        - test execution
    5.19 +        - test debugging
    5.20 +        - cleanup
    5.21 +
    5.22 +        -->
    5.23 +<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="LightPIT-impl">
    5.24 +    <import file="ant-deploy.xml"/>
    5.25 +    <fail message="Please build using Ant 1.7.1 or higher.">
    5.26 +        <condition>
    5.27 +            <not>
    5.28 +                <antversion atleast="1.7.1"/>
    5.29 +            </not>
    5.30 +        </condition>
    5.31 +    </fail>
    5.32 +    <target depends="dist,javadoc" description="Build whole project." name="default"/>
    5.33 +    <!--
    5.34 +                INITIALIZATION SECTION
    5.35 +            -->
    5.36 +    <target name="-pre-init">
    5.37 +        <!-- Empty placeholder for easier customization. -->
    5.38 +        <!-- You can override this target in the ../build.xml file. -->
    5.39 +    </target>
    5.40 +    <target depends="-pre-init" name="-init-private">
    5.41 +        <property file="nbproject/private/private.properties"/>
    5.42 +    </target>
    5.43 +    <target depends="-pre-init,-init-private" name="-init-user">
    5.44 +        <property file="${user.properties.file}"/>
    5.45 +        <!-- The two properties below are usually overridden -->
    5.46 +        <!-- by the active platform. Just a fallback. -->
    5.47 +        <property name="default.javac.source" value="1.4"/>
    5.48 +        <property name="default.javac.target" value="1.4"/>
    5.49 +    </target>
    5.50 +    <target depends="-pre-init,-init-private,-init-user" name="-init-project">
    5.51 +        <property file="nbproject/project.properties"/>
    5.52 +    </target>
    5.53 +    <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" if="dist.ear.dir" name="-do-ear-init"/>
    5.54 +    <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
    5.55 +        <condition property="have.tests">
    5.56 +            <or>
    5.57 +                <available file="${test.src.dir}"/>
    5.58 +            </or>
    5.59 +        </condition>
    5.60 +        <condition property="have.sources">
    5.61 +            <or>
    5.62 +                <available file="${src.dir}"/>
    5.63 +            </or>
    5.64 +        </condition>
    5.65 +        <condition property="netbeans.home+have.tests">
    5.66 +            <and>
    5.67 +                <isset property="netbeans.home"/>
    5.68 +                <isset property="have.tests"/>
    5.69 +            </and>
    5.70 +        </condition>
    5.71 +        <condition property="no.javadoc.preview">
    5.72 +            <isfalse value="${javadoc.preview}"/>
    5.73 +        </condition>
    5.74 +        <property name="javac.compilerargs" value=""/>
    5.75 +        <condition property="no.deps">
    5.76 +            <and>
    5.77 +                <istrue value="${no.dependencies}"/>
    5.78 +            </and>
    5.79 +        </condition>
    5.80 +        <condition property="no.dist.ear.dir">
    5.81 +            <not>
    5.82 +                <isset property="dist.ear.dir"/>
    5.83 +            </not>
    5.84 +        </condition>
    5.85 +        <property name="build.web.excludes" value="${build.classes.excludes}"/>
    5.86 +        <condition property="do.compile.jsps">
    5.87 +            <istrue value="${compile.jsps}"/>
    5.88 +        </condition>
    5.89 +        <condition property="do.debug.server">
    5.90 +            <or>
    5.91 +                <not>
    5.92 +                    <isset property="debug.server"/>
    5.93 +                </not>
    5.94 +                <istrue value="${debug.server}"/>
    5.95 +                <and>
    5.96 +                    <not>
    5.97 +                        <istrue value="${debug.server}"/>
    5.98 +                    </not>
    5.99 +                    <not>
   5.100 +                        <istrue value="${debug.client}"/>
   5.101 +                    </not>
   5.102 +                </and>
   5.103 +            </or>
   5.104 +        </condition>
   5.105 +        <condition property="do.debug.client">
   5.106 +            <istrue value="${debug.client}"/>
   5.107 +        </condition>
   5.108 +        <condition property="do.display.browser">
   5.109 +            <istrue value="${display.browser}"/>
   5.110 +        </condition>
   5.111 +        <condition property="do.display.browser.debug.old">
   5.112 +            <and>
   5.113 +                <isset property="do.display.browser"/>
   5.114 +                <not>
   5.115 +                    <isset property="do.debug.client"/>
   5.116 +                </not>
   5.117 +                <not>
   5.118 +                    <isset property="browser.context"/>
   5.119 +                </not>
   5.120 +            </and>
   5.121 +        </condition>
   5.122 +        <condition property="do.display.browser.debug">
   5.123 +            <and>
   5.124 +                <isset property="do.display.browser"/>
   5.125 +                <not>
   5.126 +                    <isset property="do.debug.client"/>
   5.127 +                </not>
   5.128 +                <isset property="browser.context"/>
   5.129 +            </and>
   5.130 +        </condition>
   5.131 +        <available file="${conf.dir}/MANIFEST.MF" property="has.custom.manifest"/>
   5.132 +        <available file="${persistence.xml.dir}/persistence.xml" property="has.persistence.xml"/>
   5.133 +        <condition property="do.war.package.with.custom.manifest">
   5.134 +            <isset property="has.custom.manifest"/>
   5.135 +        </condition>
   5.136 +        <condition property="do.war.package.without.custom.manifest">
   5.137 +            <not>
   5.138 +                <isset property="has.custom.manifest"/>
   5.139 +            </not>
   5.140 +        </condition>
   5.141 +        <condition property="do.tmp.war.package.with.custom.manifest">
   5.142 +            <and>
   5.143 +                <isset property="has.custom.manifest"/>
   5.144 +                <or>
   5.145 +                    <isfalse value="${directory.deployment.supported}"/>
   5.146 +                    <isset property="dist.ear.dir"/>
   5.147 +                </or>
   5.148 +            </and>
   5.149 +        </condition>
   5.150 +        <condition property="do.tmp.war.package.without.custom.manifest">
   5.151 +            <and>
   5.152 +                <not>
   5.153 +                    <isset property="has.custom.manifest"/>
   5.154 +                </not>
   5.155 +                <or>
   5.156 +                    <isfalse value="${directory.deployment.supported}"/>
   5.157 +                    <isset property="dist.ear.dir"/>
   5.158 +                </or>
   5.159 +            </and>
   5.160 +        </condition>
   5.161 +        <condition property="do.tmp.war.package">
   5.162 +            <or>
   5.163 +                <isfalse value="${directory.deployment.supported}"/>
   5.164 +                <isset property="dist.ear.dir"/>
   5.165 +            </or>
   5.166 +        </condition>
   5.167 +        <property name="build.meta.inf.dir" value="${build.web.dir}/META-INF"/>
   5.168 +        <condition else="" property="application.args.param" value="${application.args}">
   5.169 +            <and>
   5.170 +                <isset property="application.args"/>
   5.171 +                <not>
   5.172 +                    <equals arg1="${application.args}" arg2="" trim="true"/>
   5.173 +                </not>
   5.174 +            </and>
   5.175 +        </condition>
   5.176 +        <property name="source.encoding" value="${file.encoding}"/>
   5.177 +        <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
   5.178 +            <and>
   5.179 +                <isset property="javadoc.encoding"/>
   5.180 +                <not>
   5.181 +                    <equals arg1="${javadoc.encoding}" arg2=""/>
   5.182 +                </not>
   5.183 +            </and>
   5.184 +        </condition>
   5.185 +        <property name="javadoc.encoding.used" value="${source.encoding}"/>
   5.186 +        <property name="includes" value="**"/>
   5.187 +        <property name="excludes" value=""/>
   5.188 +        <property name="runmain.jvmargs" value=""/>
   5.189 +        <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
   5.190 +        <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
   5.191 +            <and>
   5.192 +                <isset property="endorsed.classpath"/>
   5.193 +                <length length="0" string="${endorsed.classpath}" when="greater"/>
   5.194 +            </and>
   5.195 +        </condition>
   5.196 +        <condition else="false" property="jdkBug6558476">
   5.197 +            <and>
   5.198 +                <matches pattern="1\.[56]" string="${java.specification.version}"/>
   5.199 +                <not>
   5.200 +                    <os family="unix"/>
   5.201 +                </not>
   5.202 +            </and>
   5.203 +        </condition>
   5.204 +        <property name="javac.fork" value="${jdkBug6558476}"/>
   5.205 +        <condition property="junit.available">
   5.206 +            <or>
   5.207 +                <available classname="org.junit.Test" classpath="${run.test.classpath}"/>
   5.208 +                <available classname="junit.framework.Test" classpath="${run.test.classpath}"/>
   5.209 +            </or>
   5.210 +        </condition>
   5.211 +        <condition property="testng.available">
   5.212 +            <available classname="org.testng.annotations.Test" classpath="${run.test.classpath}"/>
   5.213 +        </condition>
   5.214 +        <condition property="junit+testng.available">
   5.215 +            <and>
   5.216 +                <istrue value="${junit.available}"/>
   5.217 +                <istrue value="${testng.available}"/>
   5.218 +            </and>
   5.219 +        </condition>
   5.220 +        <condition else="testng" property="testng.mode" value="mixed">
   5.221 +            <istrue value="${junit+testng.available}"/>
   5.222 +        </condition>
   5.223 +        <condition else="" property="testng.debug.mode" value="-mixed">
   5.224 +            <istrue value="${junit+testng.available}"/>
   5.225 +        </condition>
   5.226 +    </target>
   5.227 +    <target depends="init" name="-init-cos" unless="deploy.on.save">
   5.228 +        <condition property="deploy.on.save" value="true">
   5.229 +            <or>
   5.230 +                <istrue value="${j2ee.deploy.on.save}"/>
   5.231 +                <istrue value="${j2ee.compile.on.save}"/>
   5.232 +            </or>
   5.233 +        </condition>
   5.234 +    </target>
   5.235 +    <target name="-post-init">
   5.236 +        <!-- Empty placeholder for easier customization. -->
   5.237 +        <!-- You can override this target in the ../build.xml file. -->
   5.238 +    </target>
   5.239 +    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
   5.240 +        <fail unless="src.dir">Must set src.dir</fail>
   5.241 +        <fail unless="test.src.dir">Must set test.src.dir</fail>
   5.242 +        <fail unless="build.dir">Must set build.dir</fail>
   5.243 +        <fail unless="build.web.dir">Must set build.web.dir</fail>
   5.244 +        <fail unless="build.generated.dir">Must set build.generated.dir</fail>
   5.245 +        <fail unless="dist.dir">Must set dist.dir</fail>
   5.246 +        <fail unless="build.classes.dir">Must set build.classes.dir</fail>
   5.247 +        <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
   5.248 +        <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
   5.249 +        <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
   5.250 +        <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
   5.251 +        <fail unless="dist.war">Must set dist.war</fail>
   5.252 +        <condition property="missing.j2ee.server.home">
   5.253 +            <and>
   5.254 +                <matches pattern="j2ee.server.home" string="${j2ee.platform.classpath}"/>
   5.255 +                <not>
   5.256 +                    <isset property="j2ee.server.home"/>
   5.257 +                </not>
   5.258 +            </and>
   5.259 +        </condition>
   5.260 +        <fail if="missing.j2ee.server.home">
   5.261 +The Java EE server classpath is not correctly set up - server home directory is missing.
   5.262 +Either open the project in the IDE and assign the server or setup the server classpath manually.
   5.263 +For example like this:
   5.264 +   ant -Dj2ee.server.home=&lt;app_server_installation_directory&gt;
   5.265 +                </fail>
   5.266 +        <fail unless="j2ee.platform.classpath">
   5.267 +The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}.
   5.268 +Either open the project in the IDE and assign the server or setup the server classpath manually.
   5.269 +For example like this:
   5.270 +   ant -Duser.properties.file=&lt;path_to_property_file&gt; (where you put the property "j2ee.platform.classpath" in a .properties file)
   5.271 +or ant -Dj2ee.platform.classpath=&lt;server_classpath&gt; (where no properties file is used)
   5.272 +                </fail>
   5.273 +    </target>
   5.274 +    <target name="-init-macrodef-property">
   5.275 +        <macrodef name="property" uri="http://www.netbeans.org/ns/web-project/1">
   5.276 +            <attribute name="name"/>
   5.277 +            <attribute name="value"/>
   5.278 +            <sequential>
   5.279 +                <property name="@{name}" value="${@{value}}"/>
   5.280 +            </sequential>
   5.281 +        </macrodef>
   5.282 +    </target>
   5.283 +    <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
   5.284 +        <macrodef name="javac" uri="http://www.netbeans.org/ns/web-project/2">
   5.285 +            <attribute default="${src.dir}" name="srcdir"/>
   5.286 +            <attribute default="${build.classes.dir}" name="destdir"/>
   5.287 +            <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
   5.288 +            <attribute default="${javac.processorpath}" name="processorpath"/>
   5.289 +            <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
   5.290 +            <attribute default="${includes}" name="includes"/>
   5.291 +            <attribute default="${excludes}" name="excludes"/>
   5.292 +            <attribute default="${javac.debug}" name="debug"/>
   5.293 +            <attribute default="${empty.dir}" name="gensrcdir"/>
   5.294 +            <element name="customize" optional="true"/>
   5.295 +            <sequential>
   5.296 +                <property location="${build.dir}/empty" name="empty.dir"/>
   5.297 +                <mkdir dir="${empty.dir}"/>
   5.298 +                <mkdir dir="@{apgeneratedsrcdir}"/>
   5.299 +                <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}">
   5.300 +                    <src>
   5.301 +                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
   5.302 +                            <include name="*"/>
   5.303 +                        </dirset>
   5.304 +                    </src>
   5.305 +                    <classpath>
   5.306 +                        <path path="@{classpath}"/>
   5.307 +                    </classpath>
   5.308 +                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
   5.309 +                    <compilerarg line="${javac.compilerargs}"/>
   5.310 +                    <compilerarg value="-processorpath"/>
   5.311 +                    <compilerarg path="@{processorpath}:${empty.dir}"/>
   5.312 +                    <compilerarg line="${ap.processors.internal}"/>
   5.313 +                    <compilerarg value="-s"/>
   5.314 +                    <compilerarg path="@{apgeneratedsrcdir}"/>
   5.315 +                    <compilerarg line="${ap.proc.none.internal}"/>
   5.316 +                    <customize/>
   5.317 +                </javac>
   5.318 +            </sequential>
   5.319 +        </macrodef>
   5.320 +    </target>
   5.321 +    <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
   5.322 +        <macrodef name="javac" uri="http://www.netbeans.org/ns/web-project/2">
   5.323 +            <attribute default="${src.dir}" name="srcdir"/>
   5.324 +            <attribute default="${build.classes.dir}" name="destdir"/>
   5.325 +            <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
   5.326 +            <attribute default="${javac.processorpath}" name="processorpath"/>
   5.327 +            <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
   5.328 +            <attribute default="${includes}" name="includes"/>
   5.329 +            <attribute default="${excludes}" name="excludes"/>
   5.330 +            <attribute default="${javac.debug}" name="debug"/>
   5.331 +            <attribute default="${empty.dir}" name="gensrcdir"/>
   5.332 +            <element name="customize" optional="true"/>
   5.333 +            <sequential>
   5.334 +                <property location="${build.dir}/empty" name="empty.dir"/>
   5.335 +                <mkdir dir="${empty.dir}"/>
   5.336 +                <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}">
   5.337 +                    <src>
   5.338 +                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
   5.339 +                            <include name="*"/>
   5.340 +                        </dirset>
   5.341 +                    </src>
   5.342 +                    <classpath>
   5.343 +                        <path path="@{classpath}"/>
   5.344 +                    </classpath>
   5.345 +                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
   5.346 +                    <compilerarg line="${javac.compilerargs}"/>
   5.347 +                    <customize/>
   5.348 +                </javac>
   5.349 +            </sequential>
   5.350 +        </macrodef>
   5.351 +    </target>
   5.352 +    <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
   5.353 +        <macrodef name="depend" uri="http://www.netbeans.org/ns/web-project/2">
   5.354 +            <attribute default="${src.dir}" name="srcdir"/>
   5.355 +            <attribute default="${build.classes.dir}" name="destdir"/>
   5.356 +            <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
   5.357 +            <sequential>
   5.358 +                <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
   5.359 +                    <classpath>
   5.360 +                        <path path="@{classpath}"/>
   5.361 +                    </classpath>
   5.362 +                </depend>
   5.363 +            </sequential>
   5.364 +        </macrodef>
   5.365 +        <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/web-project/2">
   5.366 +            <attribute default="${build.classes.dir}" name="destdir"/>
   5.367 +            <sequential>
   5.368 +                <fail unless="javac.includes">Must set javac.includes</fail>
   5.369 +                <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
   5.370 +                    <path>
   5.371 +                        <filelist dir="@{destdir}" files="${javac.includes}"/>
   5.372 +                    </path>
   5.373 +                    <globmapper from="*.java" to="*.class"/>
   5.374 +                </pathconvert>
   5.375 +                <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
   5.376 +                <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
   5.377 +                <delete>
   5.378 +                    <files includesfile="${javac.includesfile.binary}"/>
   5.379 +                </delete>
   5.380 +                <delete file="${javac.includesfile.binary}"/>
   5.381 +            </sequential>
   5.382 +        </macrodef>
   5.383 +    </target>
   5.384 +    <target if="${junit.available}" name="-init-macrodef-junit-init">
   5.385 +        <condition else="false" property="nb.junit.batch" value="true">
   5.386 +            <and>
   5.387 +                <istrue value="${junit.available}"/>
   5.388 +                <not>
   5.389 +                    <isset property="test.method"/>
   5.390 +                </not>
   5.391 +            </and>
   5.392 +        </condition>
   5.393 +        <condition else="false" property="nb.junit.single" value="true">
   5.394 +            <and>
   5.395 +                <istrue value="${junit.available}"/>
   5.396 +                <isset property="test.method"/>
   5.397 +            </and>
   5.398 +        </condition>
   5.399 +    </target>
   5.400 +    <target name="-init-test-properties">
   5.401 +        <property name="test.binaryincludes" value="&lt;nothing&gt;"/>
   5.402 +        <property name="test.binarytestincludes" value=""/>
   5.403 +        <property name="test.binaryexcludes" value=""/>
   5.404 +    </target>
   5.405 +    <target if="${nb.junit.single}" name="-init-macrodef-junit-single" unless="${nb.junit.batch}">
   5.406 +        <macrodef name="junit" uri="http://www.netbeans.org/ns/web-project/2">
   5.407 +            <attribute default="${includes}" name="includes"/>
   5.408 +            <attribute default="${excludes}" name="excludes"/>
   5.409 +            <attribute default="**" name="testincludes"/>
   5.410 +            <attribute default="" name="testmethods"/>
   5.411 +            <element name="customize" optional="true"/>
   5.412 +            <sequential>
   5.413 +                <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${java.io.tmpdir}">
   5.414 +                    <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
   5.415 +                    <syspropertyset>
   5.416 +                        <propertyref prefix="test-sys-prop."/>
   5.417 +                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
   5.418 +                    </syspropertyset>
   5.419 +                    <formatter type="brief" usefile="false"/>
   5.420 +                    <formatter type="xml"/>
   5.421 +                    <jvmarg value="-ea"/>
   5.422 +                    <customize/>
   5.423 +                </junit>
   5.424 +            </sequential>
   5.425 +        </macrodef>
   5.426 +    </target>
   5.427 +    <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-batch" unless="${nb.junit.single}">
   5.428 +        <macrodef name="junit" uri="http://www.netbeans.org/ns/web-project/2">
   5.429 +            <attribute default="${includes}" name="includes"/>
   5.430 +            <attribute default="${excludes}" name="excludes"/>
   5.431 +            <attribute default="**" name="testincludes"/>
   5.432 +            <attribute default="" name="testmethods"/>
   5.433 +            <element name="customize" optional="true"/>
   5.434 +            <sequential>
   5.435 +                <property name="run.jvmargs.ide" value=""/>
   5.436 +                <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${build.dir}">
   5.437 +                    <batchtest todir="${build.test.results.dir}">
   5.438 +                        <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
   5.439 +                            <filename name="@{testincludes}"/>
   5.440 +                        </fileset>
   5.441 +                        <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
   5.442 +                            <filename name="${test.binarytestincludes}"/>
   5.443 +                        </fileset>
   5.444 +                    </batchtest>
   5.445 +                    <syspropertyset>
   5.446 +                        <propertyref prefix="test-sys-prop."/>
   5.447 +                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
   5.448 +                    </syspropertyset>
   5.449 +                    <formatter type="brief" usefile="false"/>
   5.450 +                    <formatter type="xml"/>
   5.451 +                    <jvmarg value="-ea"/>
   5.452 +                    <jvmarg line="${run.jvmargs.ide}"/>
   5.453 +                    <customize/>
   5.454 +                </junit>
   5.455 +            </sequential>
   5.456 +        </macrodef>
   5.457 +    </target>
   5.458 +    <target depends="-init-macrodef-junit-init,-init-macrodef-junit-single, -init-macrodef-junit-batch" if="${junit.available}" name="-init-macrodef-junit"/>
   5.459 +    <target if="${testng.available}" name="-init-macrodef-testng">
   5.460 +        <macrodef name="testng" uri="http://www.netbeans.org/ns/web-project/2">
   5.461 +            <attribute default="${includes}" name="includes"/>
   5.462 +            <attribute default="${excludes}" name="excludes"/>
   5.463 +            <attribute default="**" name="testincludes"/>
   5.464 +            <attribute default="" name="testmethods"/>
   5.465 +            <element name="customize" optional="true"/>
   5.466 +            <sequential>
   5.467 +                <condition else="" property="testng.methods.arg" value="@{testincludes}.@{testmethods}">
   5.468 +                    <isset property="test.method"/>
   5.469 +                </condition>
   5.470 +                <union id="test.set">
   5.471 +                    <fileset dir="${test.src.dir}" excludes="@{excludes},**/*.xml,${excludes}" includes="@{includes}">
   5.472 +                        <filename name="@{testincludes}"/>
   5.473 +                    </fileset>
   5.474 +                </union>
   5.475 +                <taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
   5.476 +                <testng classfilesetref="test.set" failureProperty="tests.failed" listeners="org.testng.reporters.VerboseReporter" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="LightPIT" testname="TestNG tests" workingDir="${basedir}">
   5.477 +                    <xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
   5.478 +                    <propertyset>
   5.479 +                        <propertyref prefix="test-sys-prop."/>
   5.480 +                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
   5.481 +                    </propertyset>
   5.482 +                    <customize/>
   5.483 +                </testng>
   5.484 +            </sequential>
   5.485 +        </macrodef>
   5.486 +    </target>
   5.487 +    <target name="-init-macrodef-test-impl">
   5.488 +        <macrodef name="test-impl" uri="http://www.netbeans.org/ns/web-project/2">
   5.489 +            <attribute default="${includes}" name="includes"/>
   5.490 +            <attribute default="${excludes}" name="excludes"/>
   5.491 +            <attribute default="**" name="testincludes"/>
   5.492 +            <attribute default="" name="testmethods"/>
   5.493 +            <element implicit="true" name="customize" optional="true"/>
   5.494 +            <sequential>
   5.495 +                <echo>No tests executed.</echo>
   5.496 +            </sequential>
   5.497 +        </macrodef>
   5.498 +    </target>
   5.499 +    <target depends="-init-macrodef-junit" if="${junit.available}" name="-init-macrodef-junit-impl">
   5.500 +        <macrodef name="test-impl" uri="http://www.netbeans.org/ns/web-project/2">
   5.501 +            <attribute default="${includes}" name="includes"/>
   5.502 +            <attribute default="${excludes}" name="excludes"/>
   5.503 +            <attribute default="**" name="testincludes"/>
   5.504 +            <attribute default="" name="testmethods"/>
   5.505 +            <element implicit="true" name="customize" optional="true"/>
   5.506 +            <sequential>
   5.507 +                <webproject2:junit excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
   5.508 +                    <customize/>
   5.509 +                </webproject2:junit>
   5.510 +            </sequential>
   5.511 +        </macrodef>
   5.512 +    </target>
   5.513 +    <target depends="-init-macrodef-testng" if="${testng.available}" name="-init-macrodef-testng-impl">
   5.514 +        <macrodef name="test-impl" uri="http://www.netbeans.org/ns/web-project/2">
   5.515 +            <attribute default="${includes}" name="includes"/>
   5.516 +            <attribute default="${excludes}" name="excludes"/>
   5.517 +            <attribute default="**" name="testincludes"/>
   5.518 +            <attribute default="" name="testmethods"/>
   5.519 +            <element implicit="true" name="customize" optional="true"/>
   5.520 +            <sequential>
   5.521 +                <webproject2:testng excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
   5.522 +                    <customize/>
   5.523 +                </webproject2:testng>
   5.524 +            </sequential>
   5.525 +        </macrodef>
   5.526 +    </target>
   5.527 +    <target depends="-init-macrodef-test-impl,-init-macrodef-junit-impl,-init-macrodef-testng-impl" name="-init-macrodef-test">
   5.528 +        <macrodef name="test" uri="http://www.netbeans.org/ns/web-project/2">
   5.529 +            <attribute default="${includes}" name="includes"/>
   5.530 +            <attribute default="${excludes}" name="excludes"/>
   5.531 +            <attribute default="**" name="testincludes"/>
   5.532 +            <attribute default="" name="testmethods"/>
   5.533 +            <sequential>
   5.534 +                <webproject2:test-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
   5.535 +                    <customize>
   5.536 +                        <classpath>
   5.537 +                            <path path="${run.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}"/>
   5.538 +                        </classpath>
   5.539 +                        <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   5.540 +                        <jvmarg line="${runmain.jvmargs}"/>
   5.541 +                    </customize>
   5.542 +                </webproject2:test-impl>
   5.543 +            </sequential>
   5.544 +        </macrodef>
   5.545 +    </target>
   5.546 +    <target if="${junit.available}" name="-init-macrodef-junit-debug" unless="${nb.junit.batch}">
   5.547 +        <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/web-project/2">
   5.548 +            <attribute default="${includes}" name="includes"/>
   5.549 +            <attribute default="${excludes}" name="excludes"/>
   5.550 +            <attribute default="**" name="testincludes"/>
   5.551 +            <attribute default="" name="testmethods"/>
   5.552 +            <element name="customize" optional="true"/>
   5.553 +            <sequential>
   5.554 +                <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${java.io.tmpdir}">
   5.555 +                    <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
   5.556 +                    <syspropertyset>
   5.557 +                        <propertyref prefix="test-sys-prop."/>
   5.558 +                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
   5.559 +                    </syspropertyset>
   5.560 +                    <formatter type="brief" usefile="false"/>
   5.561 +                    <formatter type="xml"/>
   5.562 +                    <jvmarg value="-ea"/>
   5.563 +                    <jvmarg line="${debug-args-line}"/>
   5.564 +                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
   5.565 +                    <customize/>
   5.566 +                </junit>
   5.567 +            </sequential>
   5.568 +        </macrodef>
   5.569 +    </target>
   5.570 +    <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-debug-batch">
   5.571 +        <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/web-project/2">
   5.572 +            <attribute default="${includes}" name="includes"/>
   5.573 +            <attribute default="${excludes}" name="excludes"/>
   5.574 +            <attribute default="**" name="testincludes"/>
   5.575 +            <attribute default="" name="testmethods"/>
   5.576 +            <element name="customize" optional="true"/>
   5.577 +            <sequential>
   5.578 +                <property name="run.jvmargs.ide" value=""/>
   5.579 +                <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${build.dir}">
   5.580 +                    <batchtest todir="${build.test.results.dir}">
   5.581 +                        <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
   5.582 +                            <filename name="@{testincludes}"/>
   5.583 +                        </fileset>
   5.584 +                        <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
   5.585 +                            <filename name="${test.binarytestincludes}"/>
   5.586 +                        </fileset>
   5.587 +                    </batchtest>
   5.588 +                    <syspropertyset>
   5.589 +                        <propertyref prefix="test-sys-prop."/>
   5.590 +                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
   5.591 +                    </syspropertyset>
   5.592 +                    <formatter type="brief" usefile="false"/>
   5.593 +                    <formatter type="xml"/>
   5.594 +                    <jvmarg value="-ea"/>
   5.595 +                    <jvmarg line="${run.jvmargs.ide}"/>
   5.596 +                    <jvmarg line="${debug-args-line}"/>
   5.597 +                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
   5.598 +                    <customize/>
   5.599 +                </junit>
   5.600 +            </sequential>
   5.601 +        </macrodef>
   5.602 +    </target>
   5.603 +    <target depends="-init-macrodef-junit-debug,-init-macrodef-junit-debug-batch" if="${junit.available}" name="-init-macrodef-junit-debug-impl">
   5.604 +        <macrodef name="test-debug-impl" uri="http://www.netbeans.org/ns/web-project/2">
   5.605 +            <attribute default="${includes}" name="includes"/>
   5.606 +            <attribute default="${excludes}" name="excludes"/>
   5.607 +            <attribute default="**" name="testincludes"/>
   5.608 +            <attribute default="" name="testmethods"/>
   5.609 +            <element implicit="true" name="customize" optional="true"/>
   5.610 +            <sequential>
   5.611 +                <webproject2:junit-debug excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
   5.612 +                    <customize/>
   5.613 +                </webproject2:junit-debug>
   5.614 +            </sequential>
   5.615 +        </macrodef>
   5.616 +    </target>
   5.617 +    <target if="${testng.available}" name="-init-macrodef-testng-debug">
   5.618 +        <macrodef name="testng-debug" uri="http://www.netbeans.org/ns/web-project/2">
   5.619 +            <attribute default="${main.class}" name="testClass"/>
   5.620 +            <attribute default="" name="testMethod"/>
   5.621 +            <element name="customize2" optional="true"/>
   5.622 +            <sequential>
   5.623 +                <condition else="-testclass @{testClass}" property="test.class.or.method" value="-methods @{testClass}.@{testMethod}">
   5.624 +                    <isset property="test.method"/>
   5.625 +                </condition>
   5.626 +                <condition else="-suitename LightPIT -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}">
   5.627 +                    <matches pattern=".*\.xml" string="@{testClass}"/>
   5.628 +                </condition>
   5.629 +                <delete dir="${build.test.results.dir}" quiet="true"/>
   5.630 +                <mkdir dir="${build.test.results.dir}"/>
   5.631 +                <webproject1:debug args="${testng.cmd.args}" classname="org.testng.TestNG" classpath="${debug.test.classpath}:${j2ee.platform.embeddableejb.classpath}">
   5.632 +                    <customize>
   5.633 +                        <customize2/>
   5.634 +                        <jvmarg value="-ea"/>
   5.635 +                        <arg line="${testng.debug.mode}"/>
   5.636 +                        <arg line="-d ${build.test.results.dir}"/>
   5.637 +                        <arg line="-listener org.testng.reporters.VerboseReporter"/>
   5.638 +                    </customize>
   5.639 +                </webproject1:debug>
   5.640 +            </sequential>
   5.641 +        </macrodef>
   5.642 +    </target>
   5.643 +    <target depends="-init-macrodef-testng-debug" if="${testng.available}" name="-init-macrodef-testng-debug-impl">
   5.644 +        <macrodef name="testng-debug-impl" uri="http://www.netbeans.org/ns/web-project/2">
   5.645 +            <attribute default="${main.class}" name="testClass"/>
   5.646 +            <attribute default="" name="testMethod"/>
   5.647 +            <element implicit="true" name="customize2" optional="true"/>
   5.648 +            <sequential>
   5.649 +                <webproject2:testng-debug testClass="@{testClass}" testMethod="@{testMethod}">
   5.650 +                    <customize2/>
   5.651 +                </webproject2:testng-debug>
   5.652 +            </sequential>
   5.653 +        </macrodef>
   5.654 +    </target>
   5.655 +    <target depends="-init-macrodef-junit-debug-impl" if="${junit.available}" name="-init-macrodef-test-debug-junit">
   5.656 +        <macrodef name="test-debug" uri="http://www.netbeans.org/ns/web-project/2">
   5.657 +            <attribute default="${includes}" name="includes"/>
   5.658 +            <attribute default="${excludes}" name="excludes"/>
   5.659 +            <attribute default="**" name="testincludes"/>
   5.660 +            <attribute default="" name="testmethods"/>
   5.661 +            <attribute default="${main.class}" name="testClass"/>
   5.662 +            <attribute default="" name="testMethod"/>
   5.663 +            <sequential>
   5.664 +                <webproject2:test-debug-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
   5.665 +                    <customize>
   5.666 +                        <classpath>
   5.667 +                            <path path="${run.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}"/>
   5.668 +                        </classpath>
   5.669 +                        <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   5.670 +                        <jvmarg line="${runmain.jvmargs}"/>
   5.671 +                    </customize>
   5.672 +                </webproject2:test-debug-impl>
   5.673 +            </sequential>
   5.674 +        </macrodef>
   5.675 +    </target>
   5.676 +    <target depends="-init-macrodef-testng-debug-impl" if="${testng.available}" name="-init-macrodef-test-debug-testng">
   5.677 +        <macrodef name="test-debug" uri="http://www.netbeans.org/ns/web-project/2">
   5.678 +            <attribute default="${includes}" name="includes"/>
   5.679 +            <attribute default="${excludes}" name="excludes"/>
   5.680 +            <attribute default="**" name="testincludes"/>
   5.681 +            <attribute default="" name="testmethods"/>
   5.682 +            <attribute default="${main.class}" name="testClass"/>
   5.683 +            <attribute default="" name="testMethod"/>
   5.684 +            <sequential>
   5.685 +                <webproject2:testng-debug-impl testClass="@{testClass}" testMethod="@{testMethod}">
   5.686 +                    <customize2>
   5.687 +                        <syspropertyset>
   5.688 +                            <propertyref prefix="test-sys-prop."/>
   5.689 +                            <mapper from="test-sys-prop.*" to="*" type="glob"/>
   5.690 +                        </syspropertyset>
   5.691 +                    </customize2>
   5.692 +                </webproject2:testng-debug-impl>
   5.693 +            </sequential>
   5.694 +        </macrodef>
   5.695 +    </target>
   5.696 +    <target depends="-init-macrodef-test-debug-junit,-init-macrodef-test-debug-testng" name="-init-macrodef-test-debug"/>
   5.697 +    <target name="-init-macrodef-java">
   5.698 +        <macrodef name="java" uri="http://www.netbeans.org/ns/web-project/1">
   5.699 +            <attribute default="${main.class}" name="classname"/>
   5.700 +            <attribute default="${debug.classpath}" name="classpath"/>
   5.701 +            <element name="customize" optional="true"/>
   5.702 +            <sequential>
   5.703 +                <java classname="@{classname}" fork="true">
   5.704 +                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   5.705 +                    <jvmarg line="${runmain.jvmargs}"/>
   5.706 +                    <classpath>
   5.707 +                        <path path="@{classpath}:${j2ee.platform.classpath}"/>
   5.708 +                    </classpath>
   5.709 +                    <syspropertyset>
   5.710 +                        <propertyref prefix="run-sys-prop."/>
   5.711 +                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
   5.712 +                    </syspropertyset>
   5.713 +                    <customize/>
   5.714 +                </java>
   5.715 +            </sequential>
   5.716 +        </macrodef>
   5.717 +    </target>
   5.718 +    <target name="-init-macrodef-nbjsdebug">
   5.719 +        <macrodef name="nbjsdebugstart" uri="http://www.netbeans.org/ns/web-project/1">
   5.720 +            <attribute default="${client.url}" name="webUrl"/>
   5.721 +            <sequential>
   5.722 +                <nbjsdebugstart urlPart="${client.urlPart}" webUrl="@{webUrl}"/>
   5.723 +            </sequential>
   5.724 +        </macrodef>
   5.725 +    </target>
   5.726 +    <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
   5.727 +        <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/web-project/1">
   5.728 +            <attribute default="${main.class}" name="name"/>
   5.729 +            <attribute default="${debug.classpath}:${j2ee.platform.classpath}" name="classpath"/>
   5.730 +            <sequential>
   5.731 +                <nbjpdastart addressproperty="jpda.address" name="@{name}" transport="${debug-transport}">
   5.732 +                    <classpath>
   5.733 +                        <path path="@{classpath}"/>
   5.734 +                    </classpath>
   5.735 +                </nbjpdastart>
   5.736 +            </sequential>
   5.737 +        </macrodef>
   5.738 +        <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/web-project/1">
   5.739 +            <attribute default="${build.classes.dir}" name="dir"/>
   5.740 +            <sequential>
   5.741 +                <nbjpdareload>
   5.742 +                    <fileset dir="@{dir}" includes="${fix.classes}">
   5.743 +                        <include name="${fix.includes}*.class"/>
   5.744 +                    </fileset>
   5.745 +                </nbjpdareload>
   5.746 +            </sequential>
   5.747 +        </macrodef>
   5.748 +        <macrodef name="nbjpdaappreloaded" uri="http://www.netbeans.org/ns/web-project/1">
   5.749 +            <sequential>
   5.750 +                <nbjpdaappreloaded/>
   5.751 +            </sequential>
   5.752 +        </macrodef>
   5.753 +    </target>
   5.754 +    <target name="-init-debug-args">
   5.755 +        <property name="version-output" value="java version &quot;${ant.java.version}"/>
   5.756 +        <condition property="have-jdk-older-than-1.4">
   5.757 +            <or>
   5.758 +                <contains string="${version-output}" substring="java version &quot;1.0"/>
   5.759 +                <contains string="${version-output}" substring="java version &quot;1.1"/>
   5.760 +                <contains string="${version-output}" substring="java version &quot;1.2"/>
   5.761 +                <contains string="${version-output}" substring="java version &quot;1.3"/>
   5.762 +            </or>
   5.763 +        </condition>
   5.764 +        <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
   5.765 +            <istrue value="${have-jdk-older-than-1.4}"/>
   5.766 +        </condition>
   5.767 +        <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
   5.768 +            <os family="windows"/>
   5.769 +        </condition>
   5.770 +        <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
   5.771 +            <isset property="debug.transport"/>
   5.772 +        </condition>
   5.773 +    </target>
   5.774 +    <target depends="-init-debug-args" name="-init-macrodef-debug">
   5.775 +        <macrodef name="debug" uri="http://www.netbeans.org/ns/web-project/1">
   5.776 +            <attribute default="${main.class}" name="classname"/>
   5.777 +            <attribute default="${debug.classpath}:${j2ee.platform.classpath}" name="classpath"/>
   5.778 +            <attribute default="${application.args.param}" name="args"/>
   5.779 +            <element name="customize" optional="true"/>
   5.780 +            <sequential>
   5.781 +                <java classname="@{classname}" fork="true">
   5.782 +                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   5.783 +                    <jvmarg line="${debug-args-line}"/>
   5.784 +                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
   5.785 +                    <jvmarg line="${runmain.jvmargs}"/>
   5.786 +                    <classpath>
   5.787 +                        <path path="@{classpath}"/>
   5.788 +                    </classpath>
   5.789 +                    <syspropertyset>
   5.790 +                        <propertyref prefix="run-sys-prop."/>
   5.791 +                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
   5.792 +                    </syspropertyset>
   5.793 +                    <arg line="@{args}"/>
   5.794 +                    <customize/>
   5.795 +                </java>
   5.796 +            </sequential>
   5.797 +        </macrodef>
   5.798 +    </target>
   5.799 +    <target name="-init-taskdefs">
   5.800 +        <fail unless="libs.CopyLibs.classpath">
   5.801 +The libs.CopyLibs.classpath property is not set up.
   5.802 +This property must point to 
   5.803 +org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
   5.804 +of NetBeans IDE installation and is usually located at 
   5.805 +&lt;netbeans_installation&gt;/java&lt;version&gt;/ant/extra folder.
   5.806 +Either open the project in the IDE and make sure CopyLibs library
   5.807 +exists or setup the property manually. For example like this:
   5.808 + ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar
   5.809 +                </fail>
   5.810 +        <taskdef classpath="${libs.CopyLibs.classpath}" resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
   5.811 +    </target>
   5.812 +    <target name="-init-ap-cmdline-properties">
   5.813 +        <property name="annotation.processing.enabled" value="true"/>
   5.814 +        <property name="annotation.processing.processors.list" value=""/>
   5.815 +        <property name="annotation.processing.run.all.processors" value="true"/>
   5.816 +        <property name="javac.processorpath" value="${javac.classpath}"/>
   5.817 +        <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
   5.818 +        <condition property="ap.supported.internal" value="true">
   5.819 +            <not>
   5.820 +                <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
   5.821 +            </not>
   5.822 +        </condition>
   5.823 +    </target>
   5.824 +    <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
   5.825 +        <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
   5.826 +            <isfalse value="${annotation.processing.run.all.processors}"/>
   5.827 +        </condition>
   5.828 +        <condition else="" property="ap.proc.none.internal" value="-proc:none">
   5.829 +            <isfalse value="${annotation.processing.enabled}"/>
   5.830 +        </condition>
   5.831 +    </target>
   5.832 +    <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
   5.833 +        <property name="ap.cmd.line.internal" value=""/>
   5.834 +    </target>
   5.835 +    <!--
   5.836 +                pre NB7.2 profiling section; consider it deprecated
   5.837 +            -->
   5.838 +    <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-check" if="profiler.info.jvmargs.agent" name="profile-init"/>
   5.839 +    <target if="profiler.info.jvmargs.agent" name="-profile-pre-init">
   5.840 +        <!-- Empty placeholder for easier customization. -->
   5.841 +        <!-- You can override this target in the ../build.xml file. -->
   5.842 +    </target>
   5.843 +    <target if="profiler.info.jvmargs.agent" name="-profile-post-init">
   5.844 +        <!-- Empty placeholder for easier customization. -->
   5.845 +        <!-- You can override this target in the ../build.xml file. -->
   5.846 +    </target>
   5.847 +    <target depends="-profile-pre-init, init, -profile-post-init" if="profiler.info.jvmargs.agent" name="-profile-init-check">
   5.848 +        <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
   5.849 +        <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
   5.850 +    </target>
   5.851 +    <!--
   5.852 +                end of pre NB7.2 profiling section
   5.853 +            -->
   5.854 +    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-test,-init-macrodef-test-debug,-init-macrodef-java,-init-macrodef-nbjpda,-init-macrodef-nbjsdebug,-init-macrodef-debug,-init-taskdefs,-init-ap-cmdline" name="init"/>
   5.855 +    <!--
   5.856 +                COMPILATION SECTION
   5.857 +            -->
   5.858 +    <target depends="init" if="no.dist.ear.dir" name="deps-module-jar" unless="no.deps"/>
   5.859 +    <target depends="init" if="dist.ear.dir" name="deps-ear-jar" unless="no.deps"/>
   5.860 +    <target depends="init, deps-module-jar, deps-ear-jar" name="deps-jar" unless="no.deps"/>
   5.861 +    <target depends="init,deps-jar" name="-pre-pre-compile">
   5.862 +        <mkdir dir="${build.classes.dir}"/>
   5.863 +    </target>
   5.864 +    <target name="-pre-compile">
   5.865 +        <!-- Empty placeholder for easier customization. -->
   5.866 +        <!-- You can override this target in the ../build.xml file. -->
   5.867 +    </target>
   5.868 +    <target name="-copy-webdir">
   5.869 +        <copy todir="${build.web.dir}">
   5.870 +            <fileset dir="${web.docbase.dir}" excludes="${build.web.excludes},${excludes}" includes="${includes}"/>
   5.871 +        </copy>
   5.872 +        <copy todir="${build.web.dir}/WEB-INF">
   5.873 +            <fileset dir="${webinf.dir}" excludes="${build.web.excludes}"/>
   5.874 +        </copy>
   5.875 +    </target>
   5.876 +    <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">
   5.877 +        <webproject2:javac destdir="${build.classes.dir}" gensrcdir="${build.generated.sources.dir}"/>
   5.878 +        <copy todir="${build.classes.dir}">
   5.879 +            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
   5.880 +        </copy>
   5.881 +    </target>
   5.882 +    <target if="has.custom.manifest" name="-copy-manifest">
   5.883 +        <mkdir dir="${build.meta.inf.dir}"/>
   5.884 +        <copy todir="${build.meta.inf.dir}">
   5.885 +            <fileset dir="${conf.dir}" includes="MANIFEST.MF"/>
   5.886 +        </copy>
   5.887 +    </target>
   5.888 +    <target if="has.persistence.xml" name="-copy-persistence-xml">
   5.889 +        <mkdir dir="${build.web.dir}/WEB-INF/classes/META-INF"/>
   5.890 +        <copy todir="${build.web.dir}/WEB-INF/classes/META-INF">
   5.891 +            <fileset dir="${persistence.xml.dir}" includes="persistence.xml orm.xml"/>
   5.892 +        </copy>
   5.893 +    </target>
   5.894 +    <target name="-post-compile">
   5.895 +        <!-- Empty placeholder for easier customization. -->
   5.896 +        <!-- You can override this target in the ../build.xml file. -->
   5.897 +    </target>
   5.898 +    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
   5.899 +    <target name="-pre-compile-single">
   5.900 +        <!-- Empty placeholder for easier customization. -->
   5.901 +        <!-- You can override this target in the ../build.xml file. -->
   5.902 +    </target>
   5.903 +    <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
   5.904 +        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
   5.905 +        <webproject2:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}"/>
   5.906 +        <copy todir="${build.classes.dir}">
   5.907 +            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
   5.908 +        </copy>
   5.909 +    </target>
   5.910 +    <target name="-post-compile-single">
   5.911 +        <!-- Empty placeholder for easier customization. -->
   5.912 +        <!-- You can override this target in the ../build.xml file. -->
   5.913 +    </target>
   5.914 +    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
   5.915 +    <property name="jspc.schemas" value="/resources/schemas/"/>
   5.916 +    <property name="jspc.dtds" value="/resources/dtds/"/>
   5.917 +    <target depends="compile" description="Test compile JSP pages to expose compilation errors." if="do.compile.jsps" name="compile-jsps">
   5.918 +        <mkdir dir="${build.generated.dir}/src"/>
   5.919 +        <java classname="org.netbeans.modules.web.project.ant.JspC" failonerror="true" fork="true">
   5.920 +            <arg value="-uriroot"/>
   5.921 +            <arg file="${basedir}/${build.web.dir}"/>
   5.922 +            <arg value="-d"/>
   5.923 +            <arg file="${basedir}/${build.generated.dir}/src"/>
   5.924 +            <arg value="-die1"/>
   5.925 +            <arg value="-schemas ${jspc.schemas}"/>
   5.926 +            <arg value="-dtds ${jspc.dtds}"/>
   5.927 +            <arg value="-compilerSourceVM ${javac.source}"/>
   5.928 +            <arg value="-compilerTargetVM ${javac.target}"/>
   5.929 +            <arg value="-javaEncoding ${source.encoding}"/>
   5.930 +            <arg value="-sysClasspath ${libs.jsp-compilation-syscp.classpath}"/>
   5.931 +            <classpath path="${java.home}/../lib/tools.jar:${libs.jsp-compiler.classpath}:${libs.jsp-compilation.classpath}"/>
   5.932 +        </java>
   5.933 +        <mkdir dir="${build.generated.dir}/classes"/>
   5.934 +        <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"/>
   5.935 +    </target>
   5.936 +    <target depends="compile" if="jsp.includes" name="-do-compile-single-jsp">
   5.937 +        <fail unless="javac.jsp.includes">Must select some files in the IDE or set javac.jsp.includes</fail>
   5.938 +        <mkdir dir="${build.generated.dir}/src"/>
   5.939 +        <java classname="org.netbeans.modules.web.project.ant.JspCSingle" failonerror="true" fork="true">
   5.940 +            <arg value="-uriroot"/>
   5.941 +            <arg file="${basedir}/${build.web.dir}"/>
   5.942 +            <arg value="-d"/>
   5.943 +            <arg file="${basedir}/${build.generated.dir}/src"/>
   5.944 +            <arg value="-die1"/>
   5.945 +            <arg value="-schemas ${jspc.schemas}"/>
   5.946 +            <arg value="-dtds ${jspc.dtds}"/>
   5.947 +            <arg value="-sysClasspath ${libs.jsp-compilation-syscp.classpath}"/>
   5.948 +            <arg value="-jspc.files"/>
   5.949 +            <arg path="${jsp.includes}"/>
   5.950 +            <arg value="-compilerSourceVM ${javac.source}"/>
   5.951 +            <arg value="-compilerTargetVM ${javac.target}"/>
   5.952 +            <arg value="-javaEncoding ${source.encoding}"/>
   5.953 +            <classpath path="${java.home}/../lib/tools.jar:${libs.jsp-compiler.classpath}:${libs.jsp-compilation.classpath}"/>
   5.954 +        </java>
   5.955 +        <mkdir dir="${build.generated.dir}/classes"/>
   5.956 +        <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">
   5.957 +            <customize>
   5.958 +                <patternset includes="${javac.jsp.includes}"/>
   5.959 +            </customize>
   5.960 +        </webproject2:javac>
   5.961 +    </target>
   5.962 +    <target name="compile-single-jsp">
   5.963 +        <fail unless="jsp.includes">Must select a file in the IDE or set jsp.includes</fail>
   5.964 +        <antcall target="-do-compile-single-jsp"/>
   5.965 +    </target>
   5.966 +    <!--
   5.967 +                DIST BUILDING SECTION
   5.968 +            -->
   5.969 +    <target name="-pre-dist">
   5.970 +        <!-- Empty placeholder for easier customization. -->
   5.971 +        <!-- You can override this target in the ../build.xml file. -->
   5.972 +    </target>
   5.973 +    <target depends="init,compile,compile-jsps,-pre-dist" if="do.war.package.without.custom.manifest" name="-do-dist-without-manifest">
   5.974 +        <dirname file="${dist.war}" property="dist.jar.dir"/>
   5.975 +        <mkdir dir="${dist.jar.dir}"/>
   5.976 +        <jar compress="${jar.compress}" jarfile="${dist.war}">
   5.977 +            <fileset dir="${build.web.dir}" excludes="WEB-INF/classes/.netbeans_*,${dist.archive.excludes}"/>
   5.978 +        </jar>
   5.979 +    </target>
   5.980 +    <target depends="init,compile,compile-jsps,-pre-dist" if="do.war.package.with.custom.manifest" name="-do-dist-with-manifest">
   5.981 +        <dirname file="${dist.war}" property="dist.jar.dir"/>
   5.982 +        <mkdir dir="${dist.jar.dir}"/>
   5.983 +        <jar compress="${jar.compress}" jarfile="${dist.war}" manifest="${build.meta.inf.dir}/MANIFEST.MF">
   5.984 +            <fileset dir="${build.web.dir}" excludes="WEB-INF/classes/.netbeans_*,${dist.archive.excludes}"/>
   5.985 +        </jar>
   5.986 +    </target>
   5.987 +    <target depends="init,compile,compile-jsps,-pre-dist" if="do.tmp.war.package.without.custom.manifest" name="-do-tmp-dist-without-manifest">
   5.988 +        <dirname file="${dist.war}" property="dist.jar.dir"/>
   5.989 +        <mkdir dir="${dist.jar.dir}"/>
   5.990 +        <jar compress="${jar.compress}" jarfile="${dist.war}">
   5.991 +            <fileset dir="${build.web.dir}" excludes="WEB-INF/classes/.netbeans_*,${dist.archive.excludes}"/>
   5.992 +        </jar>
   5.993 +    </target>
   5.994 +    <target depends="init,compile,compile-jsps,-pre-dist" if="do.tmp.war.package.with.custom.manifest" name="-do-tmp-dist-with-manifest">
   5.995 +        <dirname file="${dist.war}" property="dist.jar.dir"/>
   5.996 +        <mkdir dir="${dist.jar.dir}"/>
   5.997 +        <jar compress="${jar.compress}" jarfile="${dist.war}" manifest="${build.meta.inf.dir}/MANIFEST.MF">
   5.998 +            <fileset dir="${build.web.dir}" excludes="WEB-INF/classes/.netbeans_*,${dist.archive.excludes}"/>
   5.999 +        </jar>
  5.1000 +    </target>
  5.1001 +    <target depends="init,compile,compile-jsps,-pre-dist,-do-dist-with-manifest,-do-dist-without-manifest" name="do-dist"/>
  5.1002 +    <target depends="init" if="dist.ear.dir" name="library-inclusion-in-manifest">
  5.1003 +        <mkdir dir="${build.web.dir}/META-INF"/>
  5.1004 +        <manifest file="${build.web.dir}/META-INF/MANIFEST.MF" mode="update"/>
  5.1005 +    </target>
  5.1006 +    <target depends="init" name="library-inclusion-in-archive" unless="dist.ear.dir"/>
  5.1007 +    <target depends="init" if="dist.ear.dir" name="-clean-webinf-lib">
  5.1008 +        <delete dir="${build.web.dir}/WEB-INF/lib"/>
  5.1009 +    </target>
  5.1010 +    <target depends="init,-clean-webinf-lib,compile,compile-jsps,-pre-dist,library-inclusion-in-manifest" if="do.tmp.war.package" name="do-ear-dist">
  5.1011 +        <dirname file="${dist.ear.war}" property="dist.jar.dir"/>
  5.1012 +        <mkdir dir="${dist.jar.dir}"/>
  5.1013 +        <jar compress="${jar.compress}" jarfile="${dist.ear.war}" manifest="${build.web.dir}/META-INF/MANIFEST.MF">
  5.1014 +            <fileset dir="${build.web.dir}" excludes="WEB-INF/classes/.netbeans_*,${dist.archive.excludes}"/>
  5.1015 +        </jar>
  5.1016 +    </target>
  5.1017 +    <target name="-post-dist">
  5.1018 +        <!-- Empty placeholder for easier customization. -->
  5.1019 +        <!-- You can override this target in the ../build.xml file. -->
  5.1020 +    </target>
  5.1021 +    <target depends="init,compile,-pre-dist,do-dist,-post-dist" description="Build distribution (WAR)." name="dist"/>
  5.1022 +    <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"/>
  5.1023 +    <!--
  5.1024 +                EXECUTION SECTION
  5.1025 +            -->
  5.1026 +    <target depends="run-deploy,run-display-browser" description="Deploy to server and show in browser." name="run"/>
  5.1027 +    <target name="-pre-run-deploy">
  5.1028 +        <!-- Empty placeholder for easier customization. -->
  5.1029 +        <!-- You can override this target in the ../build.xml file. -->
  5.1030 +    </target>
  5.1031 +    <target name="-post-run-deploy">
  5.1032 +        <!-- Empty placeholder for easier customization. -->
  5.1033 +        <!-- You can override this target in the ../build.xml file. -->
  5.1034 +    </target>
  5.1035 +    <target name="-pre-nbmodule-run-deploy">
  5.1036 +        <!-- Empty placeholder for easier customization. -->
  5.1037 +        <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
  5.1038 +    </target>
  5.1039 +    <target name="-post-nbmodule-run-deploy">
  5.1040 +        <!-- Empty placeholder for easier customization. -->
  5.1041 +        <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
  5.1042 +    </target>
  5.1043 +    <target name="-run-deploy-am">
  5.1044 +        <!-- Task to deploy to the Access Manager runtime. -->
  5.1045 +    </target>
  5.1046 +    <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"/>
  5.1047 +    <target if="netbeans.home" name="-run-deploy-nb">
  5.1048 +        <nbdeploy clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
  5.1049 +    </target>
  5.1050 +    <target name="-init-deploy-ant" unless="netbeans.home">
  5.1051 +        <property name="deploy.ant.archive" value="${dist.war}"/>
  5.1052 +        <property name="deploy.ant.docbase.dir" value="${web.docbase.dir}"/>
  5.1053 +        <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
  5.1054 +        <property name="deploy.ant.enabled" value="true"/>
  5.1055 +    </target>
  5.1056 +    <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
  5.1057 +    <target if="netbeans.home" name="-run-undeploy-nb">
  5.1058 +        <fail message="Undeploy is not supported from within the IDE"/>
  5.1059 +    </target>
  5.1060 +    <target depends="init,-pre-dist,dist,-post-dist" name="verify">
  5.1061 +        <nbverify file="${dist.war}"/>
  5.1062 +    </target>
  5.1063 +    <target depends="run-deploy,-init-display-browser,-display-browser-nb-old,-display-browser-nb,-display-browser-cl" name="run-display-browser"/>
  5.1064 +    <target if="do.display.browser" name="-init-display-browser">
  5.1065 +        <condition property="do.display.browser.nb.old">
  5.1066 +            <and>
  5.1067 +                <isset property="netbeans.home"/>
  5.1068 +                <not>
  5.1069 +                    <isset property="browser.context"/>
  5.1070 +                </not>
  5.1071 +            </and>
  5.1072 +        </condition>
  5.1073 +        <condition property="do.display.browser.nb">
  5.1074 +            <and>
  5.1075 +                <isset property="netbeans.home"/>
  5.1076 +                <isset property="browser.context"/>
  5.1077 +            </and>
  5.1078 +        </condition>
  5.1079 +        <condition property="do.display.browser.cl">
  5.1080 +            <isset property="deploy.ant.enabled"/>
  5.1081 +        </condition>
  5.1082 +    </target>
  5.1083 +    <target if="do.display.browser.nb.old" name="-display-browser-nb-old">
  5.1084 +        <nbbrowse url="${client.url}"/>
  5.1085 +    </target>
  5.1086 +    <target if="do.display.browser.nb" name="-display-browser-nb">
  5.1087 +        <nbbrowse context="${browser.context}" url="${client.url}" urlPath="${client.urlPart}"/>
  5.1088 +    </target>
  5.1089 +    <target if="do.display.browser.cl" name="-get-browser" unless="browser">
  5.1090 +        <condition property="browser" value="rundll32">
  5.1091 +            <os family="windows"/>
  5.1092 +        </condition>
  5.1093 +        <condition else="" property="browser.args" value="url.dll,FileProtocolHandler">
  5.1094 +            <os family="windows"/>
  5.1095 +        </condition>
  5.1096 +        <condition property="browser" value="/usr/bin/open">
  5.1097 +            <os family="mac"/>
  5.1098 +        </condition>
  5.1099 +        <property environment="env"/>
  5.1100 +        <condition property="browser" value="${env.BROWSER}">
  5.1101 +            <isset property="env.BROWSER"/>
  5.1102 +        </condition>
  5.1103 +        <condition property="browser" value="/usr/bin/firefox">
  5.1104 +            <available file="/usr/bin/firefox"/>
  5.1105 +        </condition>
  5.1106 +        <condition property="browser" value="/usr/local/firefox/firefox">
  5.1107 +            <available file="/usr/local/firefox/firefox"/>
  5.1108 +        </condition>
  5.1109 +        <condition property="browser" value="/usr/bin/mozilla">
  5.1110 +            <available file="/usr/bin/mozilla"/>
  5.1111 +        </condition>
  5.1112 +        <condition property="browser" value="/usr/local/mozilla/mozilla">
  5.1113 +            <available file="/usr/local/mozilla/mozilla"/>
  5.1114 +        </condition>
  5.1115 +        <condition property="browser" value="/usr/sfw/lib/firefox/firefox">
  5.1116 +            <available file="/usr/sfw/lib/firefox/firefox"/>
  5.1117 +        </condition>
  5.1118 +        <condition property="browser" value="/opt/csw/bin/firefox">
  5.1119 +            <available file="/opt/csw/bin/firefox"/>
  5.1120 +        </condition>
  5.1121 +        <condition property="browser" value="/usr/sfw/lib/mozilla/mozilla">
  5.1122 +            <available file="/usr/sfw/lib/mozilla/mozilla"/>
  5.1123 +        </condition>
  5.1124 +        <condition property="browser" value="/opt/csw/bin/mozilla">
  5.1125 +            <available file="/opt/csw/bin/mozilla"/>
  5.1126 +        </condition>
  5.1127 +    </target>
  5.1128 +    <target depends="-get-browser" if="do.display.browser.cl" name="-display-browser-cl">
  5.1129 +        <fail unless="browser">
  5.1130 +                    Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable.
  5.1131 +                </fail>
  5.1132 +        <property name="browse.url" value="${deploy.ant.client.url}${client.urlPart}"/>
  5.1133 +        <echo>Launching ${browse.url}</echo>
  5.1134 +        <exec executable="${browser}" spawn="true">
  5.1135 +            <arg line="${browser.args} ${browse.url}"/>
  5.1136 +        </exec>
  5.1137 +    </target>
  5.1138 +    <target depends="init,-init-cos,compile-single" name="run-main">
  5.1139 +        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
  5.1140 +        <webproject1:java classname="${run.class}"/>
  5.1141 +    </target>
  5.1142 +    <target depends="init,compile-test-single,-pre-test-run-single" name="run-test-with-main">
  5.1143 +        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
  5.1144 +        <webproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
  5.1145 +    </target>
  5.1146 +    <target depends="init" if="netbeans.home" name="-do-update-breakpoints">
  5.1147 +        <webproject1:nbjpdaappreloaded/>
  5.1148 +    </target>
  5.1149 +    <!--
  5.1150 +                DEBUGGING SECTION
  5.1151 +            -->
  5.1152 +    <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">
  5.1153 +        <nbstartserver debugmode="true"/>
  5.1154 +        <antcall target="connect-debugger"/>
  5.1155 +        <nbdeploy clientUrlPart="${client.urlPart}" debugmode="true" forceRedeploy="true"/>
  5.1156 +        <antcall target="debug-display-browser-old"/>
  5.1157 +        <antcall target="debug-display-browser"/>
  5.1158 +        <antcall target="connect-client-debugger"/>
  5.1159 +    </target>
  5.1160 +    <target if="do.debug.server" name="connect-debugger" unless="is.debugged">
  5.1161 +        <condition property="listeningcp" value="sourcepath">
  5.1162 +            <istrue value="${j2ee.compile.on.save}"/>
  5.1163 +        </condition>
  5.1164 +        <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" listeningcp="${listeningcp}" name="${name}" transport="${jpda.transport}">
  5.1165 +            <classpath>
  5.1166 +                <path path="${debug.classpath}:${j2ee.platform.classpath}"/>
  5.1167 +            </classpath>
  5.1168 +            <sourcepath>
  5.1169 +                <path path="${web.docbase.dir}"/>
  5.1170 +            </sourcepath>
  5.1171 +        </nbjpdaconnect>
  5.1172 +    </target>
  5.1173 +    <target if="do.display.browser.debug.old" name="debug-display-browser-old">
  5.1174 +        <nbbrowse url="${client.url}"/>
  5.1175 +    </target>
  5.1176 +    <target if="do.display.browser.debug" name="debug-display-browser">
  5.1177 +        <nbbrowse context="${browser.context}" url="${client.url}" urlPath="${client.urlPart}"/>
  5.1178 +    </target>
  5.1179 +    <target if="do.debug.client" name="connect-client-debugger">
  5.1180 +        <webproject1:nbjsdebugstart webUrl="${client.url}"/>
  5.1181 +    </target>
  5.1182 +    <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
  5.1183 +        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
  5.1184 +        <webproject1:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
  5.1185 +    </target>
  5.1186 +    <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
  5.1187 +    <target depends="init,compile,compile-jsps,-do-compile-single-jsp,debug" if="netbeans.home" name="debug-single"/>
  5.1188 +    <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
  5.1189 +        <webproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
  5.1190 +    </target>
  5.1191 +    <target depends="init" if="netbeans.home" name="-debug-start-debugger">
  5.1192 +        <webproject1:nbjpdastart name="${debug.class}"/>
  5.1193 +    </target>
  5.1194 +    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
  5.1195 +        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
  5.1196 +        <webproject1:debug classname="${debug.class}"/>
  5.1197 +    </target>
  5.1198 +    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single-main"/>
  5.1199 +    <target depends="init" name="-pre-debug-fix">
  5.1200 +        <fail unless="fix.includes">Must set fix.includes</fail>
  5.1201 +        <property name="javac.includes" value="${fix.includes}.java"/>
  5.1202 +    </target>
  5.1203 +    <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
  5.1204 +        <webproject1:nbjpdareload/>
  5.1205 +    </target>
  5.1206 +    <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
  5.1207 +    <!--
  5.1208 +            =================
  5.1209 +            PROFILING SECTION
  5.1210 +            =================
  5.1211 +            -->
  5.1212 +    <!--
  5.1213 +                pre NB7.2 profiling section; consider it deprecated
  5.1214 +            -->
  5.1215 +    <target description="Profile a J2EE project in the IDE." if="profiler.info.jvmargs.agent" name="-profile-pre72">
  5.1216 +        <condition else="start-profiled-server" property="profiler.startserver.target" value="start-profiled-server-extraargs">
  5.1217 +            <isset property="profiler.info.jvmargs.extra"/>
  5.1218 +        </condition>
  5.1219 +        <antcall target="${profiler.startserver.target}"/>
  5.1220 +        <antcall target="run"/>
  5.1221 +        <antcall target="-profile-start-loadgen"/>
  5.1222 +    </target>
  5.1223 +    <target if="profiler.info.jvmargs.agent" name="start-profiled-server">
  5.1224 +        <nbstartprofiledserver forceRestart="${profiler.j2ee.serverForceRestart}" javaPlatform="${profiler.info.javaPlatform}" startupTimeout="${profiler.j2ee.serverStartupTimeout}">
  5.1225 +            <jvmarg value="${profiler.info.jvmargs.agent}"/>
  5.1226 +            <jvmarg value="${profiler.j2ee.agentID}"/>
  5.1227 +        </nbstartprofiledserver>
  5.1228 +    </target>
  5.1229 +    <target if="profiler.info.jvmargs.agent" name="start-profiled-server-extraargs">
  5.1230 +        <nbstartprofiledserver forceRestart="${profiler.j2ee.serverForceRestart}" javaPlatform="${profiler.info.javaPlatform}" startupTimeout="${profiler.j2ee.serverStartupTimeout}">
  5.1231 +            <jvmarg value="${profiler.info.jvmargs.extra}"/>
  5.1232 +            <jvmarg value="${profiler.info.jvmargs.agent}"/>
  5.1233 +            <jvmarg value="${profiler.j2ee.agentID}"/>
  5.1234 +        </nbstartprofiledserver>
  5.1235 +    </target>
  5.1236 +    <target depends="profile-init,compile-test-single" if="profiler.info.jvmargs.agent" name="-profile-test-single-pre72">
  5.1237 +        <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
  5.1238 +        <nbprofiledirect>
  5.1239 +            <classpath>
  5.1240 +                <path path="${run.test.classpath}"/>
  5.1241 +                <path path="${j2ee.platform.classpath}"/>
  5.1242 +            </classpath>
  5.1243 +        </nbprofiledirect>
  5.1244 +        <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
  5.1245 +            <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
  5.1246 +            <jvmarg value="${profiler.info.jvmargs.agent}"/>
  5.1247 +            <jvmarg line="${profiler.info.jvmargs}"/>
  5.1248 +            <test name="${profile.class}"/>
  5.1249 +            <classpath>
  5.1250 +                <path path="${run.test.classpath}"/>
  5.1251 +                <path path="${j2ee.platform.classpath}"/>
  5.1252 +            </classpath>
  5.1253 +            <syspropertyset>
  5.1254 +                <propertyref prefix="test-sys-prop."/>
  5.1255 +                <mapper from="test-sys-prop.*" to="*" type="glob"/>
  5.1256 +            </syspropertyset>
  5.1257 +            <formatter type="brief" usefile="false"/>
  5.1258 +            <formatter type="xml"/>
  5.1259 +        </junit>
  5.1260 +    </target>
  5.1261 +    <target if="netbeans.home" name="-profile-check">
  5.1262 +        <condition property="profiler.configured">
  5.1263 +            <or>
  5.1264 +                <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-agentpath:"/>
  5.1265 +                <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-javaagent:"/>
  5.1266 +            </or>
  5.1267 +        </condition>
  5.1268 +    </target>
  5.1269 +    <target depends="init,-init-cos,compile,compile-jsps,-do-compile-single-jsp,-pre-dist,-do-tmp-dist-with-manifest,-do-tmp-dist-without-manifest" name="-do-profile">
  5.1270 +        <startprofiler/>
  5.1271 +        <nbstartserver profilemode="true"/>
  5.1272 +        <nbdeploy clientUrlPart="${client.urlPart}" forceRedeploy="true" profilemode="true"/>
  5.1273 +        <antcall target="debug-display-browser-old"/>
  5.1274 +        <antcall target="debug-display-browser"/>
  5.1275 +        <antcall target="-profile-start-loadgen"/>
  5.1276 +    </target>
  5.1277 +    <target depends="-profile-check,-profile-pre72" description="Profile a J2EE project in the IDE." if="profiler.configured" name="profile" unless="profiler.info.jvmargs.agent">
  5.1278 +        <antcall target="-do-profile"/>
  5.1279 +    </target>
  5.1280 +    <target depends="-profile-test-single-pre72" name="profile-test-single"/>
  5.1281 +    <target depends="-profile-check" if="profiler.configured" name="profile-test" unless="profiler.info.jvmargs.agent">
  5.1282 +        <startprofiler/>
  5.1283 +        <antcall target="test-single"/>
  5.1284 +    </target>
  5.1285 +    <target if="profiler.loadgen.path" name="-profile-start-loadgen">
  5.1286 +        <loadgenstart path="${profiler.loadgen.path}"/>
  5.1287 +    </target>
  5.1288 +    <!--
  5.1289 +                JAVADOC SECTION
  5.1290 +            -->
  5.1291 +    <target depends="init" if="have.sources" name="javadoc-build">
  5.1292 +        <mkdir dir="${dist.javadoc.dir}"/>
  5.1293 +        <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}">
  5.1294 +            <classpath>
  5.1295 +                <path path="${javac.classpath}:${j2ee.platform.classpath}"/>
  5.1296 +            </classpath>
  5.1297 +            <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
  5.1298 +                <filename name="**/*.java"/>
  5.1299 +            </fileset>
  5.1300 +            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
  5.1301 +                <include name="**/*.java"/>
  5.1302 +            </fileset>
  5.1303 +        </javadoc>
  5.1304 +        <copy todir="${dist.javadoc.dir}">
  5.1305 +            <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
  5.1306 +                <filename name="**/doc-files/**"/>
  5.1307 +            </fileset>
  5.1308 +            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
  5.1309 +                <include name="**/doc-files/**"/>
  5.1310 +            </fileset>
  5.1311 +        </copy>
  5.1312 +    </target>
  5.1313 +    <target depends="init,javadoc-build" if="netbeans.home" name="javadoc-browse" unless="no.javadoc.preview">
  5.1314 +        <nbbrowse file="${dist.javadoc.dir}/index.html"/>
  5.1315 +    </target>
  5.1316 +    <target depends="init,javadoc-build,javadoc-browse" description="Build Javadoc." name="javadoc"/>
  5.1317 +    <!--
  5.1318 +                
  5.1319 +                TEST COMPILATION SECTION
  5.1320 +            -->
  5.1321 +    <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
  5.1322 +        <mkdir dir="${build.test.classes.dir}"/>
  5.1323 +        <property name="j2ee.platform.embeddableejb.classpath" value=""/>
  5.1324 +    </target>
  5.1325 +    <target name="-pre-compile-test">
  5.1326 +        <!-- Empty placeholder for easier customization. -->
  5.1327 +        <!-- You can override this target in the ../build.xml file. -->
  5.1328 +    </target>
  5.1329 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test" if="have.tests" name="-do-compile-test">
  5.1330 +        <webproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
  5.1331 +        <copy todir="${build.test.classes.dir}">
  5.1332 +            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  5.1333 +        </copy>
  5.1334 +    </target>
  5.1335 +    <target name="-post-compile-test">
  5.1336 +        <!-- Empty placeholder for easier customization. -->
  5.1337 +        <!-- You can override this target in the ../build.xml file. -->
  5.1338 +    </target>
  5.1339 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
  5.1340 +    <target name="-pre-compile-test-single">
  5.1341 +        <!-- Empty placeholder for easier customization. -->
  5.1342 +        <!-- You can override this target in the ../build.xml file. -->
  5.1343 +    </target>
  5.1344 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
  5.1345 +        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
  5.1346 +        <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}"/>
  5.1347 +        <copy todir="${build.test.classes.dir}">
  5.1348 +            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  5.1349 +        </copy>
  5.1350 +    </target>
  5.1351 +    <target name="-post-compile-test-single">
  5.1352 +        <!-- Empty placeholder for easier customization. -->
  5.1353 +        <!-- You can override this target in the ../build.xml file. -->
  5.1354 +    </target>
  5.1355 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
  5.1356 +    <!--
  5.1357 +                
  5.1358 +                TEST EXECUTION SECTION
  5.1359 +            -->
  5.1360 +    <target depends="init" if="have.tests" name="-pre-test-run">
  5.1361 +        <mkdir dir="${build.test.results.dir}"/>
  5.1362 +    </target>
  5.1363 +    <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
  5.1364 +        <webproject2:test includes="${includes}" testincludes="**/*Test.java"/>
  5.1365 +    </target>
  5.1366 +    <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
  5.1367 +        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
  5.1368 +    </target>
  5.1369 +    <target depends="init" if="have.tests" name="test-report"/>
  5.1370 +    <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
  5.1371 +    <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
  5.1372 +    <target depends="init" if="have.tests" name="-pre-test-run-single">
  5.1373 +        <mkdir dir="${build.test.results.dir}"/>
  5.1374 +    </target>
  5.1375 +    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
  5.1376 +        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
  5.1377 +        <webproject2:test excludes="" includes="${test.includes}" testincludes="${test.includes}"/>
  5.1378 +    </target>
  5.1379 +    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
  5.1380 +        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
  5.1381 +    </target>
  5.1382 +    <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"/>
  5.1383 +    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single-method">
  5.1384 +        <fail unless="test.class">Must select some files in the IDE or set test.class</fail>
  5.1385 +        <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
  5.1386 +        <webproject2:test excludes="" includes="${javac.includes}" testincludes="${test.class}" testmethods="${test.method}"/>
  5.1387 +    </target>
  5.1388 +    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method" if="have.tests" name="-post-test-run-single-method">
  5.1389 +        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
  5.1390 +    </target>
  5.1391 +    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method,-post-test-run-single-method" description="Run single unit test." name="test-single-method"/>
  5.1392 +    <!--
  5.1393 +                
  5.1394 +                TEST DEBUGGING SECTION
  5.1395 +            -->
  5.1396 +    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test">
  5.1397 +        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
  5.1398 +        <webproject2:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testincludes="${javac.includes}"/>
  5.1399 +    </target>
  5.1400 +    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test-method">
  5.1401 +        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
  5.1402 +        <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
  5.1403 +        <webproject2:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testMethod="${test.method}" testincludes="${test.class}" testmethods="${test.method}"/>
  5.1404 +    </target>
  5.1405 +    <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
  5.1406 +        <webproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
  5.1407 +    </target>
  5.1408 +    <target depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
  5.1409 +    <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test-method" name="debug-test-method"/>
  5.1410 +    <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
  5.1411 +        <webproject1:nbjpdareload dir="${build.test.classes.dir}"/>
  5.1412 +    </target>
  5.1413 +    <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
  5.1414 +    <!--
  5.1415 +                
  5.1416 +                CLEANUP SECTION
  5.1417 +            -->
  5.1418 +    <target depends="init" name="deps-clean" unless="no.deps"/>
  5.1419 +    <target depends="init" name="do-clean">
  5.1420 +        <condition property="build.dir.to.clean" value="${build.web.dir}">
  5.1421 +            <isset property="dist.ear.dir"/>
  5.1422 +        </condition>
  5.1423 +        <property name="build.dir.to.clean" value="${build.web.dir}"/>
  5.1424 +        <delete includeEmptyDirs="true" quiet="true">
  5.1425 +            <fileset dir="${build.dir.to.clean}/WEB-INF/lib"/>
  5.1426 +        </delete>
  5.1427 +        <delete dir="${build.dir}"/>
  5.1428 +        <available file="${build.dir.to.clean}/WEB-INF/lib" property="status.clean-failed" type="dir"/>
  5.1429 +        <delete dir="${dist.dir}"/>
  5.1430 +    </target>
  5.1431 +    <target depends="do-clean" if="status.clean-failed" name="check-clean">
  5.1432 +        <echo message="Warning: unable to delete some files in ${build.web.dir}/WEB-INF/lib - they are probably locked by the J2EE server. "/>
  5.1433 +        <echo level="info" message="To delete all files undeploy the module from Server Registry in Runtime tab and then use Clean again."/>
  5.1434 +    </target>
  5.1435 +    <target depends="init" if="netbeans.home" name="undeploy-clean">
  5.1436 +        <nbundeploy failOnError="false" startServer="false"/>
  5.1437 +    </target>
  5.1438 +    <target name="-post-clean">
  5.1439 +        <!-- Empty placeholder for easier customization. -->
  5.1440 +        <!-- You can override this target in the ../build.xml file. -->
  5.1441 +    </target>
  5.1442 +    <target depends="init,undeploy-clean,deps-clean,do-clean,check-clean,-post-clean" description="Clean build products." name="clean"/>
  5.1443 +    <target depends="clean" description="Clean build products." name="clean-ear"/>
  5.1444 +</project>
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/nbproject/genfiles.properties	Wed Mar 29 15:03:25 2017 +0200
     6.3 @@ -0,0 +1,8 @@
     6.4 +build.xml.data.CRC32=6b6de059
     6.5 +build.xml.script.CRC32=1f023e98
     6.6 +build.xml.stylesheet.CRC32=651128d4@1.75.1.1
     6.7 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
     6.8 +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
     6.9 +nbproject/build-impl.xml.data.CRC32=6b6de059
    6.10 +nbproject/build-impl.xml.script.CRC32=3fd540ea
    6.11 +nbproject/build-impl.xml.stylesheet.CRC32=99ea4b56@1.75.1.1
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/nbproject/project.properties	Wed Mar 29 15:03:25 2017 +0200
     7.3 @@ -0,0 +1,89 @@
     7.4 +annotation.processing.enabled=true
     7.5 +annotation.processing.enabled.in.editor=true
     7.6 +annotation.processing.processors.list=
     7.7 +annotation.processing.run.all.processors=true
     7.8 +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
     7.9 +build.classes.dir=${build.web.dir}/WEB-INF/classes
    7.10 +build.classes.excludes=**/*.java,**/*.form
    7.11 +build.dir=build
    7.12 +build.generated.dir=${build.dir}/generated
    7.13 +build.generated.sources.dir=${build.dir}/generated-sources
    7.14 +build.test.classes.dir=${build.dir}/test/classes
    7.15 +build.test.results.dir=${build.dir}/test/results
    7.16 +build.web.dir=${build.dir}/web
    7.17 +build.web.excludes=${build.classes.excludes}
    7.18 +client.urlPart=
    7.19 +compile.jsps=false
    7.20 +conf.dir=${source.root}/conf
    7.21 +debug.classpath=${build.classes.dir}:${javac.classpath}
    7.22 +debug.test.classpath=\
    7.23 +    ${run.test.classpath}
    7.24 +display.browser=true
    7.25 +# Files to be excluded from distribution war
    7.26 +dist.archive.excludes=
    7.27 +dist.dir=dist
    7.28 +dist.ear.war=${dist.dir}/${war.ear.name}
    7.29 +dist.javadoc.dir=${dist.dir}/javadoc
    7.30 +dist.war=${dist.dir}/${war.name}
    7.31 +endorsed.classpath=\
    7.32 +    ${libs.javaee-endorsed-api-7.0.classpath}
    7.33 +excludes=
    7.34 +includes=**
    7.35 +j2ee.compile.on.save=true
    7.36 +j2ee.copy.static.files.on.save=true
    7.37 +j2ee.deploy.on.save=true
    7.38 +j2ee.platform=1.7-web
    7.39 +j2ee.platform.classpath=${j2ee.server.home}/modules/endorsed/javax.annotation-api.jar:${j2ee.server.home}/modules/endorsed/jaxb-api.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/bean-validator.jar:${j2ee.server.home}/modules/cdi-api.jar:${j2ee.server.home}/modules/javax.batch-api.jar:${j2ee.server.home}/modules/javax.ejb-api.jar:${j2ee.server.home}/modules/javax.el.jar:${j2ee.server.home}/modules/javax.enterprise.concurrent-api.jar:${j2ee.server.home}/modules/javax.enterprise.concurrent.jar:${j2ee.server.home}/modules/javax.enterprise.deploy-api.jar:${j2ee.server.home}/modules/javax.faces.jar:${j2ee.server.home}/modules/javax.inject.jar:${j2ee.server.home}/modules/javax.interceptor-api.jar:${j2ee.server.home}/modules/javax.jms-api.jar:${j2ee.server.home}/modules/javax.json.jar:${j2ee.server.home}/modules/javax.mail.jar:${j2ee.server.home}/modules/javax.management.j2ee-api.jar:${j2ee.server.home}/modules/javax.persistence.jar:${j2ee.server.home}/modules/javax.resource-api.jar:${j2ee.server.home}/modules/javax.security.auth.message-api.jar:${j2ee.server.home}/modules/javax.security.jacc-api.jar:${j2ee.server.home}/modules/javax.servlet-api.jar:${j2ee.server.home}/modules/javax.servlet.jsp-api.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jstl-api.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jstl.jar:${j2ee.server.home}/modules/javax.transaction-api.jar:${j2ee.server.home}/modules/javax.websocket-api.jar:${j2ee.server.home}/modules/javax.ws.rs-api.jar:${j2ee.server.home}/modules/javax.xml.registry-api.jar:${j2ee.server.home}/modules/javax.xml.rpc-api.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/weld-osgi-bundle.jar:${j2ee.server.middleware}/mq/lib/jaxm-api.jar
    7.40 +j2ee.platform.embeddableejb.classpath=${j2ee.server.home}/lib/embedded/glassfish-embedded-static-shell.jar
    7.41 +j2ee.platform.wscompile.classpath=${j2ee.server.home}/modules/webservices-osgi.jar
    7.42 +j2ee.platform.wsgen.classpath=${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/endorsed/jaxb-api.jar
    7.43 +j2ee.platform.wsimport.classpath=${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/endorsed/jaxb-api.jar
    7.44 +j2ee.platform.wsit.classpath=
    7.45 +j2ee.server.type=gfv3ee6
    7.46 +jar.compress=false
    7.47 +javac.classpath=
    7.48 +# Space-separated list of extra javac options
    7.49 +javac.compilerargs=
    7.50 +javac.debug=true
    7.51 +javac.deprecation=false
    7.52 +javac.processorpath=\
    7.53 +    ${javac.classpath}
    7.54 +javac.source=1.8
    7.55 +javac.target=1.8
    7.56 +javac.test.classpath=\
    7.57 +    ${javac.classpath}:\
    7.58 +    ${build.classes.dir}
    7.59 +javac.test.processorpath=\
    7.60 +    ${javac.test.classpath}
    7.61 +javadoc.additionalparam=
    7.62 +javadoc.author=false
    7.63 +javadoc.encoding=${source.encoding}
    7.64 +javadoc.noindex=false
    7.65 +javadoc.nonavbar=false
    7.66 +javadoc.notree=false
    7.67 +javadoc.preview=true
    7.68 +javadoc.private=false
    7.69 +javadoc.splitindex=true
    7.70 +javadoc.use=true
    7.71 +javadoc.version=false
    7.72 +javadoc.windowtitle=
    7.73 +lib.dir=${web.docbase.dir}/WEB-INF/lib
    7.74 +no.dependencies=false
    7.75 +persistence.xml.dir=${conf.dir}
    7.76 +platform.active=default_platform
    7.77 +resource.dir=setup
    7.78 +run.test.classpath=\
    7.79 +    ${javac.test.classpath}:\
    7.80 +    ${build.test.classes.dir}
    7.81 +# Space-separated list of JVM arguments used when running a class with a main method or a unit test
    7.82 +# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value):
    7.83 +runmain.jvmargs=
    7.84 +source.encoding=UTF-8
    7.85 +source.root=src
    7.86 +src.dir=${source.root}/java
    7.87 +test.src.dir=test
    7.88 +war.content.additional=
    7.89 +war.ear.name=${war.name}
    7.90 +war.name=LightPIT.war
    7.91 +web.docbase.dir=web
    7.92 +webinf.dir=web/WEB-INF
     8.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.2 +++ b/nbproject/project.xml	Wed Mar 29 15:03:25 2017 +0200
     8.3 @@ -0,0 +1,18 @@
     8.4 +<?xml version="1.0" encoding="UTF-8"?>
     8.5 +<project xmlns="http://www.netbeans.org/ns/project/1">
     8.6 +    <type>org.netbeans.modules.web.project</type>
     8.7 +    <configuration>
     8.8 +        <data xmlns="http://www.netbeans.org/ns/web-project/3">
     8.9 +            <name>LightPIT</name>
    8.10 +            <minimum-ant-version>1.6.5</minimum-ant-version>
    8.11 +            <web-module-libraries/>
    8.12 +            <web-module-additional-libraries/>
    8.13 +            <source-roots>
    8.14 +                <root id="src.dir" name="Source Packages"/>
    8.15 +            </source-roots>
    8.16 +            <test-roots>
    8.17 +                <root id="test.src.dir" name="Test Packages"/>
    8.18 +            </test-roots>
    8.19 +        </data>
    8.20 +    </configuration>
    8.21 +</project>
     9.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.2 +++ b/src/conf/MANIFEST.MF	Wed Mar 29 15:03:25 2017 +0200
     9.3 @@ -0,0 +1,2 @@
     9.4 +Manifest-Version: 1.0
     9.5 +
    10.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.2 +++ b/web/WEB-INF/glassfish-web.xml	Wed Mar 29 15:03:25 2017 +0200
    10.3 @@ -0,0 +1,11 @@
    10.4 +<?xml version="1.0" encoding="UTF-8"?>
    10.5 +<!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Servlet 3.0//EN" "http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd">
    10.6 +<glassfish-web-app error-url="">
    10.7 +  <context-root>/lightpit</context-root>
    10.8 +  <class-loader delegate="true"/>
    10.9 +  <jsp-config>
   10.10 +    <property name="keepgenerated" value="true">
   10.11 +      <description>Keep a copy of the generated servlet class' java code.</description>
   10.12 +    </property>
   10.13 +  </jsp-config>
   10.14 +</glassfish-web-app>
    11.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    11.2 +++ b/web/index.html	Wed Mar 29 15:03:25 2017 +0200
    11.3 @@ -0,0 +1,10 @@
    11.4 +<!DOCTYPE html>
    11.5 +<html>
    11.6 +    <head>
    11.7 +        <title>LightPIT - Start Page</title>
    11.8 +        <meta charset="UTF-8">
    11.9 +    </head>
   11.10 +    <body>
   11.11 +        <div>It will work, someday...</div>
   11.12 +    </body>
   11.13 +</html>

mercurial