build-impl.xml revision a040b6c811808472eaaa5dabf1a5b5820939cc00
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
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye - junit compilation
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye - junit execution
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye - junit 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">
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">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <available file="${manifest.file}" property="manifest.available"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <condition property="manifest.available+main.class">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <equals arg1="${main.class}" arg2="" trim="true"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </condition>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <condition property="manifest.available+main.class+mkdist.available">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <istrue value="${manifest.available+main.class}"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </condition>
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}"/>
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>
dd6427e1fb2267ea1bbcfbd98a45148b64ba9858Trond Norbye <condition else="" property="javac.compilerargs.jaxws" value="-Djava.endorsed.dirs='${jaxws.endorsed.dir}'">
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>
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"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <attribute default="${includes}" name="includes"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <attribute default="${excludes}" name="excludes"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <attribute default="${javac.debug}" name="debug"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <sequential>
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </classpath>
dd6427e1fb2267ea1bbcfbd98a45148b64ba9858Trond Norbye <compilerarg line="${javac.compilerargs} ${javac.compilerargs.jaxws}"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <customize/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </sequential>
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>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <pathconvert pathsep="," property="javac.includes.binary">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <filelist dir="@{destdir}" files="${javac.includes}"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </pathconvert>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </sequential>
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>
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </batchtest>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </classpath>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <syspropertyset>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <mapper from="test-sys-prop.*" to="*" type="glob"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </syspropertyset>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </sequential>
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>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="dt_socket">
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>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <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>
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>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <java classname="@{classname}" dir="${work.dir}" fork="true">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
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"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <sequential>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <java classname="@{classname}" dir="${work.dir}" fork="true">
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 <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <jar compress="${jar.compress}" jarfile="${dist.jar}">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <j2seproject1:fileset dir="${build.classes.dir}"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </presetdef>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <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-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar" name="init"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye ===================
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye COMPILATION SECTION
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye ===================
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <target depends="init" name="deps-jar" unless="no.deps"/>
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">
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-compile-depend" if="have.sources" name="-do-compile">
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}"/>
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,-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>
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye <j2seproject3:javac excludes="" 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. -->
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <target depends="init,deps-jar,-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. -->
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <target depends="init,compile,-pre-pre-jar,-pre-jar" name="-do-jar-without-manifest" unless="manifest.available">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <j2seproject1:jar manifest="${manifest.file}"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <echo>To run this application from the command line without Ant, try:</echo>
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>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <pathconvert property="run.classpath.without.build.classes.dir">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <map from="${build.classes.dir.resolved}" to=""/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </pathconvert>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <pathconvert pathsep=" " property="jar.classpath">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <path path="${run.classpath.without.build.classes.dir}"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <chainedmapper>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <flattenmapper/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </chainedmapper>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </pathconvert>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <copylibs compress="${jar.compress}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <attribute name="Main-Class" value="${main.class}"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <attribute name="Class-Path" value="${jar.classpath}"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <echo>To run this application from the command line without Ant, try:</echo>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <property location="${dist.jar}" name="dist.jar.resolved"/>
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-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-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=""/>
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye <target depends="init,-do-not-recompile,compile-single" name="run-single">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
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}"/>
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}"/>
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye <target depends="init,-do-not-recompile,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
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"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye ===============
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye JAVADOC SECTION
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye ===============
dd6427e1fb2267ea1bbcfbd98a45148b64ba9858Trond Norbye <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}">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </classpath>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <fileset dir="${src.generatedsrc.dir}" excludes="${excludes}" includes="${includes}">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
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 =========================
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye JUNIT 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}"/>
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.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. -->
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. -->
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <target depends="init,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}"/>
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye <j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" 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. -->
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <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 =======================
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye JUNIT 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">
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye <j2seproject3:junit testincludes="**/*Test.java"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <fail if="tests.failed">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>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <j2seproject3:junit excludes="" includes="${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">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <fail if="tests.failed">Some tests failed; see details above.</fail>
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye <target depends="init,-do-not-recompile,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye =======================
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye JUNIT DEBUGGING SECTION
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye =======================
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <target depends="init,compile-test" 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>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <j2seproject3:debug classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner" classpath="${ant.home}/lib/ant.jar:${ant.home}/lib/ant-junit.jar:${debug.test.classpath}">
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <syspropertyset>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <mapper from="test-sys-prop.*" to="*" type="glob"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </syspropertyset>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye </customize>
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}"/>
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye <target depends="init,-do-not-recompile,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
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 ===============
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye <target depends="init" name="deps-clean" unless="no.deps"/>
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"/>