build-impl.xml revision 958
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai<?xml version="1.0" encoding="UTF-8"?>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai<!--
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai *** GENERATED FROM project.xml - DO NOT EDIT ***
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai *** EDIT /build.xml INSTEAD ***
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai For the purpose of easier reading the script
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai is divided into following sections:
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai - initialization
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai - compilation
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai - dist
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai - execution
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai - debugging
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai - javadoc
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai - junit compilation
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai - junit execution
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai - junit debugging
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai - cleanup
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai -->
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">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <import file="ant-deploy.xml"/>
134a1f4e3289b54e0f980e9cf05352e419a60beeCasper H.S. Dik <fail message="Please build using Ant 1.7.1 or higher.">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <condition>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <not>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <antversion atleast="1.7.1"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </not>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </condition>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </fail>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="dist,javadoc" description="Build whole project." name="default"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!--
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai INITIALIZATION SECTION
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target name="-pre-init">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- Empty placeholder for easier customization. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- You can override this target in the /build.xml file. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </target>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="-pre-init" name="-init-private">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <property file="nbproject/private/private.properties"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </target>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <target depends="-pre-init,-init-private" name="-init-user">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <property file="${user.properties.file}"/>
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>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <target depends="-pre-init,-init-private,-init-user" name="-init-project">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <property file="nbproject/project.properties"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </target>
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 <condition property="have.tests">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <or/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </condition>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <condition property="have.sources">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <or>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <available file="${src.dir}"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <available file="${src.generatedsrc.dir}"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </or>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </condition>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <condition property="netbeans.home+have.tests">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <and>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <isset property="netbeans.home"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <isset property="have.tests"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </and>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </condition>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <condition property="no.javadoc.preview">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <isfalse value="${javadoc.preview}"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </condition>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <property name="javac.compilerargs" value=""/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <condition property="no.deps">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <and>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <istrue value="${no.dependencies}"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </and>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </condition>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <condition property="no.dist.ear.dir">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <not>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <isset property="dist.ear.dir"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </not>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </condition>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <property name="build.web.excludes" value="${build.classes.excludes}"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <condition property="do.compile.jsps">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <istrue value="${compile.jsps}"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </condition>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <condition property="do.debug.server">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <or>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <not>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <isset property="debug.server"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </not>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <istrue value="${debug.server}"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <and>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <not>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <istrue value="${debug.server}"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </not>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <not>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <istrue value="${debug.client}"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </not>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </and>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </or>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </condition>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <condition property="do.debug.client">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <istrue value="${debug.client}"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </condition>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <condition property="do.display.browser">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <istrue value="${display.browser}"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </condition>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <condition property="do.display.browser.debug">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <and>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <isset property="do.display.browser"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <not>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <isset property="do.debug.client"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </not>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </and>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </condition>
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 <isset property="has.custom.manifest"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </condition>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <condition property="do.war.package.without.custom.manifest">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <not>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <isset property="has.custom.manifest"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </not>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </condition>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <condition property="do.tmp.war.package.with.custom.manifest">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <and>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <isset property="has.custom.manifest"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <or>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <isfalse value="${directory.deployment.supported}"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <isset property="dist.ear.dir"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </or>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </and>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </condition>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <condition property="do.tmp.war.package.without.custom.manifest">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <and>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <not>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <isset property="has.custom.manifest"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </not>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <or>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <isfalse value="${directory.deployment.supported}"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <isset property="dist.ear.dir"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </or>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </and>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </condition>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <condition property="do.tmp.war.package">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <or>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <isfalse value="${directory.deployment.supported}"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <isset property="dist.ear.dir"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </or>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </condition>
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 <and>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <isset property="application.args"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <not>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <equals arg1="${application.args}" arg2="" trim="true"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </not>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </and>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </condition>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <property name="source.encoding" value="${file.encoding}"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <and>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <isset property="javadoc.encoding"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <not>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <equals arg1="${javadoc.encoding}" arg2=""/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </not>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </and>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </condition>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <property name="javadoc.encoding.used" value="${source.encoding}"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <property name="includes" value="**"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <property name="excludes" value=""/>
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 </condition>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </target>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <target depends="init" name="-init-cos" unless="deploy.on.save">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <condition property="deploy.on.save" value="true">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <istrue value="${j2ee.deploy.on.save}"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </condition>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </target>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <target name="-post-init">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <!-- Empty placeholder for easier customization. -->
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <!-- You can override this target in the /build.xml file. -->
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </target>
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 Mustacchi <fail unless="j2ee.platform.classpath">
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=&lt;path_to_property_file&gt; (where you put the property "j2ee.platform.classpath" in a .properties file)
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchior ant -Dj2ee.platform.classpath=&lt;server_classpath&gt; (where no properties file is used)
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </fail>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </target>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <target name="-init-macrodef-property">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <macrodef name="property" uri="http://www.netbeans.org/ns/web-project/1">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <attribute name="name"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <attribute name="value"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <sequential>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <property name="@{name}" value="${@{value}}"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </sequential>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </macrodef>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </target>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <target name="-init-macrodef-javac">
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 <sequential>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <property location="${build.dir}/empty" name="empty.dir"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <mkdir dir="${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 <src>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <dirset dir="@{gensrcdir}" erroronmissingdir="false">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <include name="*"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </dirset>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </src>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <classpath>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <path path="@{classpath}"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </classpath>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <compilerarg line="${javac.compilerargs}"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <customize/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </javac>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </sequential>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </macrodef>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </target>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <target name="-init-macrodef-junit">
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 <sequential>
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 <classpath>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <path path="${run.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </classpath>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <syspropertyset>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <propertyref prefix="test-sys-prop."/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <mapper from="test-sys-prop.*" to="*" type="glob"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </syspropertyset>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <formatter type="brief" usefile="false"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <formatter type="xml"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <jvmarg line="${runmain.jvmargs}"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </junit>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </sequential>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </macrodef>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </target>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <target name="-init-macrodef-java">
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 <sequential>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <java classname="@{classname}" fork="true">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <jvmarg line="${runmain.jvmargs}"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <classpath>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <path path="@{classpath}:${j2ee.platform.classpath}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </classpath>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <syspropertyset>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <propertyref prefix="run-sys-prop."/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <mapper from="run-sys-prop.*" to="*" type="glob"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </syspropertyset>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <customize/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </java>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </sequential>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </macrodef>
aa59c4cb15a6ac5d4e585dadf7a055b580abf579rsb </target>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target name="-init-macrodef-nbjsdebug">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <macrodef name="nbjsdebugstart" uri="http://www.netbeans.org/ns/web-project/1">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <attribute default="${client.url}" name="webUrl"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <sequential>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <nbjsdebugstart urlPart="${client.urlPart}" webUrl="@{webUrl}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </sequential>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </macrodef>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </target>
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="${main.class}" name="name"/>
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 <path path="@{classpath}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </classpath>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </nbjpdastart>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </sequential>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </macrodef>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/web-project/1">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <attribute default="${build.classes.dir}" name="dir"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <sequential>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <nbjpdareload>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <fileset dir="@{dir}" includes="${fix.classes}">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <include name="${fix.includes}*.class"/>
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 </target>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target name="-init-debug-args">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <property name="version-output" value="java version &quot;${ant.java.version}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <condition property="have-jdk-older-than-1.4">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <or>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <contains string="${version-output}" substring="java version &quot;1.0"/>
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric Taylor <contains string="${version-output}" substring="java version &quot;1.1"/>
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric Taylor <contains string="${version-output}" substring="java version &quot;1.2"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <contains string="${version-output}" substring="java version &quot;1.3"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </or>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </condition>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <istrue value="${have-jdk-older-than-1.4}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </condition>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <os family="windows"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </condition>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <isset property="debug.transport"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </condition>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </target>
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="${main.class}" name="classname"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <attribute default="${debug.classpath}:${j2ee.platform.classpath}" name="classpath"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <attribute default="${application.args.param}" name="args"/>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <element name="customize" optional="true"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <sequential>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <java classname="@{classname}" fork="true">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <jvmarg line="${debug-args-line}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <jvmarg line="${runmain.jvmargs}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <classpath>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <path path="@{classpath}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </classpath>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <syspropertyset>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <propertyref prefix="run-sys-prop."/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <mapper from="run-sys-prop.*" to="*" type="glob"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </syspropertyset>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <arg line="@{args}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <customize/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </java>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </sequential>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw </macrodef>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </target>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target name="-init-taskdefs">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <fail unless="libs.CopyLibs.classpath">
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&lt;netbeans_installation&gt;/java&lt;version&gt;/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 </fail>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <taskdef classpath="${libs.CopyLibs.classpath}" resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </target>
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 <!--
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai COMPILATION SECTION
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai -->
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">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <mkdir dir="${build.classes.dir}"/>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw </target>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target name="-pre-compile">
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <!-- Empty placeholder for easier customization. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- You can override this target in the /build.xml file. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </target>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target name="-copy-webdir">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <copy todir="${build.web.dir}">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <fileset dir="${web.docbase.dir}" excludes="${build.web.excludes},${excludes}" includes="${includes}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </copy>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <copy todir="${build.web.dir}/WEB-INF">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <fileset dir="${webinf.dir}" excludes="${build.web.excludes}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </copy>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </target>
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 <copy todir="${build.classes.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 </copy>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </target>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target if="has.custom.manifest" name="-copy-manifest">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <mkdir dir="${build.meta.inf.dir}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <copy todir="${build.meta.inf.dir}">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <fileset dir="${conf.dir}" includes="MANIFEST.MF"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </copy>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </target>
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 </copy>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </target>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target name="-post-compile">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- Empty placeholder for easier customization. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- You can override this target in the /build.xml file. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </target>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target name="-pre-compile-single">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- Empty placeholder for easier customization. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- You can override this target in the /build.xml file. -->
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw </target>
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 <copy todir="${build.classes.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 </copy>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </target>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target name="-post-compile-single">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- Empty placeholder for easier customization. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- You can override this target in the /build.xml file. -->
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw </target>
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">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <mkdir dir="${build.generated.dir}/src"/>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <java classname="org.netbeans.modules.web.project.ant.JspC" failonerror="true" fork="true">
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <arg value="-uriroot"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <arg file="${basedir}/${build.web.dir}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <arg value="-d"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <arg file="${basedir}/${build.generated.dir}/src"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <arg value="-die1"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <arg value="-compilerSourceVM ${javac.source}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <arg value="-compilerTargetVM ${javac.target}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <arg value="-javaEncoding ${source.encoding}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <classpath path="${java.home}/lib/tools.jar:${jspctask.classpath}:${jspcompilation.classpath}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </java>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <mkdir dir="${build.generated.dir}/classes"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <webproject2:javac classpath="${j2ee.platform.classpath}:${build.classes.dir}:${jspcompilation.classpath}" destdir="${build.generated.dir}/classes" srcdir="${build.generated.dir}/src"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </target>
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 <mkdir dir="${build.generated.dir}/src"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <java classname="org.netbeans.modules.web.project.ant.JspCSingle" failonerror="true" fork="true">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <arg value="-uriroot"/>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <arg file="${basedir}/${build.web.dir}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <arg value="-d"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <arg file="${basedir}/${build.generated.dir}/src"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <arg value="-die1"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <arg value="-jspc.files"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <arg path="${jsp.includes}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <arg value="-compilerSourceVM ${javac.source}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <arg value="-compilerTargetVM ${javac.target}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <arg value="-javaEncoding ${source.encoding}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <classpath path="${java.home}/lib/tools.jar:${jspctask.classpath}:${jspcompilation.classpath}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </java>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <mkdir dir="${build.generated.dir}/classes"/>
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 <patternset includes="${javac.jsp.includes}"/>
cbcfaf83d8f1bf6aa00c793903a55685cac2c548jg </customize>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </webproject2:javac>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </target>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target name="compile-single-jsp">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <fail unless="jsp.includes">Must select a file in the IDE or set jsp.includes</fail>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <antcall target="-do-compile-single-jsp"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </target>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <!--
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai DIST BUILDING SECTION
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target name="-pre-dist">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- Empty placeholder for easier customization. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- You can override this target in the /build.xml file. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </target>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init,compile,compile-jsps,-pre-dist" if="do.war.package.without.custom.manifest" name="-do-dist-without-manifest">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <dirname file="${dist.war}" property="dist.jar.dir"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <mkdir dir="${dist.jar.dir}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <jar compress="${jar.compress}" jarfile="${dist.war}">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <fileset dir="${build.web.dir}"/>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw </jar>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </target>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init,compile,compile-jsps,-pre-dist" if="do.war.package.with.custom.manifest" name="-do-dist-with-manifest">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <dirname file="${dist.war}" property="dist.jar.dir"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <mkdir dir="${dist.jar.dir}"/>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <jar compress="${jar.compress}" jarfile="${dist.war}" manifest="${build.meta.inf.dir}/MANIFEST.MF">
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <fileset dir="${build.web.dir}"/>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw </jar>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </target>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init,compile,compile-jsps,-pre-dist" if="do.tmp.war.package.without.custom.manifest" name="-do-tmp-dist-without-manifest">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <dirname file="${dist.war}" property="dist.jar.dir"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <mkdir dir="${dist.jar.dir}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <jar compress="${jar.compress}" jarfile="${dist.war}">
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <fileset dir="${build.web.dir}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </jar>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </target>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init,compile,compile-jsps,-pre-dist" if="do.tmp.war.package.with.custom.manifest" name="-do-tmp-dist-with-manifest">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <dirname file="${dist.war}" property="dist.jar.dir"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <mkdir dir="${dist.jar.dir}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <jar compress="${jar.compress}" jarfile="${dist.war}" manifest="${build.meta.inf.dir}/MANIFEST.MF">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <fileset dir="${build.web.dir}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </jar>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </target>
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"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <mkdir dir="${build.web.dir}/META-INF"/>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <manifest file="${build.web.dir}/META-INF/MANIFEST.MF" mode="update"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </target>
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>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init" if="dist.ear.dir" name="-clean-webinf-lib">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <delete dir="${build.web.dir}/WEB-INF/lib"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </target>
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"/>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <mkdir dir="${dist.jar.dir}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <jar compress="${jar.compress}" jarfile="${dist.ear.war}" manifest="${build.web.dir}/META-INF/MANIFEST.MF">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <fileset dir="${build.web.dir}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </jar>
de442498e34e37fe9b61cfe5beaacdecd06c6a1cRobert Mustacchi </target>
de442498e34e37fe9b61cfe5beaacdecd06c6a1cRobert Mustacchi <target name="-post-dist">
de442498e34e37fe9b61cfe5beaacdecd06c6a1cRobert Mustacchi <!-- Empty placeholder for easier customization. -->
de442498e34e37fe9b61cfe5beaacdecd06c6a1cRobert Mustacchi <!-- You can override this target in the /build.xml file. -->
de442498e34e37fe9b61cfe5beaacdecd06c6a1cRobert Mustacchi </target>
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 <!--
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai EXECUTION SECTION
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="run-deploy,run-display-browser" description="Deploy to server and show in browser." name="run"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target name="-pre-run-deploy">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- Empty placeholder for easier customization. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- You can override this target in the /build.xml file. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </target>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target name="-post-run-deploy">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- Empty placeholder for easier customization. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- You can override this target in the /build.xml file. -->
134a1f4e3289b54e0f980e9cf05352e419a60beeCasper H.S. Dik </target>
134a1f4e3289b54e0f980e9cf05352e419a60beeCasper H.S. Dik <target name="-pre-nbmodule-run-deploy">
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. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </target>
de442498e34e37fe9b61cfe5beaacdecd06c6a1cRobert Mustacchi <target name="-post-nbmodule-run-deploy">
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. -->
de442498e34e37fe9b61cfe5beaacdecd06c6a1cRobert Mustacchi </target>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target name="-run-deploy-am">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- Task to deploy to the Access Manager runtime. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </target>
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 </target>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target if="netbeans.home" name="-run-deploy-nb">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <nbdeploy clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </target>
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>
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>
de442498e34e37fe9b61cfe5beaacdecd06c6a1cRobert Mustacchi <target depends="init,-pre-dist,dist,-post-dist" name="verify">
de442498e34e37fe9b61cfe5beaacdecd06c6a1cRobert Mustacchi <nbverify file="${dist.war}"/>
de442498e34e37fe9b61cfe5beaacdecd06c6a1cRobert Mustacchi </target>
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 property="do.display.browser.nb">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <isset property="netbeans.home"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </condition>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <condition property="do.display.browser.cl">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <isset property="deploy.ant.enabled"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </condition>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </target>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target if="do.display.browser.nb" name="-display-browser-nb">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <nbbrowse url="${client.url}"/>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw </target>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <target if="do.display.browser.cl" name="-get-browser" unless="browser">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <condition property="browser" value="rundll32">
6b9384783302cfb5bb67d617114d5a4e1dc3d609jg <os family="windows"/>
6b9384783302cfb5bb67d617114d5a4e1dc3d609jg </condition>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <condition else="" property="browser.args" value="url.dll,FileProtocolHandler">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <os family="windows"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </condition>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <condition property="browser" value="/usr/bin/open">
6b9384783302cfb5bb67d617114d5a4e1dc3d609jg <os family="mac"/>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw </condition>
6b9384783302cfb5bb67d617114d5a4e1dc3d609jg <property environment="env"/>
6b9384783302cfb5bb67d617114d5a4e1dc3d609jg <condition property="browser" value="${env.BROWSER}">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <isset property="env.BROWSER"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </condition>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <condition property="browser" value="/usr/bin/firefox">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <available file="/usr/bin/firefox"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </condition>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <condition property="browser" value="/usr/local/firefox/firefox">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <available file="/usr/local/firefox/firefox"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </condition>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <condition property="browser" value="/usr/bin/mozilla">
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <available file="/usr/bin/mozilla"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </condition>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <condition property="browser" value="/usr/local/mozilla/mozilla">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <available file="/usr/local/mozilla/mozilla"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </condition>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <condition property="browser" value="/usr/sfw/lib/firefox/firefox">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <available file="/usr/sfw/lib/firefox/firefox"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </condition>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <condition property="browser" value="/opt/csw/bin/firefox">
0bfaec6936a60046cf3a098fa731cb5e07377595llai <available file="/opt/csw/bin/firefox"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </condition>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <condition property="browser" value="/usr/sfw/lib/mozilla/mozilla">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <available file="/usr/sfw/lib/mozilla/mozilla"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </condition>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <condition property="browser" value="/opt/csw/bin/mozilla">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <available file="/opt/csw/bin/mozilla"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </condition>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </target>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="-get-browser" if="do.display.browser.cl" name="-display-browser-cl">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <fail unless="browser">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable.
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </fail>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <property name="browse.url" value="${deploy.ant.client.url}${client.urlPart}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <echo>Launching ${browse.url}</echo>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <exec executable="${browser}" spawn="true">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <arg line="${browser.args} ${browse.url}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </exec>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </target>
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>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <webproject1:java classname="${run.class}"/>
6b9384783302cfb5bb67d617114d5a4e1dc3d609jg </target>
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}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </target>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <!--
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw DEBUGGING SECTION
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai -->
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 <nbstartserver debugmode="true"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <antcall target="connect-debugger"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <nbdeploy clientUrlPart="${client.urlPart}" debugmode="true" forceRedeploy="true"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <antcall target="debug-display-browser"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <antcall target="connect-client-debugger"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </target>
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 <path path="${web.docbase.dir}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </sourcepath>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </nbjpdaconnect>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </target>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target if="do.display.browser.debug" name="debug-display-browser">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <nbbrowse url="${client.url}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </target>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target if="do.debug.client" name="connect-client-debugger">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <webproject1:nbjsdebugstart webUrl="${client.url}"/>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw </target>
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>
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>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init" if="netbeans.home" name="-debug-start-debugger">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <webproject1:nbjpdastart name="${debug.class}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </target>
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 <webproject1:debug classname="${debug.class}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </target>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single-main"/>
1c4bb543a73abbf7464757d5ba7d8b84899f2408Jerry Gilliam <target depends="init" name="-pre-debug-fix">
1c4bb543a73abbf7464757d5ba7d8b84899f2408Jerry Gilliam <fail unless="fix.includes">Must set fix.includes</fail>
1c4bb543a73abbf7464757d5ba7d8b84899f2408Jerry Gilliam <property name="javac.includes" value="${fix.includes}.java"/>
1c4bb543a73abbf7464757d5ba7d8b84899f2408Jerry Gilliam </target>
1c4bb543a73abbf7464757d5ba7d8b84899f2408Jerry Gilliam <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
1c4bb543a73abbf7464757d5ba7d8b84899f2408Jerry Gilliam <webproject1:nbjpdareload/>
1c4bb543a73abbf7464757d5ba7d8b84899f2408Jerry Gilliam </target>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!--
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai JAVADOC SECTION
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init" name="javadoc-build">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <mkdir dir="${dist.javadoc.dir}"/>
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 <filename name="**/*.java"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </fileset>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <fileset dir="${src.generatedsrc.dir}" excludes="${excludes}" includes="${includes}">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <filename name="**/*.java"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </fileset>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <include name="**/*.java"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </fileset>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </javadoc>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </target>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init,javadoc-build" if="netbeans.home" name="javadoc-browse" unless="no.javadoc.preview">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <nbbrowse file="${dist.javadoc.dir}/index.html"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </target>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init,javadoc-build,javadoc-browse" description="Build Javadoc." name="javadoc"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!--
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai JUNIT COMPILATION SECTION
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <mkdir dir="${build.test.classes.dir}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <property name="j2ee.platform.embeddableejb.classpath" value=""/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </target>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target name="-pre-compile-test">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- Empty placeholder for easier customization. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- You can override this target in the /build.xml file. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </target>
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=""/>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <copy todir="${build.test.classes.dir}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </target>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target name="-post-compile-test">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- Empty placeholder for easier customization. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- You can override this target in the /build.xml file. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </target>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
6c6a45620b26cdcc248b9dc54f23d045d8dd4588Jerry Gilliam <target name="-pre-compile-test-single">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- Empty placeholder for easier customization. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- You can override this target in the /build.xml file. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </target>
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 <copy todir="${build.test.classes.dir}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </target>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target name="-post-compile-test-single">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- Empty placeholder for easier customization. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- You can override this target in the /build.xml file. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </target>
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 <!--
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai JUNIT EXECUTION SECTION
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init" if="have.tests" name="-pre-test-run">
6b9384783302cfb5bb67d617114d5a4e1dc3d609jg <mkdir dir="${build.test.results.dir}"/>
de442498e34e37fe9b61cfe5beaacdecd06c6a1cRobert Mustacchi </target>
6b9384783302cfb5bb67d617114d5a4e1dc3d609jg <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
6b9384783302cfb5bb67d617114d5a4e1dc3d609jg <webproject2:junit testincludes="**/*Test.java"/>
6b9384783302cfb5bb67d617114d5a4e1dc3d609jg </target>
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>
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 <mkdir dir="${build.test.results.dir}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </target>
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>
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>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </target>
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"/>
de442498e34e37fe9b61cfe5beaacdecd06c6a1cRobert Mustacchi <!--
6b9384783302cfb5bb67d617114d5a4e1dc3d609jg
6b9384783302cfb5bb67d617114d5a4e1dc3d609jg JUNIT DEBUGGING SECTION
6b9384783302cfb5bb67d617114d5a4e1dc3d609jg -->
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 <delete file="${test.report.file}"/>
6c6a45620b26cdcc248b9dc54f23d045d8dd4588Jerry Gilliam <!-- must exist, otherwise the XML formatter would fail -->
6c6a45620b26cdcc248b9dc54f23d045d8dd4588Jerry Gilliam <mkdir dir="${build.test.results.dir}"/>
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 <customize>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <arg value="showoutput=true"/>
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}"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </customize>
6c6a45620b26cdcc248b9dc54f23d045d8dd4588Jerry Gilliam </webproject1:debug>
6c6a45620b26cdcc248b9dc54f23d045d8dd4588Jerry Gilliam </target>
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>
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}"/>
6c6a45620b26cdcc248b9dc54f23d045d8dd4588Jerry Gilliam </target>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!--
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai CLEANUP SECTION
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init" if="no.dist.ear.dir" name="deps-clean" unless="no.deps"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <target depends="init" name="do-clean">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <condition property="build.dir.to.clean" value="${build.web.dir}">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <isset property="dist.ear.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 </delete>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <delete dir="${build.dir}"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <available file="${build.dir.to.clean}/WEB-INF/lib" property="status.clean-failed" type="dir"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <delete dir="${dist.dir}"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </target>
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."/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </target>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <target depends="init" if="netbeans.home" name="undeploy-clean">
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <nbundeploy failOnError="false" startServer="false"/>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi </target>
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <target name="-post-clean">
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai <!-- Empty placeholder for easier customization. -->
9e5aa9d8a21f8efa8ba9c9e4a0aa6edc66d07eb2Robert Mustacchi <!-- You can override this target in the /build.xml file. -->
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai </target>
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"/>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai</project>
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai