1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/java/alt2xml-out-xpath/build.xml Mon Jun 16 21:22:34 2014 +0200
1.3 @@ -0,0 +1,73 @@
1.4 +<?xml version="1.0" encoding="UTF-8"?>
1.5 +<!-- You may freely edit this file. See commented blocks below for -->
1.6 +<!-- some examples of how to customize the build. -->
1.7 +<!-- (If you delete it and reopen the project it will be recreated.) -->
1.8 +<!-- By default, only the Clean and Build commands use this build script. -->
1.9 +<!-- Commands such as Run, Debug, and Test only use this build script if -->
1.10 +<!-- the Compile on Save feature is turned off for the project. -->
1.11 +<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
1.12 +<!-- in the project's Project Properties dialog box.-->
1.13 +<project name="alt2xml-out-xpath" default="default" basedir=".">
1.14 + <description>Builds, tests, and runs the project alt2xml-out-xpath.</description>
1.15 + <import file="nbproject/build-impl.xml"/>
1.16 + <!--
1.17 +
1.18 + There exist several targets which are by default empty and which can be
1.19 + used for execution of your tasks. These targets are usually executed
1.20 + before and after some main targets. They are:
1.21 +
1.22 + -pre-init: called before initialization of project properties
1.23 + -post-init: called after initialization of project properties
1.24 + -pre-compile: called before javac compilation
1.25 + -post-compile: called after javac compilation
1.26 + -pre-compile-single: called before javac compilation of single file
1.27 + -post-compile-single: called after javac compilation of single file
1.28 + -pre-compile-test: called before javac compilation of JUnit tests
1.29 + -post-compile-test: called after javac compilation of JUnit tests
1.30 + -pre-compile-test-single: called before javac compilation of single JUnit test
1.31 + -post-compile-test-single: called after javac compilation of single JUunit test
1.32 + -pre-jar: called before JAR building
1.33 + -post-jar: called after JAR building
1.34 + -post-clean: called after cleaning build products
1.35 +
1.36 + (Targets beginning with '-' are not intended to be called on their own.)
1.37 +
1.38 + Example of inserting an obfuscator after compilation could look like this:
1.39 +
1.40 + <target name="-post-compile">
1.41 + <obfuscate>
1.42 + <fileset dir="${build.classes.dir}"/>
1.43 + </obfuscate>
1.44 + </target>
1.45 +
1.46 + For list of available properties check the imported
1.47 + nbproject/build-impl.xml file.
1.48 +
1.49 +
1.50 + Another way to customize the build is by overriding existing main targets.
1.51 + The targets of interest are:
1.52 +
1.53 + -init-macrodef-javac: defines macro for javac compilation
1.54 + -init-macrodef-junit: defines macro for junit execution
1.55 + -init-macrodef-debug: defines macro for class debugging
1.56 + -init-macrodef-java: defines macro for class execution
1.57 + -do-jar: JAR building
1.58 + run: execution of project
1.59 + -javadoc-build: Javadoc generation
1.60 + test-report: JUnit report generation
1.61 +
1.62 + An example of overriding the target for project execution could look like this:
1.63 +
1.64 + <target name="run" depends="alt2xml-out-xpath-impl.jar">
1.65 + <exec dir="bin" executable="launcher.exe">
1.66 + <arg file="${dist.jar}"/>
1.67 + </exec>
1.68 + </target>
1.69 +
1.70 + Notice that the overridden target depends on the jar target and not only on
1.71 + the compile target as the regular run target does. Again, for a list of available
1.72 + properties which you can use, check the target you are overriding in the
1.73 + nbproject/build-impl.xml file.
1.74 +
1.75 + -->
1.76 +</project>
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2.2 +++ b/java/alt2xml-out-xpath/nbproject/build-impl.xml Mon Jun 16 21:22:34 2014 +0200
2.3 @@ -0,0 +1,1413 @@
2.4 +<?xml version="1.0" encoding="UTF-8"?>
2.5 +<!--
2.6 +*** GENERATED FROM project.xml - DO NOT EDIT ***
2.7 +*** EDIT ../build.xml INSTEAD ***
2.8 +
2.9 +For the purpose of easier reading the script
2.10 +is divided into following sections:
2.11 +
2.12 + - initialization
2.13 + - compilation
2.14 + - jar
2.15 + - execution
2.16 + - debugging
2.17 + - javadoc
2.18 + - test compilation
2.19 + - test execution
2.20 + - test debugging
2.21 + - applet
2.22 + - cleanup
2.23 +
2.24 + -->
2.25 +<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="alt2xml-out-xpath-impl">
2.26 + <fail message="Please build using Ant 1.8.0 or higher.">
2.27 + <condition>
2.28 + <not>
2.29 + <antversion atleast="1.8.0"/>
2.30 + </not>
2.31 + </condition>
2.32 + </fail>
2.33 + <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
2.34 + <!--
2.35 + ======================
2.36 + INITIALIZATION SECTION
2.37 + ======================
2.38 + -->
2.39 + <target name="-pre-init">
2.40 + <!-- Empty placeholder for easier customization. -->
2.41 + <!-- You can override this target in the ../build.xml file. -->
2.42 + </target>
2.43 + <target depends="-pre-init" name="-init-private">
2.44 + <property file="nbproject/private/config.properties"/>
2.45 + <property file="nbproject/private/configs/${config}.properties"/>
2.46 + <property file="nbproject/private/private.properties"/>
2.47 + </target>
2.48 + <target depends="-pre-init,-init-private" name="-init-user">
2.49 + <property file="${user.properties.file}"/>
2.50 + <!-- The two properties below are usually overridden -->
2.51 + <!-- by the active platform. Just a fallback. -->
2.52 + <property name="default.javac.source" value="1.4"/>
2.53 + <property name="default.javac.target" value="1.4"/>
2.54 + </target>
2.55 + <target depends="-pre-init,-init-private,-init-user" name="-init-project">
2.56 + <property file="nbproject/configs/${config}.properties"/>
2.57 + <property file="nbproject/project.properties"/>
2.58 + </target>
2.59 + <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
2.60 + <property name="platform.java" value="${java.home}/bin/java"/>
2.61 + <available file="${manifest.file}" property="manifest.available"/>
2.62 + <condition property="splashscreen.available">
2.63 + <and>
2.64 + <not>
2.65 + <equals arg1="${application.splash}" arg2="" trim="true"/>
2.66 + </not>
2.67 + <available file="${application.splash}"/>
2.68 + </and>
2.69 + </condition>
2.70 + <condition property="main.class.available">
2.71 + <and>
2.72 + <isset property="main.class"/>
2.73 + <not>
2.74 + <equals arg1="${main.class}" arg2="" trim="true"/>
2.75 + </not>
2.76 + </and>
2.77 + </condition>
2.78 + <condition property="profile.available">
2.79 + <and>
2.80 + <isset property="javac.profile"/>
2.81 + <length length="0" string="${javac.profile}" when="greater"/>
2.82 + <matches pattern="1\.[89](\..*)?" string="${javac.source}"/>
2.83 + </and>
2.84 + </condition>
2.85 + <condition property="do.archive">
2.86 + <or>
2.87 + <not>
2.88 + <istrue value="${jar.archive.disabled}"/>
2.89 + </not>
2.90 + <istrue value="${not.archive.disabled}"/>
2.91 + </or>
2.92 + </condition>
2.93 + <condition property="do.mkdist">
2.94 + <and>
2.95 + <isset property="do.archive"/>
2.96 + <isset property="libs.CopyLibs.classpath"/>
2.97 + <not>
2.98 + <istrue value="${mkdist.disabled}"/>
2.99 + </not>
2.100 + </and>
2.101 + </condition>
2.102 + <condition property="do.archive+manifest.available">
2.103 + <and>
2.104 + <isset property="manifest.available"/>
2.105 + <istrue value="${do.archive}"/>
2.106 + </and>
2.107 + </condition>
2.108 + <condition property="do.archive+main.class.available">
2.109 + <and>
2.110 + <isset property="main.class.available"/>
2.111 + <istrue value="${do.archive}"/>
2.112 + </and>
2.113 + </condition>
2.114 + <condition property="do.archive+splashscreen.available">
2.115 + <and>
2.116 + <isset property="splashscreen.available"/>
2.117 + <istrue value="${do.archive}"/>
2.118 + </and>
2.119 + </condition>
2.120 + <condition property="do.archive+profile.available">
2.121 + <and>
2.122 + <isset property="profile.available"/>
2.123 + <istrue value="${do.archive}"/>
2.124 + </and>
2.125 + </condition>
2.126 + <condition property="have.tests">
2.127 + <or>
2.128 + <available file="${test.src.dir}"/>
2.129 + </or>
2.130 + </condition>
2.131 + <condition property="have.sources">
2.132 + <or>
2.133 + <available file="${src.dir}"/>
2.134 + </or>
2.135 + </condition>
2.136 + <condition property="netbeans.home+have.tests">
2.137 + <and>
2.138 + <isset property="netbeans.home"/>
2.139 + <isset property="have.tests"/>
2.140 + </and>
2.141 + </condition>
2.142 + <condition property="no.javadoc.preview">
2.143 + <and>
2.144 + <isset property="javadoc.preview"/>
2.145 + <isfalse value="${javadoc.preview}"/>
2.146 + </and>
2.147 + </condition>
2.148 + <property name="run.jvmargs" value=""/>
2.149 + <property name="run.jvmargs.ide" value=""/>
2.150 + <property name="javac.compilerargs" value=""/>
2.151 + <property name="work.dir" value="${basedir}"/>
2.152 + <condition property="no.deps">
2.153 + <and>
2.154 + <istrue value="${no.dependencies}"/>
2.155 + </and>
2.156 + </condition>
2.157 + <property name="javac.debug" value="true"/>
2.158 + <property name="javadoc.preview" value="true"/>
2.159 + <property name="application.args" value=""/>
2.160 + <property name="source.encoding" value="${file.encoding}"/>
2.161 + <property name="runtime.encoding" value="${source.encoding}"/>
2.162 + <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
2.163 + <and>
2.164 + <isset property="javadoc.encoding"/>
2.165 + <not>
2.166 + <equals arg1="${javadoc.encoding}" arg2=""/>
2.167 + </not>
2.168 + </and>
2.169 + </condition>
2.170 + <property name="javadoc.encoding.used" value="${source.encoding}"/>
2.171 + <property name="includes" value="**"/>
2.172 + <property name="excludes" value=""/>
2.173 + <property name="do.depend" value="false"/>
2.174 + <condition property="do.depend.true">
2.175 + <istrue value="${do.depend}"/>
2.176 + </condition>
2.177 + <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
2.178 + <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
2.179 + <and>
2.180 + <isset property="endorsed.classpath"/>
2.181 + <not>
2.182 + <equals arg1="${endorsed.classpath}" arg2="" trim="true"/>
2.183 + </not>
2.184 + </and>
2.185 + </condition>
2.186 + <condition else="" property="javac.profile.cmd.line.arg" value="-profile ${javac.profile}">
2.187 + <isset property="profile.available"/>
2.188 + </condition>
2.189 + <condition else="false" property="jdkBug6558476">
2.190 + <and>
2.191 + <matches pattern="1\.[56]" string="${java.specification.version}"/>
2.192 + <not>
2.193 + <os family="unix"/>
2.194 + </not>
2.195 + </and>
2.196 + </condition>
2.197 + <property name="javac.fork" value="${jdkBug6558476}"/>
2.198 + <property name="jar.index" value="false"/>
2.199 + <property name="jar.index.metainf" value="${jar.index}"/>
2.200 + <property name="copylibs.rebase" value="true"/>
2.201 + <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
2.202 + <condition property="junit.available">
2.203 + <or>
2.204 + <available classname="org.junit.Test" classpath="${run.test.classpath}"/>
2.205 + <available classname="junit.framework.Test" classpath="${run.test.classpath}"/>
2.206 + </or>
2.207 + </condition>
2.208 + <condition property="testng.available">
2.209 + <available classname="org.testng.annotations.Test" classpath="${run.test.classpath}"/>
2.210 + </condition>
2.211 + <condition property="junit+testng.available">
2.212 + <and>
2.213 + <istrue value="${junit.available}"/>
2.214 + <istrue value="${testng.available}"/>
2.215 + </and>
2.216 + </condition>
2.217 + <condition else="testng" property="testng.mode" value="mixed">
2.218 + <istrue value="${junit+testng.available}"/>
2.219 + </condition>
2.220 + <condition else="" property="testng.debug.mode" value="-mixed">
2.221 + <istrue value="${junit+testng.available}"/>
2.222 + </condition>
2.223 + </target>
2.224 + <target name="-post-init">
2.225 + <!-- Empty placeholder for easier customization. -->
2.226 + <!-- You can override this target in the ../build.xml file. -->
2.227 + </target>
2.228 + <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
2.229 + <fail unless="src.dir">Must set src.dir</fail>
2.230 + <fail unless="test.src.dir">Must set test.src.dir</fail>
2.231 + <fail unless="build.dir">Must set build.dir</fail>
2.232 + <fail unless="dist.dir">Must set dist.dir</fail>
2.233 + <fail unless="build.classes.dir">Must set build.classes.dir</fail>
2.234 + <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
2.235 + <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
2.236 + <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
2.237 + <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
2.238 + <fail unless="dist.jar">Must set dist.jar</fail>
2.239 + </target>
2.240 + <target name="-init-macrodef-property">
2.241 + <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
2.242 + <attribute name="name"/>
2.243 + <attribute name="value"/>
2.244 + <sequential>
2.245 + <property name="@{name}" value="${@{value}}"/>
2.246 + </sequential>
2.247 + </macrodef>
2.248 + </target>
2.249 + <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
2.250 + <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
2.251 + <attribute default="${src.dir}" name="srcdir"/>
2.252 + <attribute default="${build.classes.dir}" name="destdir"/>
2.253 + <attribute default="${javac.classpath}" name="classpath"/>
2.254 + <attribute default="${javac.processorpath}" name="processorpath"/>
2.255 + <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
2.256 + <attribute default="${includes}" name="includes"/>
2.257 + <attribute default="${excludes}" name="excludes"/>
2.258 + <attribute default="${javac.debug}" name="debug"/>
2.259 + <attribute default="${empty.dir}" name="sourcepath"/>
2.260 + <attribute default="${empty.dir}" name="gensrcdir"/>
2.261 + <element name="customize" optional="true"/>
2.262 + <sequential>
2.263 + <property location="${build.dir}/empty" name="empty.dir"/>
2.264 + <mkdir dir="${empty.dir}"/>
2.265 + <mkdir dir="@{apgeneratedsrcdir}"/>
2.266 + <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}">
2.267 + <src>
2.268 + <dirset dir="@{gensrcdir}" erroronmissingdir="false">
2.269 + <include name="*"/>
2.270 + </dirset>
2.271 + </src>
2.272 + <classpath>
2.273 + <path path="@{classpath}"/>
2.274 + </classpath>
2.275 + <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
2.276 + <compilerarg line="${javac.profile.cmd.line.arg}"/>
2.277 + <compilerarg line="${javac.compilerargs}"/>
2.278 + <compilerarg value="-processorpath"/>
2.279 + <compilerarg path="@{processorpath}:${empty.dir}"/>
2.280 + <compilerarg line="${ap.processors.internal}"/>
2.281 + <compilerarg line="${annotation.processing.processor.options}"/>
2.282 + <compilerarg value="-s"/>
2.283 + <compilerarg path="@{apgeneratedsrcdir}"/>
2.284 + <compilerarg line="${ap.proc.none.internal}"/>
2.285 + <customize/>
2.286 + </javac>
2.287 + </sequential>
2.288 + </macrodef>
2.289 + </target>
2.290 + <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
2.291 + <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
2.292 + <attribute default="${src.dir}" name="srcdir"/>
2.293 + <attribute default="${build.classes.dir}" name="destdir"/>
2.294 + <attribute default="${javac.classpath}" name="classpath"/>
2.295 + <attribute default="${javac.processorpath}" name="processorpath"/>
2.296 + <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
2.297 + <attribute default="${includes}" name="includes"/>
2.298 + <attribute default="${excludes}" name="excludes"/>
2.299 + <attribute default="${javac.debug}" name="debug"/>
2.300 + <attribute default="${empty.dir}" name="sourcepath"/>
2.301 + <attribute default="${empty.dir}" name="gensrcdir"/>
2.302 + <element name="customize" optional="true"/>
2.303 + <sequential>
2.304 + <property location="${build.dir}/empty" name="empty.dir"/>
2.305 + <mkdir dir="${empty.dir}"/>
2.306 + <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}">
2.307 + <src>
2.308 + <dirset dir="@{gensrcdir}" erroronmissingdir="false">
2.309 + <include name="*"/>
2.310 + </dirset>
2.311 + </src>
2.312 + <classpath>
2.313 + <path path="@{classpath}"/>
2.314 + </classpath>
2.315 + <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
2.316 + <compilerarg line="${javac.profile.cmd.line.arg}"/>
2.317 + <compilerarg line="${javac.compilerargs}"/>
2.318 + <customize/>
2.319 + </javac>
2.320 + </sequential>
2.321 + </macrodef>
2.322 + </target>
2.323 + <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
2.324 + <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
2.325 + <attribute default="${src.dir}" name="srcdir"/>
2.326 + <attribute default="${build.classes.dir}" name="destdir"/>
2.327 + <attribute default="${javac.classpath}" name="classpath"/>
2.328 + <sequential>
2.329 + <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
2.330 + <classpath>
2.331 + <path path="@{classpath}"/>
2.332 + </classpath>
2.333 + </depend>
2.334 + </sequential>
2.335 + </macrodef>
2.336 + <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
2.337 + <attribute default="${build.classes.dir}" name="destdir"/>
2.338 + <sequential>
2.339 + <fail unless="javac.includes">Must set javac.includes</fail>
2.340 + <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
2.341 + <path>
2.342 + <filelist dir="@{destdir}" files="${javac.includes}"/>
2.343 + </path>
2.344 + <globmapper from="*.java" to="*.class"/>
2.345 + </pathconvert>
2.346 + <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
2.347 + <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
2.348 + <delete>
2.349 + <files includesfile="${javac.includesfile.binary}"/>
2.350 + </delete>
2.351 + <delete>
2.352 + <fileset file="${javac.includesfile.binary}"/>
2.353 + </delete>
2.354 + </sequential>
2.355 + </macrodef>
2.356 + </target>
2.357 + <target if="${junit.available}" name="-init-macrodef-junit-init">
2.358 + <condition else="false" property="nb.junit.batch" value="true">
2.359 + <and>
2.360 + <istrue value="${junit.available}"/>
2.361 + <not>
2.362 + <isset property="test.method"/>
2.363 + </not>
2.364 + </and>
2.365 + </condition>
2.366 + <condition else="false" property="nb.junit.single" value="true">
2.367 + <and>
2.368 + <istrue value="${junit.available}"/>
2.369 + <isset property="test.method"/>
2.370 + </and>
2.371 + </condition>
2.372 + </target>
2.373 + <target name="-init-test-properties">
2.374 + <property name="test.binaryincludes" value="<nothing>"/>
2.375 + <property name="test.binarytestincludes" value=""/>
2.376 + <property name="test.binaryexcludes" value=""/>
2.377 + </target>
2.378 + <target if="${nb.junit.single}" name="-init-macrodef-junit-single" unless="${nb.junit.batch}">
2.379 + <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
2.380 + <attribute default="${includes}" name="includes"/>
2.381 + <attribute default="${excludes}" name="excludes"/>
2.382 + <attribute default="**" name="testincludes"/>
2.383 + <attribute default="" name="testmethods"/>
2.384 + <element name="customize" optional="true"/>
2.385 + <sequential>
2.386 + <property name="junit.forkmode" value="perTest"/>
2.387 + <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
2.388 + <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
2.389 + <syspropertyset>
2.390 + <propertyref prefix="test-sys-prop."/>
2.391 + <mapper from="test-sys-prop.*" to="*" type="glob"/>
2.392 + </syspropertyset>
2.393 + <formatter type="brief" usefile="false"/>
2.394 + <formatter type="xml"/>
2.395 + <jvmarg value="-ea"/>
2.396 + <customize/>
2.397 + </junit>
2.398 + </sequential>
2.399 + </macrodef>
2.400 + </target>
2.401 + <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-batch" unless="${nb.junit.single}">
2.402 + <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
2.403 + <attribute default="${includes}" name="includes"/>
2.404 + <attribute default="${excludes}" name="excludes"/>
2.405 + <attribute default="**" name="testincludes"/>
2.406 + <attribute default="" name="testmethods"/>
2.407 + <element name="customize" optional="true"/>
2.408 + <sequential>
2.409 + <property name="junit.forkmode" value="perTest"/>
2.410 + <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
2.411 + <batchtest todir="${build.test.results.dir}">
2.412 + <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
2.413 + <filename name="@{testincludes}"/>
2.414 + </fileset>
2.415 + <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
2.416 + <filename name="${test.binarytestincludes}"/>
2.417 + </fileset>
2.418 + </batchtest>
2.419 + <syspropertyset>
2.420 + <propertyref prefix="test-sys-prop."/>
2.421 + <mapper from="test-sys-prop.*" to="*" type="glob"/>
2.422 + </syspropertyset>
2.423 + <formatter type="brief" usefile="false"/>
2.424 + <formatter type="xml"/>
2.425 + <jvmarg value="-ea"/>
2.426 + <customize/>
2.427 + </junit>
2.428 + </sequential>
2.429 + </macrodef>
2.430 + </target>
2.431 + <target depends="-init-macrodef-junit-init,-init-macrodef-junit-single, -init-macrodef-junit-batch" if="${junit.available}" name="-init-macrodef-junit"/>
2.432 + <target if="${testng.available}" name="-init-macrodef-testng">
2.433 + <macrodef name="testng" uri="http://www.netbeans.org/ns/j2se-project/3">
2.434 + <attribute default="${includes}" name="includes"/>
2.435 + <attribute default="${excludes}" name="excludes"/>
2.436 + <attribute default="**" name="testincludes"/>
2.437 + <attribute default="" name="testmethods"/>
2.438 + <element name="customize" optional="true"/>
2.439 + <sequential>
2.440 + <condition else="" property="testng.methods.arg" value="@{testincludes}.@{testmethods}">
2.441 + <isset property="test.method"/>
2.442 + </condition>
2.443 + <union id="test.set">
2.444 + <fileset dir="${test.src.dir}" excludes="@{excludes},**/*.xml,${excludes}" includes="@{includes}">
2.445 + <filename name="@{testincludes}"/>
2.446 + </fileset>
2.447 + </union>
2.448 + <taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
2.449 + <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="alt2xml-out-xpath" testname="TestNG tests" workingDir="${work.dir}">
2.450 + <xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
2.451 + <propertyset>
2.452 + <propertyref prefix="test-sys-prop."/>
2.453 + <mapper from="test-sys-prop.*" to="*" type="glob"/>
2.454 + </propertyset>
2.455 + <customize/>
2.456 + </testng>
2.457 + </sequential>
2.458 + </macrodef>
2.459 + </target>
2.460 + <target name="-init-macrodef-test-impl">
2.461 + <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
2.462 + <attribute default="${includes}" name="includes"/>
2.463 + <attribute default="${excludes}" name="excludes"/>
2.464 + <attribute default="**" name="testincludes"/>
2.465 + <attribute default="" name="testmethods"/>
2.466 + <element implicit="true" name="customize" optional="true"/>
2.467 + <sequential>
2.468 + <echo>No tests executed.</echo>
2.469 + </sequential>
2.470 + </macrodef>
2.471 + </target>
2.472 + <target depends="-init-macrodef-junit" if="${junit.available}" name="-init-macrodef-junit-impl">
2.473 + <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
2.474 + <attribute default="${includes}" name="includes"/>
2.475 + <attribute default="${excludes}" name="excludes"/>
2.476 + <attribute default="**" name="testincludes"/>
2.477 + <attribute default="" name="testmethods"/>
2.478 + <element implicit="true" name="customize" optional="true"/>
2.479 + <sequential>
2.480 + <j2seproject3:junit excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
2.481 + <customize/>
2.482 + </j2seproject3:junit>
2.483 + </sequential>
2.484 + </macrodef>
2.485 + </target>
2.486 + <target depends="-init-macrodef-testng" if="${testng.available}" name="-init-macrodef-testng-impl">
2.487 + <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
2.488 + <attribute default="${includes}" name="includes"/>
2.489 + <attribute default="${excludes}" name="excludes"/>
2.490 + <attribute default="**" name="testincludes"/>
2.491 + <attribute default="" name="testmethods"/>
2.492 + <element implicit="true" name="customize" optional="true"/>
2.493 + <sequential>
2.494 + <j2seproject3:testng excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
2.495 + <customize/>
2.496 + </j2seproject3:testng>
2.497 + </sequential>
2.498 + </macrodef>
2.499 + </target>
2.500 + <target depends="-init-macrodef-test-impl,-init-macrodef-junit-impl,-init-macrodef-testng-impl" name="-init-macrodef-test">
2.501 + <macrodef name="test" uri="http://www.netbeans.org/ns/j2se-project/3">
2.502 + <attribute default="${includes}" name="includes"/>
2.503 + <attribute default="${excludes}" name="excludes"/>
2.504 + <attribute default="**" name="testincludes"/>
2.505 + <attribute default="" name="testmethods"/>
2.506 + <sequential>
2.507 + <j2seproject3:test-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
2.508 + <customize>
2.509 + <classpath>
2.510 + <path path="${run.test.classpath}"/>
2.511 + </classpath>
2.512 + <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
2.513 + <jvmarg line="${run.jvmargs}"/>
2.514 + <jvmarg line="${run.jvmargs.ide}"/>
2.515 + </customize>
2.516 + </j2seproject3:test-impl>
2.517 + </sequential>
2.518 + </macrodef>
2.519 + </target>
2.520 + <target if="${junit.available}" name="-init-macrodef-junit-debug" unless="${nb.junit.batch}">
2.521 + <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
2.522 + <attribute default="${includes}" name="includes"/>
2.523 + <attribute default="${excludes}" name="excludes"/>
2.524 + <attribute default="**" name="testincludes"/>
2.525 + <attribute default="" name="testmethods"/>
2.526 + <element name="customize" optional="true"/>
2.527 + <sequential>
2.528 + <property name="junit.forkmode" value="perTest"/>
2.529 + <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
2.530 + <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
2.531 + <syspropertyset>
2.532 + <propertyref prefix="test-sys-prop."/>
2.533 + <mapper from="test-sys-prop.*" to="*" type="glob"/>
2.534 + </syspropertyset>
2.535 + <formatter type="brief" usefile="false"/>
2.536 + <formatter type="xml"/>
2.537 + <jvmarg value="-ea"/>
2.538 + <jvmarg line="${debug-args-line}"/>
2.539 + <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
2.540 + <customize/>
2.541 + </junit>
2.542 + </sequential>
2.543 + </macrodef>
2.544 + </target>
2.545 + <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-debug-batch">
2.546 + <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
2.547 + <attribute default="${includes}" name="includes"/>
2.548 + <attribute default="${excludes}" name="excludes"/>
2.549 + <attribute default="**" name="testincludes"/>
2.550 + <attribute default="" name="testmethods"/>
2.551 + <element name="customize" optional="true"/>
2.552 + <sequential>
2.553 + <property name="junit.forkmode" value="perTest"/>
2.554 + <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
2.555 + <batchtest todir="${build.test.results.dir}">
2.556 + <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
2.557 + <filename name="@{testincludes}"/>
2.558 + </fileset>
2.559 + <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
2.560 + <filename name="${test.binarytestincludes}"/>
2.561 + </fileset>
2.562 + </batchtest>
2.563 + <syspropertyset>
2.564 + <propertyref prefix="test-sys-prop."/>
2.565 + <mapper from="test-sys-prop.*" to="*" type="glob"/>
2.566 + </syspropertyset>
2.567 + <formatter type="brief" usefile="false"/>
2.568 + <formatter type="xml"/>
2.569 + <jvmarg value="-ea"/>
2.570 + <jvmarg line="${debug-args-line}"/>
2.571 + <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
2.572 + <customize/>
2.573 + </junit>
2.574 + </sequential>
2.575 + </macrodef>
2.576 + </target>
2.577 + <target depends="-init-macrodef-junit-debug,-init-macrodef-junit-debug-batch" if="${junit.available}" name="-init-macrodef-junit-debug-impl">
2.578 + <macrodef name="test-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
2.579 + <attribute default="${includes}" name="includes"/>
2.580 + <attribute default="${excludes}" name="excludes"/>
2.581 + <attribute default="**" name="testincludes"/>
2.582 + <attribute default="" name="testmethods"/>
2.583 + <element implicit="true" name="customize" optional="true"/>
2.584 + <sequential>
2.585 + <j2seproject3:junit-debug excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
2.586 + <customize/>
2.587 + </j2seproject3:junit-debug>
2.588 + </sequential>
2.589 + </macrodef>
2.590 + </target>
2.591 + <target if="${testng.available}" name="-init-macrodef-testng-debug">
2.592 + <macrodef name="testng-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
2.593 + <attribute default="${main.class}" name="testClass"/>
2.594 + <attribute default="" name="testMethod"/>
2.595 + <element name="customize2" optional="true"/>
2.596 + <sequential>
2.597 + <condition else="-testclass @{testClass}" property="test.class.or.method" value="-methods @{testClass}.@{testMethod}">
2.598 + <isset property="test.method"/>
2.599 + </condition>
2.600 + <condition else="-suitename alt2xml-out-xpath -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}">
2.601 + <matches pattern=".*\.xml" string="@{testClass}"/>
2.602 + </condition>
2.603 + <delete dir="${build.test.results.dir}" quiet="true"/>
2.604 + <mkdir dir="${build.test.results.dir}"/>
2.605 + <j2seproject3:debug classname="org.testng.TestNG" classpath="${debug.test.classpath}">
2.606 + <customize>
2.607 + <customize2/>
2.608 + <jvmarg value="-ea"/>
2.609 + <arg line="${testng.debug.mode}"/>
2.610 + <arg line="-d ${build.test.results.dir}"/>
2.611 + <arg line="-listener org.testng.reporters.VerboseReporter"/>
2.612 + <arg line="${testng.cmd.args}"/>
2.613 + </customize>
2.614 + </j2seproject3:debug>
2.615 + </sequential>
2.616 + </macrodef>
2.617 + </target>
2.618 + <target depends="-init-macrodef-testng-debug" if="${testng.available}" name="-init-macrodef-testng-debug-impl">
2.619 + <macrodef name="testng-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
2.620 + <attribute default="${main.class}" name="testClass"/>
2.621 + <attribute default="" name="testMethod"/>
2.622 + <element implicit="true" name="customize2" optional="true"/>
2.623 + <sequential>
2.624 + <j2seproject3:testng-debug testClass="@{testClass}" testMethod="@{testMethod}">
2.625 + <customize2/>
2.626 + </j2seproject3:testng-debug>
2.627 + </sequential>
2.628 + </macrodef>
2.629 + </target>
2.630 + <target depends="-init-macrodef-junit-debug-impl" if="${junit.available}" name="-init-macrodef-test-debug-junit">
2.631 + <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
2.632 + <attribute default="${includes}" name="includes"/>
2.633 + <attribute default="${excludes}" name="excludes"/>
2.634 + <attribute default="**" name="testincludes"/>
2.635 + <attribute default="" name="testmethods"/>
2.636 + <attribute default="${main.class}" name="testClass"/>
2.637 + <attribute default="" name="testMethod"/>
2.638 + <sequential>
2.639 + <j2seproject3:test-debug-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
2.640 + <customize>
2.641 + <classpath>
2.642 + <path path="${run.test.classpath}"/>
2.643 + </classpath>
2.644 + <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
2.645 + <jvmarg line="${run.jvmargs}"/>
2.646 + <jvmarg line="${run.jvmargs.ide}"/>
2.647 + </customize>
2.648 + </j2seproject3:test-debug-impl>
2.649 + </sequential>
2.650 + </macrodef>
2.651 + </target>
2.652 + <target depends="-init-macrodef-testng-debug-impl" if="${testng.available}" name="-init-macrodef-test-debug-testng">
2.653 + <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
2.654 + <attribute default="${includes}" name="includes"/>
2.655 + <attribute default="${excludes}" name="excludes"/>
2.656 + <attribute default="**" name="testincludes"/>
2.657 + <attribute default="" name="testmethods"/>
2.658 + <attribute default="${main.class}" name="testClass"/>
2.659 + <attribute default="" name="testMethod"/>
2.660 + <sequential>
2.661 + <j2seproject3:testng-debug-impl testClass="@{testClass}" testMethod="@{testMethod}">
2.662 + <customize2>
2.663 + <syspropertyset>
2.664 + <propertyref prefix="test-sys-prop."/>
2.665 + <mapper from="test-sys-prop.*" to="*" type="glob"/>
2.666 + </syspropertyset>
2.667 + </customize2>
2.668 + </j2seproject3:testng-debug-impl>
2.669 + </sequential>
2.670 + </macrodef>
2.671 + </target>
2.672 + <target depends="-init-macrodef-test-debug-junit,-init-macrodef-test-debug-testng" name="-init-macrodef-test-debug"/>
2.673 + <!--
2.674 + pre NB7.2 profiling section; consider it deprecated
2.675 + -->
2.676 + <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" if="profiler.info.jvmargs.agent" name="profile-init"/>
2.677 + <target if="profiler.info.jvmargs.agent" name="-profile-pre-init">
2.678 + <!-- Empty placeholder for easier customization. -->
2.679 + <!-- You can override this target in the ../build.xml file. -->
2.680 + </target>
2.681 + <target if="profiler.info.jvmargs.agent" name="-profile-post-init">
2.682 + <!-- Empty placeholder for easier customization. -->
2.683 + <!-- You can override this target in the ../build.xml file. -->
2.684 + </target>
2.685 + <target if="profiler.info.jvmargs.agent" name="-profile-init-macrodef-profile">
2.686 + <macrodef name="resolve">
2.687 + <attribute name="name"/>
2.688 + <attribute name="value"/>
2.689 + <sequential>
2.690 + <property name="@{name}" value="${env.@{value}}"/>
2.691 + </sequential>
2.692 + </macrodef>
2.693 + <macrodef name="profile">
2.694 + <attribute default="${main.class}" name="classname"/>
2.695 + <element name="customize" optional="true"/>
2.696 + <sequential>
2.697 + <property environment="env"/>
2.698 + <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
2.699 + <java classname="@{classname}" dir="${profiler.info.dir}" fork="true" jvm="${profiler.info.jvm}">
2.700 + <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
2.701 + <jvmarg value="${profiler.info.jvmargs.agent}"/>
2.702 + <jvmarg line="${profiler.info.jvmargs}"/>
2.703 + <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
2.704 + <arg line="${application.args}"/>
2.705 + <classpath>
2.706 + <path path="${run.classpath}"/>
2.707 + </classpath>
2.708 + <syspropertyset>
2.709 + <propertyref prefix="run-sys-prop."/>
2.710 + <mapper from="run-sys-prop.*" to="*" type="glob"/>
2.711 + </syspropertyset>
2.712 + <customize/>
2.713 + </java>
2.714 + </sequential>
2.715 + </macrodef>
2.716 + </target>
2.717 + <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" if="profiler.info.jvmargs.agent" name="-profile-init-check">
2.718 + <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
2.719 + <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
2.720 + </target>
2.721 + <!--
2.722 + end of pre NB7.2 profiling section
2.723 + -->
2.724 + <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
2.725 + <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
2.726 + <attribute default="${main.class}" name="name"/>
2.727 + <attribute default="${debug.classpath}" name="classpath"/>
2.728 + <attribute default="" name="stopclassname"/>
2.729 + <sequential>
2.730 + <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
2.731 + <classpath>
2.732 + <path path="@{classpath}"/>
2.733 + </classpath>
2.734 + </nbjpdastart>
2.735 + </sequential>
2.736 + </macrodef>
2.737 + <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
2.738 + <attribute default="${build.classes.dir}" name="dir"/>
2.739 + <sequential>
2.740 + <nbjpdareload>
2.741 + <fileset dir="@{dir}" includes="${fix.classes}">
2.742 + <include name="${fix.includes}*.class"/>
2.743 + </fileset>
2.744 + </nbjpdareload>
2.745 + </sequential>
2.746 + </macrodef>
2.747 + </target>
2.748 + <target name="-init-debug-args">
2.749 + <property name="version-output" value="java version "${ant.java.version}"/>
2.750 + <condition property="have-jdk-older-than-1.4">
2.751 + <or>
2.752 + <contains string="${version-output}" substring="java version "1.0"/>
2.753 + <contains string="${version-output}" substring="java version "1.1"/>
2.754 + <contains string="${version-output}" substring="java version "1.2"/>
2.755 + <contains string="${version-output}" substring="java version "1.3"/>
2.756 + </or>
2.757 + </condition>
2.758 + <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
2.759 + <istrue value="${have-jdk-older-than-1.4}"/>
2.760 + </condition>
2.761 + <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
2.762 + <os family="windows"/>
2.763 + </condition>
2.764 + <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
2.765 + <isset property="debug.transport"/>
2.766 + </condition>
2.767 + </target>
2.768 + <target depends="-init-debug-args" name="-init-macrodef-debug">
2.769 + <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
2.770 + <attribute default="${main.class}" name="classname"/>
2.771 + <attribute default="${debug.classpath}" name="classpath"/>
2.772 + <element name="customize" optional="true"/>
2.773 + <sequential>
2.774 + <java classname="@{classname}" dir="${work.dir}" fork="true">
2.775 + <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
2.776 + <jvmarg line="${debug-args-line}"/>
2.777 + <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
2.778 + <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
2.779 + <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
2.780 + <jvmarg line="${run.jvmargs}"/>
2.781 + <jvmarg line="${run.jvmargs.ide}"/>
2.782 + <classpath>
2.783 + <path path="@{classpath}"/>
2.784 + </classpath>
2.785 + <syspropertyset>
2.786 + <propertyref prefix="run-sys-prop."/>
2.787 + <mapper from="run-sys-prop.*" to="*" type="glob"/>
2.788 + </syspropertyset>
2.789 + <customize/>
2.790 + </java>
2.791 + </sequential>
2.792 + </macrodef>
2.793 + </target>
2.794 + <target name="-init-macrodef-java">
2.795 + <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
2.796 + <attribute default="${main.class}" name="classname"/>
2.797 + <attribute default="${run.classpath}" name="classpath"/>
2.798 + <attribute default="jvm" name="jvm"/>
2.799 + <element name="customize" optional="true"/>
2.800 + <sequential>
2.801 + <java classname="@{classname}" dir="${work.dir}" fork="true">
2.802 + <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
2.803 + <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
2.804 + <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
2.805 + <jvmarg line="${run.jvmargs}"/>
2.806 + <jvmarg line="${run.jvmargs.ide}"/>
2.807 + <classpath>
2.808 + <path path="@{classpath}"/>
2.809 + </classpath>
2.810 + <syspropertyset>
2.811 + <propertyref prefix="run-sys-prop."/>
2.812 + <mapper from="run-sys-prop.*" to="*" type="glob"/>
2.813 + </syspropertyset>
2.814 + <customize/>
2.815 + </java>
2.816 + </sequential>
2.817 + </macrodef>
2.818 + </target>
2.819 + <target name="-init-macrodef-copylibs">
2.820 + <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">
2.821 + <attribute default="${manifest.file}" name="manifest"/>
2.822 + <element name="customize" optional="true"/>
2.823 + <sequential>
2.824 + <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
2.825 + <pathconvert property="run.classpath.without.build.classes.dir">
2.826 + <path path="${run.classpath}"/>
2.827 + <map from="${build.classes.dir.resolved}" to=""/>
2.828 + </pathconvert>
2.829 + <pathconvert pathsep=" " property="jar.classpath">
2.830 + <path path="${run.classpath.without.build.classes.dir}"/>
2.831 + <chainedmapper>
2.832 + <flattenmapper/>
2.833 + <filtermapper>
2.834 + <replacestring from=" " to="%20"/>
2.835 + </filtermapper>
2.836 + <globmapper from="*" to="lib/*"/>
2.837 + </chainedmapper>
2.838 + </pathconvert>
2.839 + <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
2.840 + <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}">
2.841 + <fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
2.842 + <manifest>
2.843 + <attribute name="Class-Path" value="${jar.classpath}"/>
2.844 + <customize/>
2.845 + </manifest>
2.846 + </copylibs>
2.847 + </sequential>
2.848 + </macrodef>
2.849 + </target>
2.850 + <target name="-init-presetdef-jar">
2.851 + <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
2.852 + <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">
2.853 + <j2seproject1:fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
2.854 + </jar>
2.855 + </presetdef>
2.856 + </target>
2.857 + <target name="-init-ap-cmdline-properties">
2.858 + <property name="annotation.processing.enabled" value="true"/>
2.859 + <property name="annotation.processing.processors.list" value=""/>
2.860 + <property name="annotation.processing.processor.options" value=""/>
2.861 + <property name="annotation.processing.run.all.processors" value="true"/>
2.862 + <property name="javac.processorpath" value="${javac.classpath}"/>
2.863 + <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
2.864 + <condition property="ap.supported.internal" value="true">
2.865 + <not>
2.866 + <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
2.867 + </not>
2.868 + </condition>
2.869 + </target>
2.870 + <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
2.871 + <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
2.872 + <isfalse value="${annotation.processing.run.all.processors}"/>
2.873 + </condition>
2.874 + <condition else="" property="ap.proc.none.internal" value="-proc:none">
2.875 + <isfalse value="${annotation.processing.enabled}"/>
2.876 + </condition>
2.877 + </target>
2.878 + <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
2.879 + <property name="ap.cmd.line.internal" value=""/>
2.880 + </target>
2.881 + <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"/>
2.882 + <!--
2.883 + ===================
2.884 + COMPILATION SECTION
2.885 + ===================
2.886 + -->
2.887 + <target name="-deps-jar-init" unless="built-jar.properties">
2.888 + <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>
2.889 + <delete file="${built-jar.properties}" quiet="true"/>
2.890 + </target>
2.891 + <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
2.892 + <echo level="warn" message="Cycle detected: alt2xml-out-xpath was already built"/>
2.893 + </target>
2.894 + <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
2.895 + <mkdir dir="${build.dir}"/>
2.896 + <touch file="${built-jar.properties}" verbose="false"/>
2.897 + <property file="${built-jar.properties}" prefix="already.built.jar."/>
2.898 + <antcall target="-warn-already-built-jar"/>
2.899 + <propertyfile file="${built-jar.properties}">
2.900 + <entry key="${basedir}" value=""/>
2.901 + </propertyfile>
2.902 + </target>
2.903 + <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
2.904 + <target depends="init" name="-check-automatic-build">
2.905 + <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
2.906 + </target>
2.907 + <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
2.908 + <antcall target="clean"/>
2.909 + </target>
2.910 + <target depends="init,deps-jar" name="-pre-pre-compile">
2.911 + <mkdir dir="${build.classes.dir}"/>
2.912 + </target>
2.913 + <target name="-pre-compile">
2.914 + <!-- Empty placeholder for easier customization. -->
2.915 + <!-- You can override this target in the ../build.xml file. -->
2.916 + </target>
2.917 + <target if="do.depend.true" name="-compile-depend">
2.918 + <pathconvert property="build.generated.subdirs">
2.919 + <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
2.920 + <include name="*"/>
2.921 + </dirset>
2.922 + </pathconvert>
2.923 + <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>
2.924 + </target>
2.925 + <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">
2.926 + <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
2.927 + <copy todir="${build.classes.dir}">
2.928 + <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
2.929 + </copy>
2.930 + </target>
2.931 + <target if="has.persistence.xml" name="-copy-persistence-xml">
2.932 + <mkdir dir="${build.classes.dir}/META-INF"/>
2.933 + <copy todir="${build.classes.dir}/META-INF">
2.934 + <fileset dir="${meta.inf.dir}" includes="persistence.xml orm.xml"/>
2.935 + </copy>
2.936 + </target>
2.937 + <target name="-post-compile">
2.938 + <!-- Empty placeholder for easier customization. -->
2.939 + <!-- You can override this target in the ../build.xml file. -->
2.940 + </target>
2.941 + <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
2.942 + <target name="-pre-compile-single">
2.943 + <!-- Empty placeholder for easier customization. -->
2.944 + <!-- You can override this target in the ../build.xml file. -->
2.945 + </target>
2.946 + <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
2.947 + <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
2.948 + <j2seproject3:force-recompile/>
2.949 + <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>
2.950 + </target>
2.951 + <target name="-post-compile-single">
2.952 + <!-- Empty placeholder for easier customization. -->
2.953 + <!-- You can override this target in the ../build.xml file. -->
2.954 + </target>
2.955 + <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
2.956 + <!--
2.957 + ====================
2.958 + JAR BUILDING SECTION
2.959 + ====================
2.960 + -->
2.961 + <target depends="init" name="-pre-pre-jar">
2.962 + <dirname file="${dist.jar}" property="dist.jar.dir"/>
2.963 + <mkdir dir="${dist.jar.dir}"/>
2.964 + </target>
2.965 + <target name="-pre-jar">
2.966 + <!-- Empty placeholder for easier customization. -->
2.967 + <!-- You can override this target in the ../build.xml file. -->
2.968 + </target>
2.969 + <target depends="init" if="do.archive" name="-do-jar-create-manifest" unless="manifest.available">
2.970 + <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
2.971 + <touch file="${tmp.manifest.file}" verbose="false"/>
2.972 + </target>
2.973 + <target depends="init" if="do.archive+manifest.available" name="-do-jar-copy-manifest">
2.974 + <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
2.975 + <copy file="${manifest.file}" tofile="${tmp.manifest.file}"/>
2.976 + </target>
2.977 + <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+main.class.available" name="-do-jar-set-mainclass">
2.978 + <manifest file="${tmp.manifest.file}" mode="update">
2.979 + <attribute name="Main-Class" value="${main.class}"/>
2.980 + </manifest>
2.981 + </target>
2.982 + <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+profile.available" name="-do-jar-set-profile">
2.983 + <manifest file="${tmp.manifest.file}" mode="update">
2.984 + <attribute name="Profile" value="${javac.profile}"/>
2.985 + </manifest>
2.986 + </target>
2.987 + <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-set-splashscreen">
2.988 + <basename file="${application.splash}" property="splashscreen.basename"/>
2.989 + <mkdir dir="${build.classes.dir}/META-INF"/>
2.990 + <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
2.991 + <manifest file="${tmp.manifest.file}" mode="update">
2.992 + <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
2.993 + </manifest>
2.994 + </target>
2.995 + <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">
2.996 + <j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
2.997 + <echo level="info">To run this application from the command line without Ant, try:</echo>
2.998 + <property location="${dist.jar}" name="dist.jar.resolved"/>
2.999 + <echo level="info">java -jar "${dist.jar.resolved}"</echo>
2.1000 + </target>
2.1001 + <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">
2.1002 + <j2seproject1:jar manifest="${tmp.manifest.file}"/>
2.1003 + <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
2.1004 + <property location="${dist.jar}" name="dist.jar.resolved"/>
2.1005 + <pathconvert property="run.classpath.with.dist.jar">
2.1006 + <path path="${run.classpath}"/>
2.1007 + <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
2.1008 + </pathconvert>
2.1009 + <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}">
2.1010 + <isset property="main.class.available"/>
2.1011 + </condition>
2.1012 + <condition else="debug" property="jar.usage.level" value="info">
2.1013 + <isset property="main.class.available"/>
2.1014 + </condition>
2.1015 + <echo level="${jar.usage.level}" message="${jar.usage.message}"/>
2.1016 + </target>
2.1017 + <target depends="-do-jar-copylibs" if="do.archive" name="-do-jar-delete-manifest">
2.1018 + <delete>
2.1019 + <fileset file="${tmp.manifest.file}"/>
2.1020 + </delete>
2.1021 + </target>
2.1022 + <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"/>
2.1023 + <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"/>
2.1024 + <target name="-post-jar">
2.1025 + <!-- Empty placeholder for easier customization. -->
2.1026 + <!-- You can override this target in the ../build.xml file. -->
2.1027 + </target>
2.1028 + <target depends="init,compile,-pre-jar,-do-jar-without-libraries,-do-jar-with-libraries,-post-jar" name="-do-jar"/>
2.1029 + <target depends="init,compile,-pre-jar,-do-jar,-post-jar" description="Build JAR." name="jar"/>
2.1030 + <!--
2.1031 + =================
2.1032 + EXECUTION SECTION
2.1033 + =================
2.1034 + -->
2.1035 + <target depends="init,compile" description="Run a main class." name="run">
2.1036 + <j2seproject1:java>
2.1037 + <customize>
2.1038 + <arg line="${application.args}"/>
2.1039 + </customize>
2.1040 + </j2seproject1:java>
2.1041 + </target>
2.1042 + <target name="-do-not-recompile">
2.1043 + <property name="javac.includes.binary" value=""/>
2.1044 + </target>
2.1045 + <target depends="init,compile-single" name="run-single">
2.1046 + <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
2.1047 + <j2seproject1:java classname="${run.class}"/>
2.1048 + </target>
2.1049 + <target depends="init,compile-test-single" name="run-test-with-main">
2.1050 + <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
2.1051 + <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
2.1052 + </target>
2.1053 + <!--
2.1054 + =================
2.1055 + DEBUGGING SECTION
2.1056 + =================
2.1057 + -->
2.1058 + <target depends="init" if="netbeans.home" name="-debug-start-debugger">
2.1059 + <j2seproject1:nbjpdastart name="${debug.class}"/>
2.1060 + </target>
2.1061 + <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
2.1062 + <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
2.1063 + </target>
2.1064 + <target depends="init,compile" name="-debug-start-debuggee">
2.1065 + <j2seproject3:debug>
2.1066 + <customize>
2.1067 + <arg line="${application.args}"/>
2.1068 + </customize>
2.1069 + </j2seproject3:debug>
2.1070 + </target>
2.1071 + <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
2.1072 + <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
2.1073 + <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
2.1074 + </target>
2.1075 + <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
2.1076 + <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
2.1077 + <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
2.1078 + <j2seproject3:debug classname="${debug.class}"/>
2.1079 + </target>
2.1080 + <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
2.1081 + <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
2.1082 + <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
2.1083 + <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
2.1084 + </target>
2.1085 + <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
2.1086 + <target depends="init" name="-pre-debug-fix">
2.1087 + <fail unless="fix.includes">Must set fix.includes</fail>
2.1088 + <property name="javac.includes" value="${fix.includes}.java"/>
2.1089 + </target>
2.1090 + <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
2.1091 + <j2seproject1:nbjpdareload/>
2.1092 + </target>
2.1093 + <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
2.1094 + <!--
2.1095 + =================
2.1096 + PROFILING SECTION
2.1097 + =================
2.1098 + -->
2.1099 + <!--
2.1100 + pre NB7.2 profiler integration
2.1101 + -->
2.1102 + <target depends="profile-init,compile" description="Profile a project in the IDE." if="profiler.info.jvmargs.agent" name="-profile-pre72">
2.1103 + <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
2.1104 + <nbprofiledirect>
2.1105 + <classpath>
2.1106 + <path path="${run.classpath}"/>
2.1107 + </classpath>
2.1108 + </nbprofiledirect>
2.1109 + <profile/>
2.1110 + </target>
2.1111 + <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="profiler.info.jvmargs.agent" name="-profile-single-pre72">
2.1112 + <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail>
2.1113 + <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
2.1114 + <nbprofiledirect>
2.1115 + <classpath>
2.1116 + <path path="${run.classpath}"/>
2.1117 + </classpath>
2.1118 + </nbprofiledirect>
2.1119 + <profile classname="${profile.class}"/>
2.1120 + </target>
2.1121 + <target depends="profile-init,compile-single" if="profiler.info.jvmargs.agent" name="-profile-applet-pre72">
2.1122 + <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
2.1123 + <nbprofiledirect>
2.1124 + <classpath>
2.1125 + <path path="${run.classpath}"/>
2.1126 + </classpath>
2.1127 + </nbprofiledirect>
2.1128 + <profile classname="sun.applet.AppletViewer">
2.1129 + <customize>
2.1130 + <arg value="${applet.url}"/>
2.1131 + </customize>
2.1132 + </profile>
2.1133 + </target>
2.1134 + <target depends="profile-init,compile-test-single" if="profiler.info.jvmargs.agent" name="-profile-test-single-pre72">
2.1135 + <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
2.1136 + <nbprofiledirect>
2.1137 + <classpath>
2.1138 + <path path="${run.test.classpath}"/>
2.1139 + </classpath>
2.1140 + </nbprofiledirect>
2.1141 + <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
2.1142 + <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
2.1143 + <jvmarg value="${profiler.info.jvmargs.agent}"/>
2.1144 + <jvmarg line="${profiler.info.jvmargs}"/>
2.1145 + <test name="${profile.class}"/>
2.1146 + <classpath>
2.1147 + <path path="${run.test.classpath}"/>
2.1148 + </classpath>
2.1149 + <syspropertyset>
2.1150 + <propertyref prefix="test-sys-prop."/>
2.1151 + <mapper from="test-sys-prop.*" to="*" type="glob"/>
2.1152 + </syspropertyset>
2.1153 + <formatter type="brief" usefile="false"/>
2.1154 + <formatter type="xml"/>
2.1155 + </junit>
2.1156 + </target>
2.1157 + <!--
2.1158 + end of pre NB72 profiling section
2.1159 + -->
2.1160 + <target if="netbeans.home" name="-profile-check">
2.1161 + <condition property="profiler.configured">
2.1162 + <or>
2.1163 + <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-agentpath:"/>
2.1164 + <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-javaagent:"/>
2.1165 + </or>
2.1166 + </condition>
2.1167 + </target>
2.1168 + <target depends="-profile-check,-profile-pre72" description="Profile a project in the IDE." if="profiler.configured" name="profile" unless="profiler.info.jvmargs.agent">
2.1169 + <startprofiler/>
2.1170 + <antcall target="run"/>
2.1171 + </target>
2.1172 + <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">
2.1173 + <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
2.1174 + <startprofiler/>
2.1175 + <antcall target="run-single"/>
2.1176 + </target>
2.1177 + <target depends="-profile-test-single-pre72" description="Profile a selected test in the IDE." name="profile-test-single"/>
2.1178 + <target depends="-profile-check" description="Profile a selected test in the IDE." if="profiler.configured" name="profile-test" unless="profiler.info.jvmargs">
2.1179 + <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
2.1180 + <startprofiler/>
2.1181 + <antcall target="test-single"/>
2.1182 + </target>
2.1183 + <target depends="-profile-check" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-test-with-main">
2.1184 + <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
2.1185 + <startprofiler/>
2.1186 + <antcal target="run-test-with-main"/>
2.1187 + </target>
2.1188 + <target depends="-profile-check,-profile-applet-pre72" if="profiler.configured" name="profile-applet" unless="profiler.info.jvmargs.agent">
2.1189 + <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
2.1190 + <startprofiler/>
2.1191 + <antcall target="run-applet"/>
2.1192 + </target>
2.1193 + <!--
2.1194 + ===============
2.1195 + JAVADOC SECTION
2.1196 + ===============
2.1197 + -->
2.1198 + <target depends="init" if="have.sources" name="-javadoc-build">
2.1199 + <mkdir dir="${dist.javadoc.dir}"/>
2.1200 + <condition else="" property="javadoc.endorsed.classpath.cmd.line.arg" value="-J${endorsed.classpath.cmd.line.arg}">
2.1201 + <and>
2.1202 + <isset property="endorsed.classpath.cmd.line.arg"/>
2.1203 + <not>
2.1204 + <equals arg1="${endorsed.classpath.cmd.line.arg}" arg2=""/>
2.1205 + </not>
2.1206 + </and>
2.1207 + </condition>
2.1208 + <condition else="" property="bug5101868workaround" value="*.java">
2.1209 + <matches pattern="1\.[56](\..*)?" string="${java.version}"/>
2.1210 + </condition>
2.1211 + <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}">
2.1212 + <classpath>
2.1213 + <path path="${javac.classpath}"/>
2.1214 + </classpath>
2.1215 + <fileset dir="${src.dir}" excludes="${bug5101868workaround},${excludes}" includes="${includes}">
2.1216 + <filename name="**/*.java"/>
2.1217 + </fileset>
2.1218 + <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
2.1219 + <include name="**/*.java"/>
2.1220 + <exclude name="*.java"/>
2.1221 + </fileset>
2.1222 + <arg line="${javadoc.endorsed.classpath.cmd.line.arg}"/>
2.1223 + </javadoc>
2.1224 + <copy todir="${dist.javadoc.dir}">
2.1225 + <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
2.1226 + <filename name="**/doc-files/**"/>
2.1227 + </fileset>
2.1228 + <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
2.1229 + <include name="**/doc-files/**"/>
2.1230 + </fileset>
2.1231 + </copy>
2.1232 + </target>
2.1233 + <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
2.1234 + <nbbrowse file="${dist.javadoc.dir}/index.html"/>
2.1235 + </target>
2.1236 + <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
2.1237 + <!--
2.1238 + =========================
2.1239 + TEST COMPILATION SECTION
2.1240 + =========================
2.1241 + -->
2.1242 + <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
2.1243 + <mkdir dir="${build.test.classes.dir}"/>
2.1244 + </target>
2.1245 + <target name="-pre-compile-test">
2.1246 + <!-- Empty placeholder for easier customization. -->
2.1247 + <!-- You can override this target in the ../build.xml file. -->
2.1248 + </target>
2.1249 + <target if="do.depend.true" name="-compile-test-depend">
2.1250 + <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
2.1251 + </target>
2.1252 + <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
2.1253 + <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}"/>
2.1254 + <copy todir="${build.test.classes.dir}">
2.1255 + <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
2.1256 + </copy>
2.1257 + </target>
2.1258 + <target name="-post-compile-test">
2.1259 + <!-- Empty placeholder for easier customization. -->
2.1260 + <!-- You can override this target in the ../build.xml file. -->
2.1261 + </target>
2.1262 + <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
2.1263 + <target name="-pre-compile-test-single">
2.1264 + <!-- Empty placeholder for easier customization. -->
2.1265 + <!-- You can override this target in the ../build.xml file. -->
2.1266 + </target>
2.1267 + <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
2.1268 + <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
2.1269 + <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
2.1270 + <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}"/>
2.1271 + <copy todir="${build.test.classes.dir}">
2.1272 + <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
2.1273 + </copy>
2.1274 + </target>
2.1275 + <target name="-post-compile-test-single">
2.1276 + <!-- Empty placeholder for easier customization. -->
2.1277 + <!-- You can override this target in the ../build.xml file. -->
2.1278 + </target>
2.1279 + <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
2.1280 + <!--
2.1281 + =======================
2.1282 + TEST EXECUTION SECTION
2.1283 + =======================
2.1284 + -->
2.1285 + <target depends="init" if="have.tests" name="-pre-test-run">
2.1286 + <mkdir dir="${build.test.results.dir}"/>
2.1287 + </target>
2.1288 + <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
2.1289 + <j2seproject3:test includes="${includes}" testincludes="**/*Test.java"/>
2.1290 + </target>
2.1291 + <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
2.1292 + <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
2.1293 + </target>
2.1294 + <target depends="init" if="have.tests" name="test-report"/>
2.1295 + <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
2.1296 + <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
2.1297 + <target depends="init" if="have.tests" name="-pre-test-run-single">
2.1298 + <mkdir dir="${build.test.results.dir}"/>
2.1299 + </target>
2.1300 + <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
2.1301 + <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
2.1302 + <j2seproject3:test excludes="" includes="${test.includes}" testincludes="${test.includes}"/>
2.1303 + </target>
2.1304 + <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
2.1305 + <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
2.1306 + </target>
2.1307 + <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"/>
2.1308 + <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single-method">
2.1309 + <fail unless="test.class">Must select some files in the IDE or set test.class</fail>
2.1310 + <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
2.1311 + <j2seproject3:test excludes="" includes="${javac.includes}" testincludes="${test.class}" testmethods="${test.method}"/>
2.1312 + </target>
2.1313 + <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method" if="have.tests" name="-post-test-run-single-method">
2.1314 + <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
2.1315 + </target>
2.1316 + <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"/>
2.1317 + <!--
2.1318 + =======================
2.1319 + TEST DEBUGGING SECTION
2.1320 + =======================
2.1321 + -->
2.1322 + <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test">
2.1323 + <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
2.1324 + <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testincludes="${javac.includes}"/>
2.1325 + </target>
2.1326 + <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test-method">
2.1327 + <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
2.1328 + <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
2.1329 + <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testMethod="${test.method}" testincludes="${test.class}" testmethods="${test.method}"/>
2.1330 + </target>
2.1331 + <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
2.1332 + <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
2.1333 + </target>
2.1334 + <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
2.1335 + <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test-method" name="debug-test-method"/>
2.1336 + <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
2.1337 + <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
2.1338 + </target>
2.1339 + <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
2.1340 + <!--
2.1341 + =========================
2.1342 + APPLET EXECUTION SECTION
2.1343 + =========================
2.1344 + -->
2.1345 + <target depends="init,compile-single" name="run-applet">
2.1346 + <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
2.1347 + <j2seproject1:java classname="sun.applet.AppletViewer">
2.1348 + <customize>
2.1349 + <arg value="${applet.url}"/>
2.1350 + </customize>
2.1351 + </j2seproject1:java>
2.1352 + </target>
2.1353 + <!--
2.1354 + =========================
2.1355 + APPLET DEBUGGING SECTION
2.1356 + =========================
2.1357 + -->
2.1358 + <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
2.1359 + <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
2.1360 + <j2seproject3:debug classname="sun.applet.AppletViewer">
2.1361 + <customize>
2.1362 + <arg value="${applet.url}"/>
2.1363 + </customize>
2.1364 + </j2seproject3:debug>
2.1365 + </target>
2.1366 + <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
2.1367 + <!--
2.1368 + ===============
2.1369 + CLEANUP SECTION
2.1370 + ===============
2.1371 + -->
2.1372 + <target name="-deps-clean-init" unless="built-clean.properties">
2.1373 + <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>
2.1374 + <delete file="${built-clean.properties}" quiet="true"/>
2.1375 + </target>
2.1376 + <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
2.1377 + <echo level="warn" message="Cycle detected: alt2xml-out-xpath was already built"/>
2.1378 + </target>
2.1379 + <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
2.1380 + <mkdir dir="${build.dir}"/>
2.1381 + <touch file="${built-clean.properties}" verbose="false"/>
2.1382 + <property file="${built-clean.properties}" prefix="already.built.clean."/>
2.1383 + <antcall target="-warn-already-built-clean"/>
2.1384 + <propertyfile file="${built-clean.properties}">
2.1385 + <entry key="${basedir}" value=""/>
2.1386 + </propertyfile>
2.1387 + </target>
2.1388 + <target depends="init" name="-do-clean">
2.1389 + <delete dir="${build.dir}"/>
2.1390 + <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
2.1391 + </target>
2.1392 + <target name="-post-clean">
2.1393 + <!-- Empty placeholder for easier customization. -->
2.1394 + <!-- You can override this target in the ../build.xml file. -->
2.1395 + </target>
2.1396 + <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
2.1397 + <target name="-check-call-dep">
2.1398 + <property file="${call.built.properties}" prefix="already.built."/>
2.1399 + <condition property="should.call.dep">
2.1400 + <and>
2.1401 + <not>
2.1402 + <isset property="already.built.${call.subproject}"/>
2.1403 + </not>
2.1404 + <available file="${call.script}"/>
2.1405 + </and>
2.1406 + </condition>
2.1407 + </target>
2.1408 + <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
2.1409 + <ant antfile="${call.script}" inheritall="false" target="${call.target}">
2.1410 + <propertyset>
2.1411 + <propertyref prefix="transfer."/>
2.1412 + <mapper from="transfer.*" to="*" type="glob"/>
2.1413 + </propertyset>
2.1414 + </ant>
2.1415 + </target>
2.1416 +</project>
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
3.2 +++ b/java/alt2xml-out-xpath/nbproject/genfiles.properties Mon Jun 16 21:22:34 2014 +0200
3.3 @@ -0,0 +1,8 @@
3.4 +build.xml.data.CRC32=551ec7ee
3.5 +build.xml.script.CRC32=a84b87c3
3.6 +build.xml.stylesheet.CRC32=8064a381@1.74.2.48
3.7 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
3.8 +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
3.9 +nbproject/build-impl.xml.data.CRC32=551ec7ee
3.10 +nbproject/build-impl.xml.script.CRC32=5b5733f2
3.11 +nbproject/build-impl.xml.stylesheet.CRC32=876e7a8f@1.74.2.48
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
4.2 +++ b/java/alt2xml-out-xpath/nbproject/project.properties Mon Jun 16 21:22:34 2014 +0200
4.3 @@ -0,0 +1,71 @@
4.4 +annotation.processing.enabled=true
4.5 +annotation.processing.enabled.in.editor=false
4.6 +annotation.processing.processor.options=
4.7 +annotation.processing.processors.list=
4.8 +annotation.processing.run.all.processors=true
4.9 +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
4.10 +build.classes.dir=${build.dir}/classes
4.11 +build.classes.excludes=**/*.java,**/*.form
4.12 +# This directory is removed when the project is cleaned:
4.13 +build.dir=build
4.14 +build.generated.dir=${build.dir}/generated
4.15 +build.generated.sources.dir=${build.dir}/generated-sources
4.16 +# Only compile against the classpath explicitly listed here:
4.17 +build.sysclasspath=ignore
4.18 +build.test.classes.dir=${build.dir}/test/classes
4.19 +build.test.results.dir=${build.dir}/test/results
4.20 +# Uncomment to specify the preferred debugger connection transport:
4.21 +#debug.transport=dt_socket
4.22 +debug.classpath=\
4.23 + ${run.classpath}
4.24 +debug.test.classpath=\
4.25 + ${run.test.classpath}
4.26 +# Files in build.classes.dir which should be excluded from distribution jar
4.27 +dist.archive.excludes=
4.28 +# This directory is removed when the project is cleaned:
4.29 +dist.dir=dist
4.30 +dist.jar=${dist.dir}/alt2xml-out-xpath.jar
4.31 +dist.javadoc.dir=${dist.dir}/javadoc
4.32 +excludes=
4.33 +includes=**
4.34 +jar.compress=false
4.35 +javac.classpath=
4.36 +# Space-separated list of extra javac options
4.37 +javac.compilerargs=
4.38 +javac.deprecation=false
4.39 +javac.processorpath=\
4.40 + ${javac.classpath}
4.41 +javac.source=1.7
4.42 +javac.target=1.7
4.43 +javac.test.classpath=\
4.44 + ${javac.classpath}:\
4.45 + ${build.classes.dir}
4.46 +javac.test.processorpath=\
4.47 + ${javac.test.classpath}
4.48 +javadoc.additionalparam=
4.49 +javadoc.author=false
4.50 +javadoc.encoding=${source.encoding}
4.51 +javadoc.noindex=false
4.52 +javadoc.nonavbar=false
4.53 +javadoc.notree=false
4.54 +javadoc.private=false
4.55 +javadoc.splitindex=true
4.56 +javadoc.use=true
4.57 +javadoc.version=false
4.58 +javadoc.windowtitle=
4.59 +meta.inf.dir=${src.dir}/META-INF
4.60 +mkdist.disabled=true
4.61 +platform.active=default_platform
4.62 +run.classpath=\
4.63 + ${javac.classpath}:\
4.64 + ${build.classes.dir}
4.65 +# Space-separated list of JVM arguments used when running the project.
4.66 +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value.
4.67 +# To set system properties for unit tests define test-sys-prop.name=value:
4.68 +run.jvmargs=
4.69 +run.test.classpath=\
4.70 + ${javac.test.classpath}:\
4.71 + ${build.test.classes.dir}
4.72 +source.encoding=UTF-8
4.73 +src.dir=src
4.74 +test.src.dir=test
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
5.2 +++ b/java/alt2xml-out-xpath/nbproject/project.xml Mon Jun 16 21:22:34 2014 +0200
5.3 @@ -0,0 +1,15 @@
5.4 +<?xml version="1.0" encoding="UTF-8"?>
5.5 +<project xmlns="http://www.netbeans.org/ns/project/1">
5.6 + <type>org.netbeans.modules.java.j2seproject</type>
5.7 + <configuration>
5.8 + <data xmlns="http://www.netbeans.org/ns/j2se-project/3">
5.9 + <name>alt2xml-out-xpath</name>
5.10 + <source-roots>
5.11 + <root id="src.dir"/>
5.12 + </source-roots>
5.13 + <test-roots>
5.14 + <root id="test.src.dir"/>
5.15 + </test-roots>
5.16 + </data>
5.17 + </configuration>
5.18 +</project>