alt2xml-in-properties – základ
authorFrantišek Kučera <franta-hg@frantovo.cz>
Sat, 07 Jun 2014 11:25:27 +0200
changeset 183f90b37898f6
parent 17 64358dd0999f
child 19 a58dce1054af
alt2xml-in-properties – základ
.hgignore
java/alt2xml-cli/src/cz/frantovo/alt2xml/cli/CLI.java
java/alt2xml-in-properties/build.xml
java/alt2xml-in-properties/config/META-INF/services/cz.frantovo.alt2xml.Alt2XmlReaderFactory
java/alt2xml-in-properties/nbproject/build-impl.xml
java/alt2xml-in-properties/nbproject/genfiles.properties
java/alt2xml-in-properties/nbproject/project.properties
java/alt2xml-in-properties/nbproject/project.xml
java/alt2xml-in-properties/src/cz/frantovo/alt2xml/in/properties/Reader.java
java/alt2xml-in-properties/src/cz/frantovo/alt2xml/in/properties/ReaderFactory.java
     1.1 --- a/.hgignore	Sat Jun 07 11:23:58 2014 +0200
     1.2 +++ b/.hgignore	Sat Jun 07 11:25:27 2014 +0200
     1.3 @@ -10,5 +10,8 @@
     1.4  java/alt2xml-in-json/build/*
     1.5  java/alt2xml-in-json/nbproject/private/*
     1.6  
     1.7 +java/alt2xml-in-properties/dist/*
     1.8 +java/alt2xml-in-properties/build/*
     1.9 +java/alt2xml-in-properties/nbproject/private/*
    1.10  
    1.11  temp/*
     2.1 --- a/java/alt2xml-cli/src/cz/frantovo/alt2xml/cli/CLI.java	Sat Jun 07 11:23:58 2014 +0200
     2.2 +++ b/java/alt2xml-cli/src/cz/frantovo/alt2xml/cli/CLI.java	Sat Jun 07 11:25:27 2014 +0200
     2.3 @@ -57,5 +57,7 @@
     2.4  		SAXParserFactory t = SAXParserFactory.newInstance(ParserFactory.class.getName(), null);
     2.5  		SAXParser p = t.newSAXParser();
     2.6  		p.parse(vstup, h);
     2.7 +		
     2.8 +		
     2.9  	}
    2.10  }
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/java/alt2xml-in-properties/build.xml	Sat Jun 07 11:25:27 2014 +0200
     3.3 @@ -0,0 +1,73 @@
     3.4 +<?xml version="1.0" encoding="UTF-8"?>
     3.5 +<!-- You may freely edit this file. See commented blocks below for -->
     3.6 +<!-- some examples of how to customize the build. -->
     3.7 +<!-- (If you delete it and reopen the project it will be recreated.) -->
     3.8 +<!-- By default, only the Clean and Build commands use this build script. -->
     3.9 +<!-- Commands such as Run, Debug, and Test only use this build script if -->
    3.10 +<!-- the Compile on Save feature is turned off for the project. -->
    3.11 +<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
    3.12 +<!-- in the project's Project Properties dialog box.-->
    3.13 +<project name="alt2xml-in-properties" default="default" basedir=".">
    3.14 +    <description>Builds, tests, and runs the project alt2xml-in-properties.</description>
    3.15 +    <import file="nbproject/build-impl.xml"/>
    3.16 +    <!--
    3.17 +
    3.18 +    There exist several targets which are by default empty and which can be 
    3.19 +    used for execution of your tasks. These targets are usually executed 
    3.20 +    before and after some main targets. They are: 
    3.21 +
    3.22 +      -pre-init:                 called before initialization of project properties
    3.23 +      -post-init:                called after initialization of project properties
    3.24 +      -pre-compile:              called before javac compilation
    3.25 +      -post-compile:             called after javac compilation
    3.26 +      -pre-compile-single:       called before javac compilation of single file
    3.27 +      -post-compile-single:      called after javac compilation of single file
    3.28 +      -pre-compile-test:         called before javac compilation of JUnit tests
    3.29 +      -post-compile-test:        called after javac compilation of JUnit tests
    3.30 +      -pre-compile-test-single:  called before javac compilation of single JUnit test
    3.31 +      -post-compile-test-single: called after javac compilation of single JUunit test
    3.32 +      -pre-jar:                  called before JAR building
    3.33 +      -post-jar:                 called after JAR building
    3.34 +      -post-clean:               called after cleaning build products
    3.35 +
    3.36 +    (Targets beginning with '-' are not intended to be called on their own.)
    3.37 +
    3.38 +    Example of inserting an obfuscator after compilation could look like this:
    3.39 +
    3.40 +        <target name="-post-compile">
    3.41 +            <obfuscate>
    3.42 +                <fileset dir="${build.classes.dir}"/>
    3.43 +            </obfuscate>
    3.44 +        </target>
    3.45 +
    3.46 +    For list of available properties check the imported 
    3.47 +    nbproject/build-impl.xml file. 
    3.48 +
    3.49 +
    3.50 +    Another way to customize the build is by overriding existing main targets.
    3.51 +    The targets of interest are: 
    3.52 +
    3.53 +      -init-macrodef-javac:     defines macro for javac compilation
    3.54 +      -init-macrodef-junit:     defines macro for junit execution
    3.55 +      -init-macrodef-debug:     defines macro for class debugging
    3.56 +      -init-macrodef-java:      defines macro for class execution
    3.57 +      -do-jar:                  JAR building
    3.58 +      run:                      execution of project 
    3.59 +      -javadoc-build:           Javadoc generation
    3.60 +      test-report:              JUnit report generation
    3.61 +
    3.62 +    An example of overriding the target for project execution could look like this:
    3.63 +
    3.64 +        <target name="run" depends="alt2xml-in-properties-impl.jar">
    3.65 +            <exec dir="bin" executable="launcher.exe">
    3.66 +                <arg file="${dist.jar}"/>
    3.67 +            </exec>
    3.68 +        </target>
    3.69 +
    3.70 +    Notice that the overridden target depends on the jar target and not only on 
    3.71 +    the compile target as the regular run target does. Again, for a list of available 
    3.72 +    properties which you can use, check the target you are overriding in the
    3.73 +    nbproject/build-impl.xml file. 
    3.74 +
    3.75 +    -->
    3.76 +</project>
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/java/alt2xml-in-properties/config/META-INF/services/cz.frantovo.alt2xml.Alt2XmlReaderFactory	Sat Jun 07 11:25:27 2014 +0200
     4.3 @@ -0,0 +1,1 @@
     4.4 +cz.frantovo.alt2xml.in.properties.ReaderFactory
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/java/alt2xml-in-properties/nbproject/build-impl.xml	Sat Jun 07 11:25:27 2014 +0200
     5.3 @@ -0,0 +1,1438 @@
     5.4 +<?xml version="1.0" encoding="UTF-8"?>
     5.5 +<!--
     5.6 +*** GENERATED FROM project.xml - DO NOT EDIT  ***
     5.7 +***         EDIT ../build.xml INSTEAD         ***
     5.8 +
     5.9 +For the purpose of easier reading the script
    5.10 +is divided into following sections:
    5.11 +
    5.12 +  - initialization
    5.13 +  - compilation
    5.14 +  - jar
    5.15 +  - execution
    5.16 +  - debugging
    5.17 +  - javadoc
    5.18 +  - test compilation
    5.19 +  - test execution
    5.20 +  - test debugging
    5.21 +  - applet
    5.22 +  - cleanup
    5.23 +
    5.24 +        -->
    5.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-in-properties-impl">
    5.26 +    <fail message="Please build using Ant 1.8.0 or higher.">
    5.27 +        <condition>
    5.28 +            <not>
    5.29 +                <antversion atleast="1.8.0"/>
    5.30 +            </not>
    5.31 +        </condition>
    5.32 +    </fail>
    5.33 +    <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
    5.34 +    <!-- 
    5.35 +                ======================
    5.36 +                INITIALIZATION SECTION 
    5.37 +                ======================
    5.38 +            -->
    5.39 +    <target name="-pre-init">
    5.40 +        <!-- Empty placeholder for easier customization. -->
    5.41 +        <!-- You can override this target in the ../build.xml file. -->
    5.42 +    </target>
    5.43 +    <target depends="-pre-init" name="-init-private">
    5.44 +        <property file="nbproject/private/config.properties"/>
    5.45 +        <property file="nbproject/private/configs/${config}.properties"/>
    5.46 +        <property file="nbproject/private/private.properties"/>
    5.47 +    </target>
    5.48 +    <target depends="-pre-init,-init-private" name="-init-user">
    5.49 +        <property file="${user.properties.file}"/>
    5.50 +        <!-- The two properties below are usually overridden -->
    5.51 +        <!-- by the active platform. Just a fallback. -->
    5.52 +        <property name="default.javac.source" value="1.4"/>
    5.53 +        <property name="default.javac.target" value="1.4"/>
    5.54 +    </target>
    5.55 +    <target depends="-pre-init,-init-private,-init-user" name="-init-project">
    5.56 +        <property file="nbproject/configs/${config}.properties"/>
    5.57 +        <property file="nbproject/project.properties"/>
    5.58 +    </target>
    5.59 +    <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
    5.60 +        <property name="platform.java" value="${java.home}/bin/java"/>
    5.61 +        <available file="${manifest.file}" property="manifest.available"/>
    5.62 +        <condition property="splashscreen.available">
    5.63 +            <and>
    5.64 +                <not>
    5.65 +                    <equals arg1="${application.splash}" arg2="" trim="true"/>
    5.66 +                </not>
    5.67 +                <available file="${application.splash}"/>
    5.68 +            </and>
    5.69 +        </condition>
    5.70 +        <condition property="main.class.available">
    5.71 +            <and>
    5.72 +                <isset property="main.class"/>
    5.73 +                <not>
    5.74 +                    <equals arg1="${main.class}" arg2="" trim="true"/>
    5.75 +                </not>
    5.76 +            </and>
    5.77 +        </condition>
    5.78 +        <condition property="profile.available">
    5.79 +            <and>
    5.80 +                <isset property="javac.profile"/>
    5.81 +                <length length="0" string="${javac.profile}" when="greater"/>
    5.82 +                <matches pattern="1\.[89](\..*)?" string="${javac.source}"/>
    5.83 +            </and>
    5.84 +        </condition>
    5.85 +        <condition property="do.archive">
    5.86 +            <or>
    5.87 +                <not>
    5.88 +                    <istrue value="${jar.archive.disabled}"/>
    5.89 +                </not>
    5.90 +                <istrue value="${not.archive.disabled}"/>
    5.91 +            </or>
    5.92 +        </condition>
    5.93 +        <condition property="do.mkdist">
    5.94 +            <and>
    5.95 +                <isset property="do.archive"/>
    5.96 +                <isset property="libs.CopyLibs.classpath"/>
    5.97 +                <not>
    5.98 +                    <istrue value="${mkdist.disabled}"/>
    5.99 +                </not>
   5.100 +            </and>
   5.101 +        </condition>
   5.102 +        <condition property="do.archive+manifest.available">
   5.103 +            <and>
   5.104 +                <isset property="manifest.available"/>
   5.105 +                <istrue value="${do.archive}"/>
   5.106 +            </and>
   5.107 +        </condition>
   5.108 +        <condition property="do.archive+main.class.available">
   5.109 +            <and>
   5.110 +                <isset property="main.class.available"/>
   5.111 +                <istrue value="${do.archive}"/>
   5.112 +            </and>
   5.113 +        </condition>
   5.114 +        <condition property="do.archive+splashscreen.available">
   5.115 +            <and>
   5.116 +                <isset property="splashscreen.available"/>
   5.117 +                <istrue value="${do.archive}"/>
   5.118 +            </and>
   5.119 +        </condition>
   5.120 +        <condition property="do.archive+profile.available">
   5.121 +            <and>
   5.122 +                <isset property="profile.available"/>
   5.123 +                <istrue value="${do.archive}"/>
   5.124 +            </and>
   5.125 +        </condition>
   5.126 +        <condition property="have.tests">
   5.127 +            <or>
   5.128 +                <available file="${test.src.dir}"/>
   5.129 +            </or>
   5.130 +        </condition>
   5.131 +        <condition property="have.sources">
   5.132 +            <or>
   5.133 +                <available file="${src.dir}"/>
   5.134 +                <available file="${src.config.dir}"/>
   5.135 +            </or>
   5.136 +        </condition>
   5.137 +        <condition property="netbeans.home+have.tests">
   5.138 +            <and>
   5.139 +                <isset property="netbeans.home"/>
   5.140 +                <isset property="have.tests"/>
   5.141 +            </and>
   5.142 +        </condition>
   5.143 +        <condition property="no.javadoc.preview">
   5.144 +            <and>
   5.145 +                <isset property="javadoc.preview"/>
   5.146 +                <isfalse value="${javadoc.preview}"/>
   5.147 +            </and>
   5.148 +        </condition>
   5.149 +        <property name="run.jvmargs" value=""/>
   5.150 +        <property name="run.jvmargs.ide" value=""/>
   5.151 +        <property name="javac.compilerargs" value=""/>
   5.152 +        <property name="work.dir" value="${basedir}"/>
   5.153 +        <condition property="no.deps">
   5.154 +            <and>
   5.155 +                <istrue value="${no.dependencies}"/>
   5.156 +            </and>
   5.157 +        </condition>
   5.158 +        <property name="javac.debug" value="true"/>
   5.159 +        <property name="javadoc.preview" value="true"/>
   5.160 +        <property name="application.args" value=""/>
   5.161 +        <property name="source.encoding" value="${file.encoding}"/>
   5.162 +        <property name="runtime.encoding" value="${source.encoding}"/>
   5.163 +        <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
   5.164 +            <and>
   5.165 +                <isset property="javadoc.encoding"/>
   5.166 +                <not>
   5.167 +                    <equals arg1="${javadoc.encoding}" arg2=""/>
   5.168 +                </not>
   5.169 +            </and>
   5.170 +        </condition>
   5.171 +        <property name="javadoc.encoding.used" value="${source.encoding}"/>
   5.172 +        <property name="includes" value="**"/>
   5.173 +        <property name="excludes" value=""/>
   5.174 +        <property name="do.depend" value="false"/>
   5.175 +        <condition property="do.depend.true">
   5.176 +            <istrue value="${do.depend}"/>
   5.177 +        </condition>
   5.178 +        <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
   5.179 +        <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
   5.180 +            <and>
   5.181 +                <isset property="endorsed.classpath"/>
   5.182 +                <not>
   5.183 +                    <equals arg1="${endorsed.classpath}" arg2="" trim="true"/>
   5.184 +                </not>
   5.185 +            </and>
   5.186 +        </condition>
   5.187 +        <condition else="" property="javac.profile.cmd.line.arg" value="-profile ${javac.profile}">
   5.188 +            <isset property="profile.available"/>
   5.189 +        </condition>
   5.190 +        <condition else="false" property="jdkBug6558476">
   5.191 +            <and>
   5.192 +                <matches pattern="1\.[56]" string="${java.specification.version}"/>
   5.193 +                <not>
   5.194 +                    <os family="unix"/>
   5.195 +                </not>
   5.196 +            </and>
   5.197 +        </condition>
   5.198 +        <property name="javac.fork" value="${jdkBug6558476}"/>
   5.199 +        <property name="jar.index" value="false"/>
   5.200 +        <property name="jar.index.metainf" value="${jar.index}"/>
   5.201 +        <property name="copylibs.rebase" value="true"/>
   5.202 +        <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
   5.203 +        <condition property="junit.available">
   5.204 +            <or>
   5.205 +                <available classname="org.junit.Test" classpath="${run.test.classpath}"/>
   5.206 +                <available classname="junit.framework.Test" classpath="${run.test.classpath}"/>
   5.207 +            </or>
   5.208 +        </condition>
   5.209 +        <condition property="testng.available">
   5.210 +            <available classname="org.testng.annotations.Test" classpath="${run.test.classpath}"/>
   5.211 +        </condition>
   5.212 +        <condition property="junit+testng.available">
   5.213 +            <and>
   5.214 +                <istrue value="${junit.available}"/>
   5.215 +                <istrue value="${testng.available}"/>
   5.216 +            </and>
   5.217 +        </condition>
   5.218 +        <condition else="testng" property="testng.mode" value="mixed">
   5.219 +            <istrue value="${junit+testng.available}"/>
   5.220 +        </condition>
   5.221 +        <condition else="" property="testng.debug.mode" value="-mixed">
   5.222 +            <istrue value="${junit+testng.available}"/>
   5.223 +        </condition>
   5.224 +    </target>
   5.225 +    <target name="-post-init">
   5.226 +        <!-- Empty placeholder for easier customization. -->
   5.227 +        <!-- You can override this target in the ../build.xml file. -->
   5.228 +    </target>
   5.229 +    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
   5.230 +        <fail unless="src.dir">Must set src.dir</fail>
   5.231 +        <fail unless="src.config.dir">Must set src.config.dir</fail>
   5.232 +        <fail unless="test.src.dir">Must set test.src.dir</fail>
   5.233 +        <fail unless="build.dir">Must set build.dir</fail>
   5.234 +        <fail unless="dist.dir">Must set dist.dir</fail>
   5.235 +        <fail unless="build.classes.dir">Must set build.classes.dir</fail>
   5.236 +        <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
   5.237 +        <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
   5.238 +        <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
   5.239 +        <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
   5.240 +        <fail unless="dist.jar">Must set dist.jar</fail>
   5.241 +    </target>
   5.242 +    <target name="-init-macrodef-property">
   5.243 +        <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
   5.244 +            <attribute name="name"/>
   5.245 +            <attribute name="value"/>
   5.246 +            <sequential>
   5.247 +                <property name="@{name}" value="${@{value}}"/>
   5.248 +            </sequential>
   5.249 +        </macrodef>
   5.250 +    </target>
   5.251 +    <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
   5.252 +        <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
   5.253 +            <attribute default="${src.dir}:${src.config.dir}" name="srcdir"/>
   5.254 +            <attribute default="${build.classes.dir}" name="destdir"/>
   5.255 +            <attribute default="${javac.classpath}" name="classpath"/>
   5.256 +            <attribute default="${javac.processorpath}" name="processorpath"/>
   5.257 +            <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
   5.258 +            <attribute default="${includes}" name="includes"/>
   5.259 +            <attribute default="${excludes}" name="excludes"/>
   5.260 +            <attribute default="${javac.debug}" name="debug"/>
   5.261 +            <attribute default="${empty.dir}" name="sourcepath"/>
   5.262 +            <attribute default="${empty.dir}" name="gensrcdir"/>
   5.263 +            <element name="customize" optional="true"/>
   5.264 +            <sequential>
   5.265 +                <property location="${build.dir}/empty" name="empty.dir"/>
   5.266 +                <mkdir dir="${empty.dir}"/>
   5.267 +                <mkdir dir="@{apgeneratedsrcdir}"/>
   5.268 +                <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}">
   5.269 +                    <src>
   5.270 +                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
   5.271 +                            <include name="*"/>
   5.272 +                        </dirset>
   5.273 +                    </src>
   5.274 +                    <classpath>
   5.275 +                        <path path="@{classpath}"/>
   5.276 +                    </classpath>
   5.277 +                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
   5.278 +                    <compilerarg line="${javac.profile.cmd.line.arg}"/>
   5.279 +                    <compilerarg line="${javac.compilerargs}"/>
   5.280 +                    <compilerarg value="-processorpath"/>
   5.281 +                    <compilerarg path="@{processorpath}:${empty.dir}"/>
   5.282 +                    <compilerarg line="${ap.processors.internal}"/>
   5.283 +                    <compilerarg line="${annotation.processing.processor.options}"/>
   5.284 +                    <compilerarg value="-s"/>
   5.285 +                    <compilerarg path="@{apgeneratedsrcdir}"/>
   5.286 +                    <compilerarg line="${ap.proc.none.internal}"/>
   5.287 +                    <customize/>
   5.288 +                </javac>
   5.289 +            </sequential>
   5.290 +        </macrodef>
   5.291 +    </target>
   5.292 +    <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
   5.293 +        <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
   5.294 +            <attribute default="${src.dir}:${src.config.dir}" name="srcdir"/>
   5.295 +            <attribute default="${build.classes.dir}" name="destdir"/>
   5.296 +            <attribute default="${javac.classpath}" name="classpath"/>
   5.297 +            <attribute default="${javac.processorpath}" name="processorpath"/>
   5.298 +            <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
   5.299 +            <attribute default="${includes}" name="includes"/>
   5.300 +            <attribute default="${excludes}" name="excludes"/>
   5.301 +            <attribute default="${javac.debug}" name="debug"/>
   5.302 +            <attribute default="${empty.dir}" name="sourcepath"/>
   5.303 +            <attribute default="${empty.dir}" name="gensrcdir"/>
   5.304 +            <element name="customize" optional="true"/>
   5.305 +            <sequential>
   5.306 +                <property location="${build.dir}/empty" name="empty.dir"/>
   5.307 +                <mkdir dir="${empty.dir}"/>
   5.308 +                <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}">
   5.309 +                    <src>
   5.310 +                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
   5.311 +                            <include name="*"/>
   5.312 +                        </dirset>
   5.313 +                    </src>
   5.314 +                    <classpath>
   5.315 +                        <path path="@{classpath}"/>
   5.316 +                    </classpath>
   5.317 +                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
   5.318 +                    <compilerarg line="${javac.profile.cmd.line.arg}"/>
   5.319 +                    <compilerarg line="${javac.compilerargs}"/>
   5.320 +                    <customize/>
   5.321 +                </javac>
   5.322 +            </sequential>
   5.323 +        </macrodef>
   5.324 +    </target>
   5.325 +    <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
   5.326 +        <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
   5.327 +            <attribute default="${src.dir}:${src.config.dir}" name="srcdir"/>
   5.328 +            <attribute default="${build.classes.dir}" name="destdir"/>
   5.329 +            <attribute default="${javac.classpath}" name="classpath"/>
   5.330 +            <sequential>
   5.331 +                <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
   5.332 +                    <classpath>
   5.333 +                        <path path="@{classpath}"/>
   5.334 +                    </classpath>
   5.335 +                </depend>
   5.336 +            </sequential>
   5.337 +        </macrodef>
   5.338 +        <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
   5.339 +            <attribute default="${build.classes.dir}" name="destdir"/>
   5.340 +            <sequential>
   5.341 +                <fail unless="javac.includes">Must set javac.includes</fail>
   5.342 +                <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
   5.343 +                    <path>
   5.344 +                        <filelist dir="@{destdir}" files="${javac.includes}"/>
   5.345 +                    </path>
   5.346 +                    <globmapper from="*.java" to="*.class"/>
   5.347 +                </pathconvert>
   5.348 +                <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
   5.349 +                <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
   5.350 +                <delete>
   5.351 +                    <files includesfile="${javac.includesfile.binary}"/>
   5.352 +                </delete>
   5.353 +                <delete>
   5.354 +                    <fileset file="${javac.includesfile.binary}"/>
   5.355 +                </delete>
   5.356 +            </sequential>
   5.357 +        </macrodef>
   5.358 +    </target>
   5.359 +    <target if="${junit.available}" name="-init-macrodef-junit-init">
   5.360 +        <condition else="false" property="nb.junit.batch" value="true">
   5.361 +            <and>
   5.362 +                <istrue value="${junit.available}"/>
   5.363 +                <not>
   5.364 +                    <isset property="test.method"/>
   5.365 +                </not>
   5.366 +            </and>
   5.367 +        </condition>
   5.368 +        <condition else="false" property="nb.junit.single" value="true">
   5.369 +            <and>
   5.370 +                <istrue value="${junit.available}"/>
   5.371 +                <isset property="test.method"/>
   5.372 +            </and>
   5.373 +        </condition>
   5.374 +    </target>
   5.375 +    <target name="-init-test-properties">
   5.376 +        <property name="test.binaryincludes" value="&lt;nothing&gt;"/>
   5.377 +        <property name="test.binarytestincludes" value=""/>
   5.378 +        <property name="test.binaryexcludes" value=""/>
   5.379 +    </target>
   5.380 +    <target if="${nb.junit.single}" name="-init-macrodef-junit-single" unless="${nb.junit.batch}">
   5.381 +        <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
   5.382 +            <attribute default="${includes}" name="includes"/>
   5.383 +            <attribute default="${excludes}" name="excludes"/>
   5.384 +            <attribute default="**" name="testincludes"/>
   5.385 +            <attribute default="" name="testmethods"/>
   5.386 +            <element name="customize" optional="true"/>
   5.387 +            <sequential>
   5.388 +                <property name="junit.forkmode" value="perTest"/>
   5.389 +                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
   5.390 +                    <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
   5.391 +                    <syspropertyset>
   5.392 +                        <propertyref prefix="test-sys-prop."/>
   5.393 +                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
   5.394 +                    </syspropertyset>
   5.395 +                    <formatter type="brief" usefile="false"/>
   5.396 +                    <formatter type="xml"/>
   5.397 +                    <jvmarg value="-ea"/>
   5.398 +                    <customize/>
   5.399 +                </junit>
   5.400 +            </sequential>
   5.401 +        </macrodef>
   5.402 +    </target>
   5.403 +    <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-batch" unless="${nb.junit.single}">
   5.404 +        <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
   5.405 +            <attribute default="${includes}" name="includes"/>
   5.406 +            <attribute default="${excludes}" name="excludes"/>
   5.407 +            <attribute default="**" name="testincludes"/>
   5.408 +            <attribute default="" name="testmethods"/>
   5.409 +            <element name="customize" optional="true"/>
   5.410 +            <sequential>
   5.411 +                <property name="junit.forkmode" value="perTest"/>
   5.412 +                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
   5.413 +                    <batchtest todir="${build.test.results.dir}">
   5.414 +                        <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
   5.415 +                            <filename name="@{testincludes}"/>
   5.416 +                        </fileset>
   5.417 +                        <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
   5.418 +                            <filename name="${test.binarytestincludes}"/>
   5.419 +                        </fileset>
   5.420 +                    </batchtest>
   5.421 +                    <syspropertyset>
   5.422 +                        <propertyref prefix="test-sys-prop."/>
   5.423 +                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
   5.424 +                    </syspropertyset>
   5.425 +                    <formatter type="brief" usefile="false"/>
   5.426 +                    <formatter type="xml"/>
   5.427 +                    <jvmarg value="-ea"/>
   5.428 +                    <customize/>
   5.429 +                </junit>
   5.430 +            </sequential>
   5.431 +        </macrodef>
   5.432 +    </target>
   5.433 +    <target depends="-init-macrodef-junit-init,-init-macrodef-junit-single, -init-macrodef-junit-batch" if="${junit.available}" name="-init-macrodef-junit"/>
   5.434 +    <target if="${testng.available}" name="-init-macrodef-testng">
   5.435 +        <macrodef name="testng" uri="http://www.netbeans.org/ns/j2se-project/3">
   5.436 +            <attribute default="${includes}" name="includes"/>
   5.437 +            <attribute default="${excludes}" name="excludes"/>
   5.438 +            <attribute default="**" name="testincludes"/>
   5.439 +            <attribute default="" name="testmethods"/>
   5.440 +            <element name="customize" optional="true"/>
   5.441 +            <sequential>
   5.442 +                <condition else="" property="testng.methods.arg" value="@{testincludes}.@{testmethods}">
   5.443 +                    <isset property="test.method"/>
   5.444 +                </condition>
   5.445 +                <union id="test.set">
   5.446 +                    <fileset dir="${test.src.dir}" excludes="@{excludes},**/*.xml,${excludes}" includes="@{includes}">
   5.447 +                        <filename name="@{testincludes}"/>
   5.448 +                    </fileset>
   5.449 +                </union>
   5.450 +                <taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
   5.451 +                <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-in-properties" testname="TestNG tests" workingDir="${work.dir}">
   5.452 +                    <xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
   5.453 +                    <propertyset>
   5.454 +                        <propertyref prefix="test-sys-prop."/>
   5.455 +                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
   5.456 +                    </propertyset>
   5.457 +                    <customize/>
   5.458 +                </testng>
   5.459 +            </sequential>
   5.460 +        </macrodef>
   5.461 +    </target>
   5.462 +    <target name="-init-macrodef-test-impl">
   5.463 +        <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
   5.464 +            <attribute default="${includes}" name="includes"/>
   5.465 +            <attribute default="${excludes}" name="excludes"/>
   5.466 +            <attribute default="**" name="testincludes"/>
   5.467 +            <attribute default="" name="testmethods"/>
   5.468 +            <element implicit="true" name="customize" optional="true"/>
   5.469 +            <sequential>
   5.470 +                <echo>No tests executed.</echo>
   5.471 +            </sequential>
   5.472 +        </macrodef>
   5.473 +    </target>
   5.474 +    <target depends="-init-macrodef-junit" if="${junit.available}" name="-init-macrodef-junit-impl">
   5.475 +        <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
   5.476 +            <attribute default="${includes}" name="includes"/>
   5.477 +            <attribute default="${excludes}" name="excludes"/>
   5.478 +            <attribute default="**" name="testincludes"/>
   5.479 +            <attribute default="" name="testmethods"/>
   5.480 +            <element implicit="true" name="customize" optional="true"/>
   5.481 +            <sequential>
   5.482 +                <j2seproject3:junit excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
   5.483 +                    <customize/>
   5.484 +                </j2seproject3:junit>
   5.485 +            </sequential>
   5.486 +        </macrodef>
   5.487 +    </target>
   5.488 +    <target depends="-init-macrodef-testng" if="${testng.available}" name="-init-macrodef-testng-impl">
   5.489 +        <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
   5.490 +            <attribute default="${includes}" name="includes"/>
   5.491 +            <attribute default="${excludes}" name="excludes"/>
   5.492 +            <attribute default="**" name="testincludes"/>
   5.493 +            <attribute default="" name="testmethods"/>
   5.494 +            <element implicit="true" name="customize" optional="true"/>
   5.495 +            <sequential>
   5.496 +                <j2seproject3:testng excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
   5.497 +                    <customize/>
   5.498 +                </j2seproject3:testng>
   5.499 +            </sequential>
   5.500 +        </macrodef>
   5.501 +    </target>
   5.502 +    <target depends="-init-macrodef-test-impl,-init-macrodef-junit-impl,-init-macrodef-testng-impl" name="-init-macrodef-test">
   5.503 +        <macrodef name="test" uri="http://www.netbeans.org/ns/j2se-project/3">
   5.504 +            <attribute default="${includes}" name="includes"/>
   5.505 +            <attribute default="${excludes}" name="excludes"/>
   5.506 +            <attribute default="**" name="testincludes"/>
   5.507 +            <attribute default="" name="testmethods"/>
   5.508 +            <sequential>
   5.509 +                <j2seproject3:test-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
   5.510 +                    <customize>
   5.511 +                        <classpath>
   5.512 +                            <path path="${run.test.classpath}"/>
   5.513 +                        </classpath>
   5.514 +                        <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   5.515 +                        <jvmarg line="${run.jvmargs}"/>
   5.516 +                        <jvmarg line="${run.jvmargs.ide}"/>
   5.517 +                    </customize>
   5.518 +                </j2seproject3:test-impl>
   5.519 +            </sequential>
   5.520 +        </macrodef>
   5.521 +    </target>
   5.522 +    <target if="${junit.available}" name="-init-macrodef-junit-debug" unless="${nb.junit.batch}">
   5.523 +        <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
   5.524 +            <attribute default="${includes}" name="includes"/>
   5.525 +            <attribute default="${excludes}" name="excludes"/>
   5.526 +            <attribute default="**" name="testincludes"/>
   5.527 +            <attribute default="" name="testmethods"/>
   5.528 +            <element name="customize" optional="true"/>
   5.529 +            <sequential>
   5.530 +                <property name="junit.forkmode" value="perTest"/>
   5.531 +                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
   5.532 +                    <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
   5.533 +                    <syspropertyset>
   5.534 +                        <propertyref prefix="test-sys-prop."/>
   5.535 +                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
   5.536 +                    </syspropertyset>
   5.537 +                    <formatter type="brief" usefile="false"/>
   5.538 +                    <formatter type="xml"/>
   5.539 +                    <jvmarg value="-ea"/>
   5.540 +                    <jvmarg line="${debug-args-line}"/>
   5.541 +                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
   5.542 +                    <customize/>
   5.543 +                </junit>
   5.544 +            </sequential>
   5.545 +        </macrodef>
   5.546 +    </target>
   5.547 +    <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-debug-batch">
   5.548 +        <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
   5.549 +            <attribute default="${includes}" name="includes"/>
   5.550 +            <attribute default="${excludes}" name="excludes"/>
   5.551 +            <attribute default="**" name="testincludes"/>
   5.552 +            <attribute default="" name="testmethods"/>
   5.553 +            <element name="customize" optional="true"/>
   5.554 +            <sequential>
   5.555 +                <property name="junit.forkmode" value="perTest"/>
   5.556 +                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
   5.557 +                    <batchtest todir="${build.test.results.dir}">
   5.558 +                        <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
   5.559 +                            <filename name="@{testincludes}"/>
   5.560 +                        </fileset>
   5.561 +                        <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
   5.562 +                            <filename name="${test.binarytestincludes}"/>
   5.563 +                        </fileset>
   5.564 +                    </batchtest>
   5.565 +                    <syspropertyset>
   5.566 +                        <propertyref prefix="test-sys-prop."/>
   5.567 +                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
   5.568 +                    </syspropertyset>
   5.569 +                    <formatter type="brief" usefile="false"/>
   5.570 +                    <formatter type="xml"/>
   5.571 +                    <jvmarg value="-ea"/>
   5.572 +                    <jvmarg line="${debug-args-line}"/>
   5.573 +                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
   5.574 +                    <customize/>
   5.575 +                </junit>
   5.576 +            </sequential>
   5.577 +        </macrodef>
   5.578 +    </target>
   5.579 +    <target depends="-init-macrodef-junit-debug,-init-macrodef-junit-debug-batch" if="${junit.available}" name="-init-macrodef-junit-debug-impl">
   5.580 +        <macrodef name="test-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
   5.581 +            <attribute default="${includes}" name="includes"/>
   5.582 +            <attribute default="${excludes}" name="excludes"/>
   5.583 +            <attribute default="**" name="testincludes"/>
   5.584 +            <attribute default="" name="testmethods"/>
   5.585 +            <element implicit="true" name="customize" optional="true"/>
   5.586 +            <sequential>
   5.587 +                <j2seproject3:junit-debug excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
   5.588 +                    <customize/>
   5.589 +                </j2seproject3:junit-debug>
   5.590 +            </sequential>
   5.591 +        </macrodef>
   5.592 +    </target>
   5.593 +    <target if="${testng.available}" name="-init-macrodef-testng-debug">
   5.594 +        <macrodef name="testng-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
   5.595 +            <attribute default="${main.class}" name="testClass"/>
   5.596 +            <attribute default="" name="testMethod"/>
   5.597 +            <element name="customize2" optional="true"/>
   5.598 +            <sequential>
   5.599 +                <condition else="-testclass @{testClass}" property="test.class.or.method" value="-methods @{testClass}.@{testMethod}">
   5.600 +                    <isset property="test.method"/>
   5.601 +                </condition>
   5.602 +                <condition else="-suitename alt2xml-in-properties -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}">
   5.603 +                    <matches pattern=".*\.xml" string="@{testClass}"/>
   5.604 +                </condition>
   5.605 +                <delete dir="${build.test.results.dir}" quiet="true"/>
   5.606 +                <mkdir dir="${build.test.results.dir}"/>
   5.607 +                <j2seproject3:debug classname="org.testng.TestNG" classpath="${debug.test.classpath}">
   5.608 +                    <customize>
   5.609 +                        <customize2/>
   5.610 +                        <jvmarg value="-ea"/>
   5.611 +                        <arg line="${testng.debug.mode}"/>
   5.612 +                        <arg line="-d ${build.test.results.dir}"/>
   5.613 +                        <arg line="-listener org.testng.reporters.VerboseReporter"/>
   5.614 +                        <arg line="${testng.cmd.args}"/>
   5.615 +                    </customize>
   5.616 +                </j2seproject3:debug>
   5.617 +            </sequential>
   5.618 +        </macrodef>
   5.619 +    </target>
   5.620 +    <target depends="-init-macrodef-testng-debug" if="${testng.available}" name="-init-macrodef-testng-debug-impl">
   5.621 +        <macrodef name="testng-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
   5.622 +            <attribute default="${main.class}" name="testClass"/>
   5.623 +            <attribute default="" name="testMethod"/>
   5.624 +            <element implicit="true" name="customize2" optional="true"/>
   5.625 +            <sequential>
   5.626 +                <j2seproject3:testng-debug testClass="@{testClass}" testMethod="@{testMethod}">
   5.627 +                    <customize2/>
   5.628 +                </j2seproject3:testng-debug>
   5.629 +            </sequential>
   5.630 +        </macrodef>
   5.631 +    </target>
   5.632 +    <target depends="-init-macrodef-junit-debug-impl" if="${junit.available}" name="-init-macrodef-test-debug-junit">
   5.633 +        <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
   5.634 +            <attribute default="${includes}" name="includes"/>
   5.635 +            <attribute default="${excludes}" name="excludes"/>
   5.636 +            <attribute default="**" name="testincludes"/>
   5.637 +            <attribute default="" name="testmethods"/>
   5.638 +            <attribute default="${main.class}" name="testClass"/>
   5.639 +            <attribute default="" name="testMethod"/>
   5.640 +            <sequential>
   5.641 +                <j2seproject3:test-debug-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
   5.642 +                    <customize>
   5.643 +                        <classpath>
   5.644 +                            <path path="${run.test.classpath}"/>
   5.645 +                        </classpath>
   5.646 +                        <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   5.647 +                        <jvmarg line="${run.jvmargs}"/>
   5.648 +                        <jvmarg line="${run.jvmargs.ide}"/>
   5.649 +                    </customize>
   5.650 +                </j2seproject3:test-debug-impl>
   5.651 +            </sequential>
   5.652 +        </macrodef>
   5.653 +    </target>
   5.654 +    <target depends="-init-macrodef-testng-debug-impl" if="${testng.available}" name="-init-macrodef-test-debug-testng">
   5.655 +        <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
   5.656 +            <attribute default="${includes}" name="includes"/>
   5.657 +            <attribute default="${excludes}" name="excludes"/>
   5.658 +            <attribute default="**" name="testincludes"/>
   5.659 +            <attribute default="" name="testmethods"/>
   5.660 +            <attribute default="${main.class}" name="testClass"/>
   5.661 +            <attribute default="" name="testMethod"/>
   5.662 +            <sequential>
   5.663 +                <j2seproject3:testng-debug-impl testClass="@{testClass}" testMethod="@{testMethod}">
   5.664 +                    <customize2>
   5.665 +                        <syspropertyset>
   5.666 +                            <propertyref prefix="test-sys-prop."/>
   5.667 +                            <mapper from="test-sys-prop.*" to="*" type="glob"/>
   5.668 +                        </syspropertyset>
   5.669 +                    </customize2>
   5.670 +                </j2seproject3:testng-debug-impl>
   5.671 +            </sequential>
   5.672 +        </macrodef>
   5.673 +    </target>
   5.674 +    <target depends="-init-macrodef-test-debug-junit,-init-macrodef-test-debug-testng" name="-init-macrodef-test-debug"/>
   5.675 +    <!--
   5.676 +                pre NB7.2 profiling section; consider it deprecated
   5.677 +            -->
   5.678 +    <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" if="profiler.info.jvmargs.agent" name="profile-init"/>
   5.679 +    <target if="profiler.info.jvmargs.agent" name="-profile-pre-init">
   5.680 +        <!-- Empty placeholder for easier customization. -->
   5.681 +        <!-- You can override this target in the ../build.xml file. -->
   5.682 +    </target>
   5.683 +    <target if="profiler.info.jvmargs.agent" name="-profile-post-init">
   5.684 +        <!-- Empty placeholder for easier customization. -->
   5.685 +        <!-- You can override this target in the ../build.xml file. -->
   5.686 +    </target>
   5.687 +    <target if="profiler.info.jvmargs.agent" name="-profile-init-macrodef-profile">
   5.688 +        <macrodef name="resolve">
   5.689 +            <attribute name="name"/>
   5.690 +            <attribute name="value"/>
   5.691 +            <sequential>
   5.692 +                <property name="@{name}" value="${env.@{value}}"/>
   5.693 +            </sequential>
   5.694 +        </macrodef>
   5.695 +        <macrodef name="profile">
   5.696 +            <attribute default="${main.class}" name="classname"/>
   5.697 +            <element name="customize" optional="true"/>
   5.698 +            <sequential>
   5.699 +                <property environment="env"/>
   5.700 +                <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
   5.701 +                <java classname="@{classname}" dir="${profiler.info.dir}" fork="true" jvm="${profiler.info.jvm}">
   5.702 +                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   5.703 +                    <jvmarg value="${profiler.info.jvmargs.agent}"/>
   5.704 +                    <jvmarg line="${profiler.info.jvmargs}"/>
   5.705 +                    <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
   5.706 +                    <arg line="${application.args}"/>
   5.707 +                    <classpath>
   5.708 +                        <path path="${run.classpath}"/>
   5.709 +                    </classpath>
   5.710 +                    <syspropertyset>
   5.711 +                        <propertyref prefix="run-sys-prop."/>
   5.712 +                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
   5.713 +                    </syspropertyset>
   5.714 +                    <customize/>
   5.715 +                </java>
   5.716 +            </sequential>
   5.717 +        </macrodef>
   5.718 +    </target>
   5.719 +    <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" if="profiler.info.jvmargs.agent" name="-profile-init-check">
   5.720 +        <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
   5.721 +        <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
   5.722 +    </target>
   5.723 +    <!--
   5.724 +                end of pre NB7.2 profiling section
   5.725 +            -->
   5.726 +    <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
   5.727 +        <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
   5.728 +            <attribute default="${main.class}" name="name"/>
   5.729 +            <attribute default="${debug.classpath}" name="classpath"/>
   5.730 +            <attribute default="" name="stopclassname"/>
   5.731 +            <sequential>
   5.732 +                <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
   5.733 +                    <classpath>
   5.734 +                        <path path="@{classpath}"/>
   5.735 +                    </classpath>
   5.736 +                </nbjpdastart>
   5.737 +            </sequential>
   5.738 +        </macrodef>
   5.739 +        <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
   5.740 +            <attribute default="${build.classes.dir}" name="dir"/>
   5.741 +            <sequential>
   5.742 +                <nbjpdareload>
   5.743 +                    <fileset dir="@{dir}" includes="${fix.classes}">
   5.744 +                        <include name="${fix.includes}*.class"/>
   5.745 +                    </fileset>
   5.746 +                </nbjpdareload>
   5.747 +            </sequential>
   5.748 +        </macrodef>
   5.749 +    </target>
   5.750 +    <target name="-init-debug-args">
   5.751 +        <property name="version-output" value="java version &quot;${ant.java.version}"/>
   5.752 +        <condition property="have-jdk-older-than-1.4">
   5.753 +            <or>
   5.754 +                <contains string="${version-output}" substring="java version &quot;1.0"/>
   5.755 +                <contains string="${version-output}" substring="java version &quot;1.1"/>
   5.756 +                <contains string="${version-output}" substring="java version &quot;1.2"/>
   5.757 +                <contains string="${version-output}" substring="java version &quot;1.3"/>
   5.758 +            </or>
   5.759 +        </condition>
   5.760 +        <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
   5.761 +            <istrue value="${have-jdk-older-than-1.4}"/>
   5.762 +        </condition>
   5.763 +        <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
   5.764 +            <os family="windows"/>
   5.765 +        </condition>
   5.766 +        <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
   5.767 +            <isset property="debug.transport"/>
   5.768 +        </condition>
   5.769 +    </target>
   5.770 +    <target depends="-init-debug-args" name="-init-macrodef-debug">
   5.771 +        <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
   5.772 +            <attribute default="${main.class}" name="classname"/>
   5.773 +            <attribute default="${debug.classpath}" name="classpath"/>
   5.774 +            <element name="customize" optional="true"/>
   5.775 +            <sequential>
   5.776 +                <java classname="@{classname}" dir="${work.dir}" fork="true">
   5.777 +                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   5.778 +                    <jvmarg line="${debug-args-line}"/>
   5.779 +                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
   5.780 +                    <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
   5.781 +                    <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
   5.782 +                    <jvmarg line="${run.jvmargs}"/>
   5.783 +                    <jvmarg line="${run.jvmargs.ide}"/>
   5.784 +                    <classpath>
   5.785 +                        <path path="@{classpath}"/>
   5.786 +                    </classpath>
   5.787 +                    <syspropertyset>
   5.788 +                        <propertyref prefix="run-sys-prop."/>
   5.789 +                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
   5.790 +                    </syspropertyset>
   5.791 +                    <customize/>
   5.792 +                </java>
   5.793 +            </sequential>
   5.794 +        </macrodef>
   5.795 +    </target>
   5.796 +    <target name="-init-macrodef-java">
   5.797 +        <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
   5.798 +            <attribute default="${main.class}" name="classname"/>
   5.799 +            <attribute default="${run.classpath}" name="classpath"/>
   5.800 +            <attribute default="jvm" name="jvm"/>
   5.801 +            <element name="customize" optional="true"/>
   5.802 +            <sequential>
   5.803 +                <java classname="@{classname}" dir="${work.dir}" fork="true">
   5.804 +                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   5.805 +                    <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
   5.806 +                    <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
   5.807 +                    <jvmarg line="${run.jvmargs}"/>
   5.808 +                    <jvmarg line="${run.jvmargs.ide}"/>
   5.809 +                    <classpath>
   5.810 +                        <path path="@{classpath}"/>
   5.811 +                    </classpath>
   5.812 +                    <syspropertyset>
   5.813 +                        <propertyref prefix="run-sys-prop."/>
   5.814 +                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
   5.815 +                    </syspropertyset>
   5.816 +                    <customize/>
   5.817 +                </java>
   5.818 +            </sequential>
   5.819 +        </macrodef>
   5.820 +    </target>
   5.821 +    <target name="-init-macrodef-copylibs">
   5.822 +        <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">
   5.823 +            <attribute default="${manifest.file}" name="manifest"/>
   5.824 +            <element name="customize" optional="true"/>
   5.825 +            <sequential>
   5.826 +                <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
   5.827 +                <pathconvert property="run.classpath.without.build.classes.dir">
   5.828 +                    <path path="${run.classpath}"/>
   5.829 +                    <map from="${build.classes.dir.resolved}" to=""/>
   5.830 +                </pathconvert>
   5.831 +                <pathconvert pathsep=" " property="jar.classpath">
   5.832 +                    <path path="${run.classpath.without.build.classes.dir}"/>
   5.833 +                    <chainedmapper>
   5.834 +                        <flattenmapper/>
   5.835 +                        <filtermapper>
   5.836 +                            <replacestring from=" " to="%20"/>
   5.837 +                        </filtermapper>
   5.838 +                        <globmapper from="*" to="lib/*"/>
   5.839 +                    </chainedmapper>
   5.840 +                </pathconvert>
   5.841 +                <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
   5.842 +                <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}">
   5.843 +                    <fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
   5.844 +                    <manifest>
   5.845 +                        <attribute name="Class-Path" value="${jar.classpath}"/>
   5.846 +                        <customize/>
   5.847 +                    </manifest>
   5.848 +                </copylibs>
   5.849 +            </sequential>
   5.850 +        </macrodef>
   5.851 +    </target>
   5.852 +    <target name="-init-presetdef-jar">
   5.853 +        <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
   5.854 +            <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">
   5.855 +                <j2seproject1:fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
   5.856 +            </jar>
   5.857 +        </presetdef>
   5.858 +    </target>
   5.859 +    <target name="-init-ap-cmdline-properties">
   5.860 +        <property name="annotation.processing.enabled" value="true"/>
   5.861 +        <property name="annotation.processing.processors.list" value=""/>
   5.862 +        <property name="annotation.processing.processor.options" value=""/>
   5.863 +        <property name="annotation.processing.run.all.processors" value="true"/>
   5.864 +        <property name="javac.processorpath" value="${javac.classpath}"/>
   5.865 +        <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
   5.866 +        <condition property="ap.supported.internal" value="true">
   5.867 +            <not>
   5.868 +                <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
   5.869 +            </not>
   5.870 +        </condition>
   5.871 +    </target>
   5.872 +    <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
   5.873 +        <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
   5.874 +            <isfalse value="${annotation.processing.run.all.processors}"/>
   5.875 +        </condition>
   5.876 +        <condition else="" property="ap.proc.none.internal" value="-proc:none">
   5.877 +            <isfalse value="${annotation.processing.enabled}"/>
   5.878 +        </condition>
   5.879 +    </target>
   5.880 +    <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
   5.881 +        <property name="ap.cmd.line.internal" value=""/>
   5.882 +    </target>
   5.883 +    <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"/>
   5.884 +    <!--
   5.885 +                ===================
   5.886 +                COMPILATION SECTION
   5.887 +                ===================
   5.888 +            -->
   5.889 +    <target name="-deps-jar-init" unless="built-jar.properties">
   5.890 +        <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>
   5.891 +        <delete file="${built-jar.properties}" quiet="true"/>
   5.892 +    </target>
   5.893 +    <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
   5.894 +        <echo level="warn" message="Cycle detected: alt2xml-in-properties was already built"/>
   5.895 +    </target>
   5.896 +    <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
   5.897 +        <mkdir dir="${build.dir}"/>
   5.898 +        <touch file="${built-jar.properties}" verbose="false"/>
   5.899 +        <property file="${built-jar.properties}" prefix="already.built.jar."/>
   5.900 +        <antcall target="-warn-already-built-jar"/>
   5.901 +        <propertyfile file="${built-jar.properties}">
   5.902 +            <entry key="${basedir}" value=""/>
   5.903 +        </propertyfile>
   5.904 +        <antcall target="-maybe-call-dep">
   5.905 +            <param name="call.built.properties" value="${built-jar.properties}"/>
   5.906 +            <param location="${project.alt2xml-lib}" name="call.subproject"/>
   5.907 +            <param location="${project.alt2xml-lib}/build.xml" name="call.script"/>
   5.908 +            <param name="call.target" value="jar"/>
   5.909 +            <param name="transfer.built-jar.properties" value="${built-jar.properties}"/>
   5.910 +            <param name="transfer.not.archive.disabled" value="true"/>
   5.911 +        </antcall>
   5.912 +    </target>
   5.913 +    <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
   5.914 +    <target depends="init" name="-check-automatic-build">
   5.915 +        <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
   5.916 +    </target>
   5.917 +    <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
   5.918 +        <antcall target="clean"/>
   5.919 +    </target>
   5.920 +    <target depends="init,deps-jar" name="-pre-pre-compile">
   5.921 +        <mkdir dir="${build.classes.dir}"/>
   5.922 +    </target>
   5.923 +    <target name="-pre-compile">
   5.924 +        <!-- Empty placeholder for easier customization. -->
   5.925 +        <!-- You can override this target in the ../build.xml file. -->
   5.926 +    </target>
   5.927 +    <target if="do.depend.true" name="-compile-depend">
   5.928 +        <pathconvert property="build.generated.subdirs">
   5.929 +            <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
   5.930 +                <include name="*"/>
   5.931 +            </dirset>
   5.932 +        </pathconvert>
   5.933 +        <j2seproject3:depend srcdir="${src.dir}:${src.config.dir}:${build.generated.subdirs}"/>
   5.934 +    </target>
   5.935 +    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">
   5.936 +        <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
   5.937 +        <copy todir="${build.classes.dir}">
   5.938 +            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
   5.939 +            <fileset dir="${src.config.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
   5.940 +        </copy>
   5.941 +    </target>
   5.942 +    <target if="has.persistence.xml" name="-copy-persistence-xml">
   5.943 +        <mkdir dir="${build.classes.dir}/META-INF"/>
   5.944 +        <copy todir="${build.classes.dir}/META-INF">
   5.945 +            <fileset dir="${meta.inf.dir}" includes="persistence.xml orm.xml"/>
   5.946 +        </copy>
   5.947 +    </target>
   5.948 +    <target name="-post-compile">
   5.949 +        <!-- Empty placeholder for easier customization. -->
   5.950 +        <!-- You can override this target in the ../build.xml file. -->
   5.951 +    </target>
   5.952 +    <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
   5.953 +    <target name="-pre-compile-single">
   5.954 +        <!-- Empty placeholder for easier customization. -->
   5.955 +        <!-- You can override this target in the ../build.xml file. -->
   5.956 +    </target>
   5.957 +    <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
   5.958 +        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
   5.959 +        <j2seproject3:force-recompile/>
   5.960 +        <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}:${src.config.dir}"/>
   5.961 +    </target>
   5.962 +    <target name="-post-compile-single">
   5.963 +        <!-- Empty placeholder for easier customization. -->
   5.964 +        <!-- You can override this target in the ../build.xml file. -->
   5.965 +    </target>
   5.966 +    <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
   5.967 +    <!--
   5.968 +                ====================
   5.969 +                JAR BUILDING SECTION
   5.970 +                ====================
   5.971 +            -->
   5.972 +    <target depends="init" name="-pre-pre-jar">
   5.973 +        <dirname file="${dist.jar}" property="dist.jar.dir"/>
   5.974 +        <mkdir dir="${dist.jar.dir}"/>
   5.975 +    </target>
   5.976 +    <target name="-pre-jar">
   5.977 +        <!-- Empty placeholder for easier customization. -->
   5.978 +        <!-- You can override this target in the ../build.xml file. -->
   5.979 +    </target>
   5.980 +    <target depends="init" if="do.archive" name="-do-jar-create-manifest" unless="manifest.available">
   5.981 +        <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
   5.982 +        <touch file="${tmp.manifest.file}" verbose="false"/>
   5.983 +    </target>
   5.984 +    <target depends="init" if="do.archive+manifest.available" name="-do-jar-copy-manifest">
   5.985 +        <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
   5.986 +        <copy file="${manifest.file}" tofile="${tmp.manifest.file}"/>
   5.987 +    </target>
   5.988 +    <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+main.class.available" name="-do-jar-set-mainclass">
   5.989 +        <manifest file="${tmp.manifest.file}" mode="update">
   5.990 +            <attribute name="Main-Class" value="${main.class}"/>
   5.991 +        </manifest>
   5.992 +    </target>
   5.993 +    <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+profile.available" name="-do-jar-set-profile">
   5.994 +        <manifest file="${tmp.manifest.file}" mode="update">
   5.995 +            <attribute name="Profile" value="${javac.profile}"/>
   5.996 +        </manifest>
   5.997 +    </target>
   5.998 +    <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-set-splashscreen">
   5.999 +        <basename file="${application.splash}" property="splashscreen.basename"/>
  5.1000 +        <mkdir dir="${build.classes.dir}/META-INF"/>
  5.1001 +        <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
  5.1002 +        <manifest file="${tmp.manifest.file}" mode="update">
  5.1003 +            <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
  5.1004 +        </manifest>
  5.1005 +    </target>
  5.1006 +    <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">
  5.1007 +        <j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
  5.1008 +        <echo level="info">To run this application from the command line without Ant, try:</echo>
  5.1009 +        <property location="${dist.jar}" name="dist.jar.resolved"/>
  5.1010 +        <echo level="info">java -jar "${dist.jar.resolved}"</echo>
  5.1011 +    </target>
  5.1012 +    <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">
  5.1013 +        <j2seproject1:jar manifest="${tmp.manifest.file}"/>
  5.1014 +        <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
  5.1015 +        <property location="${dist.jar}" name="dist.jar.resolved"/>
  5.1016 +        <pathconvert property="run.classpath.with.dist.jar">
  5.1017 +            <path path="${run.classpath}"/>
  5.1018 +            <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
  5.1019 +        </pathconvert>
  5.1020 +        <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}">
  5.1021 +            <isset property="main.class.available"/>
  5.1022 +        </condition>
  5.1023 +        <condition else="debug" property="jar.usage.level" value="info">
  5.1024 +            <isset property="main.class.available"/>
  5.1025 +        </condition>
  5.1026 +        <echo level="${jar.usage.level}" message="${jar.usage.message}"/>
  5.1027 +    </target>
  5.1028 +    <target depends="-do-jar-copylibs" if="do.archive" name="-do-jar-delete-manifest">
  5.1029 +        <delete>
  5.1030 +            <fileset file="${tmp.manifest.file}"/>
  5.1031 +        </delete>
  5.1032 +    </target>
  5.1033 +    <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"/>
  5.1034 +    <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"/>
  5.1035 +    <target name="-post-jar">
  5.1036 +        <!-- Empty placeholder for easier customization. -->
  5.1037 +        <!-- You can override this target in the ../build.xml file. -->
  5.1038 +    </target>
  5.1039 +    <target depends="init,compile,-pre-jar,-do-jar-without-libraries,-do-jar-with-libraries,-post-jar" name="-do-jar"/>
  5.1040 +    <target depends="init,compile,-pre-jar,-do-jar,-post-jar" description="Build JAR." name="jar"/>
  5.1041 +    <!--
  5.1042 +                =================
  5.1043 +                EXECUTION SECTION
  5.1044 +                =================
  5.1045 +            -->
  5.1046 +    <target depends="init,compile" description="Run a main class." name="run">
  5.1047 +        <j2seproject1:java>
  5.1048 +            <customize>
  5.1049 +                <arg line="${application.args}"/>
  5.1050 +            </customize>
  5.1051 +        </j2seproject1:java>
  5.1052 +    </target>
  5.1053 +    <target name="-do-not-recompile">
  5.1054 +        <property name="javac.includes.binary" value=""/>
  5.1055 +    </target>
  5.1056 +    <target depends="init,compile-single" name="run-single">
  5.1057 +        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
  5.1058 +        <j2seproject1:java classname="${run.class}"/>
  5.1059 +    </target>
  5.1060 +    <target depends="init,compile-test-single" name="run-test-with-main">
  5.1061 +        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
  5.1062 +        <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
  5.1063 +    </target>
  5.1064 +    <!--
  5.1065 +                =================
  5.1066 +                DEBUGGING SECTION
  5.1067 +                =================
  5.1068 +            -->
  5.1069 +    <target depends="init" if="netbeans.home" name="-debug-start-debugger">
  5.1070 +        <j2seproject1:nbjpdastart name="${debug.class}"/>
  5.1071 +    </target>
  5.1072 +    <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
  5.1073 +        <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
  5.1074 +    </target>
  5.1075 +    <target depends="init,compile" name="-debug-start-debuggee">
  5.1076 +        <j2seproject3:debug>
  5.1077 +            <customize>
  5.1078 +                <arg line="${application.args}"/>
  5.1079 +            </customize>
  5.1080 +        </j2seproject3:debug>
  5.1081 +    </target>
  5.1082 +    <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
  5.1083 +    <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
  5.1084 +        <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
  5.1085 +    </target>
  5.1086 +    <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
  5.1087 +    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
  5.1088 +        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
  5.1089 +        <j2seproject3:debug classname="${debug.class}"/>
  5.1090 +    </target>
  5.1091 +    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
  5.1092 +    <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
  5.1093 +        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
  5.1094 +        <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
  5.1095 +    </target>
  5.1096 +    <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
  5.1097 +    <target depends="init" name="-pre-debug-fix">
  5.1098 +        <fail unless="fix.includes">Must set fix.includes</fail>
  5.1099 +        <property name="javac.includes" value="${fix.includes}.java"/>
  5.1100 +    </target>
  5.1101 +    <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
  5.1102 +        <j2seproject1:nbjpdareload/>
  5.1103 +    </target>
  5.1104 +    <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
  5.1105 +    <!--
  5.1106 +                =================
  5.1107 +                PROFILING SECTION
  5.1108 +                =================
  5.1109 +            -->
  5.1110 +    <!--
  5.1111 +                pre NB7.2 profiler integration
  5.1112 +            -->
  5.1113 +    <target depends="profile-init,compile" description="Profile a project in the IDE." if="profiler.info.jvmargs.agent" name="-profile-pre72">
  5.1114 +        <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
  5.1115 +        <nbprofiledirect>
  5.1116 +            <classpath>
  5.1117 +                <path path="${run.classpath}"/>
  5.1118 +            </classpath>
  5.1119 +        </nbprofiledirect>
  5.1120 +        <profile/>
  5.1121 +    </target>
  5.1122 +    <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="profiler.info.jvmargs.agent" name="-profile-single-pre72">
  5.1123 +        <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail>
  5.1124 +        <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
  5.1125 +        <nbprofiledirect>
  5.1126 +            <classpath>
  5.1127 +                <path path="${run.classpath}"/>
  5.1128 +            </classpath>
  5.1129 +        </nbprofiledirect>
  5.1130 +        <profile classname="${profile.class}"/>
  5.1131 +    </target>
  5.1132 +    <target depends="profile-init,compile-single" if="profiler.info.jvmargs.agent" name="-profile-applet-pre72">
  5.1133 +        <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
  5.1134 +        <nbprofiledirect>
  5.1135 +            <classpath>
  5.1136 +                <path path="${run.classpath}"/>
  5.1137 +            </classpath>
  5.1138 +        </nbprofiledirect>
  5.1139 +        <profile classname="sun.applet.AppletViewer">
  5.1140 +            <customize>
  5.1141 +                <arg value="${applet.url}"/>
  5.1142 +            </customize>
  5.1143 +        </profile>
  5.1144 +    </target>
  5.1145 +    <target depends="profile-init,compile-test-single" if="profiler.info.jvmargs.agent" name="-profile-test-single-pre72">
  5.1146 +        <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
  5.1147 +        <nbprofiledirect>
  5.1148 +            <classpath>
  5.1149 +                <path path="${run.test.classpath}"/>
  5.1150 +            </classpath>
  5.1151 +        </nbprofiledirect>
  5.1152 +        <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
  5.1153 +            <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
  5.1154 +            <jvmarg value="${profiler.info.jvmargs.agent}"/>
  5.1155 +            <jvmarg line="${profiler.info.jvmargs}"/>
  5.1156 +            <test name="${profile.class}"/>
  5.1157 +            <classpath>
  5.1158 +                <path path="${run.test.classpath}"/>
  5.1159 +            </classpath>
  5.1160 +            <syspropertyset>
  5.1161 +                <propertyref prefix="test-sys-prop."/>
  5.1162 +                <mapper from="test-sys-prop.*" to="*" type="glob"/>
  5.1163 +            </syspropertyset>
  5.1164 +            <formatter type="brief" usefile="false"/>
  5.1165 +            <formatter type="xml"/>
  5.1166 +        </junit>
  5.1167 +    </target>
  5.1168 +    <!--
  5.1169 +                end of pre NB72 profiling section
  5.1170 +            -->
  5.1171 +    <target if="netbeans.home" name="-profile-check">
  5.1172 +        <condition property="profiler.configured">
  5.1173 +            <or>
  5.1174 +                <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-agentpath:"/>
  5.1175 +                <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-javaagent:"/>
  5.1176 +            </or>
  5.1177 +        </condition>
  5.1178 +    </target>
  5.1179 +    <target depends="-profile-check,-profile-pre72" description="Profile a project in the IDE." if="profiler.configured" name="profile" unless="profiler.info.jvmargs.agent">
  5.1180 +        <startprofiler/>
  5.1181 +        <antcall target="run"/>
  5.1182 +    </target>
  5.1183 +    <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">
  5.1184 +        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
  5.1185 +        <startprofiler/>
  5.1186 +        <antcall target="run-single"/>
  5.1187 +    </target>
  5.1188 +    <target depends="-profile-test-single-pre72" description="Profile a selected test in the IDE." name="profile-test-single"/>
  5.1189 +    <target depends="-profile-check" description="Profile a selected test in the IDE." if="profiler.configured" name="profile-test" unless="profiler.info.jvmargs">
  5.1190 +        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
  5.1191 +        <startprofiler/>
  5.1192 +        <antcall target="test-single"/>
  5.1193 +    </target>
  5.1194 +    <target depends="-profile-check" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-test-with-main">
  5.1195 +        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
  5.1196 +        <startprofiler/>
  5.1197 +        <antcal target="run-test-with-main"/>
  5.1198 +    </target>
  5.1199 +    <target depends="-profile-check,-profile-applet-pre72" if="profiler.configured" name="profile-applet" unless="profiler.info.jvmargs.agent">
  5.1200 +        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
  5.1201 +        <startprofiler/>
  5.1202 +        <antcall target="run-applet"/>
  5.1203 +    </target>
  5.1204 +    <!--
  5.1205 +                ===============
  5.1206 +                JAVADOC SECTION
  5.1207 +                ===============
  5.1208 +            -->
  5.1209 +    <target depends="init" if="have.sources" name="-javadoc-build">
  5.1210 +        <mkdir dir="${dist.javadoc.dir}"/>
  5.1211 +        <condition else="" property="javadoc.endorsed.classpath.cmd.line.arg" value="-J${endorsed.classpath.cmd.line.arg}">
  5.1212 +            <and>
  5.1213 +                <isset property="endorsed.classpath.cmd.line.arg"/>
  5.1214 +                <not>
  5.1215 +                    <equals arg1="${endorsed.classpath.cmd.line.arg}" arg2=""/>
  5.1216 +                </not>
  5.1217 +            </and>
  5.1218 +        </condition>
  5.1219 +        <condition else="" property="bug5101868workaround" value="*.java">
  5.1220 +            <matches pattern="1\.[56](\..*)?" string="${java.version}"/>
  5.1221 +        </condition>
  5.1222 +        <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}">
  5.1223 +            <classpath>
  5.1224 +                <path path="${javac.classpath}"/>
  5.1225 +            </classpath>
  5.1226 +            <fileset dir="${src.dir}" excludes="${bug5101868workaround},${excludes}" includes="${includes}">
  5.1227 +                <filename name="**/*.java"/>
  5.1228 +            </fileset>
  5.1229 +            <fileset dir="${src.config.dir}" excludes="${bug5101868workaround},${excludes}" includes="${includes}">
  5.1230 +                <filename name="**/*.java"/>
  5.1231 +            </fileset>
  5.1232 +            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
  5.1233 +                <include name="**/*.java"/>
  5.1234 +                <exclude name="*.java"/>
  5.1235 +            </fileset>
  5.1236 +            <arg line="${javadoc.endorsed.classpath.cmd.line.arg}"/>
  5.1237 +        </javadoc>
  5.1238 +        <copy todir="${dist.javadoc.dir}">
  5.1239 +            <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
  5.1240 +                <filename name="**/doc-files/**"/>
  5.1241 +            </fileset>
  5.1242 +            <fileset dir="${src.config.dir}" excludes="${excludes}" includes="${includes}">
  5.1243 +                <filename name="**/doc-files/**"/>
  5.1244 +            </fileset>
  5.1245 +            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
  5.1246 +                <include name="**/doc-files/**"/>
  5.1247 +            </fileset>
  5.1248 +        </copy>
  5.1249 +    </target>
  5.1250 +    <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
  5.1251 +        <nbbrowse file="${dist.javadoc.dir}/index.html"/>
  5.1252 +    </target>
  5.1253 +    <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
  5.1254 +    <!--
  5.1255 +                =========================
  5.1256 +                TEST COMPILATION SECTION
  5.1257 +                =========================
  5.1258 +            -->
  5.1259 +    <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
  5.1260 +        <mkdir dir="${build.test.classes.dir}"/>
  5.1261 +    </target>
  5.1262 +    <target name="-pre-compile-test">
  5.1263 +        <!-- Empty placeholder for easier customization. -->
  5.1264 +        <!-- You can override this target in the ../build.xml file. -->
  5.1265 +    </target>
  5.1266 +    <target if="do.depend.true" name="-compile-test-depend">
  5.1267 +        <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
  5.1268 +    </target>
  5.1269 +    <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
  5.1270 +        <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}"/>
  5.1271 +        <copy todir="${build.test.classes.dir}">
  5.1272 +            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  5.1273 +        </copy>
  5.1274 +    </target>
  5.1275 +    <target name="-post-compile-test">
  5.1276 +        <!-- Empty placeholder for easier customization. -->
  5.1277 +        <!-- You can override this target in the ../build.xml file. -->
  5.1278 +    </target>
  5.1279 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
  5.1280 +    <target name="-pre-compile-test-single">
  5.1281 +        <!-- Empty placeholder for easier customization. -->
  5.1282 +        <!-- You can override this target in the ../build.xml file. -->
  5.1283 +    </target>
  5.1284 +    <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
  5.1285 +        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
  5.1286 +        <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
  5.1287 +        <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}"/>
  5.1288 +        <copy todir="${build.test.classes.dir}">
  5.1289 +            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  5.1290 +        </copy>
  5.1291 +    </target>
  5.1292 +    <target name="-post-compile-test-single">
  5.1293 +        <!-- Empty placeholder for easier customization. -->
  5.1294 +        <!-- You can override this target in the ../build.xml file. -->
  5.1295 +    </target>
  5.1296 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
  5.1297 +    <!--
  5.1298 +                =======================
  5.1299 +                TEST EXECUTION SECTION
  5.1300 +                =======================
  5.1301 +            -->
  5.1302 +    <target depends="init" if="have.tests" name="-pre-test-run">
  5.1303 +        <mkdir dir="${build.test.results.dir}"/>
  5.1304 +    </target>
  5.1305 +    <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
  5.1306 +        <j2seproject3:test includes="${includes}" testincludes="**/*Test.java"/>
  5.1307 +    </target>
  5.1308 +    <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
  5.1309 +        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
  5.1310 +    </target>
  5.1311 +    <target depends="init" if="have.tests" name="test-report"/>
  5.1312 +    <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
  5.1313 +    <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
  5.1314 +    <target depends="init" if="have.tests" name="-pre-test-run-single">
  5.1315 +        <mkdir dir="${build.test.results.dir}"/>
  5.1316 +    </target>
  5.1317 +    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
  5.1318 +        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
  5.1319 +        <j2seproject3:test excludes="" includes="${test.includes}" testincludes="${test.includes}"/>
  5.1320 +    </target>
  5.1321 +    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
  5.1322 +        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
  5.1323 +    </target>
  5.1324 +    <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"/>
  5.1325 +    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single-method">
  5.1326 +        <fail unless="test.class">Must select some files in the IDE or set test.class</fail>
  5.1327 +        <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
  5.1328 +        <j2seproject3:test excludes="" includes="${javac.includes}" testincludes="${test.class}" testmethods="${test.method}"/>
  5.1329 +    </target>
  5.1330 +    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method" if="have.tests" name="-post-test-run-single-method">
  5.1331 +        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
  5.1332 +    </target>
  5.1333 +    <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"/>
  5.1334 +    <!--
  5.1335 +                =======================
  5.1336 +                TEST DEBUGGING SECTION
  5.1337 +                =======================
  5.1338 +            -->
  5.1339 +    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test">
  5.1340 +        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
  5.1341 +        <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testincludes="${javac.includes}"/>
  5.1342 +    </target>
  5.1343 +    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test-method">
  5.1344 +        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
  5.1345 +        <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
  5.1346 +        <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testMethod="${test.method}" testincludes="${test.class}" testmethods="${test.method}"/>
  5.1347 +    </target>
  5.1348 +    <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
  5.1349 +        <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
  5.1350 +    </target>
  5.1351 +    <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
  5.1352 +    <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test-method" name="debug-test-method"/>
  5.1353 +    <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
  5.1354 +        <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
  5.1355 +    </target>
  5.1356 +    <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
  5.1357 +    <!--
  5.1358 +                =========================
  5.1359 +                APPLET EXECUTION SECTION
  5.1360 +                =========================
  5.1361 +            -->
  5.1362 +    <target depends="init,compile-single" name="run-applet">
  5.1363 +        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
  5.1364 +        <j2seproject1:java classname="sun.applet.AppletViewer">
  5.1365 +            <customize>
  5.1366 +                <arg value="${applet.url}"/>
  5.1367 +            </customize>
  5.1368 +        </j2seproject1:java>
  5.1369 +    </target>
  5.1370 +    <!--
  5.1371 +                =========================
  5.1372 +                APPLET DEBUGGING  SECTION
  5.1373 +                =========================
  5.1374 +            -->
  5.1375 +    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
  5.1376 +        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
  5.1377 +        <j2seproject3:debug classname="sun.applet.AppletViewer">
  5.1378 +            <customize>
  5.1379 +                <arg value="${applet.url}"/>
  5.1380 +            </customize>
  5.1381 +        </j2seproject3:debug>
  5.1382 +    </target>
  5.1383 +    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
  5.1384 +    <!--
  5.1385 +                ===============
  5.1386 +                CLEANUP SECTION
  5.1387 +                ===============
  5.1388 +            -->
  5.1389 +    <target name="-deps-clean-init" unless="built-clean.properties">
  5.1390 +        <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>
  5.1391 +        <delete file="${built-clean.properties}" quiet="true"/>
  5.1392 +    </target>
  5.1393 +    <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
  5.1394 +        <echo level="warn" message="Cycle detected: alt2xml-in-properties was already built"/>
  5.1395 +    </target>
  5.1396 +    <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
  5.1397 +        <mkdir dir="${build.dir}"/>
  5.1398 +        <touch file="${built-clean.properties}" verbose="false"/>
  5.1399 +        <property file="${built-clean.properties}" prefix="already.built.clean."/>
  5.1400 +        <antcall target="-warn-already-built-clean"/>
  5.1401 +        <propertyfile file="${built-clean.properties}">
  5.1402 +            <entry key="${basedir}" value=""/>
  5.1403 +        </propertyfile>
  5.1404 +        <antcall target="-maybe-call-dep">
  5.1405 +            <param name="call.built.properties" value="${built-clean.properties}"/>
  5.1406 +            <param location="${project.alt2xml-lib}" name="call.subproject"/>
  5.1407 +            <param location="${project.alt2xml-lib}/build.xml" name="call.script"/>
  5.1408 +            <param name="call.target" value="clean"/>
  5.1409 +            <param name="transfer.built-clean.properties" value="${built-clean.properties}"/>
  5.1410 +            <param name="transfer.not.archive.disabled" value="true"/>
  5.1411 +        </antcall>
  5.1412 +    </target>
  5.1413 +    <target depends="init" name="-do-clean">
  5.1414 +        <delete dir="${build.dir}"/>
  5.1415 +        <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
  5.1416 +    </target>
  5.1417 +    <target name="-post-clean">
  5.1418 +        <!-- Empty placeholder for easier customization. -->
  5.1419 +        <!-- You can override this target in the ../build.xml file. -->
  5.1420 +    </target>
  5.1421 +    <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
  5.1422 +    <target name="-check-call-dep">
  5.1423 +        <property file="${call.built.properties}" prefix="already.built."/>
  5.1424 +        <condition property="should.call.dep">
  5.1425 +            <and>
  5.1426 +                <not>
  5.1427 +                    <isset property="already.built.${call.subproject}"/>
  5.1428 +                </not>
  5.1429 +                <available file="${call.script}"/>
  5.1430 +            </and>
  5.1431 +        </condition>
  5.1432 +    </target>
  5.1433 +    <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
  5.1434 +        <ant antfile="${call.script}" inheritall="false" target="${call.target}">
  5.1435 +            <propertyset>
  5.1436 +                <propertyref prefix="transfer."/>
  5.1437 +                <mapper from="transfer.*" to="*" type="glob"/>
  5.1438 +            </propertyset>
  5.1439 +        </ant>
  5.1440 +    </target>
  5.1441 +</project>
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/java/alt2xml-in-properties/nbproject/genfiles.properties	Sat Jun 07 11:25:27 2014 +0200
     6.3 @@ -0,0 +1,8 @@
     6.4 +build.xml.data.CRC32=1573d3a6
     6.5 +build.xml.script.CRC32=462baf93
     6.6 +build.xml.stylesheet.CRC32=8064a381@1.74.2.48
     6.7 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
     6.8 +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
     6.9 +nbproject/build-impl.xml.data.CRC32=1573d3a6
    6.10 +nbproject/build-impl.xml.script.CRC32=4e81b18f
    6.11 +nbproject/build-impl.xml.stylesheet.CRC32=876e7a8f@1.74.2.48
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/java/alt2xml-in-properties/nbproject/project.properties	Sat Jun 07 11:25:27 2014 +0200
     7.3 @@ -0,0 +1,77 @@
     7.4 +annotation.processing.enabled=true
     7.5 +annotation.processing.enabled.in.editor=false
     7.6 +annotation.processing.processors.list=
     7.7 +annotation.processing.run.all.processors=true
     7.8 +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
     7.9 +application.title=alt2xml-in-properties
    7.10 +application.vendor=fiki
    7.11 +build.classes.dir=${build.dir}/classes
    7.12 +build.classes.excludes=**/*.java,**/*.form
    7.13 +# This directory is removed when the project is cleaned:
    7.14 +build.dir=build
    7.15 +build.generated.dir=${build.dir}/generated
    7.16 +build.generated.sources.dir=${build.dir}/generated-sources
    7.17 +# Only compile against the classpath explicitly listed here:
    7.18 +build.sysclasspath=ignore
    7.19 +build.test.classes.dir=${build.dir}/test/classes
    7.20 +build.test.results.dir=${build.dir}/test/results
    7.21 +# Uncomment to specify the preferred debugger connection transport:
    7.22 +#debug.transport=dt_socket
    7.23 +debug.classpath=\
    7.24 +    ${run.classpath}
    7.25 +debug.test.classpath=\
    7.26 +    ${run.test.classpath}
    7.27 +# Files in build.classes.dir which should be excluded from distribution jar
    7.28 +dist.archive.excludes=
    7.29 +# This directory is removed when the project is cleaned:
    7.30 +dist.dir=dist
    7.31 +dist.jar=${dist.dir}/alt2xml-in-properties.jar
    7.32 +dist.javadoc.dir=${dist.dir}/javadoc
    7.33 +endorsed.classpath=
    7.34 +excludes=
    7.35 +includes=**
    7.36 +jar.compress=false
    7.37 +javac.classpath=\
    7.38 +    ${reference.alt2xml-lib.jar}
    7.39 +# Space-separated list of extra javac options
    7.40 +javac.compilerargs=
    7.41 +javac.deprecation=false
    7.42 +javac.processorpath=\
    7.43 +    ${javac.classpath}
    7.44 +javac.source=1.7
    7.45 +javac.target=1.7
    7.46 +javac.test.classpath=\
    7.47 +    ${javac.classpath}:\
    7.48 +    ${build.classes.dir}
    7.49 +javac.test.processorpath=\
    7.50 +    ${javac.test.classpath}
    7.51 +javadoc.additionalparam=
    7.52 +javadoc.author=false
    7.53 +javadoc.encoding=${source.encoding}
    7.54 +javadoc.noindex=false
    7.55 +javadoc.nonavbar=false
    7.56 +javadoc.notree=false
    7.57 +javadoc.private=false
    7.58 +javadoc.splitindex=true
    7.59 +javadoc.use=true
    7.60 +javadoc.version=false
    7.61 +javadoc.windowtitle=
    7.62 +meta.inf.dir=${src.dir}/META-INF
    7.63 +mkdist.disabled=true
    7.64 +platform.active=default_platform
    7.65 +project.alt2xml-lib=../alt2xml-lib
    7.66 +reference.alt2xml-lib.jar=${project.alt2xml-lib}/dist/alt2xml-lib.jar
    7.67 +run.classpath=\
    7.68 +    ${javac.classpath}:\
    7.69 +    ${build.classes.dir}
    7.70 +# Space-separated list of JVM arguments used when running the project.
    7.71 +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value.
    7.72 +# To set system properties for unit tests define test-sys-prop.name=value:
    7.73 +run.jvmargs=
    7.74 +run.test.classpath=\
    7.75 +    ${javac.test.classpath}:\
    7.76 +    ${build.test.classes.dir}
    7.77 +source.encoding=UTF-8
    7.78 +src.config.dir=config
    7.79 +src.dir=src
    7.80 +test.src.dir=test
     8.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.2 +++ b/java/alt2xml-in-properties/nbproject/project.xml	Sat Jun 07 11:25:27 2014 +0200
     8.3 @@ -0,0 +1,26 @@
     8.4 +<?xml version="1.0" encoding="UTF-8"?>
     8.5 +<project xmlns="http://www.netbeans.org/ns/project/1">
     8.6 +    <type>org.netbeans.modules.java.j2seproject</type>
     8.7 +    <configuration>
     8.8 +        <data xmlns="http://www.netbeans.org/ns/j2se-project/3">
     8.9 +            <name>alt2xml-in-properties</name>
    8.10 +            <source-roots>
    8.11 +                <root id="src.dir"/>
    8.12 +                <root id="src.config.dir" name="Config"/>
    8.13 +            </source-roots>
    8.14 +            <test-roots>
    8.15 +                <root id="test.src.dir"/>
    8.16 +            </test-roots>
    8.17 +        </data>
    8.18 +        <references xmlns="http://www.netbeans.org/ns/ant-project-references/1">
    8.19 +            <reference>
    8.20 +                <foreign-project>alt2xml-lib</foreign-project>
    8.21 +                <artifact-type>jar</artifact-type>
    8.22 +                <script>build.xml</script>
    8.23 +                <target>jar</target>
    8.24 +                <clean-target>clean</clean-target>
    8.25 +                <id>jar</id>
    8.26 +            </reference>
    8.27 +        </references>
    8.28 +    </configuration>
    8.29 +</project>
     9.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.2 +++ b/java/alt2xml-in-properties/src/cz/frantovo/alt2xml/in/properties/Reader.java	Sat Jun 07 11:25:27 2014 +0200
     9.3 @@ -0,0 +1,35 @@
     9.4 +/**
     9.5 + * Alt2XML
     9.6 + * Copyright © 2014 František Kučera (frantovo.cz)
     9.7 + *
     9.8 + * This program is free software: you can redistribute it and/or modify
     9.9 + * it under the terms of the GNU General Public License as published by
    9.10 + * the Free Software Foundation, either version 3 of the License, or
    9.11 + * (at your option) any later version.
    9.12 + *
    9.13 + * This program is distributed in the hope that it will be useful,
    9.14 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
    9.15 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    9.16 + * GNU General Public License for more details.
    9.17 + *
    9.18 + * You should have received a copy of the GNU General Public License
    9.19 + * along with this program. If not, see <http://www.gnu.org/licenses/>.
    9.20 + */
    9.21 +package cz.frantovo.alt2xml.in.properties;
    9.22 +
    9.23 +import cz.frantovo.alt2xml.AbstractAlt2XmlReader;
    9.24 +import java.io.IOException;
    9.25 +import org.xml.sax.InputSource;
    9.26 +import org.xml.sax.SAXException;
    9.27 +
    9.28 +/**
    9.29 + *
    9.30 + * @author Ing. František Kučera (frantovo.cz)
    9.31 + */
    9.32 +public class Reader extends AbstractAlt2XmlReader {
    9.33 +
    9.34 +	@Override
    9.35 +	public void parse(InputSource input) throws IOException, SAXException {
    9.36 +
    9.37 +	}
    9.38 +}
    10.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.2 +++ b/java/alt2xml-in-properties/src/cz/frantovo/alt2xml/in/properties/ReaderFactory.java	Sat Jun 07 11:25:27 2014 +0200
    10.3 @@ -0,0 +1,41 @@
    10.4 +/**
    10.5 + * Alt2XML
    10.6 + * Copyright © 2014 František Kučera (frantovo.cz)
    10.7 + *
    10.8 + * This program is free software: you can redistribute it and/or modify
    10.9 + * it under the terms of the GNU General Public License as published by
   10.10 + * the Free Software Foundation, either version 3 of the License, or
   10.11 + * (at your option) any later version.
   10.12 + *
   10.13 + * This program is distributed in the hope that it will be useful,
   10.14 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
   10.15 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
   10.16 + * GNU General Public License for more details.
   10.17 + *
   10.18 + * You should have received a copy of the GNU General Public License
   10.19 + * along with this program. If not, see <http://www.gnu.org/licenses/>.
   10.20 + */
   10.21 +package cz.frantovo.alt2xml.in.properties;
   10.22 +
   10.23 +import cz.frantovo.alt2xml.Alt2XmlRegexReaderFactory;
   10.24 +import java.util.regex.Pattern;
   10.25 +import org.xml.sax.XMLReader;
   10.26 +
   10.27 +/**
   10.28 + *
   10.29 + * @author Ing. František Kučera (frantovo.cz)
   10.30 + */
   10.31 +public class ReaderFactory extends Alt2XmlRegexReaderFactory {
   10.32 +
   10.33 +	private static final Pattern pattern = Pattern.compile("^.*\\.properties$");
   10.34 +
   10.35 +	@Override
   10.36 +	protected Pattern getSystemIdPattern() {
   10.37 +		return pattern;
   10.38 +	}
   10.39 +
   10.40 +	@Override
   10.41 +	public XMLReader getReader() {
   10.42 +		return new Reader();
   10.43 +	}
   10.44 +}