build-impl.xml revision 45909b3ef8c6e568a87482cb890fec7b5dbb7733
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen *** GENERATED FROM project.xml - DO NOT EDIT ***
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen *** EDIT /build.xml INSTEAD ***
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 - junit compilation
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen - junit execution
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen - junit debugging
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 <fail message="Please build using Ant 1.7.1 or higher.">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="dist,javadoc" description="Build whole project." name="default"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen INITIALIZATION SECTION
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 depends="-pre-init" name="-init-private">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <property file="nbproject/private/private.properties"/>
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 depends="-pre-init,-init-private,-init-user" name="-init-project">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <property file="nbproject/project.properties"/>
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="netbeans.home+have.tests">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition property="no.javadoc.preview">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <property name="javac.compilerargs" value=""/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <property name="build.web.excludes" value="${build.classes.excludes}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition property="do.display.browser">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition property="do.display.browser.debug">
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 <condition property="do.war.package.without.custom.manifest">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition property="do.tmp.war.package.with.custom.manifest">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <isfalse value="${directory.deployment.supported}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition property="do.tmp.war.package.without.custom.manifest">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <isfalse value="${directory.deployment.supported}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition property="do.tmp.war.package">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <isfalse value="${directory.deployment.supported}"/>
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 <equals arg1="${application.args}" arg2="" trim="true"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <property name="source.encoding" value="${file.encoding}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <equals arg1="${javadoc.encoding}" arg2=""/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <property name="javadoc.encoding.used" value="${source.encoding}"/>
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}'">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <length length="0" string="${endorsed.classpath}" when="greater"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init" name="-init-cos" unless="deploy.on.save">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition property="deploy.on.save" value="true">
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 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 <matches pattern="j2ee.server.home" string="${j2ee.platform.classpath}"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco </condition>
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=<app_server_installation_directory>
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=<path_to_property_file> (where you put the property "j2ee.platform.classpath" in a .properties file)
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlenor ant -Dj2ee.platform.classpath=<server_classpath> (where no properties file is used)
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <macrodef name="property" uri="http://www.netbeans.org/ns/web-project/1">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <property name="@{name}" value="${@{value}}"/>
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="${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 <sequential>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <property location="${build.dir}/empty" name="empty.dir"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <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}">
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <dirset dir="@{gensrcdir}" erroronmissingdir="false">
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco </classpath>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <compilerarg path="@{processorpath}:${empty.dir}"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <customize/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco </sequential>
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">
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 <property location="${build.dir}/empty" name="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 <dirset dir="@{gensrcdir}" erroronmissingdir="false">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <compilerarg line="${javac.compilerargs}"/>
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="${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 </sequential>
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>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <pathconvert pathsep="," property="javac.includes.binary">
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <filelist dir="@{destdir}" files="${javac.includes}"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco </pathconvert>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco </sequential>
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"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${java.io.tmpdir}">
292082b509ca666f3da8b98dd5283f37221b31d5Knut Anders Hatlen <batchtest todir="${build.test.results.dir}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <path path="${run.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <syspropertyset>
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 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
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 <java classname="@{classname}" fork="true">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <path path="@{classpath}:${j2ee.platform.classpath}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <syspropertyset>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <mapper from="run-sys-prop.*" to="*" type="glob"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </syspropertyset>
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 <nbjsdebugstart urlPart="${client.urlPart}" webUrl="@{webUrl}"/>
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 <nbjpdastart addressproperty="jpda.address" name="@{name}" transport="${debug-transport}">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </nbjpdastart>
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 <nbjpdareload>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <fileset dir="@{dir}" includes="${fix.classes}">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </nbjpdareload>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <macrodef name="nbjpdaappreloaded" uri="http://www.netbeans.org/ns/web-project/1">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <nbjpdaappreloaded/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <property name="version-output" value="java version "${ant.java.version}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition property="have-jdk-older-than-1.4">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <contains string="${version-output}" substring="java version "1.0"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <contains string="${version-output}" substring="java version "1.1"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <contains string="${version-output}" substring="java version "1.2"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <contains string="${version-output}" substring="java version "1.3"/>
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 else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
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 <java classname="@{classname}" fork="true">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <syspropertyset>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <mapper from="run-sys-prop.*" to="*" type="glob"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </syspropertyset>
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<netbeans_installation>/java<version>/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 <taskdef classpath="${libs.CopyLibs.classpath}" resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
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 <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco </condition>
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 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 depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-junit,-init-macrodef-java,-init-macrodef-nbjpda,-init-macrodef-nbjsdebug,-init-macrodef-debug,-init-taskdefs,-init-ap-cmdline" name="init"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen COMPILATION SECTION
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 <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"/>
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 <!-- Empty placeholder for easier customization. -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!-- You can override this target in the /build.xml file. -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <fileset dir="${web.docbase.dir}" excludes="${build.web.excludes},${excludes}" includes="${includes}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <fileset dir="${webinf.dir}" excludes="${build.web.excludes}"/>
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}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target if="has.custom.manifest" name="-copy-manifest">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <fileset dir="${conf.dir}" includes="MANIFEST.MF"/>
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">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <fileset dir="${persistence.xml.dir}" includes="persistence.xml"/>
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 depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="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 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}"/>
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 depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
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 file="${basedir}/${build.web.dir}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <arg file="${basedir}/${build.generated.dir}/src"/>
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 <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 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 file="${basedir}/${build.web.dir}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <arg file="${basedir}/${build.generated.dir}/src"/>
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 <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 <patternset includes="${javac.jsp.includes}"/>
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 DIST BUILDING SECTION
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 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 <jar compress="${jar.compress}" jarfile="${dist.war}">
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 <jar compress="${jar.compress}" jarfile="${dist.war}" manifest="${build.meta.inf.dir}/MANIFEST.MF">
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 <jar compress="${jar.compress}" jarfile="${dist.war}">
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 <jar compress="${jar.compress}" jarfile="${dist.war}" manifest="${build.meta.inf.dir}/MANIFEST.MF">
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">
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.jakarta-oro-2.0.8.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <copyfiles files="${file.reference.lucene-core-3.0.1.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"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <copyfiles files="${file.reference.jmxremote_optional.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <copyfiles files="${file.reference.org.apache.commons.jrcs.rcs.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <copyfiles files="${file.reference.org.apache.commons.jrcs.diff.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <copyfiles files="${file.reference.lucene-spellchecker-3.0.1.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"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <manifest file="${build.web.dir}/META-INF/MANIFEST.MF" mode="update"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init" name="library-inclusion-in-archive" unless="dist.ear.dir">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <copyfiles files="${file.reference.swing-layout-0.9.jar}" todir="${build.web.dir}/WEB-INF\lib"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <copyfiles files="${file.reference.jakarta-oro-2.0.8.jar}" todir="${build.web.dir}/WEB-INF\lib"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <copyfiles files="${file.reference.lucene-core-3.0.1.jar}" todir="${build.web.dir}/WEB-INF\lib"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <copyfiles files="${file.reference.bcel-5.2.jar}" todir="${build.web.dir}/WEB-INF\lib"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <copyfiles files="${file.reference.jmxremote_optional.jar}" todir="${build.web.dir}/WEB-INF\lib"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <copyfiles files="${file.reference.org.apache.commons.jrcs.rcs.jar}" todir="${build.web.dir}/WEB-INF\lib"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <copyfiles files="${file.reference.org.apache.commons.jrcs.diff.jar}" todir="${build.web.dir}/WEB-INF\lib"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <copyfiles files="${file.reference.lucene-spellchecker-3.0.1.jar}" todir="${build.web.dir}/WEB-INF\lib"/>
3d35af9011883d0d9e46f89f52243567cbc631c4Knut Anders Hatlen <copyfiles files="${reference.opengrok.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
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 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 <jar compress="${jar.compress}" jarfile="${dist.ear.war}" manifest="${build.web.dir}/META-INF/MANIFEST.MF">
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 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 EXECUTION SECTION
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="run-deploy,run-display-browser" description="Deploy to server and show in browser." name="run"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!-- Empty placeholder for easier customization. -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!-- You can override this target in the /build.xml file. -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!-- Empty placeholder for easier customization. -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!-- You can override this target in the /build.xml file. -->
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 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 <!-- Task to deploy to the Access Manager runtime. -->
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,-pre-run-deploy,-pre-nbmodule-run-deploy,-run-deploy-nb,-init-deploy-ant,-deploy-ant,-run-deploy-am,-post-nbmodule-run-deploy,-post-run-deploy" name="run-deploy">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <nbjpdaappreloaded/>
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 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 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 depends="init,-pre-dist,dist,-post-dist" name="verify">
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 <condition property="do.display.browser.cl">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target if="do.display.browser.nb" name="-display-browser-nb">
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 <condition else="" property="browser.args" value="url.dll,FileProtocolHandler">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition property="browser" value="/usr/bin/open">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition property="browser" value="${env.BROWSER}">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition property="browser" value="/usr/bin/firefox">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition property="browser" value="/usr/local/firefox/firefox">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <available file="/usr/local/firefox/firefox"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition property="browser" value="/usr/bin/mozilla">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition property="browser" value="/usr/local/mozilla/mozilla">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <available file="/usr/local/mozilla/mozilla"/>
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 property="browser" value="/opt/csw/bin/firefox">
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 property="browser" value="/opt/csw/bin/mozilla">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="-get-browser" if="do.display.browser.cl" name="-display-browser-cl">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable.
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <property name="browse.url" value="${deploy.ant.client.url}${client.urlPart}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <exec executable="${browser}" spawn="true">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <arg line="${browser.args} ${browse.url}"/>
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 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 DEBUGGING SECTION
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 <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 if="do.debug.server" name="connect-debugger" unless="is.debugged">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <path path="${debug.classpath}:${j2ee.platform.classpath}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen </nbjpdaconnect>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target if="do.display.browser.debug" name="debug-display-browser">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target if="do.debug.client" name="connect-client-debugger">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <webproject1:nbjsdebugstart webUrl="${client.url}"/>
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 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 depends="init" if="netbeans.home" name="-debug-start-debugger">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <webproject1:nbjpdastart name="${debug.class}"/>
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 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 depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen JAVADOC SECTION
45909b3ef8c6e568a87482cb890fec7b5dbb7733Lubos Kosco <target depends="init" if="have.sources" name="javadoc-build">
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 <path path="${javac.classpath}:${j2ee.platform.classpath}"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
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 depends="init,javadoc-build,javadoc-browse" description="Build Javadoc." name="javadoc"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen JUNIT COMPILATION SECTION
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <property name="j2ee.platform.embeddableejb.classpath" value=""/>
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 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 <!-- Empty placeholder for easier customization. -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!-- You can override this target in the /build.xml file. -->
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 <!-- Empty placeholder for easier customization. -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!-- You can override this target in the /build.xml file. -->
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 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 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 JUNIT EXECUTION SECTION
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init" if="have.tests" name="-pre-test-run">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <webproject2:junit testincludes="**/*Test.java"/>
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 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 <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>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <webproject2:junit excludes="" includes="${test.includes}"/>
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 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"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen JUNIT DEBUGGING SECTION
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <target depends="init,compile-test" 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>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <!-- must exist, otherwise the XML formatter would fail -->
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <webproject1:debug args="${test.class}" classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner" classpath="${ant.home}/lib/ant.jar:${ant.home}/lib/ant-junit.jar:${debug.test.classpath}:${j2ee.platform.embeddableejb.classpath}">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
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 depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
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 depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen CLEANUP SECTION
3d35af9011883d0d9e46f89f52243567cbc631c4Knut Anders Hatlen <target depends="init" if="no.dist.ear.dir" name="deps-clean" unless="no.deps">
3d35af9011883d0d9e46f89f52243567cbc631c4Knut Anders Hatlen <ant antfile="${project.opengrok}/build.xml" inheritall="false" target="clean"/>
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <condition property="build.dir.to.clean" value="${build.web.dir}">
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 <available file="${build.dir.to.clean}/WEB-INF/lib" property="status.clean-failed" type="dir"/>
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 depends="init" if="netbeans.home" name="undeploy-clean">
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen <nbundeploy failOnError="false" startServer="false"/>
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 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"/>