build-impl.xml revision 596fc080b7d0387f572f7d392d35ee5ea702a312
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen<?xml version="1.0" encoding="UTF-8"?>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen<!--
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen *** GENERATED FROM project.xml - DO NOT EDIT ***
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen *** EDIT /build.xml INSTEAD ***
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen For the purpose of easier reading the script
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen is divided into following sections:
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen - initialization
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen - compilation
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen - dist
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen - execution
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen - debugging
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen - javadoc
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco - test compilation
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco - test execution
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco - test debugging
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen - cleanup
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen<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">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <import file="ant-deploy.xml"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <fail message="Please build using Ant 1.7.1 or higher.">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <not>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <antversion atleast="1.7.1"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </not>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </condition>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </fail>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="dist,javadoc" description="Build whole project." name="default"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!--
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen INITIALIZATION SECTION
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target name="-pre-init">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!-- Empty placeholder for easier customization. -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!-- You can override this target in the /build.xml file. -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="-pre-init" name="-init-private">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <property file="nbproject/private/private.properties"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="-pre-init,-init-private" name="-init-user">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <property file="${user.properties.file}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!-- The two properties below are usually overridden -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!-- by the active platform. Just a fallback. -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <property name="default.javac.source" value="1.4"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <property name="default.javac.target" value="1.4"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="-pre-init,-init-private,-init-user" name="-init-project">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <property file="nbproject/project.properties"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" if="dist.ear.dir" name="-do-ear-init"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition property="have.tests">
292082b509ca666f3da8b98dd5283f37221b31d5Knut Anders Hatlen <or/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </condition>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition property="have.sources">
3d35af9011883d0d9e46f89f52243567cbc631c4Knut Anders Hatlen <or/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </condition>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition property="netbeans.home+have.tests">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <and>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <isset property="netbeans.home"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <isset property="have.tests"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </and>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </condition>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition property="no.javadoc.preview">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <isfalse value="${javadoc.preview}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </condition>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <property name="javac.compilerargs" value=""/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition property="no.deps">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <and>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <istrue value="${no.dependencies}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </and>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </condition>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition property="no.dist.ear.dir">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <not>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <isset property="dist.ear.dir"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </not>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </condition>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <property name="build.web.excludes" value="${build.classes.excludes}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition property="do.compile.jsps">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <istrue value="${compile.jsps}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </condition>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition property="do.debug.server">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <or>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <not>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <isset property="debug.server"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </not>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <istrue value="${debug.server}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <and>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <not>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <istrue value="${debug.server}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </not>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <not>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <istrue value="${debug.client}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </not>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </and>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </or>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </condition>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition property="do.debug.client">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <istrue value="${debug.client}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </condition>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition property="do.display.browser">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <istrue value="${display.browser}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </condition>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition property="do.display.browser.debug">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <and>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <isset property="do.display.browser"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <not>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <isset property="do.debug.client"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </not>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </and>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </condition>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <available file="${conf.dir}/MANIFEST.MF" property="has.custom.manifest"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <available file="${persistence.xml.dir}/persistence.xml" property="has.persistence.xml"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition property="do.war.package.with.custom.manifest">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <isset property="has.custom.manifest"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </condition>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition property="do.war.package.without.custom.manifest">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <not>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <isset property="has.custom.manifest"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </not>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </condition>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition property="do.tmp.war.package.with.custom.manifest">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <and>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <isset property="has.custom.manifest"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <or>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <isfalse value="${directory.deployment.supported}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <isset property="dist.ear.dir"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </or>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </and>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </condition>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition property="do.tmp.war.package.without.custom.manifest">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <and>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <not>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <isset property="has.custom.manifest"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </not>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <or>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <isfalse value="${directory.deployment.supported}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <isset property="dist.ear.dir"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </or>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </and>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </condition>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition property="do.tmp.war.package">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <or>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <isfalse value="${directory.deployment.supported}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <isset property="dist.ear.dir"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </or>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </condition>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <property name="build.meta.inf.dir" value="${build.web.dir}/META-INF"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition else="" property="application.args.param" value="${application.args}">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <and>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <isset property="application.args"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <not>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <equals arg1="${application.args}" arg2="" trim="true"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </not>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </and>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </condition>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <property name="source.encoding" value="${file.encoding}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <and>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <isset property="javadoc.encoding"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <not>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <equals arg1="${javadoc.encoding}" arg2=""/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </not>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </and>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </condition>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <property name="javadoc.encoding.used" value="${source.encoding}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <property name="includes" value="**"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <property name="excludes" value=""/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <property name="runmain.jvmargs" value=""/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco <and>
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco <isset property="endorsed.classpath"/>
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco <length length="0" string="${endorsed.classpath}" when="greater"/>
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco </and>
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco </condition>
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco <condition else="false" property="jdkBug6558476">
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco <and>
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco <matches pattern="1\.[56]" string="${java.specification.version}"/>
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco <not>
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco <os family="unix"/>
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco </not>
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco </and>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </condition>
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco <property name="javac.fork" value="${jdkBug6558476}"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <condition property="junit.available">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <or>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <available classname="org.junit.Test" classpath="${run.test.classpath}"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <available classname="junit.framework.Test" classpath="${run.test.classpath}"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </or>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </condition>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <condition property="testng.available">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <available classname="org.testng.annotations.Test" classpath="${run.test.classpath}"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </condition>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <condition property="junit+testng.available">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <and>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <istrue value="${junit.available}"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <istrue value="${testng.available}"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </and>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </condition>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <condition else="testng" property="testng.mode" value="mixed">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <istrue value="${junit+testng.available}"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </condition>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <condition else="" property="testng.debug.mode" value="-mixed">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <istrue value="${junit+testng.available}"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </condition>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init" name="-init-cos" unless="deploy.on.save">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition property="deploy.on.save" value="true">
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco <or>
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco <istrue value="${j2ee.deploy.on.save}"/>
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco <istrue value="${j2ee.compile.on.save}"/>
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco </or>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </condition>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target name="-post-init">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!-- Empty placeholder for easier customization. -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!-- You can override this target in the /build.xml file. -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <fail unless="build.dir">Must set build.dir</fail>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <fail unless="build.web.dir">Must set build.web.dir</fail>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <fail unless="build.generated.dir">Must set build.generated.dir</fail>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <fail unless="dist.dir">Must set dist.dir</fail>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <fail unless="build.classes.dir">Must set build.classes.dir</fail>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <fail unless="dist.war">Must set dist.war</fail>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <condition property="missing.j2ee.server.home">
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <and>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <matches pattern="j2ee.server.home" string="${j2ee.platform.classpath}"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <not>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <isset property="j2ee.server.home"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco </not>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco </and>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco </condition>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <fail if="missing.j2ee.server.home">
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos KoscoThe Java EE server classpath is not correctly set up - server home directory is missing.
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos KoscoEither open the project in the IDE and assign the server or setup the server classpath manually.
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos KoscoFor example like this:
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco ant -Dj2ee.server.home=&lt;app_server_installation_directory&gt;
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco </fail>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <fail unless="j2ee.platform.classpath">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders HatlenThe Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}.
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders HatlenEither open the project in the IDE and assign the server or setup the server classpath manually.
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders HatlenFor example like this:
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen ant -Duser.properties.file=&lt;path_to_property_file&gt; (where you put the property "j2ee.platform.classpath" in a .properties file)
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlenor ant -Dj2ee.platform.classpath=&lt;server_classpath&gt; (where no properties file is used)
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </fail>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target name="-init-macrodef-property">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <macrodef name="property" uri="http://www.netbeans.org/ns/web-project/1">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <attribute name="name"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <attribute name="value"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <sequential>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <property name="@{name}" value="${@{value}}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </sequential>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </macrodef>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <macrodef name="javac" uri="http://www.netbeans.org/ns/web-project/2">
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <attribute default="" name="srcdir"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <attribute default="${build.classes.dir}" name="destdir"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <attribute default="${javac.processorpath}" name="processorpath"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <attribute default="${includes}" name="includes"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <attribute default="${excludes}" name="excludes"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <attribute default="${javac.debug}" name="debug"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <attribute default="${empty.dir}" name="gensrcdir"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <element name="customize" optional="true"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <sequential>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <property location="${build.dir}/empty" name="empty.dir"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <mkdir dir="${empty.dir}"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <mkdir dir="@{apgeneratedsrcdir}"/>
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" srcdir="@{srcdir}" target="${javac.target}">
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <src>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <dirset dir="@{gensrcdir}" erroronmissingdir="false">
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <include name="*"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco </dirset>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco </src>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <classpath>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <path path="@{classpath}"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco </classpath>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <compilerarg line="${javac.compilerargs}"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <compilerarg value="-processorpath"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <compilerarg path="@{processorpath}:${empty.dir}"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <compilerarg line="${ap.processors.internal}"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <compilerarg value="-s"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <compilerarg path="@{apgeneratedsrcdir}"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <compilerarg line="${ap.proc.none.internal}"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <customize/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco </javac>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco </sequential>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco </macrodef>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco </target>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <macrodef name="javac" uri="http://www.netbeans.org/ns/web-project/2">
3d35af9011883d0d9e46f89f52243567cbc631c4Knut Anders Hatlen <attribute default="" name="srcdir"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <attribute default="${build.classes.dir}" name="destdir"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <attribute default="${javac.processorpath}" name="processorpath"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <attribute default="${includes}" name="includes"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <attribute default="${excludes}" name="excludes"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <attribute default="${javac.debug}" name="debug"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <attribute default="${empty.dir}" name="gensrcdir"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <element name="customize" optional="true"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <sequential>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <property location="${build.dir}/empty" name="empty.dir"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <mkdir dir="${empty.dir}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <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}">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <src>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <dirset dir="@{gensrcdir}" erroronmissingdir="false">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <include name="*"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </dirset>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </src>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <classpath>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <path path="@{classpath}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </classpath>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <compilerarg line="${javac.compilerargs}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <customize/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </javac>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </sequential>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </macrodef>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <macrodef name="depend" uri="http://www.netbeans.org/ns/web-project/2">
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <attribute default="" name="srcdir"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <attribute default="${build.classes.dir}" name="destdir"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <sequential>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <classpath>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <path path="@{classpath}"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco </classpath>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco </depend>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco </sequential>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco </macrodef>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/web-project/2">
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <attribute default="${build.classes.dir}" name="destdir"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <sequential>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <fail unless="javac.includes">Must set javac.includes</fail>
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <path>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <filelist dir="@{destdir}" files="${javac.includes}"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco </path>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <globmapper from="*.java" to="*.class"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco </pathconvert>
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <delete>
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco <files includesfile="${javac.includesfile.binary}"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco </delete>
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco <delete file="${javac.includesfile.binary}"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco </sequential>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco </macrodef>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco </target>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <target if="${junit.available}" name="-init-macrodef-junit-init">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <condition else="false" property="nb.junit.batch" value="true">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <and>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <istrue value="${junit.available}"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <not>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <isset property="test.method"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </not>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </and>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </condition>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <condition else="false" property="nb.junit.single" value="true">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <and>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <istrue value="${junit.available}"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <isset property="test.method"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </and>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </condition>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </target>
ea46394924092022cd11973a66f79077f0b71609Lubos Kosco <target name="-init-test-properties">
ea46394924092022cd11973a66f79077f0b71609Lubos Kosco <property name="test.binaryincludes" value="&lt;nothing&gt;"/>
ea46394924092022cd11973a66f79077f0b71609Lubos Kosco <property name="test.binarytestincludes" value=""/>
ea46394924092022cd11973a66f79077f0b71609Lubos Kosco <property name="test.binaryexcludes" value=""/>
ea46394924092022cd11973a66f79077f0b71609Lubos Kosco </target>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <target if="${nb.junit.single}" name="-init-macrodef-junit-single" unless="${nb.junit.batch}">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <macrodef name="junit" uri="http://www.netbeans.org/ns/web-project/2">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <attribute default="${includes}" name="includes"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <attribute default="${excludes}" name="excludes"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <attribute default="**" name="testincludes"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="" name="testmethods"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <element name="customize" optional="true"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <sequential>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${java.io.tmpdir}">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <syspropertyset>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <propertyref prefix="test-sys-prop."/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <mapper from="test-sys-prop.*" to="*" type="glob"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </syspropertyset>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <formatter type="brief" usefile="false"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <formatter type="xml"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <jvmarg value="-ea"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <customize/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </junit>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </sequential>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </macrodef>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </target>
ea46394924092022cd11973a66f79077f0b71609Lubos Kosco <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-batch" unless="${nb.junit.single}">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <macrodef name="junit" uri="http://www.netbeans.org/ns/web-project/2">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="${includes}" name="includes"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="${excludes}" name="excludes"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="**" name="testincludes"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="" name="testmethods"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <element name="customize" optional="true"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <sequential>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <property name="run.jvmargs.ide" value=""/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${build.dir}">
ea46394924092022cd11973a66f79077f0b71609Lubos Kosco <batchtest todir="${build.test.results.dir}">
ea46394924092022cd11973a66f79077f0b71609Lubos Kosco <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
ea46394924092022cd11973a66f79077f0b71609Lubos Kosco <filename name="${test.binarytestincludes}"/>
ea46394924092022cd11973a66f79077f0b71609Lubos Kosco </fileset>
ea46394924092022cd11973a66f79077f0b71609Lubos Kosco </batchtest>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <syspropertyset>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <propertyref prefix="test-sys-prop."/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <mapper from="test-sys-prop.*" to="*" type="glob"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </syspropertyset>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <formatter type="brief" usefile="false"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <formatter type="xml"/>
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco <jvmarg value="-ea"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <jvmarg line="${run.jvmargs.ide}"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <customize/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </junit>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </sequential>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </macrodef>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </target>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <target depends="-init-macrodef-junit-init,-init-macrodef-junit-single, -init-macrodef-junit-batch" if="${junit.available}" name="-init-macrodef-junit"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <target if="${testng.available}" name="-init-macrodef-testng">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <macrodef name="testng" uri="http://www.netbeans.org/ns/web-project/2">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="${includes}" name="includes"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="${excludes}" name="excludes"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="**" name="testincludes"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="" name="testmethods"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <element name="customize" optional="true"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <sequential>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <condition else="" property="testng.methods.arg" value="@{testincludes}.@{testmethods}">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <isset property="test.method"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </condition>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <union id="test.set"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <testng classfilesetref="test.set" failureProperty="tests.failed" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="opengrok-web-nbproject" testname="TestNG tests" workingDir="${basedir}">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <propertyset>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <propertyref prefix="test-sys-prop."/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <mapper from="test-sys-prop.*" to="*" type="glob"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </propertyset>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <customize/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </testng>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </sequential>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </macrodef>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </target>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <target name="-init-macrodef-test-impl">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <macrodef name="test-impl" uri="http://www.netbeans.org/ns/web-project/2">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="${includes}" name="includes"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="${excludes}" name="excludes"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="**" name="testincludes"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="" name="testmethods"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <element implicit="true" name="customize" optional="true"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <sequential>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <echo>No tests executed.</echo>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </sequential>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </macrodef>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </target>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <target depends="-init-macrodef-junit" if="${junit.available}" name="-init-macrodef-junit-impl">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <macrodef name="test-impl" uri="http://www.netbeans.org/ns/web-project/2">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="${includes}" name="includes"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="${excludes}" name="excludes"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="**" name="testincludes"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="" name="testmethods"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <element implicit="true" name="customize" optional="true"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <sequential>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <webproject2:junit excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <customize/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </webproject2:junit>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </sequential>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </macrodef>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </target>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <target depends="-init-macrodef-testng" if="${testng.available}" name="-init-macrodef-testng-impl">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <macrodef name="test-impl" uri="http://www.netbeans.org/ns/web-project/2">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="${includes}" name="includes"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="${excludes}" name="excludes"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="**" name="testincludes"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="" name="testmethods"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <element implicit="true" name="customize" optional="true"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <sequential>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <webproject2:testng excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <customize/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </webproject2:testng>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </sequential>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </macrodef>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </target>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <target depends="-init-macrodef-test-impl,-init-macrodef-junit-impl,-init-macrodef-testng-impl" name="-init-macrodef-test">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <macrodef name="test" uri="http://www.netbeans.org/ns/web-project/2">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="${includes}" name="includes"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="${excludes}" name="excludes"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="**" name="testincludes"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="" name="testmethods"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <sequential>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <webproject2:test-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <customize>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <classpath>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <path path="${run.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </classpath>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <jvmarg line="${runmain.jvmargs}"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </customize>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </webproject2:test-impl>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </sequential>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </macrodef>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </target>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <target if="${junit.available}" name="-init-macrodef-junit-debug" unless="${nb.junit.batch}">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/web-project/2">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="${includes}" name="includes"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="${excludes}" name="excludes"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="**" name="testincludes"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="" name="testmethods"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <element name="customize" optional="true"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <sequential>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${java.io.tmpdir}">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <syspropertyset>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <propertyref prefix="test-sys-prop."/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <mapper from="test-sys-prop.*" to="*" type="glob"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </syspropertyset>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <formatter type="brief" usefile="false"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <formatter type="xml"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <jvmarg value="-ea"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <jvmarg line="${debug-args-line}"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <customize/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </junit>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </sequential>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </macrodef>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </target>
ea46394924092022cd11973a66f79077f0b71609Lubos Kosco <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-debug-batch">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/web-project/2">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="${includes}" name="includes"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="${excludes}" name="excludes"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="**" name="testincludes"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="" name="testmethods"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <element name="customize" optional="true"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <sequential>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <property name="run.jvmargs.ide" value=""/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${build.dir}">
ea46394924092022cd11973a66f79077f0b71609Lubos Kosco <batchtest todir="${build.test.results.dir}">
ea46394924092022cd11973a66f79077f0b71609Lubos Kosco <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
ea46394924092022cd11973a66f79077f0b71609Lubos Kosco <filename name="${test.binarytestincludes}"/>
ea46394924092022cd11973a66f79077f0b71609Lubos Kosco </fileset>
ea46394924092022cd11973a66f79077f0b71609Lubos Kosco </batchtest>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <syspropertyset>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <propertyref prefix="test-sys-prop."/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <mapper from="test-sys-prop.*" to="*" type="glob"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </syspropertyset>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <formatter type="brief" usefile="false"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <formatter type="xml"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <jvmarg value="-ea"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <jvmarg line="${run.jvmargs.ide}"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <jvmarg line="${debug-args-line}"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <customize/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </junit>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </sequential>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </macrodef>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <target depends="-init-macrodef-junit-debug,-init-macrodef-junit-debug-batch" if="${junit.available}" name="-init-macrodef-junit-debug-impl">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <macrodef name="test-debug-impl" uri="http://www.netbeans.org/ns/web-project/2">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="${includes}" name="includes"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="${excludes}" name="excludes"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="**" name="testincludes"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="" name="testmethods"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <element implicit="true" name="customize" optional="true"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <sequential>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <webproject2:junit-debug excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <customize/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </webproject2:junit-debug>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </sequential>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </macrodef>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </target>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <target if="${testng.available}" name="-init-macrodef-testng-debug">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <macrodef name="testng-debug" uri="http://www.netbeans.org/ns/web-project/2">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="${main.class}" name="testClass"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="" name="testMethod"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <element name="customize2" optional="true"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <sequential>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <condition else="-testclass @{testClass}" property="test.class.or.method" value="-methods @{testClass}.@{testMethod}">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <isset property="test.method"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </condition>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <condition else="-suitename opengrok-web-nbproject -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <matches pattern=".*\.xml" string="@{testClass}"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </condition>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <delete dir="${build.test.results.dir}" quiet="true"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <mkdir dir="${build.test.results.dir}"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <webproject1:debug args="${testng.cmd.args}" classname="org.testng.TestNG" classpath="${debug.test.classpath}:${j2ee.platform.embeddableejb.classpath}">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <customize>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <customize2/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <jvmarg value="-ea"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <arg line="${testng.debug.mode}"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <arg line="-d ${build.test.results.dir}"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <arg line="-listener org.testng.reporters.VerboseReporter"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </customize>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </webproject1:debug>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </sequential>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </macrodef>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </target>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <target depends="-init-macrodef-testng-debug" if="${testng.available}" name="-init-macrodef-testng-debug-impl">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <macrodef name="testng-debug-impl" uri="http://www.netbeans.org/ns/web-project/2">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="${main.class}" name="testClass"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="" name="testMethod"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <element implicit="true" name="customize2" optional="true"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <sequential>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <webproject2:testng-debug testClass="@{testClass}" testMethod="@{testMethod}">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <customize2/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </webproject2:testng-debug>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </sequential>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </macrodef>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </target>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <target depends="-init-macrodef-junit-debug-impl" if="${junit.available}" name="-init-macrodef-test-debug-junit">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <macrodef name="test-debug" uri="http://www.netbeans.org/ns/web-project/2">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="${includes}" name="includes"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="${excludes}" name="excludes"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="**" name="testincludes"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="" name="testmethods"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="${main.class}" name="testClass"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="" name="testMethod"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <sequential>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <webproject2:test-debug-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <customize>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <classpath>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <path path="${run.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </classpath>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <jvmarg line="${runmain.jvmargs}"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </customize>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </webproject2:test-debug-impl>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </sequential>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </macrodef>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </target>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <target depends="-init-macrodef-testng-debug-impl" if="${testng.available}" name="-init-macrodef-test-debug-testng">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <macrodef name="test-debug" uri="http://www.netbeans.org/ns/web-project/2">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="${includes}" name="includes"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="${excludes}" name="excludes"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="**" name="testincludes"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="" name="testmethods"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="${main.class}" name="testClass"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <attribute default="" name="testMethod"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <sequential>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <webproject2:testng-debug-impl testClass="@{testClass}" testMethod="@{testMethod}">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <customize2>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <syspropertyset>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <propertyref prefix="test-sys-prop."/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <mapper from="test-sys-prop.*" to="*" type="glob"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </syspropertyset>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </customize2>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </webproject2:testng-debug-impl>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </sequential>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </macrodef>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </target>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <target depends="-init-macrodef-test-debug-junit,-init-macrodef-test-debug-testng" name="-init-macrodef-test-debug"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target name="-init-macrodef-java">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <macrodef name="java" uri="http://www.netbeans.org/ns/web-project/1">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <attribute default="${main.class}" name="classname"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <attribute default="${debug.classpath}" name="classpath"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <element name="customize" optional="true"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <sequential>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <java classname="@{classname}" fork="true">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <jvmarg line="${runmain.jvmargs}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <classpath>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <path path="@{classpath}:${j2ee.platform.classpath}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </classpath>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <syspropertyset>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <propertyref prefix="run-sys-prop."/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <mapper from="run-sys-prop.*" to="*" type="glob"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </syspropertyset>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <customize/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </java>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </sequential>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </macrodef>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target name="-init-macrodef-nbjsdebug">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <macrodef name="nbjsdebugstart" uri="http://www.netbeans.org/ns/web-project/1">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <attribute default="${client.url}" name="webUrl"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <sequential>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <nbjsdebugstart urlPart="${client.urlPart}" webUrl="@{webUrl}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </sequential>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </macrodef>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/web-project/1">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <attribute default="${main.class}" name="name"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <attribute default="${debug.classpath}:${j2ee.platform.classpath}" name="classpath"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <sequential>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <nbjpdastart addressproperty="jpda.address" name="@{name}" transport="${debug-transport}">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <classpath>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <path path="@{classpath}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </classpath>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </nbjpdastart>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </sequential>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </macrodef>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/web-project/1">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <attribute default="${build.classes.dir}" name="dir"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <sequential>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <nbjpdareload>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <fileset dir="@{dir}" includes="${fix.classes}">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <include name="${fix.includes}*.class"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </fileset>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </nbjpdareload>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </sequential>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </macrodef>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <macrodef name="nbjpdaappreloaded" uri="http://www.netbeans.org/ns/web-project/1">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <sequential>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <nbjpdaappreloaded/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </sequential>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </macrodef>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target name="-init-debug-args">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <property name="version-output" value="java version &quot;${ant.java.version}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition property="have-jdk-older-than-1.4">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <or>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <contains string="${version-output}" substring="java version &quot;1.0"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <contains string="${version-output}" substring="java version &quot;1.1"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <contains string="${version-output}" substring="java version &quot;1.2"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <contains string="${version-output}" substring="java version &quot;1.3"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </or>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </condition>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <istrue value="${have-jdk-older-than-1.4}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </condition>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <os family="windows"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </condition>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <isset property="debug.transport"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </condition>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="-init-debug-args" name="-init-macrodef-debug">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <macrodef name="debug" uri="http://www.netbeans.org/ns/web-project/1">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <attribute default="${main.class}" name="classname"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <attribute default="${debug.classpath}:${j2ee.platform.classpath}" name="classpath"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <attribute default="${application.args.param}" name="args"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <element name="customize" optional="true"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <sequential>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <java classname="@{classname}" fork="true">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <jvmarg line="${debug-args-line}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <jvmarg line="${runmain.jvmargs}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <classpath>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <path path="@{classpath}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </classpath>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <syspropertyset>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <propertyref prefix="run-sys-prop."/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <mapper from="run-sys-prop.*" to="*" type="glob"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </syspropertyset>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <arg line="@{args}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <customize/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </java>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </sequential>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </macrodef>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target name="-init-taskdefs">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <fail unless="libs.CopyLibs.classpath">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders HatlenThe libs.CopyLibs.classpath property is not set up.
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders HatlenThis property must point to
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlenorg-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlenof NetBeans IDE installation and is usually located at
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen&lt;netbeans_installation&gt;/java&lt;version&gt;/ant/extra folder.
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders HatlenEither open the project in the IDE and make sure CopyLibs library
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlenexists or setup the property manually. For example like this:
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </fail>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <taskdef classpath="${libs.CopyLibs.classpath}" resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <target name="-init-ap-cmdline-properties">
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <property name="annotation.processing.enabled" value="true"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <property name="annotation.processing.processors.list" value=""/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <property name="annotation.processing.run.all.processors" value="true"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <property name="javac.processorpath" value="${javac.classpath}"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <condition property="ap.supported.internal" value="true">
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <not>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco </not>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco </condition>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco </target>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <isfalse value="${annotation.processing.run.all.processors}"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco </condition>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <condition else="" property="ap.proc.none.internal" value="-proc:none">
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <isfalse value="${annotation.processing.enabled}"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco </condition>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco </target>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <property name="ap.cmd.line.internal" value=""/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco </target>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <!--
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco pre NB7.2 profiling section; consider it deprecated
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco -->
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-check" if="profiler.info.jvmargs.agent" name="profile-init"/>
ea46394924092022cd11973a66f79077f0b71609Lubos Kosco <target if="profiler.info.jvmargs.agent" name="-profile-pre-init">
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco <!-- Empty placeholder for easier customization. -->
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco <!-- You can override this target in the /build.xml file. -->
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco </target>
ea46394924092022cd11973a66f79077f0b71609Lubos Kosco <target if="profiler.info.jvmargs.agent" name="-profile-post-init">
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco <!-- Empty placeholder for easier customization. -->
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco <!-- You can override this target in the /build.xml file. -->
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco </target>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <target depends="-profile-pre-init, init, -profile-post-init" if="profiler.info.jvmargs.agent" name="-profile-init-check">
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco </target>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <!--
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco end of pre NB7.2 profiling section
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco -->
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-test,-init-macrodef-test-debug,-init-macrodef-java,-init-macrodef-nbjpda,-init-macrodef-nbjsdebug,-init-macrodef-debug,-init-taskdefs,-init-ap-cmdline" name="init"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!--
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen COMPILATION SECTION
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen -->
3d35af9011883d0d9e46f89f52243567cbc631c4Knut Anders Hatlen <target depends="init" if="no.dist.ear.dir" name="deps-module-jar" unless="no.deps">
3d35af9011883d0d9e46f89f52243567cbc631c4Knut Anders Hatlen <ant antfile="${project.opengrok}/build.xml" inheritall="false" target="jar">
3d35af9011883d0d9e46f89f52243567cbc631c4Knut Anders Hatlen <property name="deploy.on.save" value="false"/>
3d35af9011883d0d9e46f89f52243567cbc631c4Knut Anders Hatlen </ant>
3d35af9011883d0d9e46f89f52243567cbc631c4Knut Anders Hatlen </target>
3d35af9011883d0d9e46f89f52243567cbc631c4Knut Anders Hatlen <target depends="init" if="dist.ear.dir" name="deps-ear-jar" unless="no.deps">
3d35af9011883d0d9e46f89f52243567cbc631c4Knut Anders Hatlen <ant antfile="${project.opengrok}/build.xml" inheritall="false" target="jar">
3d35af9011883d0d9e46f89f52243567cbc631c4Knut Anders Hatlen <property name="deploy.on.save" value="false"/>
3d35af9011883d0d9e46f89f52243567cbc631c4Knut Anders Hatlen </ant>
3d35af9011883d0d9e46f89f52243567cbc631c4Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init, deps-module-jar, deps-ear-jar" name="deps-jar" unless="no.deps"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init,deps-jar" name="-pre-pre-compile">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <mkdir dir="${build.classes.dir}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target name="-pre-compile">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!-- Empty placeholder for easier customization. -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!-- You can override this target in the /build.xml file. -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target name="-copy-webdir">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <copy todir="${build.web.dir}">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <fileset dir="${web.docbase.dir}" excludes="${build.web.excludes},${excludes}" includes="${includes}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </copy>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <copy todir="${build.web.dir}/WEB-INF">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <fileset dir="${webinf.dir}" excludes="${build.web.excludes}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </copy>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <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">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <webproject2:javac destdir="${build.classes.dir}" gensrcdir="${build.generated.sources.dir}"/>
3d35af9011883d0d9e46f89f52243567cbc631c4Knut Anders Hatlen <copy todir="${build.classes.dir}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target if="has.custom.manifest" name="-copy-manifest">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <mkdir dir="${build.meta.inf.dir}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <copy todir="${build.meta.inf.dir}">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <fileset dir="${conf.dir}" includes="MANIFEST.MF"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </copy>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target if="has.persistence.xml" name="-copy-persistence-xml">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <mkdir dir="${build.web.dir}/WEB-INF/classes/META-INF"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <copy todir="${build.web.dir}/WEB-INF/classes/META-INF">
ea46394924092022cd11973a66f79077f0b71609Lubos Kosco <fileset dir="${persistence.xml.dir}" includes="persistence.xml orm.xml"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </copy>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target name="-post-compile">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!-- Empty placeholder for easier customization. -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!-- You can override this target in the /build.xml file. -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target name="-pre-compile-single">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!-- Empty placeholder for easier customization. -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!-- You can override this target in the /build.xml file. -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <webproject2:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}"/>
3d35af9011883d0d9e46f89f52243567cbc631c4Knut Anders Hatlen <copy todir="${build.classes.dir}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target name="-post-compile-single">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!-- Empty placeholder for easier customization. -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!-- You can override this target in the /build.xml file. -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco <property name="jspc.schemas" value="/resources/schemas/"/>
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco <property name="jspc.dtds" value="/resources/dtds/"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="compile" description="Test compile JSP pages to expose compilation errors." if="do.compile.jsps" name="compile-jsps">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <mkdir dir="${build.generated.dir}/src"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <java classname="org.netbeans.modules.web.project.ant.JspC" failonerror="true" fork="true">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <arg value="-uriroot"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <arg file="${basedir}/${build.web.dir}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <arg value="-d"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <arg file="${basedir}/${build.generated.dir}/src"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <arg value="-die1"/>
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco <arg value="-schemas ${jspc.schemas}"/>
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco <arg value="-dtds ${jspc.dtds}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <arg value="-compilerSourceVM ${javac.source}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <arg value="-compilerTargetVM ${javac.target}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <arg value="-javaEncoding ${source.encoding}"/>
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco <arg value="-sysClasspath ${libs.jsp-compilation-syscp.classpath}"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <classpath path="${java.home}/lib/tools.jar:${libs.jsp-compiler.classpath}:${libs.jsp-compilation.classpath}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </java>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <mkdir dir="${build.generated.dir}/classes"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <webproject2:javac classpath="${build.classes.dir}:${libs.jsp-compilation.classpath}:${javac.classpath}:${j2ee.platform.classpath}" destdir="${build.generated.dir}/classes" srcdir="${build.generated.dir}/src"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="compile" if="jsp.includes" name="-do-compile-single-jsp">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <fail unless="javac.jsp.includes">Must select some files in the IDE or set javac.jsp.includes</fail>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <mkdir dir="${build.generated.dir}/src"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <java classname="org.netbeans.modules.web.project.ant.JspCSingle" failonerror="true" fork="true">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <arg value="-uriroot"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <arg file="${basedir}/${build.web.dir}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <arg value="-d"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <arg file="${basedir}/${build.generated.dir}/src"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <arg value="-die1"/>
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco <arg value="-schemas ${jspc.schemas}"/>
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco <arg value="-dtds ${jspc.dtds}"/>
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco <arg value="-sysClasspath ${libs.jsp-compilation-syscp.classpath}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <arg value="-jspc.files"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <arg path="${jsp.includes}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <arg value="-compilerSourceVM ${javac.source}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <arg value="-compilerTargetVM ${javac.target}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <arg value="-javaEncoding ${source.encoding}"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <classpath path="${java.home}/lib/tools.jar:${libs.jsp-compiler.classpath}:${libs.jsp-compilation.classpath}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </java>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <mkdir dir="${build.generated.dir}/classes"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <webproject2:javac classpath="${build.classes.dir}:${libs.jsp-compilation.classpath}:${javac.classpath}:${j2ee.platform.classpath}" destdir="${build.generated.dir}/classes" srcdir="${build.generated.dir}/src">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <customize>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <patternset includes="${javac.jsp.includes}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </customize>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </webproject2:javac>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target name="compile-single-jsp">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <fail unless="jsp.includes">Must select a file in the IDE or set jsp.includes</fail>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <antcall target="-do-compile-single-jsp"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!--
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen DIST BUILDING SECTION
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target name="-pre-dist">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!-- Empty placeholder for easier customization. -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!-- You can override this target in the /build.xml file. -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init,compile,compile-jsps,-pre-dist" if="do.war.package.without.custom.manifest" name="-do-dist-without-manifest">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <dirname file="${dist.war}" property="dist.jar.dir"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <mkdir dir="${dist.jar.dir}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <jar compress="${jar.compress}" jarfile="${dist.war}">
52bab831a40759421f5955145b3b6ec37d2b0d74Lubos Kosco <fileset dir="${build.web.dir}" excludes="WEB-INF/classes/.netbeans_*"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </jar>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init,compile,compile-jsps,-pre-dist" if="do.war.package.with.custom.manifest" name="-do-dist-with-manifest">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <dirname file="${dist.war}" property="dist.jar.dir"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <mkdir dir="${dist.jar.dir}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <jar compress="${jar.compress}" jarfile="${dist.war}" manifest="${build.meta.inf.dir}/MANIFEST.MF">
52bab831a40759421f5955145b3b6ec37d2b0d74Lubos Kosco <fileset dir="${build.web.dir}" excludes="WEB-INF/classes/.netbeans_*"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </jar>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init,compile,compile-jsps,-pre-dist" if="do.tmp.war.package.without.custom.manifest" name="-do-tmp-dist-without-manifest">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <dirname file="${dist.war}" property="dist.jar.dir"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <mkdir dir="${dist.jar.dir}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <jar compress="${jar.compress}" jarfile="${dist.war}">
52bab831a40759421f5955145b3b6ec37d2b0d74Lubos Kosco <fileset dir="${build.web.dir}" excludes="WEB-INF/classes/.netbeans_*"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </jar>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init,compile,compile-jsps,-pre-dist" if="do.tmp.war.package.with.custom.manifest" name="-do-tmp-dist-with-manifest">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <dirname file="${dist.war}" property="dist.jar.dir"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <mkdir dir="${dist.jar.dir}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <jar compress="${jar.compress}" jarfile="${dist.war}" manifest="${build.meta.inf.dir}/MANIFEST.MF">
52bab831a40759421f5955145b3b6ec37d2b0d74Lubos Kosco <fileset dir="${build.web.dir}" excludes="WEB-INF/classes/.netbeans_*"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </jar>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init,compile,compile-jsps,-pre-dist,-do-dist-with-manifest,-do-dist-without-manifest" name="do-dist"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init" if="dist.ear.dir" name="library-inclusion-in-manifest">
ab4ab2edaac480f68b476dc19e015c54cd4f1978Lubos Kosco <copyfiles files="${file.reference.ant.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <copyfiles files="${file.reference.swing-layout-0.9.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <copyfiles files="${file.reference.bcel-5.2.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
2ba599c0d79caf59996d8b54a0490bb968442134Knut Anders Hatlen <copyfiles files="${file.reference.jrcs.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
3d35af9011883d0d9e46f89f52243567cbc631c4Knut Anders Hatlen <copyfiles files="${reference.opengrok.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
aa437711254f8bb8be871b7d0a4b530b718cbf4eLubos Kosco <copyfiles files="${file.reference.lucene-core.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
596fc080b7d0387f572f7d392d35ee5ea702a312Lubos Kosco <copyfiles files="${file.reference.lucene-analyzers-common.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
aa437711254f8bb8be871b7d0a4b530b718cbf4eLubos Kosco <copyfiles files="${file.reference.lucene-queryparser.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
aa437711254f8bb8be871b7d0a4b530b718cbf4eLubos Kosco <copyfiles files="${file.reference.lucene-suggest.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <mkdir dir="${build.web.dir}/META-INF"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <manifest file="${build.web.dir}/META-INF/MANIFEST.MF" mode="update"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init" name="library-inclusion-in-archive" unless="dist.ear.dir">
ab4ab2edaac480f68b476dc19e015c54cd4f1978Lubos Kosco <copyfiles files="${file.reference.ant.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
ab4ab2edaac480f68b476dc19e015c54cd4f1978Lubos Kosco <copyfiles files="${file.reference.swing-layout-0.9.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
ab4ab2edaac480f68b476dc19e015c54cd4f1978Lubos Kosco <copyfiles files="${file.reference.bcel-5.2.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
2ba599c0d79caf59996d8b54a0490bb968442134Knut Anders Hatlen <copyfiles files="${file.reference.jrcs.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
3d35af9011883d0d9e46f89f52243567cbc631c4Knut Anders Hatlen <copyfiles files="${reference.opengrok.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
aa437711254f8bb8be871b7d0a4b530b718cbf4eLubos Kosco <copyfiles files="${file.reference.lucene-core.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
596fc080b7d0387f572f7d392d35ee5ea702a312Lubos Kosco <copyfiles files="${file.reference.lucene-analyzers-common.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
aa437711254f8bb8be871b7d0a4b530b718cbf4eLubos Kosco <copyfiles files="${file.reference.lucene-queryparser.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
aa437711254f8bb8be871b7d0a4b530b718cbf4eLubos Kosco <copyfiles files="${file.reference.lucene-suggest.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init" if="dist.ear.dir" name="-clean-webinf-lib">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <delete dir="${build.web.dir}/WEB-INF/lib"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init,-clean-webinf-lib,compile,compile-jsps,-pre-dist,library-inclusion-in-manifest" if="do.tmp.war.package" name="do-ear-dist">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <dirname file="${dist.ear.war}" property="dist.jar.dir"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <mkdir dir="${dist.jar.dir}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <jar compress="${jar.compress}" jarfile="${dist.ear.war}" manifest="${build.web.dir}/META-INF/MANIFEST.MF">
52bab831a40759421f5955145b3b6ec37d2b0d74Lubos Kosco <fileset dir="${build.web.dir}" excludes="WEB-INF/classes/.netbeans_*"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </jar>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target name="-post-dist">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!-- Empty placeholder for easier customization. -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!-- You can override this target in the /build.xml file. -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init,compile,-pre-dist,do-dist,-post-dist" description="Build distribution (WAR)." name="dist"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <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"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!--
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen EXECUTION SECTION
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="run-deploy,run-display-browser" description="Deploy to server and show in browser." name="run"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target name="-pre-run-deploy">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!-- Empty placeholder for easier customization. -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!-- You can override this target in the /build.xml file. -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target name="-post-run-deploy">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!-- Empty placeholder for easier customization. -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!-- You can override this target in the /build.xml file. -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target name="-pre-nbmodule-run-deploy">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!-- Empty placeholder for easier customization. -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target name="-post-nbmodule-run-deploy">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!-- Empty placeholder for easier customization. -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target name="-run-deploy-am">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!-- Task to deploy to the Access Manager runtime. -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco <target depends="init,-init-cos,compile,compile-jsps,-do-compile-single-jsp,-pre-dist,-do-tmp-dist-with-manifest,-do-tmp-dist-without-manifest,-pre-run-deploy,-pre-nbmodule-run-deploy,-run-deploy-nb,-init-deploy-ant,-deploy-ant,-run-deploy-am,-post-nbmodule-run-deploy,-post-run-deploy,-do-update-breakpoints" name="run-deploy"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target if="netbeans.home" name="-run-deploy-nb">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <nbdeploy clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target name="-init-deploy-ant" unless="netbeans.home">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <property name="deploy.ant.archive" value="${dist.war}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <property name="deploy.ant.docbase.dir" value="${web.docbase.dir}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <property name="deploy.ant.enabled" value="true"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target if="netbeans.home" name="-run-undeploy-nb">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <fail message="Undeploy is not supported from within the IDE"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init,-pre-dist,dist,-post-dist" name="verify">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <nbverify file="${dist.war}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="run-deploy,-init-display-browser,-display-browser-nb,-display-browser-cl" name="run-display-browser"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target if="do.display.browser" name="-init-display-browser">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition property="do.display.browser.nb">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <isset property="netbeans.home"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </condition>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition property="do.display.browser.cl">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <isset property="deploy.ant.enabled"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </condition>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target if="do.display.browser.nb" name="-display-browser-nb">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <nbbrowse url="${client.url}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target if="do.display.browser.cl" name="-get-browser" unless="browser">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition property="browser" value="rundll32">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <os family="windows"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </condition>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition else="" property="browser.args" value="url.dll,FileProtocolHandler">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <os family="windows"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </condition>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition property="browser" value="/usr/bin/open">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <os family="mac"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </condition>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <property environment="env"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition property="browser" value="${env.BROWSER}">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <isset property="env.BROWSER"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </condition>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition property="browser" value="/usr/bin/firefox">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <available file="/usr/bin/firefox"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </condition>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition property="browser" value="/usr/local/firefox/firefox">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <available file="/usr/local/firefox/firefox"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </condition>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition property="browser" value="/usr/bin/mozilla">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <available file="/usr/bin/mozilla"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </condition>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition property="browser" value="/usr/local/mozilla/mozilla">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <available file="/usr/local/mozilla/mozilla"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </condition>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition property="browser" value="/usr/sfw/lib/firefox/firefox">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <available file="/usr/sfw/lib/firefox/firefox"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </condition>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition property="browser" value="/opt/csw/bin/firefox">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <available file="/opt/csw/bin/firefox"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </condition>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition property="browser" value="/usr/sfw/lib/mozilla/mozilla">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <available file="/usr/sfw/lib/mozilla/mozilla"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </condition>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition property="browser" value="/opt/csw/bin/mozilla">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <available file="/opt/csw/bin/mozilla"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </condition>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="-get-browser" if="do.display.browser.cl" name="-display-browser-cl">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <fail unless="browser">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable.
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </fail>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <property name="browse.url" value="${deploy.ant.client.url}${client.urlPart}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <echo>Launching ${browse.url}</echo>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <exec executable="${browser}" spawn="true">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <arg line="${browser.args} ${browse.url}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </exec>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init,-init-cos,compile-single" name="run-main">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <webproject1:java classname="${run.class}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init,compile-test-single,-pre-test-run-single" name="run-test-with-main">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <webproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco <target depends="init" if="netbeans.home" name="-do-update-breakpoints">
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco <webproject1:nbjpdaappreloaded/>
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!--
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen DEBUGGING SECTION
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <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">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <nbstartserver debugmode="true"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <antcall target="connect-debugger"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <nbdeploy clientUrlPart="${client.urlPart}" debugmode="true" forceRedeploy="true"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <antcall target="debug-display-browser"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <antcall target="connect-client-debugger"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target if="do.debug.server" name="connect-debugger" unless="is.debugged">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <condition property="listeningcp" value="sourcepath">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <istrue value="${j2ee.compile.on.save}"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </condition>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" listeningcp="${listeningcp}" name="${name}" transport="${jpda.transport}">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <classpath>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <path path="${debug.classpath}:${j2ee.platform.classpath}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </classpath>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <sourcepath>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <path path="${web.docbase.dir}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </sourcepath>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </nbjpdaconnect>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target if="do.display.browser.debug" name="debug-display-browser">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <nbbrowse url="${client.url}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target if="do.debug.client" name="connect-client-debugger">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <webproject1:nbjsdebugstart webUrl="${client.url}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <webproject1:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init,compile,compile-jsps,-do-compile-single-jsp,debug" if="netbeans.home" name="debug-single"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <webproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init" if="netbeans.home" name="-debug-start-debugger">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <webproject1:nbjpdastart name="${debug.class}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <webproject1:debug classname="${debug.class}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single-main"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init" name="-pre-debug-fix">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <fail unless="fix.includes">Must set fix.includes</fail>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <property name="javac.includes" value="${fix.includes}.java"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <webproject1:nbjpdareload/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco <!--
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco =================
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco PROFILING SECTION
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco =================
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco -->
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <!--
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco pre NB7.2 profiling section; consider it deprecated
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco -->
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <target description="Profile a J2EE project in the IDE." if="profiler.info.jvmargs.agent" name="-profile-pre72">
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco <condition else="start-profiled-server" property="profiler.startserver.target" value="start-profiled-server-extraargs">
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco <isset property="profiler.info.jvmargs.extra"/>
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco </condition>
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco <antcall target="${profiler.startserver.target}"/>
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco <antcall target="run"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <antcall target="-profile-start-loadgen"/>
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco </target>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <target if="profiler.info.jvmargs.agent" name="start-profiled-server">
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco <nbstartprofiledserver forceRestart="${profiler.j2ee.serverForceRestart}" javaPlatform="${profiler.info.javaPlatform}" startupTimeout="${profiler.j2ee.serverStartupTimeout}">
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco <jvmarg value="${profiler.info.jvmargs.agent}"/>
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco <jvmarg value="${profiler.j2ee.agentID}"/>
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco </nbstartprofiledserver>
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco </target>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <target if="profiler.info.jvmargs.agent" name="start-profiled-server-extraargs">
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco <nbstartprofiledserver forceRestart="${profiler.j2ee.serverForceRestart}" javaPlatform="${profiler.info.javaPlatform}" startupTimeout="${profiler.j2ee.serverStartupTimeout}">
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco <jvmarg value="${profiler.info.jvmargs.extra}"/>
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco <jvmarg value="${profiler.info.jvmargs.agent}"/>
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco <jvmarg value="${profiler.j2ee.agentID}"/>
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco </nbstartprofiledserver>
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco </target>
ea46394924092022cd11973a66f79077f0b71609Lubos Kosco <target depends="profile-init,compile-test-single" if="profiler.info.jvmargs.agent" name="-profile-test-single-pre72">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <nbprofiledirect>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <classpath>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <path path="${run.test.classpath}"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <path path="${j2ee.platform.classpath}"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </classpath>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </nbprofiledirect>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <jvmarg value="${profiler.info.jvmargs.agent}"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <jvmarg line="${profiler.info.jvmargs}"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <test name="${profile.class}"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <classpath>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <path path="${run.test.classpath}"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <path path="${j2ee.platform.classpath}"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </classpath>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <syspropertyset>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <propertyref prefix="test-sys-prop."/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <mapper from="test-sys-prop.*" to="*" type="glob"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </syspropertyset>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <formatter type="brief" usefile="false"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <formatter type="xml"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </junit>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </target>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <target if="netbeans.home" name="-profile-check">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <condition property="profiler.configured">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <or>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-agentpath:"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-javaagent:"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </or>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </condition>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </target>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <target depends="init,-init-cos,compile,compile-jsps,-do-compile-single-jsp,-pre-dist,-do-tmp-dist-with-manifest,-do-tmp-dist-without-manifest" name="-do-profile">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <startprofiler/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <nbstartserver profilemode="true"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <nbdeploy clientUrlPart="${client.urlPart}" forceRedeploy="true" profilemode="true"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <antcall target="debug-display-browser"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <antcall target="-profile-start-loadgen"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </target>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <target depends="-profile-check,-profile-pre72" description="Profile a J2EE project in the IDE." if="profiler.configured" name="profile" unless="profiler.info.jvmargs.agent">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <antcall target="-do-profile"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </target>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <target depends="-profile-test-single-pre72" name="profile-test-single"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <target depends="-profile-check" if="profiler.configured" name="profile-test" unless="profiler.info.jvmargs.agent">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <startprofiler/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <antcall target="test-single"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </target>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <target if="profiler.loadgen.path" name="-profile-start-loadgen">
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco <loadgenstart path="${profiler.loadgen.path}"/>
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!--
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen JAVADOC SECTION
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen -->
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <target depends="init" if="have.sources" name="javadoc-build">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <mkdir dir="${dist.javadoc.dir}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <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}">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <classpath>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <path path="${javac.classpath}:${j2ee.platform.classpath}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </classpath>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <include name="**/*.java"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </fileset>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </javadoc>
2ba599c0d79caf59996d8b54a0490bb968442134Knut Anders Hatlen <copy todir="${dist.javadoc.dir}">
2ba599c0d79caf59996d8b54a0490bb968442134Knut Anders Hatlen <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
2ba599c0d79caf59996d8b54a0490bb968442134Knut Anders Hatlen <include name="**/doc-files/**"/>
2ba599c0d79caf59996d8b54a0490bb968442134Knut Anders Hatlen </fileset>
2ba599c0d79caf59996d8b54a0490bb968442134Knut Anders Hatlen </copy>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init,javadoc-build" if="netbeans.home" name="javadoc-browse" unless="no.javadoc.preview">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <nbbrowse file="${dist.javadoc.dir}/index.html"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init,javadoc-build,javadoc-browse" description="Build Javadoc." name="javadoc"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!--
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco TEST COMPILATION SECTION
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <mkdir dir="${build.test.classes.dir}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <property name="j2ee.platform.embeddableejb.classpath" value=""/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target name="-pre-compile-test">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!-- Empty placeholder for easier customization. -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!-- You can override this target in the /build.xml file. -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test" if="have.tests" name="-do-compile-test">
292082b509ca666f3da8b98dd5283f37221b31d5Knut Anders Hatlen <webproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir=""/>
292082b509ca666f3da8b98dd5283f37221b31d5Knut Anders Hatlen <copy todir="${build.test.classes.dir}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target name="-post-compile-test">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!-- Empty placeholder for easier customization. -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!-- You can override this target in the /build.xml file. -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target name="-pre-compile-test-single">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!-- Empty placeholder for easier customization. -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!-- You can override this target in the /build.xml file. -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
292082b509ca666f3da8b98dd5283f37221b31d5Knut Anders Hatlen <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=""/>
292082b509ca666f3da8b98dd5283f37221b31d5Knut Anders Hatlen <copy todir="${build.test.classes.dir}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target name="-post-compile-test-single">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!-- Empty placeholder for easier customization. -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!-- You can override this target in the /build.xml file. -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!--
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco TEST EXECUTION SECTION
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init" if="have.tests" name="-pre-test-run">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <mkdir dir="${build.test.results.dir}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <webproject2:test testincludes="**/*Test.java"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init" if="have.tests" name="test-report"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init" if="have.tests" name="-pre-test-run-single">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <mkdir dir="${build.test.results.dir}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <webproject2:test excludes="" includes="${test.includes}" testincludes="${test.includes}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <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"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single-method">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <fail unless="test.class">Must select some files in the IDE or set test.class</fail>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <webproject2:test excludes="" includes="${javac.includes}" testincludes="${test.class}" testmethods="${test.method}"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </target>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method" if="have.tests" name="-post-test-run-single-method">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </target>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method,-post-test-run-single-method" description="Run single unit test." name="test-single-method"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!--
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco TEST DEBUGGING SECTION
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen -->
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <webproject2:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testincludes="${javac.includes}"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco </target>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test-method">
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <webproject2:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testMethod="${test.method}" testincludes="${test.class}" testmethods="${test.method}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <webproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
874934ea6b432d07fd1fd2050fbdfb56a4ff91b9Lubos Kosco <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test-method" name="debug-test-method"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <webproject1:nbjpdareload dir="${build.test.classes.dir}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!--
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen CLEANUP SECTION
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen -->
73100f4d1c412f00eb2568969d935cf3182b0d77Lubos Kosco <target depends="init" name="deps-clean" unless="no.deps">
3d35af9011883d0d9e46f89f52243567cbc631c4Knut Anders Hatlen <ant antfile="${project.opengrok}/build.xml" inheritall="false" target="clean"/>
3d35af9011883d0d9e46f89f52243567cbc631c4Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init" name="do-clean">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition property="build.dir.to.clean" value="${build.web.dir}">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <isset property="dist.ear.dir"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </condition>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <property name="build.dir.to.clean" value="${build.web.dir}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <delete includeEmptyDirs="true" quiet="true">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <fileset dir="${build.dir.to.clean}/WEB-INF/lib"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </delete>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <delete dir="${build.dir}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <available file="${build.dir.to.clean}/WEB-INF/lib" property="status.clean-failed" type="dir"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <delete dir="${dist.dir}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="do-clean" if="status.clean-failed" name="check-clean">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <echo message="Warning: unable to delete some files in ${build.web.dir}/WEB-INF/lib - they are probably locked by the J2EE server. "/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <echo level="info" message="To delete all files undeploy the module from Server Registry in Runtime tab and then use Clean again."/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init" if="netbeans.home" name="undeploy-clean">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <nbundeploy failOnError="false" startServer="false"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target name="-post-clean">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!-- Empty placeholder for easier customization. -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!-- You can override this target in the /build.xml file. -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </target>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init,undeploy-clean,deps-clean,do-clean,check-clean,-post-clean" description="Clean build products." name="clean"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="clean" description="Clean build products." name="clean-ear"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen</project>