a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye*** GENERATED FROM project.xml - DO NOT EDIT ***
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye*** EDIT /build.xml INSTEAD ***
a1318a82916028f363b3c5b52e7fd7256b632497Trond NorbyeFor the purpose of easier reading the script
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbyeis divided into following sections:
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye - initialization
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye - compilation
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco - test compilation
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco - test execution
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco - test debugging
a040b6c811808472eaaa5dabf1a5b5820939cc00Knut Anders Hatlen<project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="opengrok-impl">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <fail message="Please build using Ant 1.8.0 or higher.">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye ======================
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye INITIALIZATION SECTION
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye ======================
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <!-- Empty placeholder for easier customization. -->
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <!-- You can override this target in the /build.xml file. -->
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <target depends="-pre-init" name="-init-private">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <property file="nbproject/private/config.properties"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <property file="nbproject/private/configs/${config}.properties"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <property file="nbproject/private/private.properties"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <target depends="-pre-init,-init-private" name="-init-user">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <!-- The two properties below are usually overridden -->
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <!-- by the active platform. Just a fallback. -->
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <property name="default.javac.source" value="1.4"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <property name="default.javac.target" value="1.4"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <target depends="-pre-init,-init-private,-init-user" name="-init-project">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <property file="nbproject/configs/${config}.properties"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <property file="nbproject/project.properties"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
a6ba9d291f880aa068794453a58c7a95154f4e5eLubos Kosco <property name="platform.java" value="${java.home}/bin/java"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <available file="${manifest.file}" property="manifest.available"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <equals arg1="${application.splash}" arg2="" trim="true"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </condition>
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <condition property="main.class.available">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <equals arg1="${main.class}" arg2="" trim="true"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </condition>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <length length="0" string="${javac.profile}" when="greater"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <matches pattern="1\.[89](\..*)?" string="${javac.source}"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </condition>
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <isset property="libs.CopyLibs.classpath"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <condition property="do.archive+manifest.available">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </condition>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <condition property="do.archive+main.class.available">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <condition property="do.archive+splashscreen.available">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <condition property="do.archive+profile.available">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </condition>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </condition>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <condition property="netbeans.home+have.tests">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </condition>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </condition>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </condition>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <property name="javadoc.preview" value="true"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <property name="source.encoding" value="${file.encoding}"/>
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <property name="runtime.encoding" value="${source.encoding}"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </condition>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <property name="javadoc.encoding.used" value="${source.encoding}"/>
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye </condition>
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <equals arg1="${endorsed.classpath}" arg2="" trim="true"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </condition>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <condition else="" property="javac.profile.cmd.line.arg" value="-profile ${javac.profile}">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </condition>
a6ba9d291f880aa068794453a58c7a95154f4e5eLubos Kosco <condition else="false" property="jdkBug6558476">
a6ba9d291f880aa068794453a58c7a95154f4e5eLubos Kosco <matches pattern="1\.[56]" string="${java.specification.version}"/>
a6ba9d291f880aa068794453a58c7a95154f4e5eLubos Kosco </condition>
a6ba9d291f880aa068794453a58c7a95154f4e5eLubos Kosco <property name="javac.fork" value="${jdkBug6558476}"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <property name="jar.index.metainf" value="${jar.index}"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <available classname="org.junit.Test" classpath="${run.test.classpath}"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <available classname="junit.framework.Test" classpath="${run.test.classpath}"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </condition>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <available classname="org.testng.annotations.Test" classpath="${run.test.classpath}"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </condition>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </condition>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <condition else="testng" property="testng.mode" value="mixed">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </condition>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <condition else="" property="testng.debug.mode" value="-mixed">
dd6427e1fb2267ea1bbcfbd98a45148b64ba9858Trond Norbye </condition>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <!-- Empty placeholder for easier customization. -->
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <!-- You can override this target in the /build.xml file. -->
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <fail unless="src.generatedsrc.dir">Must set src.generatedsrc.dir</fail>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <fail unless="test.src.dir">Must set test.src.dir</fail>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <fail unless="build.dir">Must set build.dir</fail>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <fail unless="dist.dir">Must set dist.dir</fail>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <fail unless="build.classes.dir">Must set build.classes.dir</fail>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <fail unless="dist.jar">Must set dist.jar</fail>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <sequential>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </sequential>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <attribute default="${src.generatedsrc.dir}:${src.dir}" name="srcdir"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <attribute default="${build.classes.dir}" name="destdir"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <attribute default="${javac.classpath}" name="classpath"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <attribute default="${javac.processorpath}" name="processorpath"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <attribute default="${includes}" name="includes"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <attribute default="${excludes}" name="excludes"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <attribute default="${javac.debug}" name="debug"/>
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <attribute default="${empty.dir}" name="sourcepath"/>
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <attribute default="${empty.dir}" name="gensrcdir"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <sequential>
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <property location="${build.dir}/empty" name="empty.dir"/>
a6ba9d291f880aa068794453a58c7a95154f4e5eLubos Kosco <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <dirset dir="@{gensrcdir}" erroronmissingdir="false">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </classpath>
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <compilerarg line="${javac.profile.cmd.line.arg}"/>
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <compilerarg line="${javac.compilerargs}"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <compilerarg path="@{processorpath}:${empty.dir}"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <compilerarg line="${annotation.processing.processor.options}"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <customize/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </sequential>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <attribute default="${src.generatedsrc.dir}:${src.dir}" name="srcdir"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <attribute default="${build.classes.dir}" name="destdir"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <attribute default="${javac.classpath}" name="classpath"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <attribute default="${javac.processorpath}" name="processorpath"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <attribute default="${includes}" name="includes"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <attribute default="${excludes}" name="excludes"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <attribute default="${javac.debug}" name="debug"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <attribute default="${empty.dir}" name="sourcepath"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <attribute default="${empty.dir}" name="gensrcdir"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <sequential>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <property location="${build.dir}/empty" name="empty.dir"/>
a6ba9d291f880aa068794453a58c7a95154f4e5eLubos Kosco <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <dirset dir="@{gensrcdir}" erroronmissingdir="false">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </classpath>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <compilerarg line="${javac.profile.cmd.line.arg}"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <customize/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </sequential>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <attribute default="${src.generatedsrc.dir}:${src.dir}" name="srcdir"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <attribute default="${build.classes.dir}" name="destdir"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <attribute default="${javac.classpath}" name="classpath"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <sequential>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </classpath>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </sequential>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <attribute default="${build.classes.dir}" name="destdir"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <sequential>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <fail unless="javac.includes">Must set javac.includes</fail>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <filelist dir="@{destdir}" files="${javac.includes}"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </pathconvert>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <files includesfile="${javac.includesfile.binary}"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </sequential>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target if="${junit.available}" name="-init-macrodef-junit-init">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <condition else="false" property="nb.junit.batch" value="true">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </condition>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <condition else="false" property="nb.junit.single" value="true">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </condition>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <property name="test.binaryincludes" value="<nothing>"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <property name="test.binarytestincludes" value=""/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target if="${nb.junit.single}" name="-init-macrodef-junit-single" unless="${nb.junit.batch}">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <attribute default="${includes}" name="includes"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <attribute default="${excludes}" name="excludes"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <sequential>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <property name="junit.forkmode" value="perTest"/>
a6ba9d291f880aa068794453a58c7a95154f4e5eLubos Kosco <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <syspropertyset>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <mapper from="test-sys-prop.*" to="*" type="glob"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </syspropertyset>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <customize/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </sequential>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-batch" unless="${nb.junit.single}">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <attribute default="${includes}" name="includes"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <attribute default="${excludes}" name="excludes"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <sequential>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <property name="junit.forkmode" value="perTest"/>
a6ba9d291f880aa068794453a58c7a95154f4e5eLubos Kosco <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </batchtest>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <syspropertyset>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <mapper from="test-sys-prop.*" to="*" type="glob"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </syspropertyset>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <customize/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </sequential>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target depends="-init-macrodef-junit-init,-init-macrodef-junit-single, -init-macrodef-junit-batch" if="${junit.available}" name="-init-macrodef-junit"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target if="${testng.available}" name="-init-macrodef-testng">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <macrodef name="testng" uri="http://www.netbeans.org/ns/j2se-project/3">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <attribute default="${includes}" name="includes"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <attribute default="${excludes}" name="excludes"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <sequential>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <condition else="" property="testng.methods.arg" value="@{testincludes}.@{testmethods}">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </condition>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <fileset dir="${test.src.dir}" excludes="@{excludes},**/*.xml,${excludes}" includes="@{includes}">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
a6ba9d291f880aa068794453a58c7a95154f4e5eLubos Kosco <testng classfilesetref="test.set" failureProperty="tests.failed" listeners="org.testng.reporters.VerboseReporter" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="opengrok" testname="TestNG tests" workingDir="${work.dir}">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <propertyset>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <mapper from="test-sys-prop.*" to="*" type="glob"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </propertyset>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <customize/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </sequential>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <attribute default="${includes}" name="includes"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <attribute default="${excludes}" name="excludes"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <element implicit="true" name="customize" optional="true"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <sequential>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </sequential>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target depends="-init-macrodef-junit" if="${junit.available}" name="-init-macrodef-junit-impl">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <attribute default="${includes}" name="includes"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <attribute default="${excludes}" name="excludes"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <element implicit="true" name="customize" optional="true"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <sequential>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <j2seproject3:junit excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <customize/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </sequential>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target depends="-init-macrodef-testng" if="${testng.available}" name="-init-macrodef-testng-impl">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <attribute default="${includes}" name="includes"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <attribute default="${excludes}" name="excludes"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <element implicit="true" name="customize" optional="true"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <sequential>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <j2seproject3:testng excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <customize/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </sequential>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target depends="-init-macrodef-test-impl,-init-macrodef-junit-impl,-init-macrodef-testng-impl" name="-init-macrodef-test">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <macrodef name="test" uri="http://www.netbeans.org/ns/j2se-project/3">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <attribute default="${includes}" name="includes"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <attribute default="${excludes}" name="excludes"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <sequential>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <j2seproject3:test-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </classpath>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </customize>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </sequential>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target if="${junit.available}" name="-init-macrodef-junit-debug" unless="${nb.junit.batch}">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <attribute default="${includes}" name="includes"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <attribute default="${excludes}" name="excludes"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <sequential>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <property name="junit.forkmode" value="perTest"/>
a6ba9d291f880aa068794453a58c7a95154f4e5eLubos Kosco <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <syspropertyset>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <mapper from="test-sys-prop.*" to="*" type="glob"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </syspropertyset>
a6ba9d291f880aa068794453a58c7a95154f4e5eLubos Kosco <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <customize/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </sequential>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-debug-batch">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <attribute default="${includes}" name="includes"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <attribute default="${excludes}" name="excludes"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <sequential>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <property name="junit.forkmode" value="perTest"/>
a6ba9d291f880aa068794453a58c7a95154f4e5eLubos Kosco <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </batchtest>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <syspropertyset>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <mapper from="test-sys-prop.*" to="*" type="glob"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </syspropertyset>
a6ba9d291f880aa068794453a58c7a95154f4e5eLubos Kosco <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <customize/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </sequential>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target depends="-init-macrodef-junit-debug,-init-macrodef-junit-debug-batch" if="${junit.available}" name="-init-macrodef-junit-debug-impl">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <macrodef name="test-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <attribute default="${includes}" name="includes"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <attribute default="${excludes}" name="excludes"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <element implicit="true" name="customize" optional="true"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <sequential>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <j2seproject3:junit-debug excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <customize/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </sequential>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target if="${testng.available}" name="-init-macrodef-testng-debug">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <macrodef name="testng-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <attribute default="${main.class}" name="testClass"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <sequential>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <condition else="-testclass @{testClass}" property="test.class.or.method" value="-methods @{testClass}.@{testMethod}">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </condition>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <condition else="-suitename opengrok -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <matches pattern=".*\.xml" string="@{testClass}"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </condition>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <delete dir="${build.test.results.dir}" quiet="true"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <j2seproject3:debug classname="org.testng.TestNG" classpath="${debug.test.classpath}">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <customize2/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <arg line="-listener org.testng.reporters.VerboseReporter"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </customize>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </sequential>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target depends="-init-macrodef-testng-debug" if="${testng.available}" name="-init-macrodef-testng-debug-impl">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <macrodef name="testng-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <attribute default="${main.class}" name="testClass"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <element implicit="true" name="customize2" optional="true"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <sequential>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <j2seproject3:testng-debug testClass="@{testClass}" testMethod="@{testMethod}">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <customize2/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </sequential>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target depends="-init-macrodef-junit-debug-impl" if="${junit.available}" name="-init-macrodef-test-debug-junit">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <attribute default="${includes}" name="includes"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <attribute default="${excludes}" name="excludes"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <attribute default="${main.class}" name="testClass"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <sequential>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <j2seproject3:test-debug-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </classpath>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </customize>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </sequential>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target depends="-init-macrodef-testng-debug-impl" if="${testng.available}" name="-init-macrodef-test-debug-testng">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <attribute default="${includes}" name="includes"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <attribute default="${excludes}" name="excludes"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <attribute default="${main.class}" name="testClass"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <sequential>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <j2seproject3:testng-debug-impl testClass="@{testClass}" testMethod="@{testMethod}">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <customize2>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <syspropertyset>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <mapper from="test-sys-prop.*" to="*" type="glob"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </syspropertyset>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </customize2>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </sequential>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target depends="-init-macrodef-test-debug-junit,-init-macrodef-test-debug-testng" name="-init-macrodef-test-debug"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco pre NB7.2 profiling section; consider it deprecated
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" if="profiler.info.jvmargs.agent" name="profile-init"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target if="profiler.info.jvmargs.agent" name="-profile-pre-init">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <!-- Empty placeholder for easier customization. -->
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <!-- You can override this target in the /build.xml file. -->
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target if="profiler.info.jvmargs.agent" name="-profile-post-init">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <!-- Empty placeholder for easier customization. -->
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <!-- You can override this target in the /build.xml file. -->
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target if="profiler.info.jvmargs.agent" name="-profile-init-macrodef-profile">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <sequential>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <property name="@{name}" value="${env.@{value}}"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </sequential>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <attribute default="${main.class}" name="classname"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <sequential>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <java classname="@{classname}" dir="${profiler.info.dir}" fork="true" jvm="${profiler.info.jvm}">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <jvmarg value="${profiler.info.jvmargs.agent}"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </classpath>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <syspropertyset>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <mapper from="run-sys-prop.*" to="*" type="glob"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </syspropertyset>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <customize/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </sequential>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" if="profiler.info.jvmargs.agent" name="-profile-init-check">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco end of pre NB7.2 profiling section
98e99d053d8f85af3b6447ebfc2ee162d64b60b4Knut Anders Hatlen <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <attribute default="${main.class}" name="name"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <attribute default="${debug.classpath}" name="classpath"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <sequential>
98e99d053d8f85af3b6447ebfc2ee162d64b60b4Knut Anders Hatlen <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </classpath>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </nbjpdastart>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </sequential>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <attribute default="${build.classes.dir}" name="dir"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <sequential>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <nbjpdareload>
a040b6c811808472eaaa5dabf1a5b5820939cc00Knut Anders Hatlen <fileset dir="@{dir}" includes="${fix.classes}">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </nbjpdareload>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </sequential>
a6ba9d291f880aa068794453a58c7a95154f4e5eLubos Kosco <property name="version-output" value="java version "${ant.java.version}"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <contains string="${version-output}" substring="java version "1.0"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <contains string="${version-output}" substring="java version "1.1"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <contains string="${version-output}" substring="java version "1.2"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <contains string="${version-output}" substring="java version "1.3"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </condition>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </condition>
98e99d053d8f85af3b6447ebfc2ee162d64b60b4Knut Anders Hatlen <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
98e99d053d8f85af3b6447ebfc2ee162d64b60b4Knut Anders Hatlen <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <target depends="-init-debug-args" name="-init-macrodef-debug">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <attribute default="${main.class}" name="classname"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <attribute default="${debug.classpath}" name="classpath"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <sequential>
a6ba9d291f880aa068794453a58c7a95154f4e5eLubos Kosco <java classname="@{classname}" dir="${work.dir}" fork="true">
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
98e99d053d8f85af3b6447ebfc2ee162d64b60b4Knut Anders Hatlen <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </classpath>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <syspropertyset>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <mapper from="run-sys-prop.*" to="*" type="glob"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </syspropertyset>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <customize/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </sequential>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <attribute default="${main.class}" name="classname"/>
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <attribute default="${run.classpath}" name="classpath"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <sequential>
a6ba9d291f880aa068794453a58c7a95154f4e5eLubos Kosco <java classname="@{classname}" dir="${work.dir}" fork="true">
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </classpath>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <syspropertyset>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <mapper from="run-sys-prop.*" to="*" type="glob"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </syspropertyset>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <customize/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </sequential>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <attribute default="${manifest.file}" name="manifest"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <sequential>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <pathconvert property="run.classpath.without.build.classes.dir">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <map from="${build.classes.dir.resolved}" to=""/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </pathconvert>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <pathconvert pathsep=" " property="jar.classpath">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <path path="${run.classpath.without.build.classes.dir}"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <chainedmapper>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <flattenmapper/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <filtermapper>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </filtermapper>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </chainedmapper>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </pathconvert>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <copylibs compress="${jar.compress}" excludeFromCopy="${copylibs.excludes}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <attribute name="Class-Path" value="${jar.classpath}"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <customize/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </sequential>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <j2seproject1:fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </presetdef>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <property name="annotation.processing.enabled" value="true"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <property name="annotation.processing.processors.list" value=""/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <property name="annotation.processing.processor.options" value=""/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <property name="annotation.processing.run.all.processors" value="true"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <property name="javac.processorpath" value="${javac.classpath}"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <condition property="ap.supported.internal" value="true">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </condition>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <isfalse value="${annotation.processing.run.all.processors}"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </condition>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <condition else="" property="ap.proc.none.internal" value="-proc:none">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <isfalse value="${annotation.processing.enabled}"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </condition>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <property name="ap.cmd.line.internal" value=""/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos 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-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar,-init-ap-cmdline" name="init"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye ===================
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye COMPILATION SECTION
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye ===================
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <target name="-deps-jar-init" unless="built-jar.properties">
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <delete file="${built-jar.properties}" quiet="true"/>
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <echo level="warn" message="Cycle detected: opengrok was already built"/>
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <touch file="${built-jar.properties}" verbose="false"/>
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <property file="${built-jar.properties}" prefix="already.built.jar."/>
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <antcall target="-warn-already-built-jar"/>
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <propertyfile file="${built-jar.properties}">
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen </propertyfile>
98e99d053d8f85af3b6447ebfc2ee162d64b60b4Knut Anders Hatlen <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
98e99d053d8f85af3b6447ebfc2ee162d64b60b4Knut Anders Hatlen <target depends="init" name="-check-automatic-build">
98e99d053d8f85af3b6447ebfc2ee162d64b60b4Knut Anders Hatlen <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
98e99d053d8f85af3b6447ebfc2ee162d64b60b4Knut Anders Hatlen <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <target depends="init,deps-jar" name="-pre-pre-compile">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <!-- Empty placeholder for easier customization. -->
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <!-- You can override this target in the /build.xml file. -->
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye <target if="do.depend.true" name="-compile-depend">
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <pathconvert property="build.generated.subdirs">
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen </pathconvert>
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <j2seproject3:depend srcdir="${src.generatedsrc.dir}:${src.dir}:${build.generated.subdirs}"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <fileset dir="${src.generatedsrc.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target if="has.persistence.xml" name="-copy-persistence-xml">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <fileset dir="${meta.inf.dir}" includes="persistence.xml orm.xml"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <!-- Empty placeholder for easier customization. -->
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <!-- You can override this target in the /build.xml file. -->
98e99d053d8f85af3b6447ebfc2ee162d64b60b4Knut Anders Hatlen <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <!-- Empty placeholder for easier customization. -->
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <!-- You can override this target in the /build.xml file. -->
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.generatedsrc.dir}:${src.dir}"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <!-- Empty placeholder for easier customization. -->
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <!-- You can override this target in the /build.xml file. -->
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye ====================
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye JAR BUILDING SECTION
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye ====================
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <dirname file="${dist.jar}" property="dist.jar.dir"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <!-- Empty placeholder for easier customization. -->
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <!-- You can override this target in the /build.xml file. -->
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target depends="init" if="do.archive" name="-do-jar-create-manifest" unless="manifest.available">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <touch file="${tmp.manifest.file}" verbose="false"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target depends="init" if="do.archive+manifest.available" name="-do-jar-copy-manifest">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <copy file="${manifest.file}" tofile="${tmp.manifest.file}"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+main.class.available" name="-do-jar-set-mainclass">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <manifest file="${tmp.manifest.file}" mode="update">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <attribute name="Main-Class" value="${main.class}"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+profile.available" name="-do-jar-set-profile">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <manifest file="${tmp.manifest.file}" mode="update">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <attribute name="Profile" value="${javac.profile}"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-set-splashscreen">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <basename file="${application.splash}" property="splashscreen.basename"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <manifest file="${tmp.manifest.file}" mode="update">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen" if="do.mkdist" name="-do-jar-copylibs">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <echo level="info">To run this application from the command line without Ant, try:</echo>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <property location="${dist.jar}" name="dist.jar.resolved"/>
a6ba9d291f880aa068794453a58c7a95154f4e5eLubos Kosco <echo level="info">java -jar "${dist.jar.resolved}"</echo>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen" if="do.archive" name="-do-jar-jar" unless="do.mkdist">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <j2seproject1:jar manifest="${tmp.manifest.file}"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <property location="${dist.jar}" name="dist.jar.resolved"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <pathconvert property="run.classpath.with.dist.jar">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </pathconvert>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <condition else="" property="jar.usage.message" value="To run this application from the command line without Ant, try:${line.separator}${platform.java} -cp ${run.classpath.with.dist.jar} ${main.class}">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </condition>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <condition else="debug" property="jar.usage.level" value="info">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </condition>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <echo level="${jar.usage.level}" message="${jar.usage.message}"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target depends="-do-jar-copylibs" if="do.archive" name="-do-jar-delete-manifest">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-do-jar-jar,-do-jar-delete-manifest" name="-do-jar-without-libraries"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-do-jar-copylibs,-do-jar-delete-manifest" name="-do-jar-with-libraries"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <!-- Empty placeholder for easier customization. -->
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <!-- You can override this target in the /build.xml file. -->
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target depends="init,compile,-pre-jar,-do-jar-without-libraries,-do-jar-with-libraries,-post-jar" name="-do-jar"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target depends="init,compile,-pre-jar,-do-jar,-post-jar" description="Build JAR." name="jar"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye =================
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye EXECUTION SECTION
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye =================
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <target depends="init,compile" description="Run a main class." name="run">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </customize>
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye <property name="javac.includes.binary" value=""/>
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <target depends="init,compile-single" name="run-single">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <target depends="init,compile-test-single" name="run-test-with-main">
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye =================
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye DEBUGGING SECTION
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye =================
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <target depends="init" if="netbeans.home" name="-debug-start-debugger">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <j2seproject1:nbjpdastart name="${debug.class}"/>
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <target depends="init,compile" name="-debug-start-debuggee">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </customize>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <j2seproject3:debug classname="${debug.class}"/>
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
87396bac3204b6788c817e19222626eefde8f3f0Knut 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"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <fail unless="fix.includes">Must set fix.includes</fail>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <property name="javac.includes" value="${fix.includes}.java"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco =================
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco PROFILING SECTION
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco =================
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco pre NB7.2 profiler integration
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target depends="profile-init,compile" description="Profile a project in the IDE." if="profiler.info.jvmargs.agent" name="-profile-pre72">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <nbprofiledirect>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </classpath>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </nbprofiledirect>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="profiler.info.jvmargs.agent" name="-profile-single-pre72">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <nbprofiledirect>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </classpath>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </nbprofiledirect>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target depends="profile-init,compile-single" if="profiler.info.jvmargs.agent" name="-profile-applet-pre72">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <nbprofiledirect>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </classpath>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </nbprofiledirect>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </customize>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target depends="profile-init,compile-test-single" if="profiler.info.jvmargs.agent" name="-profile-test-single-pre72">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <nbprofiledirect>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </classpath>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </nbprofiledirect>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <jvmarg value="${profiler.info.jvmargs.agent}"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </classpath>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <syspropertyset>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <mapper from="test-sys-prop.*" to="*" type="glob"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </syspropertyset>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco end of pre NB72 profiling section
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target if="netbeans.home" name="-profile-check">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-agentpath:"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-javaagent:"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </condition>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target depends="-profile-check,-profile-pre72" description="Profile a project in the IDE." if="profiler.configured" name="profile" unless="profiler.info.jvmargs.agent">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <startprofiler/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target depends="-profile-check,-profile-single-pre72" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-single" unless="profiler.info.jvmargs.agent">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <startprofiler/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target depends="-profile-test-single-pre72" description="Profile a selected test in the IDE." name="profile-test-single"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target depends="-profile-check" description="Profile a selected test in the IDE." if="profiler.configured" name="profile-test" unless="profiler.info.jvmargs">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <startprofiler/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target depends="-profile-check" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-test-with-main">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <startprofiler/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target depends="-profile-check,-profile-applet-pre72" if="profiler.configured" name="profile-applet" unless="profiler.info.jvmargs.agent">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <startprofiler/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye ===============
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye JAVADOC SECTION
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye ===============
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target depends="init" if="have.sources" name="-javadoc-build">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <condition else="" property="javadoc.endorsed.classpath.cmd.line.arg" value="-J${endorsed.classpath.cmd.line.arg}">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <isset property="endorsed.classpath.cmd.line.arg"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <equals arg1="${endorsed.classpath.cmd.line.arg}" arg2=""/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </condition>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <condition else="" property="bug5101868workaround" value="*.java">
a6ba9d291f880aa068794453a58c7a95154f4e5eLubos Kosco <matches pattern="1\.[56](\..*)?" string="${java.version}"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco </condition>
a6ba9d291f880aa068794453a58c7a95154f4e5eLubos Kosco <javadoc additionalparam="-J-Dfile.encoding=${file.encoding} ${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}">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </classpath>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <fileset dir="${src.generatedsrc.dir}" excludes="${bug5101868workaround},${excludes}" includes="${includes}">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <fileset dir="${src.dir}" excludes="${bug5101868workaround},${excludes}" includes="${includes}">
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <arg line="${javadoc.endorsed.classpath.cmd.line.arg}"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <fileset dir="${src.generatedsrc.dir}" excludes="${excludes}" includes="${includes}">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <nbbrowse file="${dist.javadoc.dir}/index.html"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye =========================
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco TEST COMPILATION SECTION
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye =========================
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <!-- Empty placeholder for easier customization. -->
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <!-- You can override this target in the /build.xml file. -->
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye <target if="do.depend.true" name="-compile-test-depend">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" processorpath="${javac.test.processorpath}" srcdir="${test.src.dir}"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <!-- Empty placeholder for easier customization. -->
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <!-- You can override this target in the /build.xml file. -->
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <!-- Empty placeholder for easier customization. -->
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <!-- You can override this target in the /build.xml file. -->
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" processorpath="${javac.test.processorpath}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <!-- Empty placeholder for easier customization. -->
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <!-- You can override this target in the /build.xml file. -->
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye =======================
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco TEST EXECUTION SECTION
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye =======================
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <target depends="init" if="have.tests" name="-pre-test-run">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <j2seproject3:test includes="${includes}" testincludes="**/*Test.java"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <target depends="init" if="have.tests" name="test-report"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <target depends="init" if="have.tests" name="-pre-test-run-single">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <j2seproject3:test excludes="" includes="${test.includes}" testincludes="${test.includes}"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
87396bac3204b6788c817e19222626eefde8f3f0Knut 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"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single-method">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <fail unless="test.class">Must select some files in the IDE or set test.class</fail>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <j2seproject3:test excludes="" includes="${javac.includes}" testincludes="${test.class}" testmethods="${test.method}"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos 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">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos 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"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye =======================
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco TEST DEBUGGING SECTION
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye =======================
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testincludes="${javac.includes}"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test-method">
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testMethod="${test.method}" testincludes="${test.class}" testmethods="${test.method}"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test-method" name="debug-test-method"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye =========================
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye APPLET EXECUTION SECTION
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye =========================
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <target depends="init,compile-single" name="run-applet">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <j2seproject1:java classname="sun.applet.AppletViewer">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </customize>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye =========================
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye APPLET DEBUGGING SECTION
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye =========================
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <j2seproject3:debug classname="sun.applet.AppletViewer">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </customize>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye ===============
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye CLEANUP SECTION
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye ===============
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <target name="-deps-clean-init" unless="built-clean.properties">
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <delete file="${built-clean.properties}" quiet="true"/>
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <echo level="warn" message="Cycle detected: opengrok was already built"/>
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <touch file="${built-clean.properties}" verbose="false"/>
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <property file="${built-clean.properties}" prefix="already.built.clean."/>
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <antcall target="-warn-already-built-clean"/>
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <propertyfile file="${built-clean.properties}">
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen </propertyfile>
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <!-- Empty placeholder for easier customization. -->
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <!-- You can override this target in the /build.xml file. -->
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <property file="${call.built.properties}" prefix="already.built."/>
4f2be58ed1e83875854cf4c7258af8079344d26aLubos Kosco <isset property="already.built.${call.subproject}"/>
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <ant antfile="${call.script}" inheritall="false" target="${call.target}">
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen <mapper from="transfer.*" to="*" type="glob"/>
87396bac3204b6788c817e19222626eefde8f3f0Knut Anders Hatlen </propertyset>