build-impl.xml revision 958
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai *** GENERATED FROM project.xml - DO NOT EDIT ***
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai *** EDIT /build.xml INSTEAD ***
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai For the purpose of easier reading the script
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai is divided into following sections:
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai - initialization
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai - compilation
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai - execution
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai - debugging
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai - junit compilation
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai - junit execution
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai - junit debugging
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai<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="opengrok-web-nbproject-impl">
134a1f4e3289b54e0f980e9cf05352e419a60beeCasper H.S. Dik <fail message="Please build using Ant 1.7.1 or higher.">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <condition>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </condition>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="dist,javadoc" description="Build whole project." name="default"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai INITIALIZATION SECTION
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- Empty placeholder for easier customization. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- You can override this target in the /build.xml file. -->
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <property file="nbproject/private/private.properties"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <target depends="-pre-init,-init-private" name="-init-user">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <!-- The two properties below are usually overridden -->
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <!-- by the active platform. Just a fallback. -->
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <property name="default.javac.source" value="1.4"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <property name="default.javac.target" value="1.4"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <target depends="-pre-init,-init-private,-init-user" name="-init-project">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <property file="nbproject/project.properties"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" if="dist.ear.dir" name="-do-ear-init"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <available file="${src.generatedsrc.dir}"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <condition property="netbeans.home+have.tests">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <property name="javac.compilerargs" value=""/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <property name="build.web.excludes" value="${build.classes.excludes}"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <condition property="do.display.browser.debug">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <available file="${conf.dir}/MANIFEST.MF" property="has.custom.manifest"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <available file="${persistence.xml.dir}/persistence.xml" property="has.persistence.xml"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <condition property="do.war.package.with.custom.manifest">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <condition property="do.war.package.without.custom.manifest">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <condition property="do.tmp.war.package.with.custom.manifest">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <isfalse value="${directory.deployment.supported}"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <condition property="do.tmp.war.package.without.custom.manifest">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <isfalse value="${directory.deployment.supported}"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <isfalse value="${directory.deployment.supported}"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <property name="build.meta.inf.dir" value="${build.web.dir}/META-INF"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <condition else="" property="application.args.param" value="${application.args}">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <equals arg1="${application.args}" arg2="" trim="true"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <property name="source.encoding" value="${file.encoding}"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <equals arg1="${javadoc.encoding}" arg2=""/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <property name="javadoc.encoding.used" value="${source.encoding}"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <property name="runmain.jvmargs" value=""/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <length length="0" string="${endorsed.classpath}" when="greater"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <target depends="init" name="-init-cos" unless="deploy.on.save">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <condition property="deploy.on.save" value="true">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <!-- Empty placeholder for easier customization. -->
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <!-- You can override this target in the /build.xml file. -->
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <fail unless="src.dir">Must set src.dir</fail>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <fail unless="src.generatedsrc.dir">Must set src.generatedsrc.dir</fail>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <fail unless="build.dir">Must set build.dir</fail>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <fail unless="build.web.dir">Must set build.web.dir</fail>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <fail unless="build.generated.dir">Must set build.generated.dir</fail>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <fail unless="dist.dir">Must set dist.dir</fail>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <fail unless="build.classes.dir">Must set build.classes.dir</fail>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <fail unless="dist.war">Must set dist.war</fail>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert MustacchiThe Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}.
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert MustacchiEither open the project in the IDE and assign the server or setup the server classpath manually.
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert MustacchiFor example like this:
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi ant -Duser.properties.file=<path_to_property_file> (where you put the property "j2ee.platform.classpath" in a .properties file)
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchior ant -Dj2ee.platform.classpath=<server_classpath> (where no properties file is used)
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <macrodef name="property" uri="http://www.netbeans.org/ns/web-project/1">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <property name="@{name}" value="${@{value}}"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </sequential>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <macrodef name="javac" uri="http://www.netbeans.org/ns/web-project/2">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <attribute default="${src.dir}:${src.generatedsrc.dir}" name="srcdir"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <attribute default="${build.classes.dir}" name="destdir"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <attribute default="${includes}" name="includes"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <attribute default="${excludes}" name="excludes"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <attribute default="${javac.debug}" name="debug"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <attribute default="${empty.dir}" name="gensrcdir"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <element name="customize" optional="true"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <property location="${build.dir}/empty" name="empty.dir"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <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}">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <dirset dir="@{gensrcdir}" erroronmissingdir="false">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <compilerarg line="${javac.compilerargs}"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </sequential>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <macrodef name="junit" uri="http://www.netbeans.org/ns/web-project/2">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <attribute default="${includes}" name="includes"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <attribute default="${excludes}" name="excludes"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <attribute default="**" name="testincludes"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${java.io.tmpdir}">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <batchtest todir="${build.test.results.dir}"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <path path="${run.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <syspropertyset>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <mapper from="test-sys-prop.*" to="*" type="glob"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </syspropertyset>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </sequential>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <macrodef name="java" uri="http://www.netbeans.org/ns/web-project/1">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <attribute default="${main.class}" name="classname"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <attribute default="${debug.classpath}" name="classpath"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <element name="customize" optional="true"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <java classname="@{classname}" fork="true">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <path path="@{classpath}:${j2ee.platform.classpath}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </classpath>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <syspropertyset>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </syspropertyset>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <customize/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </sequential>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </macrodef>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <macrodef name="nbjsdebugstart" uri="http://www.netbeans.org/ns/web-project/1">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <sequential>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <nbjsdebugstart urlPart="${client.urlPart}" webUrl="@{webUrl}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </sequential>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </macrodef>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/web-project/1">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <attribute default="${debug.classpath}:${j2ee.platform.classpath}" name="classpath"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <sequential>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <nbjpdastart addressproperty="jpda.address" name="@{name}" transport="${debug-transport}">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <classpath>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </classpath>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </nbjpdastart>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </sequential>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </macrodef>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/web-project/1">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <sequential>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <nbjpdareload>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </fileset>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </nbjpdareload>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </sequential>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw </macrodef>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <macrodef name="nbjpdaappreloaded" uri="http://www.netbeans.org/ns/web-project/1">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <sequential>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <nbjpdaappreloaded/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </sequential>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </macrodef>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <property name="version-output" value="java version "${ant.java.version}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <contains string="${version-output}" substring="java version "1.0"/>
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric Taylor <contains string="${version-output}" substring="java version "1.1"/>
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric Taylor <contains string="${version-output}" substring="java version "1.2"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <contains string="${version-output}" substring="java version "1.3"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </condition>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </condition>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </condition>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </condition>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="-init-debug-args" name="-init-macrodef-debug">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <macrodef name="debug" uri="http://www.netbeans.org/ns/web-project/1">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <attribute default="${debug.classpath}:${j2ee.platform.classpath}" name="classpath"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <attribute default="${application.args.param}" name="args"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <sequential>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <classpath>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </classpath>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <syspropertyset>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </syspropertyset>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <customize/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </sequential>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw </macrodef>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllaiThe libs.CopyLibs.classpath property is not set up.
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllaiThis property must point to
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllaiorg-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllaiof NetBeans IDE installation and is usually located at
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai<netbeans_installation>/java<version>/ant/extra folder.
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllaiEither open the project in the IDE and make sure CopyLibs library
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllaiexists or setup the property manually. For example like this:
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <taskdef classpath="${libs.CopyLibs.classpath}" resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-junit,-init-macrodef-java,-init-macrodef-nbjpda,-init-macrodef-nbjsdebug,-init-macrodef-debug,-init-taskdefs" name="init"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai COMPILATION SECTION
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init" if="no.dist.ear.dir" name="deps-module-jar" unless="no.deps"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init" if="dist.ear.dir" name="deps-ear-jar" unless="no.deps"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init, deps-module-jar, deps-ear-jar" name="deps-jar" unless="no.deps"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init,deps-jar" name="-pre-pre-compile">
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <!-- Empty placeholder for easier customization. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- You can override this target in the /build.xml file. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <fileset dir="${web.docbase.dir}" excludes="${build.web.excludes},${excludes}" includes="${includes}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <fileset dir="${webinf.dir}" excludes="${build.web.excludes}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <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">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <webproject2:javac destdir="${build.classes.dir}" gensrcdir="${build.generated.sources.dir}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <fileset dir="${src.generatedsrc.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target if="has.custom.manifest" name="-copy-manifest">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target if="has.persistence.xml" name="-copy-persistence-xml">
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <mkdir dir="${build.web.dir}/WEB-INF/classes/META-INF"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <copy todir="${build.web.dir}/WEB-INF/classes/META-INF">
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <fileset dir="${persistence.xml.dir}" includes="persistence.xml"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- Empty placeholder for easier customization. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- You can override this target in the /build.xml file. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- Empty placeholder for easier customization. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- You can override this target in the /build.xml file. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <webproject2:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <fileset dir="${src.generatedsrc.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- Empty placeholder for easier customization. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- You can override this target in the /build.xml file. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="compile" description="Test compile JSP pages to expose compilation errors." if="do.compile.jsps" name="compile-jsps">
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <java classname="org.netbeans.modules.web.project.ant.JspC" failonerror="true" fork="true">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <classpath path="${java.home}/lib/tools.jar:${jspctask.classpath}:${jspcompilation.classpath}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <webproject2:javac classpath="${j2ee.platform.classpath}:${build.classes.dir}:${jspcompilation.classpath}" destdir="${build.generated.dir}/classes" srcdir="${build.generated.dir}/src"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="compile" if="jsp.includes" name="-do-compile-single-jsp">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <fail unless="javac.jsp.includes">Must select some files in the IDE or set javac.jsp.includes</fail>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <java classname="org.netbeans.modules.web.project.ant.JspCSingle" failonerror="true" fork="true">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <classpath path="${java.home}/lib/tools.jar:${jspctask.classpath}:${jspcompilation.classpath}"/>
cbcfaf83d8f1bf6aa00c793903a55685cac2c548jg <webproject2:javac classpath="${j2ee.platform.classpath}:${build.classes.dir}:${jspcompilation.classpath}" destdir="${build.generated.dir}/classes" srcdir="${build.generated.dir}/src">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <customize>
cbcfaf83d8f1bf6aa00c793903a55685cac2c548jg </customize>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <fail unless="jsp.includes">Must select a file in the IDE or set jsp.includes</fail>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai DIST BUILDING SECTION
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- Empty placeholder for easier customization. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- You can override this target in the /build.xml file. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init,compile,compile-jsps,-pre-dist" if="do.war.package.without.custom.manifest" name="-do-dist-without-manifest">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init,compile,compile-jsps,-pre-dist" if="do.war.package.with.custom.manifest" name="-do-dist-with-manifest">
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <jar compress="${jar.compress}" jarfile="${dist.war}" manifest="${build.meta.inf.dir}/MANIFEST.MF">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init,compile,compile-jsps,-pre-dist" if="do.tmp.war.package.without.custom.manifest" name="-do-tmp-dist-without-manifest">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init,compile,compile-jsps,-pre-dist" if="do.tmp.war.package.with.custom.manifest" name="-do-tmp-dist-with-manifest">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <jar compress="${jar.compress}" jarfile="${dist.war}" manifest="${build.meta.inf.dir}/MANIFEST.MF">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init,compile,compile-jsps,-pre-dist,-do-dist-with-manifest,-do-dist-without-manifest" name="do-dist"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init" if="dist.ear.dir" name="library-inclusion-in-manifest">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <copyfiles files="${file.reference.swing-layout-0.9.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <copyfiles files="${file.reference.jakarta-oro-2.0.8.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <copyfiles files="${file.reference.lucene-core-3.0.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <copyfiles files="${file.reference.bcel-5.2.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <copyfiles files="${file.reference.jmxremote_optional.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <copyfiles files="${file.reference.org.apache.commons.jrcs.rcs.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <copyfiles files="${file.reference.org.apache.commons.jrcs.diff.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <copyfiles files="${file.reference.lucene-spellchecker-3.0.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <manifest file="${build.web.dir}/META-INF/MANIFEST.MF" mode="update"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init" name="library-inclusion-in-archive" unless="dist.ear.dir">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <copyfiles files="${file.reference.swing-layout-0.9.jar}" todir="${build.web.dir}/WEB-INF\lib"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <copyfiles files="${file.reference.jakarta-oro-2.0.8.jar}" todir="${build.web.dir}/WEB-INF\lib"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <copyfiles files="${file.reference.lucene-core-3.0.1.jar}" todir="${build.web.dir}/WEB-INF\lib"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <copyfiles files="${file.reference.bcel-5.2.jar}" todir="${build.web.dir}/WEB-INF\lib"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <copyfiles files="${file.reference.jmxremote_optional.jar}" todir="${build.web.dir}/WEB-INF\lib"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <copyfiles files="${file.reference.org.apache.commons.jrcs.rcs.jar}" todir="${build.web.dir}/WEB-INF\lib"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <copyfiles files="${file.reference.org.apache.commons.jrcs.diff.jar}" todir="${build.web.dir}/WEB-INF\lib"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <copyfiles files="${file.reference.lucene-spellchecker-3.0.1.jar}" todir="${build.web.dir}/WEB-INF\lib"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init" if="dist.ear.dir" name="-clean-webinf-lib">
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <target depends="init,-clean-webinf-lib,compile,compile-jsps,-pre-dist,library-inclusion-in-manifest" if="do.tmp.war.package" name="do-ear-dist">
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <dirname file="${dist.ear.war}" property="dist.jar.dir"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <jar compress="${jar.compress}" jarfile="${dist.ear.war}" manifest="${build.web.dir}/META-INF/MANIFEST.MF">
de442498e34e37fe9b61cfe5beaacdecd06c6a1cRobert Mustacchi <!-- Empty placeholder for easier customization. -->
de442498e34e37fe9b61cfe5beaacdecd06c6a1cRobert Mustacchi <!-- You can override this target in the /build.xml file. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init,compile,-pre-dist,do-dist,-post-dist" description="Build distribution (WAR)." name="dist"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <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"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai EXECUTION SECTION
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="run-deploy,run-display-browser" description="Deploy to server and show in browser." name="run"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- Empty placeholder for easier customization. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- You can override this target in the /build.xml file. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- Empty placeholder for easier customization. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- You can override this target in the /build.xml file. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- Empty placeholder for easier customization. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <!-- Empty placeholder for easier customization. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- Task to deploy to the Access Manager runtime. -->
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <target depends="init,-init-cos,compile,compile-jsps,-do-compile-single-jsp,-pre-dist,-do-tmp-dist-with-manifest,-do-tmp-dist-without-manifest,-pre-run-deploy,-pre-nbmodule-run-deploy,-run-deploy-nb,-init-deploy-ant,-deploy-ant,-run-deploy-am,-post-nbmodule-run-deploy,-post-run-deploy" name="run-deploy">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <nbjpdaappreloaded/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <nbdeploy clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
de442498e34e37fe9b61cfe5beaacdecd06c6a1cRobert Mustacchi <target name="-init-deploy-ant" unless="netbeans.home">
de442498e34e37fe9b61cfe5beaacdecd06c6a1cRobert Mustacchi <property name="deploy.ant.archive" value="${dist.war}"/>
de442498e34e37fe9b61cfe5beaacdecd06c6a1cRobert Mustacchi <property name="deploy.ant.docbase.dir" value="${web.docbase.dir}"/>
de442498e34e37fe9b61cfe5beaacdecd06c6a1cRobert Mustacchi <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
de442498e34e37fe9b61cfe5beaacdecd06c6a1cRobert Mustacchi <property name="deploy.ant.enabled" value="true"/>
de442498e34e37fe9b61cfe5beaacdecd06c6a1cRobert Mustacchi <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
de442498e34e37fe9b61cfe5beaacdecd06c6a1cRobert Mustacchi <target if="netbeans.home" name="-run-undeploy-nb">
de442498e34e37fe9b61cfe5beaacdecd06c6a1cRobert Mustacchi <fail message="Undeploy is not supported from within the IDE"/>
de442498e34e37fe9b61cfe5beaacdecd06c6a1cRobert Mustacchi <target depends="init,-pre-dist,dist,-post-dist" name="verify">
368fc9412cc48af49761a1b8808d9c4079709391Robert Mustacchi <target depends="run-deploy,-init-display-browser,-display-browser-nb,-display-browser-cl" name="run-display-browser"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target if="do.display.browser" name="-init-display-browser">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </condition>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </condition>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target if="do.display.browser.nb" name="-display-browser-nb">
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <target if="do.display.browser.cl" name="-get-browser" unless="browser">
6b9384783302cfb5bb67d617114d5a4e1dc3d609jg </condition>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <condition else="" property="browser.args" value="url.dll,FileProtocolHandler">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </condition>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw </condition>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </condition>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <condition property="browser" value="/usr/bin/firefox">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </condition>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <condition property="browser" value="/usr/local/firefox/firefox">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </condition>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </condition>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <condition property="browser" value="/usr/local/mozilla/mozilla">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </condition>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <condition property="browser" value="/usr/sfw/lib/firefox/firefox">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </condition>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <condition property="browser" value="/opt/csw/bin/firefox">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </condition>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <condition property="browser" value="/usr/sfw/lib/mozilla/mozilla">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </condition>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <condition property="browser" value="/opt/csw/bin/mozilla">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </condition>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="-get-browser" if="do.display.browser.cl" name="-display-browser-cl">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable.
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <property name="browse.url" value="${deploy.ant.client.url}${client.urlPart}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init,-init-cos,compile-single" name="run-main">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
1c4bb543a73abbf7464757d5ba7d8b84899f2408Jerry Gilliam <target depends="init,compile-test-single,-pre-test-run-single" name="run-test-with-main">
6b9384783302cfb5bb67d617114d5a4e1dc3d609jg <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
6b9384783302cfb5bb67d617114d5a4e1dc3d609jg <webproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw DEBUGGING SECTION
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <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">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <nbdeploy clientUrlPart="${client.urlPart}" debugmode="true" forceRedeploy="true"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target if="do.debug.server" name="connect-debugger" unless="is.debugged">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
174e0b3da3fbbb8b4edc68dcf4726e5727d34df6jg <classpath>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <path path="${debug.classpath}:${j2ee.platform.classpath}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </classpath>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <sourcepath>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </sourcepath>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </nbjpdaconnect>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target if="do.display.browser.debug" name="debug-display-browser">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target if="do.debug.client" name="connect-client-debugger">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <webproject1:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init,compile,compile-jsps,-do-compile-single-jsp,debug" if="netbeans.home" name="debug-single"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <webproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init" if="netbeans.home" name="-debug-start-debugger">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single-main"/>
1c4bb543a73abbf7464757d5ba7d8b84899f2408Jerry Gilliam <fail unless="fix.includes">Must set fix.includes</fail>
1c4bb543a73abbf7464757d5ba7d8b84899f2408Jerry Gilliam <property name="javac.includes" value="${fix.includes}.java"/>
1c4bb543a73abbf7464757d5ba7d8b84899f2408Jerry Gilliam <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai JAVADOC SECTION
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <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}">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <classpath>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <path path="${javac.classpath}:${j2ee.platform.classpath}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </classpath>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </fileset>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <fileset dir="${src.generatedsrc.dir}" excludes="${excludes}" includes="${includes}">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </fileset>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </fileset>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </javadoc>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init,javadoc-build" if="netbeans.home" name="javadoc-browse" unless="no.javadoc.preview">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init,javadoc-build,javadoc-browse" description="Build Javadoc." name="javadoc"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai JUNIT COMPILATION SECTION
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <property name="j2ee.platform.embeddableejb.classpath" value=""/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- Empty placeholder for easier customization. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- You can override this target in the /build.xml file. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test" if="have.tests" name="-do-compile-test">
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <webproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir=""/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- Empty placeholder for easier customization. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- You can override this target in the /build.xml file. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- Empty placeholder for easier customization. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- You can override this target in the /build.xml file. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <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=""/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- Empty placeholder for easier customization. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- You can override this target in the /build.xml file. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai JUNIT EXECUTION SECTION
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init" if="have.tests" name="-pre-test-run">
6b9384783302cfb5bb67d617114d5a4e1dc3d609jg <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
6b9384783302cfb5bb67d617114d5a4e1dc3d609jg <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init" if="have.tests" name="test-report"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init" if="have.tests" name="-pre-test-run-single">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <webproject2:junit excludes="" includes="${test.includes}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
6b9384783302cfb5bb67d617114d5a4e1dc3d609jg <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"/>
6b9384783302cfb5bb67d617114d5a4e1dc3d609jg JUNIT DEBUGGING SECTION
6b9384783302cfb5bb67d617114d5a4e1dc3d609jg <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
6b9384783302cfb5bb67d617114d5a4e1dc3d609jg <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
6c6a45620b26cdcc248b9dc54f23d045d8dd4588Jerry Gilliam <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
6c6a45620b26cdcc248b9dc54f23d045d8dd4588Jerry Gilliam <!-- must exist, otherwise the XML formatter would fail -->
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <webproject1:debug args="${test.class}" classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner" classpath="${ant.home}/lib/ant.jar:${ant.home}/lib/ant-junit.jar:${debug.test.classpath}:${j2ee.platform.embeddableejb.classpath}">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
6c6a45620b26cdcc248b9dc54f23d045d8dd4588Jerry Gilliam <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
6c6a45620b26cdcc248b9dc54f23d045d8dd4588Jerry Gilliam <webproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
6c6a45620b26cdcc248b9dc54f23d045d8dd4588Jerry Gilliam <target depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
6c6a45620b26cdcc248b9dc54f23d045d8dd4588Jerry Gilliam <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
6c6a45620b26cdcc248b9dc54f23d045d8dd4588Jerry Gilliam <webproject1:nbjpdareload dir="${build.test.classes.dir}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai CLEANUP SECTION
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init" if="no.dist.ear.dir" name="deps-clean" unless="no.deps"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <condition property="build.dir.to.clean" value="${build.web.dir}">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </condition>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <property name="build.dir.to.clean" value="${build.web.dir}"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <delete includeEmptyDirs="true" quiet="true">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <fileset dir="${build.dir.to.clean}/WEB-INF/lib"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <available file="${build.dir.to.clean}/WEB-INF/lib" property="status.clean-failed" type="dir"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <target depends="do-clean" if="status.clean-failed" name="check-clean">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <echo message="Warning: unable to delete some files in ${build.web.dir}/WEB-INF/lib - they are probably locked by the J2EE server. "/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <echo level="info" message="To delete all files undeploy the module from Server Registry in Runtime tab and then use Clean again."/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init" if="netbeans.home" name="undeploy-clean">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <nbundeploy failOnError="false" startServer="false"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- Empty placeholder for easier customization. -->
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <!-- You can override this target in the /build.xml file. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init,undeploy-clean,deps-clean,do-clean,check-clean,-post-clean" description="Clean build products." name="clean"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="clean" description="Clean build products." name="clean-ear"/>