přesun tříd do správných projektů/balíčků
authorFrantišek Kučera <franta-hg@frantovo.cz>
Sat, 07 Jun 2014 10:49:42 +0200
changeset 16b2fbb3570ae1
parent 15 b890783e4043
child 17 64358dd0999f
přesun tříd do správných projektů/balíčků
.hgignore
java/alt2xml-bin/build.xml
java/alt2xml-bin/manifest.mf
java/alt2xml-bin/nbproject/build-impl.xml
java/alt2xml-bin/nbproject/build-impl.xml.orig
java/alt2xml-bin/nbproject/genfiles.properties
java/alt2xml-bin/nbproject/groovy-build.xml
java/alt2xml-bin/nbproject/project.properties
java/alt2xml-bin/nbproject/project.xml
java/alt2xml-bin/src/cz/frantovo/alt2xml/CLI.java
java/alt2xml-bin/src/cz/frantovo/alt2xml/ReaderFinder.java
java/alt2xml-bin/src/cz/frantovo/alt2xml/SAXTovarna.java
java/alt2xml-bin/src/cz/frantovo/alt2xml/vstup/SuperReader.java
java/alt2xml-bin/src/cz/frantovo/alt2xml/výstup/EchoContentHandler.java
java/alt2xml-cli/build.xml
java/alt2xml-cli/manifest.mf
java/alt2xml-cli/nbproject/build-impl.xml
java/alt2xml-cli/nbproject/build-impl.xml.orig
java/alt2xml-cli/nbproject/genfiles.properties
java/alt2xml-cli/nbproject/groovy-build.xml
java/alt2xml-cli/nbproject/project.properties
java/alt2xml-cli/nbproject/project.xml
java/alt2xml-cli/src/cz/frantovo/alt2xml/cli/CLI.java
java/alt2xml-cli/src/cz/frantovo/alt2xml/cli/EchoContentHandler.java
java/alt2xml-lib/src/cz/frantovo/alt2xml/ParserFactory.java
java/alt2xml-lib/src/cz/frantovo/alt2xml/ReaderFinder.java
java/alt2xml-lib/src/cz/frantovo/alt2xml/SuperReader.java
     1.1 --- a/.hgignore	Sat Jun 07 10:38:31 2014 +0200
     1.2 +++ b/.hgignore	Sat Jun 07 10:49:42 2014 +0200
     1.3 @@ -1,6 +1,6 @@
     1.4 -java/alt2xml-bin/dist/*
     1.5 -java/alt2xml-bin/build/*
     1.6 -java/alt2xml-bin/nbproject/private/*
     1.7 +java/alt2xml-cli/dist/*
     1.8 +java/alt2xml-cli/build/*
     1.9 +java/alt2xml-cli/nbproject/private/*
    1.10  
    1.11  java/alt2xml-lib/dist/*
    1.12  java/alt2xml-lib/build/*
     2.1 --- a/java/alt2xml-bin/build.xml	Sat Jun 07 10:38:31 2014 +0200
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,73 +0,0 @@
     2.4 -<?xml version="1.0" encoding="UTF-8"?>
     2.5 -<!-- You may freely edit this file. See commented blocks below for -->
     2.6 -<!-- some examples of how to customize the build. -->
     2.7 -<!-- (If you delete it and reopen the project it will be recreated.) -->
     2.8 -<!-- By default, only the Clean and Build commands use this build script. -->
     2.9 -<!-- Commands such as Run, Debug, and Test only use this build script if -->
    2.10 -<!-- the Compile on Save feature is turned off for the project. -->
    2.11 -<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
    2.12 -<!-- in the project's Project Properties dialog box.-->
    2.13 -<project name="alt2xml-bin" default="default" basedir=".">
    2.14 -    <description>Builds, tests, and runs the project alt2xml-bin.</description>
    2.15 -    <import file="nbproject/build-impl.xml"/>
    2.16 -    <!--
    2.17 -
    2.18 -    There exist several targets which are by default empty and which can be 
    2.19 -    used for execution of your tasks. These targets are usually executed 
    2.20 -    before and after some main targets. They are: 
    2.21 -
    2.22 -      -pre-init:                 called before initialization of project properties
    2.23 -      -post-init:                called after initialization of project properties
    2.24 -      -pre-compile:              called before javac compilation
    2.25 -      -post-compile:             called after javac compilation
    2.26 -      -pre-compile-single:       called before javac compilation of single file
    2.27 -      -post-compile-single:      called after javac compilation of single file
    2.28 -      -pre-compile-test:         called before javac compilation of JUnit tests
    2.29 -      -post-compile-test:        called after javac compilation of JUnit tests
    2.30 -      -pre-compile-test-single:  called before javac compilation of single JUnit test
    2.31 -      -post-compile-test-single: called after javac compilation of single JUunit test
    2.32 -      -pre-jar:                  called before JAR building
    2.33 -      -post-jar:                 called after JAR building
    2.34 -      -post-clean:               called after cleaning build products
    2.35 -
    2.36 -    (Targets beginning with '-' are not intended to be called on their own.)
    2.37 -
    2.38 -    Example of inserting an obfuscator after compilation could look like this:
    2.39 -
    2.40 -        <target name="-post-compile">
    2.41 -            <obfuscate>
    2.42 -                <fileset dir="${build.classes.dir}"/>
    2.43 -            </obfuscate>
    2.44 -        </target>
    2.45 -
    2.46 -    For list of available properties check the imported 
    2.47 -    nbproject/build-impl.xml file. 
    2.48 -
    2.49 -
    2.50 -    Another way to customize the build is by overriding existing main targets.
    2.51 -    The targets of interest are: 
    2.52 -
    2.53 -      -init-macrodef-javac:     defines macro for javac compilation
    2.54 -      -init-macrodef-junit:     defines macro for junit execution
    2.55 -      -init-macrodef-debug:     defines macro for class debugging
    2.56 -      -init-macrodef-java:      defines macro for class execution
    2.57 -      -do-jar:                  JAR building
    2.58 -      run:                      execution of project 
    2.59 -      -javadoc-build:           Javadoc generation
    2.60 -      test-report:              JUnit report generation
    2.61 -
    2.62 -    An example of overriding the target for project execution could look like this:
    2.63 -
    2.64 -        <target name="run" depends="alt2xml-bin-impl.jar">
    2.65 -            <exec dir="bin" executable="launcher.exe">
    2.66 -                <arg file="${dist.jar}"/>
    2.67 -            </exec>
    2.68 -        </target>
    2.69 -
    2.70 -    Notice that the overridden target depends on the jar target and not only on 
    2.71 -    the compile target as the regular run target does. Again, for a list of available 
    2.72 -    properties which you can use, check the target you are overriding in the
    2.73 -    nbproject/build-impl.xml file. 
    2.74 -
    2.75 -    -->
    2.76 -</project>
     3.1 --- a/java/alt2xml-bin/manifest.mf	Sat Jun 07 10:38:31 2014 +0200
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,3 +0,0 @@
     3.4 -Manifest-Version: 1.0
     3.5 -X-COMMENT: Main-Class will be added automatically by build
     3.6 -
     4.1 --- a/java/alt2xml-bin/nbproject/build-impl.xml	Sat Jun 07 10:38:31 2014 +0200
     4.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.3 @@ -1,1042 +0,0 @@
     4.4 -<?xml version="1.0" encoding="UTF-8"?>
     4.5 -<!--
     4.6 -*** GENERATED FROM project.xml - DO NOT EDIT  ***
     4.7 -***         EDIT ../build.xml INSTEAD         ***
     4.8 -
     4.9 -For the purpose of easier reading the script
    4.10 -is divided into following sections:
    4.11 -
    4.12 -  - initialization
    4.13 -  - compilation
    4.14 -  - jar
    4.15 -  - execution
    4.16 -  - debugging
    4.17 -  - javadoc
    4.18 -  - junit compilation
    4.19 -  - junit execution
    4.20 -  - junit debugging
    4.21 -  - applet
    4.22 -  - cleanup
    4.23 -
    4.24 -        -->
    4.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-impl">
    4.26 -    <fail message="Please build using Ant 1.7.1 or higher.">
    4.27 -        <condition>
    4.28 -            <not>
    4.29 -                <antversion atleast="1.7.1"/>
    4.30 -            </not>
    4.31 -        </condition>
    4.32 -    </fail>
    4.33 -    <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
    4.34 -    <!-- 
    4.35 -                ======================
    4.36 -                INITIALIZATION SECTION 
    4.37 -                ======================
    4.38 -            -->
    4.39 -    <target name="-pre-init">
    4.40 -        <!-- Empty placeholder for easier customization. -->
    4.41 -        <!-- You can override this target in the ../build.xml file. -->
    4.42 -    </target>
    4.43 -    <target depends="-pre-init" name="-init-private">
    4.44 -        <property file="nbproject/private/config.properties"/>
    4.45 -        <property file="nbproject/private/configs/${config}.properties"/>
    4.46 -        <property file="nbproject/private/private.properties"/>
    4.47 -    </target>
    4.48 -    <target depends="-pre-init,-init-private" name="-init-user">
    4.49 -        <property file="${user.properties.file}"/>
    4.50 -        <!-- The two properties below are usually overridden -->
    4.51 -        <!-- by the active platform. Just a fallback. -->
    4.52 -        <property name="default.javac.source" value="1.4"/>
    4.53 -        <property name="default.javac.target" value="1.4"/>
    4.54 -    </target>
    4.55 -    <target depends="-pre-init,-init-private,-init-user" name="-init-project">
    4.56 -        <property file="nbproject/configs/${config}.properties"/>
    4.57 -        <property file="nbproject/project.properties"/>
    4.58 -    </target>
    4.59 -    <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
    4.60 -        <available file="${manifest.file}" property="manifest.available"/>
    4.61 -        <condition property="splashscreen.available">
    4.62 -            <and>
    4.63 -                <not>
    4.64 -                    <equals arg1="${application.splash}" arg2="" trim="true"/>
    4.65 -                </not>
    4.66 -                <available file="${application.splash}"/>
    4.67 -            </and>
    4.68 -        </condition>
    4.69 -        <condition property="main.class.available">
    4.70 -            <and>
    4.71 -                <isset property="main.class"/>
    4.72 -                <not>
    4.73 -                    <equals arg1="${main.class}" arg2="" trim="true"/>
    4.74 -                </not>
    4.75 -            </and>
    4.76 -        </condition>
    4.77 -        <condition property="manifest.available+main.class">
    4.78 -            <and>
    4.79 -                <isset property="manifest.available"/>
    4.80 -                <isset property="main.class.available"/>
    4.81 -            </and>
    4.82 -        </condition>
    4.83 -        <condition property="do.archive">
    4.84 -            <not>
    4.85 -                <istrue value="${jar.archive.disabled}"/>
    4.86 -            </not>
    4.87 -        </condition>
    4.88 -        <condition property="do.mkdist">
    4.89 -            <and>
    4.90 -                <isset property="do.archive"/>
    4.91 -                <isset property="libs.CopyLibs.classpath"/>
    4.92 -                <not>
    4.93 -                    <istrue value="${mkdist.disabled}"/>
    4.94 -                </not>
    4.95 -            </and>
    4.96 -        </condition>
    4.97 -        <condition property="manifest.available+main.class+mkdist.available">
    4.98 -            <and>
    4.99 -                <istrue value="${manifest.available+main.class}"/>
   4.100 -                <isset property="do.mkdist"/>
   4.101 -            </and>
   4.102 -        </condition>
   4.103 -        <condition property="do.archive+manifest.available">
   4.104 -            <and>
   4.105 -                <isset property="manifest.available"/>
   4.106 -                <istrue value="${do.archive}"/>
   4.107 -            </and>
   4.108 -        </condition>
   4.109 -        <condition property="do.archive+main.class.available">
   4.110 -            <and>
   4.111 -                <isset property="main.class.available"/>
   4.112 -                <istrue value="${do.archive}"/>
   4.113 -            </and>
   4.114 -        </condition>
   4.115 -        <condition property="do.archive+splashscreen.available">
   4.116 -            <and>
   4.117 -                <isset property="splashscreen.available"/>
   4.118 -                <istrue value="${do.archive}"/>
   4.119 -            </and>
   4.120 -        </condition>
   4.121 -        <condition property="do.archive+manifest.available+main.class">
   4.122 -            <and>
   4.123 -                <istrue value="${manifest.available+main.class}"/>
   4.124 -                <istrue value="${do.archive}"/>
   4.125 -            </and>
   4.126 -        </condition>
   4.127 -        <condition property="manifest.available-mkdist.available">
   4.128 -            <or>
   4.129 -                <istrue value="${manifest.available}"/>
   4.130 -                <isset property="do.mkdist"/>
   4.131 -            </or>
   4.132 -        </condition>
   4.133 -        <condition property="manifest.available+main.class-mkdist.available">
   4.134 -            <or>
   4.135 -                <istrue value="${manifest.available+main.class}"/>
   4.136 -                <isset property="do.mkdist"/>
   4.137 -            </or>
   4.138 -        </condition>
   4.139 -        <condition property="have.tests">
   4.140 -            <or>
   4.141 -                <available file="${test.src.dir}"/>
   4.142 -            </or>
   4.143 -        </condition>
   4.144 -        <condition property="have.sources">
   4.145 -            <or>
   4.146 -                <available file="${src.dir}"/>
   4.147 -            </or>
   4.148 -        </condition>
   4.149 -        <condition property="netbeans.home+have.tests">
   4.150 -            <and>
   4.151 -                <isset property="netbeans.home"/>
   4.152 -                <isset property="have.tests"/>
   4.153 -            </and>
   4.154 -        </condition>
   4.155 -        <condition property="no.javadoc.preview">
   4.156 -            <and>
   4.157 -                <isset property="javadoc.preview"/>
   4.158 -                <isfalse value="${javadoc.preview}"/>
   4.159 -            </and>
   4.160 -        </condition>
   4.161 -        <property name="run.jvmargs" value=""/>
   4.162 -        <property name="javac.compilerargs" value=""/>
   4.163 -        <property name="work.dir" value="${basedir}"/>
   4.164 -        <condition property="no.deps">
   4.165 -            <and>
   4.166 -                <istrue value="${no.dependencies}"/>
   4.167 -            </and>
   4.168 -        </condition>
   4.169 -        <property name="javac.debug" value="true"/>
   4.170 -        <property name="javadoc.preview" value="true"/>
   4.171 -        <property name="application.args" value=""/>
   4.172 -        <property name="source.encoding" value="${file.encoding}"/>
   4.173 -        <property name="runtime.encoding" value="${source.encoding}"/>
   4.174 -        <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
   4.175 -            <and>
   4.176 -                <isset property="javadoc.encoding"/>
   4.177 -                <not>
   4.178 -                    <equals arg1="${javadoc.encoding}" arg2=""/>
   4.179 -                </not>
   4.180 -            </and>
   4.181 -        </condition>
   4.182 -        <property name="javadoc.encoding.used" value="${source.encoding}"/>
   4.183 -        <property name="includes" value="**"/>
   4.184 -        <property name="excludes" value=""/>
   4.185 -        <property name="do.depend" value="false"/>
   4.186 -        <condition property="do.depend.true">
   4.187 -            <istrue value="${do.depend}"/>
   4.188 -        </condition>
   4.189 -        <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
   4.190 -        <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
   4.191 -            <length length="0" string="${endorsed.classpath}" when="greater"/>
   4.192 -        </condition>
   4.193 -        <condition else="false" property="jdkBug6558476">
   4.194 -            <and>
   4.195 -                <matches pattern="1\.[56]" string="${java.specification.version}"/>
   4.196 -                <not>
   4.197 -                    <os family="unix"/>
   4.198 -                </not>
   4.199 -            </and>
   4.200 -        </condition>
   4.201 -        <property name="javac.fork" value="${jdkBug6558476}"/>
   4.202 -        <property name="jar.index" value="false"/>
   4.203 -        <property name="jar.index.metainf" value="${jar.index}"/>
   4.204 -        <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
   4.205 -    </target>
   4.206 -    <target name="-post-init">
   4.207 -        <!-- Empty placeholder for easier customization. -->
   4.208 -        <!-- You can override this target in the ../build.xml file. -->
   4.209 -    </target>
   4.210 -    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
   4.211 -        <fail unless="src.dir">Must set src.dir</fail>
   4.212 -        <fail unless="test.src.dir">Must set test.src.dir</fail>
   4.213 -        <fail unless="build.dir">Must set build.dir</fail>
   4.214 -        <fail unless="dist.dir">Must set dist.dir</fail>
   4.215 -        <fail unless="build.classes.dir">Must set build.classes.dir</fail>
   4.216 -        <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
   4.217 -        <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
   4.218 -        <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
   4.219 -        <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
   4.220 -        <fail unless="dist.jar">Must set dist.jar</fail>
   4.221 -    </target>
   4.222 -    <target name="-init-macrodef-property">
   4.223 -        <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
   4.224 -            <attribute name="name"/>
   4.225 -            <attribute name="value"/>
   4.226 -            <sequential>
   4.227 -                <property name="@{name}" value="${@{value}}"/>
   4.228 -            </sequential>
   4.229 -        </macrodef>
   4.230 -    </target>
   4.231 -    <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
   4.232 -        <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
   4.233 -            <attribute default="${src.dir}" name="srcdir"/>
   4.234 -            <attribute default="${build.classes.dir}" name="destdir"/>
   4.235 -            <attribute default="${javac.classpath}" name="classpath"/>
   4.236 -            <attribute default="${javac.processorpath}" name="processorpath"/>
   4.237 -            <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
   4.238 -            <attribute default="${includes}" name="includes"/>
   4.239 -            <attribute default="${excludes}" name="excludes"/>
   4.240 -            <attribute default="${javac.debug}" name="debug"/>
   4.241 -            <attribute default="${empty.dir}" name="sourcepath"/>
   4.242 -            <attribute default="${empty.dir}" name="gensrcdir"/>
   4.243 -            <element name="customize" optional="true"/>
   4.244 -            <sequential>
   4.245 -                <property location="${build.dir}/empty" name="empty.dir"/>
   4.246 -                <mkdir dir="${empty.dir}"/>
   4.247 -                <mkdir dir="@{apgeneratedsrcdir}"/>
   4.248 -                <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}">
   4.249 -                    <src>
   4.250 -                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
   4.251 -                            <include name="*"/>
   4.252 -                        </dirset>
   4.253 -                    </src>
   4.254 -                    <classpath>
   4.255 -                        <path path="@{classpath}"/>
   4.256 -                    </classpath>
   4.257 -                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
   4.258 -                    <compilerarg line="${javac.compilerargs}"/>
   4.259 -                    <compilerarg value="-processorpath"/>
   4.260 -                    <compilerarg path="@{processorpath}:${empty.dir}"/>
   4.261 -                    <compilerarg line="${ap.processors.internal}"/>
   4.262 -                    <compilerarg line="${annotation.processing.processor.options}"/>
   4.263 -                    <compilerarg value="-s"/>
   4.264 -                    <compilerarg path="@{apgeneratedsrcdir}"/>
   4.265 -                    <compilerarg line="${ap.proc.none.internal}"/>
   4.266 -                    <customize/>
   4.267 -                </javac>
   4.268 -            </sequential>
   4.269 -        </macrodef>
   4.270 -    </target>
   4.271 -    <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
   4.272 -        <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
   4.273 -            <attribute default="${src.dir}" name="srcdir"/>
   4.274 -            <attribute default="${build.classes.dir}" name="destdir"/>
   4.275 -            <attribute default="${javac.classpath}" name="classpath"/>
   4.276 -            <attribute default="${javac.processorpath}" name="processorpath"/>
   4.277 -            <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
   4.278 -            <attribute default="${includes}" name="includes"/>
   4.279 -            <attribute default="${excludes}" name="excludes"/>
   4.280 -            <attribute default="${javac.debug}" name="debug"/>
   4.281 -            <attribute default="${empty.dir}" name="sourcepath"/>
   4.282 -            <attribute default="${empty.dir}" name="gensrcdir"/>
   4.283 -            <element name="customize" optional="true"/>
   4.284 -            <sequential>
   4.285 -                <property location="${build.dir}/empty" name="empty.dir"/>
   4.286 -                <mkdir dir="${empty.dir}"/>
   4.287 -                <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}">
   4.288 -                    <src>
   4.289 -                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
   4.290 -                            <include name="*"/>
   4.291 -                        </dirset>
   4.292 -                    </src>
   4.293 -                    <classpath>
   4.294 -                        <path path="@{classpath}"/>
   4.295 -                    </classpath>
   4.296 -                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
   4.297 -                    <compilerarg line="${javac.compilerargs}"/>
   4.298 -                    <customize/>
   4.299 -                </javac>
   4.300 -            </sequential>
   4.301 -        </macrodef>
   4.302 -    </target>
   4.303 -    <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
   4.304 -        <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
   4.305 -            <attribute default="${src.dir}" name="srcdir"/>
   4.306 -            <attribute default="${build.classes.dir}" name="destdir"/>
   4.307 -            <attribute default="${javac.classpath}" name="classpath"/>
   4.308 -            <sequential>
   4.309 -                <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
   4.310 -                    <classpath>
   4.311 -                        <path path="@{classpath}"/>
   4.312 -                    </classpath>
   4.313 -                </depend>
   4.314 -            </sequential>
   4.315 -        </macrodef>
   4.316 -        <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
   4.317 -            <attribute default="${build.classes.dir}" name="destdir"/>
   4.318 -            <sequential>
   4.319 -                <fail unless="javac.includes">Must set javac.includes</fail>
   4.320 -                <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
   4.321 -                    <path>
   4.322 -                        <filelist dir="@{destdir}" files="${javac.includes}"/>
   4.323 -                    </path>
   4.324 -                    <globmapper from="*.java" to="*.class"/>
   4.325 -                </pathconvert>
   4.326 -                <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
   4.327 -                <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
   4.328 -                <delete>
   4.329 -                    <files includesfile="${javac.includesfile.binary}"/>
   4.330 -                </delete>
   4.331 -                <delete>
   4.332 -                    <fileset file="${javac.includesfile.binary}"/>
   4.333 -                </delete>
   4.334 -            </sequential>
   4.335 -        </macrodef>
   4.336 -    </target>
   4.337 -    <target name="-init-macrodef-junit">
   4.338 -        <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
   4.339 -            <attribute default="${includes}" name="includes"/>
   4.340 -            <attribute default="${excludes}" name="excludes"/>
   4.341 -            <attribute default="**" name="testincludes"/>
   4.342 -            <sequential>
   4.343 -                <property name="junit.forkmode" value="perTest"/>
   4.344 -                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
   4.345 -                    <batchtest todir="${build.test.results.dir}">
   4.346 -                        <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
   4.347 -                            <filename name="@{testincludes}"/>
   4.348 -                        </fileset>
   4.349 -                    </batchtest>
   4.350 -                    <classpath>
   4.351 -                        <path path="${run.test.classpath}"/>
   4.352 -                    </classpath>
   4.353 -                    <syspropertyset>
   4.354 -                        <propertyref prefix="test-sys-prop."/>
   4.355 -                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
   4.356 -                    </syspropertyset>
   4.357 -                    <formatter type="brief" usefile="false"/>
   4.358 -                    <formatter type="xml"/>
   4.359 -                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   4.360 -                    <jvmarg value="-ea"/>
   4.361 -                    <jvmarg line="${run.jvmargs}"/>
   4.362 -                </junit>
   4.363 -            </sequential>
   4.364 -        </macrodef>
   4.365 -    </target>
   4.366 -    <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" name="profile-init"/>
   4.367 -    <target name="-profile-pre-init">
   4.368 -        <!-- Empty placeholder for easier customization. -->
   4.369 -        <!-- You can override this target in the ../build.xml file. -->
   4.370 -    </target>
   4.371 -    <target name="-profile-post-init">
   4.372 -        <!-- Empty placeholder for easier customization. -->
   4.373 -        <!-- You can override this target in the ../build.xml file. -->
   4.374 -    </target>
   4.375 -    <target name="-profile-init-macrodef-profile">
   4.376 -        <macrodef name="resolve">
   4.377 -            <attribute name="name"/>
   4.378 -            <attribute name="value"/>
   4.379 -            <sequential>
   4.380 -                <property name="@{name}" value="${env.@{value}}"/>
   4.381 -            </sequential>
   4.382 -        </macrodef>
   4.383 -        <macrodef name="profile">
   4.384 -            <attribute default="${main.class}" name="classname"/>
   4.385 -            <element name="customize" optional="true"/>
   4.386 -            <sequential>
   4.387 -                <property environment="env"/>
   4.388 -                <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
   4.389 -                <java classname="@{classname}" dir="${profiler.info.dir}" fork="true" jvm="${profiler.info.jvm}">
   4.390 -                    <jvmarg value="${profiler.info.jvmargs.agent}"/>
   4.391 -                    <jvmarg line="${profiler.info.jvmargs}"/>
   4.392 -                    <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
   4.393 -                    <arg line="${application.args}"/>
   4.394 -                    <classpath>
   4.395 -                        <path path="${run.classpath}"/>
   4.396 -                    </classpath>
   4.397 -                    <syspropertyset>
   4.398 -                        <propertyref prefix="run-sys-prop."/>
   4.399 -                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
   4.400 -                    </syspropertyset>
   4.401 -                    <customize/>
   4.402 -                </java>
   4.403 -            </sequential>
   4.404 -        </macrodef>
   4.405 -    </target>
   4.406 -    <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" name="-profile-init-check">
   4.407 -        <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
   4.408 -        <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
   4.409 -    </target>
   4.410 -    <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
   4.411 -        <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
   4.412 -            <attribute default="${main.class}" name="name"/>
   4.413 -            <attribute default="${debug.classpath}" name="classpath"/>
   4.414 -            <attribute default="" name="stopclassname"/>
   4.415 -            <sequential>
   4.416 -                <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
   4.417 -                    <classpath>
   4.418 -                        <path path="@{classpath}"/>
   4.419 -                    </classpath>
   4.420 -                </nbjpdastart>
   4.421 -            </sequential>
   4.422 -        </macrodef>
   4.423 -        <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
   4.424 -            <attribute default="${build.classes.dir}" name="dir"/>
   4.425 -            <sequential>
   4.426 -                <nbjpdareload>
   4.427 -                    <fileset dir="@{dir}" includes="${fix.classes}">
   4.428 -                        <include name="${fix.includes}*.class"/>
   4.429 -                    </fileset>
   4.430 -                </nbjpdareload>
   4.431 -            </sequential>
   4.432 -        </macrodef>
   4.433 -    </target>
   4.434 -    <target name="-init-debug-args">
   4.435 -        <property name="version-output" value="java version &quot;${ant.java.version}"/>
   4.436 -        <condition property="have-jdk-older-than-1.4">
   4.437 -            <or>
   4.438 -                <contains string="${version-output}" substring="java version &quot;1.0"/>
   4.439 -                <contains string="${version-output}" substring="java version &quot;1.1"/>
   4.440 -                <contains string="${version-output}" substring="java version &quot;1.2"/>
   4.441 -                <contains string="${version-output}" substring="java version &quot;1.3"/>
   4.442 -            </or>
   4.443 -        </condition>
   4.444 -        <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
   4.445 -            <istrue value="${have-jdk-older-than-1.4}"/>
   4.446 -        </condition>
   4.447 -        <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
   4.448 -            <os family="windows"/>
   4.449 -        </condition>
   4.450 -        <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
   4.451 -            <isset property="debug.transport"/>
   4.452 -        </condition>
   4.453 -    </target>
   4.454 -    <target depends="-init-debug-args" name="-init-macrodef-debug">
   4.455 -        <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
   4.456 -            <attribute default="${main.class}" name="classname"/>
   4.457 -            <attribute default="${debug.classpath}" name="classpath"/>
   4.458 -            <element name="customize" optional="true"/>
   4.459 -            <sequential>
   4.460 -                <java classname="@{classname}" dir="${work.dir}" fork="true">
   4.461 -                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   4.462 -                    <jvmarg line="${debug-args-line}"/>
   4.463 -                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
   4.464 -                    <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
   4.465 -                    <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
   4.466 -                    <jvmarg line="${run.jvmargs}"/>
   4.467 -                    <classpath>
   4.468 -                        <path path="@{classpath}"/>
   4.469 -                    </classpath>
   4.470 -                    <syspropertyset>
   4.471 -                        <propertyref prefix="run-sys-prop."/>
   4.472 -                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
   4.473 -                    </syspropertyset>
   4.474 -                    <customize/>
   4.475 -                </java>
   4.476 -            </sequential>
   4.477 -        </macrodef>
   4.478 -    </target>
   4.479 -    <target name="-init-macrodef-java">
   4.480 -        <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
   4.481 -            <attribute default="${main.class}" name="classname"/>
   4.482 -            <attribute default="${run.classpath}" name="classpath"/>
   4.483 -            <element name="customize" optional="true"/>
   4.484 -            <sequential>
   4.485 -                <java classname="@{classname}" dir="${work.dir}" fork="true">
   4.486 -                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   4.487 -                    <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
   4.488 -                    <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
   4.489 -                    <jvmarg line="${run.jvmargs}"/>
   4.490 -                    <classpath>
   4.491 -                        <path path="@{classpath}"/>
   4.492 -                    </classpath>
   4.493 -                    <syspropertyset>
   4.494 -                        <propertyref prefix="run-sys-prop."/>
   4.495 -                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
   4.496 -                    </syspropertyset>
   4.497 -                    <customize/>
   4.498 -                </java>
   4.499 -            </sequential>
   4.500 -        </macrodef>
   4.501 -    </target>
   4.502 -    <target name="-init-macrodef-copylibs">
   4.503 -        <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">
   4.504 -            <attribute default="${manifest.file}" name="manifest"/>
   4.505 -            <element name="customize" optional="true"/>
   4.506 -            <sequential>
   4.507 -                <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
   4.508 -                <pathconvert property="run.classpath.without.build.classes.dir">
   4.509 -                    <path path="${run.classpath}"/>
   4.510 -                    <map from="${build.classes.dir.resolved}" to=""/>
   4.511 -                </pathconvert>
   4.512 -                <pathconvert pathsep=" " property="jar.classpath">
   4.513 -                    <path path="${run.classpath.without.build.classes.dir}"/>
   4.514 -                    <chainedmapper>
   4.515 -                        <flattenmapper/>
   4.516 -                        <globmapper from="*" to="lib/*"/>
   4.517 -                    </chainedmapper>
   4.518 -                </pathconvert>
   4.519 -                <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
   4.520 -                <copylibs compress="${jar.compress}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
   4.521 -                    <fileset dir="${build.classes.dir}"/>
   4.522 -                    <manifest>
   4.523 -                        <attribute name="Class-Path" value="${jar.classpath}"/>
   4.524 -                        <customize/>
   4.525 -                    </manifest>
   4.526 -                </copylibs>
   4.527 -            </sequential>
   4.528 -        </macrodef>
   4.529 -    </target>
   4.530 -    <target name="-init-presetdef-jar">
   4.531 -        <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
   4.532 -            <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">
   4.533 -                <j2seproject1:fileset dir="${build.classes.dir}"/>
   4.534 -            </jar>
   4.535 -        </presetdef>
   4.536 -    </target>
   4.537 -    <target name="-init-ap-cmdline-properties">
   4.538 -        <property name="annotation.processing.enabled" value="true"/>
   4.539 -        <property name="annotation.processing.processors.list" value=""/>
   4.540 -        <property name="annotation.processing.processor.options" value=""/>
   4.541 -        <property name="annotation.processing.run.all.processors" value="true"/>
   4.542 -        <property name="javac.processorpath" value="${javac.classpath}"/>
   4.543 -        <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
   4.544 -        <condition property="ap.supported.internal" value="true">
   4.545 -            <not>
   4.546 -                <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
   4.547 -            </not>
   4.548 -        </condition>
   4.549 -    </target>
   4.550 -    <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
   4.551 -        <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
   4.552 -            <isfalse value="${annotation.processing.run.all.processors}"/>
   4.553 -        </condition>
   4.554 -        <condition else="" property="ap.proc.none.internal" value="-proc:none">
   4.555 -            <isfalse value="${annotation.processing.enabled}"/>
   4.556 -        </condition>
   4.557 -    </target>
   4.558 -    <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
   4.559 -        <property name="ap.cmd.line.internal" value=""/>
   4.560 -    </target>
   4.561 -    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-junit,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar,-init-ap-cmdline" name="init"/>
   4.562 -    <!--
   4.563 -                ===================
   4.564 -                COMPILATION SECTION
   4.565 -                ===================
   4.566 -            -->
   4.567 -    <target name="-deps-jar-init" unless="built-jar.properties">
   4.568 -        <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>
   4.569 -        <delete file="${built-jar.properties}" quiet="true"/>
   4.570 -    </target>
   4.571 -    <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
   4.572 -        <echo level="warn" message="Cycle detected: alt2xml was already built"/>
   4.573 -    </target>
   4.574 -    <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
   4.575 -        <mkdir dir="${build.dir}"/>
   4.576 -        <touch file="${built-jar.properties}" verbose="false"/>
   4.577 -        <property file="${built-jar.properties}" prefix="already.built.jar."/>
   4.578 -        <antcall target="-warn-already-built-jar"/>
   4.579 -        <propertyfile file="${built-jar.properties}">
   4.580 -            <entry key="${basedir}" value=""/>
   4.581 -        </propertyfile>
   4.582 -    </target>
   4.583 -    <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
   4.584 -    <target depends="init" name="-check-automatic-build">
   4.585 -        <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
   4.586 -    </target>
   4.587 -    <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
   4.588 -        <antcall target="clean"/>
   4.589 -    </target>
   4.590 -    <target depends="init,deps-jar" name="-pre-pre-compile">
   4.591 -        <mkdir dir="${build.classes.dir}"/>
   4.592 -    </target>
   4.593 -    <target name="-pre-compile">
   4.594 -        <!-- Empty placeholder for easier customization. -->
   4.595 -        <!-- You can override this target in the ../build.xml file. -->
   4.596 -    </target>
   4.597 -    <target if="do.depend.true" name="-compile-depend">
   4.598 -        <pathconvert property="build.generated.subdirs">
   4.599 -            <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
   4.600 -                <include name="*"/>
   4.601 -            </dirset>
   4.602 -        </pathconvert>
   4.603 -        <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>
   4.604 -    </target>
   4.605 -    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">
   4.606 -        <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
   4.607 -        <copy todir="${build.classes.dir}">
   4.608 -            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
   4.609 -        </copy>
   4.610 -    </target>
   4.611 -    <target if="has.persistence.xml" name="-copy-persistence-xml">
   4.612 -        <mkdir dir="${build.classes.dir}/META-INF"/>
   4.613 -        <copy todir="${build.classes.dir}/META-INF">
   4.614 -            <fileset dir="${meta.inf.dir}" includes="persistence.xml"/>
   4.615 -        </copy>
   4.616 -    </target>
   4.617 -    <target name="-post-compile">
   4.618 -        <!-- Empty placeholder for easier customization. -->
   4.619 -        <!-- You can override this target in the ../build.xml file. -->
   4.620 -    </target>
   4.621 -    <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
   4.622 -    <target name="-pre-compile-single">
   4.623 -        <!-- Empty placeholder for easier customization. -->
   4.624 -        <!-- You can override this target in the ../build.xml file. -->
   4.625 -    </target>
   4.626 -    <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
   4.627 -        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
   4.628 -        <j2seproject3:force-recompile/>
   4.629 -        <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>
   4.630 -    </target>
   4.631 -    <target name="-post-compile-single">
   4.632 -        <!-- Empty placeholder for easier customization. -->
   4.633 -        <!-- You can override this target in the ../build.xml file. -->
   4.634 -    </target>
   4.635 -    <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
   4.636 -    <!--
   4.637 -                ====================
   4.638 -                JAR BUILDING SECTION
   4.639 -                ====================
   4.640 -            -->
   4.641 -    <target depends="init" name="-pre-pre-jar">
   4.642 -        <dirname file="${dist.jar}" property="dist.jar.dir"/>
   4.643 -        <mkdir dir="${dist.jar.dir}"/>
   4.644 -    </target>
   4.645 -    <target name="-pre-jar">
   4.646 -        <!-- Empty placeholder for easier customization. -->
   4.647 -        <!-- You can override this target in the ../build.xml file. -->
   4.648 -    </target>
   4.649 -    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive" name="-do-jar-without-manifest" unless="manifest.available-mkdist.available">
   4.650 -        <j2seproject1:jar/>
   4.651 -    </target>
   4.652 -    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class-mkdist.available">
   4.653 -        <j2seproject1:jar manifest="${manifest.file}"/>
   4.654 -    </target>
   4.655 -    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available">
   4.656 -        <j2seproject1:jar manifest="${manifest.file}">
   4.657 -            <j2seproject1:manifest>
   4.658 -                <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
   4.659 -            </j2seproject1:manifest>
   4.660 -        </j2seproject1:jar>
   4.661 -        <echo level="info">To run this application from the command line without Ant, try:</echo>
   4.662 -        <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
   4.663 -        <property location="${dist.jar}" name="dist.jar.resolved"/>
   4.664 -        <pathconvert property="run.classpath.with.dist.jar">
   4.665 -            <path path="${run.classpath}"/>
   4.666 -            <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
   4.667 -        </pathconvert>
   4.668 -        <echo level="info">java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
   4.669 -    </target>
   4.670 -    <target depends="init" if="do.archive" name="-do-jar-with-libraries-create-manifest" unless="manifest.available">
   4.671 -        <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
   4.672 -        <touch file="${tmp.manifest.file}" verbose="false"/>
   4.673 -    </target>
   4.674 -    <target depends="init" if="do.archive+manifest.available" name="-do-jar-with-libraries-copy-manifest">
   4.675 -        <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
   4.676 -        <copy file="${manifest.file}" tofile="${tmp.manifest.file}"/>
   4.677 -    </target>
   4.678 -    <target depends="init,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest" if="do.archive+main.class.available" name="-do-jar-with-libraries-set-main">
   4.679 -        <manifest file="${tmp.manifest.file}" mode="update">
   4.680 -            <attribute name="Main-Class" value="${main.class}"/>
   4.681 -        </manifest>
   4.682 -    </target>
   4.683 -    <target depends="init,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-with-libraries-set-splashscreen">
   4.684 -        <basename file="${application.splash}" property="splashscreen.basename"/>
   4.685 -        <mkdir dir="${build.classes.dir}/META-INF"/>
   4.686 -        <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
   4.687 -        <manifest file="${tmp.manifest.file}" mode="update">
   4.688 -            <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
   4.689 -        </manifest>
   4.690 -    </target>
   4.691 -    <target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen" if="do.mkdist" name="-do-jar-with-libraries-pack">
   4.692 -        <j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
   4.693 -        <echo level="info">To run this application from the command line without Ant, try:</echo>
   4.694 -        <property location="${dist.jar}" name="dist.jar.resolved"/>
   4.695 -        <echo level="info">java -jar "${dist.jar.resolved}"</echo>
   4.696 -    </target>
   4.697 -    <target depends="-do-jar-with-libraries-pack" if="do.archive" name="-do-jar-with-libraries-delete-manifest">
   4.698 -        <delete>
   4.699 -            <fileset file="${tmp.manifest.file}"/>
   4.700 -        </delete>
   4.701 -    </target>
   4.702 -    <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen,-do-jar-with-libraries-pack,-do-jar-with-libraries-delete-manifest" name="-do-jar-with-libraries"/>
   4.703 -    <target name="-post-jar">
   4.704 -        <!-- Empty placeholder for easier customization. -->
   4.705 -        <!-- You can override this target in the ../build.xml file. -->
   4.706 -    </target>
   4.707 -    <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-post-jar" description="Build JAR." name="jar"/>
   4.708 -    <!--
   4.709 -                =================
   4.710 -                EXECUTION SECTION
   4.711 -                =================
   4.712 -            -->
   4.713 -    <target depends="init,compile" description="Run a main class." name="run">
   4.714 -        <j2seproject1:java>
   4.715 -            <customize>
   4.716 -                <arg line="${application.args}"/>
   4.717 -            </customize>
   4.718 -        </j2seproject1:java>
   4.719 -    </target>
   4.720 -    <target name="-do-not-recompile">
   4.721 -        <property name="javac.includes.binary" value=""/>
   4.722 -    </target>
   4.723 -    <target depends="init,compile-single" name="run-single">
   4.724 -        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
   4.725 -        <j2seproject1:java classname="${run.class}"/>
   4.726 -    </target>
   4.727 -    <target depends="init,compile-test-single" name="run-test-with-main">
   4.728 -        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
   4.729 -        <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
   4.730 -    </target>
   4.731 -    <!--
   4.732 -                =================
   4.733 -                DEBUGGING SECTION
   4.734 -                =================
   4.735 -            -->
   4.736 -    <target depends="init" if="netbeans.home" name="-debug-start-debugger">
   4.737 -        <j2seproject1:nbjpdastart name="${debug.class}"/>
   4.738 -    </target>
   4.739 -    <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
   4.740 -        <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
   4.741 -    </target>
   4.742 -    <target depends="init,compile" name="-debug-start-debuggee">
   4.743 -        <j2seproject3:debug>
   4.744 -            <customize>
   4.745 -                <arg line="${application.args}"/>
   4.746 -            </customize>
   4.747 -        </j2seproject3:debug>
   4.748 -    </target>
   4.749 -    <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
   4.750 -    <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
   4.751 -        <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
   4.752 -    </target>
   4.753 -    <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
   4.754 -    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
   4.755 -        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
   4.756 -        <j2seproject3:debug classname="${debug.class}"/>
   4.757 -    </target>
   4.758 -    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
   4.759 -    <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
   4.760 -        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
   4.761 -        <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
   4.762 -    </target>
   4.763 -    <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
   4.764 -    <target depends="init" name="-pre-debug-fix">
   4.765 -        <fail unless="fix.includes">Must set fix.includes</fail>
   4.766 -        <property name="javac.includes" value="${fix.includes}.java"/>
   4.767 -    </target>
   4.768 -    <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
   4.769 -        <j2seproject1:nbjpdareload/>
   4.770 -    </target>
   4.771 -    <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
   4.772 -    <!--
   4.773 -                =================
   4.774 -                PROFILING SECTION
   4.775 -                =================
   4.776 -            -->
   4.777 -    <target depends="profile-init,compile" description="Profile a project in the IDE." if="netbeans.home" name="profile">
   4.778 -        <nbprofiledirect>
   4.779 -            <classpath>
   4.780 -                <path path="${run.classpath}"/>
   4.781 -            </classpath>
   4.782 -        </nbprofiledirect>
   4.783 -        <profile/>
   4.784 -    </target>
   4.785 -    <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="netbeans.home" name="profile-single">
   4.786 -        <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail>
   4.787 -        <nbprofiledirect>
   4.788 -            <classpath>
   4.789 -                <path path="${run.classpath}"/>
   4.790 -            </classpath>
   4.791 -        </nbprofiledirect>
   4.792 -        <profile classname="${profile.class}"/>
   4.793 -    </target>
   4.794 -    <!--
   4.795 -                =========================
   4.796 -                APPLET PROFILING  SECTION
   4.797 -                =========================
   4.798 -            -->
   4.799 -    <target depends="profile-init,compile-single" if="netbeans.home" name="profile-applet">
   4.800 -        <nbprofiledirect>
   4.801 -            <classpath>
   4.802 -                <path path="${run.classpath}"/>
   4.803 -            </classpath>
   4.804 -        </nbprofiledirect>
   4.805 -        <profile classname="sun.applet.AppletViewer">
   4.806 -            <customize>
   4.807 -                <arg value="${applet.url}"/>
   4.808 -            </customize>
   4.809 -        </profile>
   4.810 -    </target>
   4.811 -    <!--
   4.812 -                =========================
   4.813 -                TESTS PROFILING  SECTION
   4.814 -                =========================
   4.815 -            -->
   4.816 -    <target depends="profile-init,compile-test-single" if="netbeans.home" name="profile-test-single">
   4.817 -        <nbprofiledirect>
   4.818 -            <classpath>
   4.819 -                <path path="${run.test.classpath}"/>
   4.820 -            </classpath>
   4.821 -        </nbprofiledirect>
   4.822 -        <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
   4.823 -            <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
   4.824 -            <jvmarg value="${profiler.info.jvmargs.agent}"/>
   4.825 -            <jvmarg line="${profiler.info.jvmargs}"/>
   4.826 -            <test name="${profile.class}"/>
   4.827 -            <classpath>
   4.828 -                <path path="${run.test.classpath}"/>
   4.829 -            </classpath>
   4.830 -            <syspropertyset>
   4.831 -                <propertyref prefix="test-sys-prop."/>
   4.832 -                <mapper from="test-sys-prop.*" to="*" type="glob"/>
   4.833 -            </syspropertyset>
   4.834 -            <formatter type="brief" usefile="false"/>
   4.835 -            <formatter type="xml"/>
   4.836 -        </junit>
   4.837 -    </target>
   4.838 -    <!--
   4.839 -                ===============
   4.840 -                JAVADOC SECTION
   4.841 -                ===============
   4.842 -            -->
   4.843 -    <target depends="init" if="have.sources" name="-javadoc-build">
   4.844 -        <mkdir dir="${dist.javadoc.dir}"/>
   4.845 -        <javadoc additionalparam="${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}">
   4.846 -            <classpath>
   4.847 -                <path path="${javac.classpath}"/>
   4.848 -            </classpath>
   4.849 -            <fileset dir="${src.dir}" excludes="*.java,${excludes}" includes="${includes}">
   4.850 -                <filename name="**/*.java"/>
   4.851 -            </fileset>
   4.852 -            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
   4.853 -                <include name="**/*.java"/>
   4.854 -                <exclude name="*.java"/>
   4.855 -            </fileset>
   4.856 -        </javadoc>
   4.857 -        <copy todir="${dist.javadoc.dir}">
   4.858 -            <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
   4.859 -                <filename name="**/doc-files/**"/>
   4.860 -            </fileset>
   4.861 -            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
   4.862 -                <include name="**/doc-files/**"/>
   4.863 -            </fileset>
   4.864 -        </copy>
   4.865 -    </target>
   4.866 -    <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
   4.867 -        <nbbrowse file="${dist.javadoc.dir}/index.html"/>
   4.868 -    </target>
   4.869 -    <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
   4.870 -    <!--
   4.871 -                =========================
   4.872 -                JUNIT COMPILATION SECTION
   4.873 -                =========================
   4.874 -            -->
   4.875 -    <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
   4.876 -        <mkdir dir="${build.test.classes.dir}"/>
   4.877 -    </target>
   4.878 -    <target name="-pre-compile-test">
   4.879 -        <!-- Empty placeholder for easier customization. -->
   4.880 -        <!-- You can override this target in the ../build.xml file. -->
   4.881 -    </target>
   4.882 -    <target if="do.depend.true" name="-compile-test-depend">
   4.883 -        <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
   4.884 -    </target>
   4.885 -    <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
   4.886 -        <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}"/>
   4.887 -        <copy todir="${build.test.classes.dir}">
   4.888 -            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
   4.889 -        </copy>
   4.890 -    </target>
   4.891 -    <target name="-post-compile-test">
   4.892 -        <!-- Empty placeholder for easier customization. -->
   4.893 -        <!-- You can override this target in the ../build.xml file. -->
   4.894 -    </target>
   4.895 -    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
   4.896 -    <target name="-pre-compile-test-single">
   4.897 -        <!-- Empty placeholder for easier customization. -->
   4.898 -        <!-- You can override this target in the ../build.xml file. -->
   4.899 -    </target>
   4.900 -    <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
   4.901 -        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
   4.902 -        <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
   4.903 -        <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}"/>
   4.904 -        <copy todir="${build.test.classes.dir}">
   4.905 -            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
   4.906 -        </copy>
   4.907 -    </target>
   4.908 -    <target name="-post-compile-test-single">
   4.909 -        <!-- Empty placeholder for easier customization. -->
   4.910 -        <!-- You can override this target in the ../build.xml file. -->
   4.911 -    </target>
   4.912 -    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
   4.913 -    <!--
   4.914 -                =======================
   4.915 -                JUNIT EXECUTION SECTION
   4.916 -                =======================
   4.917 -            -->
   4.918 -    <target depends="init" if="have.tests" name="-pre-test-run">
   4.919 -        <mkdir dir="${build.test.results.dir}"/>
   4.920 -    </target>
   4.921 -    <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
   4.922 -        <j2seproject3:junit testincludes="**/*Test.java"/>
   4.923 -    </target>
   4.924 -    <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
   4.925 -        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
   4.926 -    </target>
   4.927 -    <target depends="init" if="have.tests" name="test-report"/>
   4.928 -    <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
   4.929 -    <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
   4.930 -    <target depends="init" if="have.tests" name="-pre-test-run-single">
   4.931 -        <mkdir dir="${build.test.results.dir}"/>
   4.932 -    </target>
   4.933 -    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
   4.934 -        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
   4.935 -        <j2seproject3:junit excludes="" includes="${test.includes}"/>
   4.936 -    </target>
   4.937 -    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
   4.938 -        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
   4.939 -    </target>
   4.940 -    <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"/>
   4.941 -    <!--
   4.942 -                =======================
   4.943 -                JUNIT DEBUGGING SECTION
   4.944 -                =======================
   4.945 -            -->
   4.946 -    <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
   4.947 -        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
   4.948 -        <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
   4.949 -        <delete file="${test.report.file}"/>
   4.950 -        <mkdir dir="${build.test.results.dir}"/>
   4.951 -        <j2seproject3:debug classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner" classpath="${ant.home}/lib/ant.jar:${ant.home}/lib/ant-junit.jar:${debug.test.classpath}">
   4.952 -            <customize>
   4.953 -                <syspropertyset>
   4.954 -                    <propertyref prefix="test-sys-prop."/>
   4.955 -                    <mapper from="test-sys-prop.*" to="*" type="glob"/>
   4.956 -                </syspropertyset>
   4.957 -                <arg value="${test.class}"/>
   4.958 -                <arg value="showoutput=true"/>
   4.959 -                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
   4.960 -                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
   4.961 -            </customize>
   4.962 -        </j2seproject3:debug>
   4.963 -    </target>
   4.964 -    <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
   4.965 -        <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
   4.966 -    </target>
   4.967 -    <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
   4.968 -    <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
   4.969 -        <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
   4.970 -    </target>
   4.971 -    <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
   4.972 -    <!--
   4.973 -                =========================
   4.974 -                APPLET EXECUTION SECTION
   4.975 -                =========================
   4.976 -            -->
   4.977 -    <target depends="init,compile-single" name="run-applet">
   4.978 -        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
   4.979 -        <j2seproject1:java classname="sun.applet.AppletViewer">
   4.980 -            <customize>
   4.981 -                <arg value="${applet.url}"/>
   4.982 -            </customize>
   4.983 -        </j2seproject1:java>
   4.984 -    </target>
   4.985 -    <!--
   4.986 -                =========================
   4.987 -                APPLET DEBUGGING  SECTION
   4.988 -                =========================
   4.989 -            -->
   4.990 -    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
   4.991 -        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
   4.992 -        <j2seproject3:debug classname="sun.applet.AppletViewer">
   4.993 -            <customize>
   4.994 -                <arg value="${applet.url}"/>
   4.995 -            </customize>
   4.996 -        </j2seproject3:debug>
   4.997 -    </target>
   4.998 -    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
   4.999 -    <!--
  4.1000 -                ===============
  4.1001 -                CLEANUP SECTION
  4.1002 -                ===============
  4.1003 -            -->
  4.1004 -    <target name="-deps-clean-init" unless="built-clean.properties">
  4.1005 -        <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>
  4.1006 -        <delete file="${built-clean.properties}" quiet="true"/>
  4.1007 -    </target>
  4.1008 -    <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
  4.1009 -        <echo level="warn" message="Cycle detected: alt2xml was already built"/>
  4.1010 -    </target>
  4.1011 -    <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
  4.1012 -        <mkdir dir="${build.dir}"/>
  4.1013 -        <touch file="${built-clean.properties}" verbose="false"/>
  4.1014 -        <property file="${built-clean.properties}" prefix="already.built.clean."/>
  4.1015 -        <antcall target="-warn-already-built-clean"/>
  4.1016 -        <propertyfile file="${built-clean.properties}">
  4.1017 -            <entry key="${basedir}" value=""/>
  4.1018 -        </propertyfile>
  4.1019 -    </target>
  4.1020 -    <target depends="init" name="-do-clean">
  4.1021 -        <delete dir="${build.dir}"/>
  4.1022 -        <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
  4.1023 -    </target>
  4.1024 -    <target name="-post-clean">
  4.1025 -        <!-- Empty placeholder for easier customization. -->
  4.1026 -        <!-- You can override this target in the ../build.xml file. -->
  4.1027 -    </target>
  4.1028 -    <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
  4.1029 -    <target name="-check-call-dep">
  4.1030 -        <property file="${call.built.properties}" prefix="already.built."/>
  4.1031 -        <condition property="should.call.dep">
  4.1032 -            <not>
  4.1033 -                <isset property="already.built.${call.subproject}"/>
  4.1034 -            </not>
  4.1035 -        </condition>
  4.1036 -    </target>
  4.1037 -    <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
  4.1038 -        <ant antfile="${call.script}" inheritall="false" target="${call.target}">
  4.1039 -            <propertyset>
  4.1040 -                <propertyref prefix="transfer."/>
  4.1041 -                <mapper from="transfer.*" to="*" type="glob"/>
  4.1042 -            </propertyset>
  4.1043 -        </ant>
  4.1044 -    </target>
  4.1045 -</project>
     5.1 --- a/java/alt2xml-bin/nbproject/build-impl.xml.orig	Sat Jun 07 10:38:31 2014 +0200
     5.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.3 @@ -1,1411 +0,0 @@
     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 -  - junit compilation
    5.19 -  - junit execution
    5.20 -  - junit 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-impl">
    5.26 -    <fail message="Please build using Ant 1.7.1 or higher.">
    5.27 -        <condition>
    5.28 -            <not>
    5.29 -                <antversion atleast="1.7.1"/>
    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 -        <available file="${manifest.file}" property="manifest.available"/>
    5.61 -        <condition property="splashscreen.available">
    5.62 -            <and>
    5.63 -                <not>
    5.64 -                    <equals arg1="${application.splash}" arg2="" trim="true"/>
    5.65 -                </not>
    5.66 -                <available file="${application.splash}"/>
    5.67 -            </and>
    5.68 -        </condition>
    5.69 -        <condition property="main.class.available">
    5.70 -            <and>
    5.71 -                <isset property="main.class"/>
    5.72 -                <not>
    5.73 -                    <equals arg1="${main.class}" arg2="" trim="true"/>
    5.74 -                </not>
    5.75 -            </and>
    5.76 -        </condition>
    5.77 -        <condition property="manifest.available+main.class">
    5.78 -            <and>
    5.79 -                <isset property="manifest.available"/>
    5.80 -                <isset property="main.class.available"/>
    5.81 -            </and>
    5.82 -        </condition>
    5.83 -        <condition property="do.archive">
    5.84 -            <not>
    5.85 -                <istrue value="${jar.archive.disabled}"/>
    5.86 -            </not>
    5.87 -        </condition>
    5.88 -        <condition property="do.mkdist">
    5.89 -            <and>
    5.90 -                <isset property="do.archive"/>
    5.91 -                <isset property="libs.CopyLibs.classpath"/>
    5.92 -                <not>
    5.93 -                    <istrue value="${mkdist.disabled}"/>
    5.94 -                </not>
    5.95 -            </and>
    5.96 -        </condition>
    5.97 -        <condition property="manifest.available+main.class+mkdist.available">
    5.98 -            <and>
    5.99 -                <istrue value="${manifest.available+main.class}"/>
   5.100 -                <isset property="do.mkdist"/>
   5.101 -            </and>
   5.102 -        </condition>
   5.103 -        <condition property="do.archive+manifest.available">
   5.104 -            <and>
   5.105 -                <isset property="manifest.available"/>
   5.106 -                <istrue value="${do.archive}"/>
   5.107 -            </and>
   5.108 -        </condition>
   5.109 -        <condition property="do.archive+main.class.available">
   5.110 -            <and>
   5.111 -                <isset property="main.class.available"/>
   5.112 -                <istrue value="${do.archive}"/>
   5.113 -            </and>
   5.114 -        </condition>
   5.115 -        <condition property="do.archive+splashscreen.available">
   5.116 -            <and>
   5.117 -                <isset property="splashscreen.available"/>
   5.118 -                <istrue value="${do.archive}"/>
   5.119 -            </and>
   5.120 -        </condition>
   5.121 -        <condition property="do.archive+manifest.available+main.class">
   5.122 -            <and>
   5.123 -                <istrue value="${manifest.available+main.class}"/>
   5.124 -                <istrue value="${do.archive}"/>
   5.125 -            </and>
   5.126 -        </condition>
   5.127 -        <condition property="manifest.available-mkdist.available">
   5.128 -            <or>
   5.129 -                <istrue value="${manifest.available}"/>
   5.130 -                <isset property="do.mkdist"/>
   5.131 -            </or>
   5.132 -        </condition>
   5.133 -        <condition property="manifest.available+main.class-mkdist.available">
   5.134 -            <or>
   5.135 -                <istrue value="${manifest.available+main.class}"/>
   5.136 -                <isset property="do.mkdist"/>
   5.137 -            </or>
   5.138 -        </condition>
   5.139 -        <condition property="have.tests">
   5.140 -            <or>
   5.141 -                <available file="${test.src.dir}"/>
   5.142 -            </or>
   5.143 -        </condition>
   5.144 -        <condition property="have.sources">
   5.145 -            <or>
   5.146 -                <available file="${src.dir}"/>
   5.147 -            </or>
   5.148 -        </condition>
   5.149 -        <condition property="netbeans.home+have.tests">
   5.150 -            <and>
   5.151 -                <isset property="netbeans.home"/>
   5.152 -                <isset property="have.tests"/>
   5.153 -            </and>
   5.154 -        </condition>
   5.155 -        <condition property="no.javadoc.preview">
   5.156 -            <and>
   5.157 -                <isset property="javadoc.preview"/>
   5.158 -                <isfalse value="${javadoc.preview}"/>
   5.159 -            </and>
   5.160 -        </condition>
   5.161 -        <property name="run.jvmargs" value=""/>
   5.162 -        <property name="run.jvmargs.ide" value=""/>
   5.163 -        <property name="javac.compilerargs" value=""/>
   5.164 -        <property name="work.dir" value="${basedir}"/>
   5.165 -        <condition property="no.deps">
   5.166 -            <and>
   5.167 -                <istrue value="${no.dependencies}"/>
   5.168 -            </and>
   5.169 -        </condition>
   5.170 -        <property name="javac.debug" value="true"/>
   5.171 -        <property name="javadoc.preview" value="true"/>
   5.172 -        <property name="application.args" value=""/>
   5.173 -        <property name="source.encoding" value="${file.encoding}"/>
   5.174 -        <property name="runtime.encoding" value="${source.encoding}"/>
   5.175 -        <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
   5.176 -            <and>
   5.177 -                <isset property="javadoc.encoding"/>
   5.178 -                <not>
   5.179 -                    <equals arg1="${javadoc.encoding}" arg2=""/>
   5.180 -                </not>
   5.181 -            </and>
   5.182 -        </condition>
   5.183 -        <property name="javadoc.encoding.used" value="${source.encoding}"/>
   5.184 -        <property name="includes" value="**"/>
   5.185 -        <property name="excludes" value=""/>
   5.186 -        <property name="do.depend" value="false"/>
   5.187 -        <condition property="do.depend.true">
   5.188 -            <istrue value="${do.depend}"/>
   5.189 -        </condition>
   5.190 -        <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
   5.191 -        <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
   5.192 -            <length length="0" string="${endorsed.classpath}" when="greater"/>
   5.193 -        </condition>
   5.194 -        <condition else="false" property="jdkBug6558476">
   5.195 -            <and>
   5.196 -                <matches pattern="1\.[56]" string="${java.specification.version}"/>
   5.197 -                <not>
   5.198 -                    <os family="unix"/>
   5.199 -                </not>
   5.200 -            </and>
   5.201 -        </condition>
   5.202 -        <property name="javac.fork" value="${jdkBug6558476}"/>
   5.203 -        <property name="jar.index" value="false"/>
   5.204 -        <property name="jar.index.metainf" value="${jar.index}"/>
   5.205 -        <property name="copylibs.rebase" value="true"/>
   5.206 -        <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
   5.207 -        <condition property="junit.available">
   5.208 -            <or>
   5.209 -                <available classname="org.junit.Test" classpath="${run.test.classpath}"/>
   5.210 -                <available classname="junit.framework.Test" classpath="${run.test.classpath}"/>
   5.211 -            </or>
   5.212 -        </condition>
   5.213 -        <condition property="testng.available">
   5.214 -            <available classname="org.testng.annotations.Test" classpath="${run.test.classpath}"/>
   5.215 -        </condition>
   5.216 -        <condition property="junit+testng.available">
   5.217 -            <and>
   5.218 -                <istrue value="${junit.available}"/>
   5.219 -                <istrue value="${testng.available}"/>
   5.220 -            </and>
   5.221 -        </condition>
   5.222 -        <condition else="testng" property="testng.mode" value="mixed">
   5.223 -            <istrue value="${junit+testng.available}"/>
   5.224 -        </condition>
   5.225 -        <condition else="" property="testng.debug.mode" value="-mixed">
   5.226 -            <istrue value="${junit+testng.available}"/>
   5.227 -        </condition>
   5.228 -    </target>
   5.229 -    <target name="-post-init">
   5.230 -        <!-- Empty placeholder for easier customization. -->
   5.231 -        <!-- You can override this target in the ../build.xml file. -->
   5.232 -    </target>
   5.233 -    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
   5.234 -        <fail unless="src.dir">Must set src.dir</fail>
   5.235 -        <fail unless="test.src.dir">Must set test.src.dir</fail>
   5.236 -        <fail unless="build.dir">Must set build.dir</fail>
   5.237 -        <fail unless="dist.dir">Must set dist.dir</fail>
   5.238 -        <fail unless="build.classes.dir">Must set build.classes.dir</fail>
   5.239 -        <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
   5.240 -        <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
   5.241 -        <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
   5.242 -        <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
   5.243 -        <fail unless="dist.jar">Must set dist.jar</fail>
   5.244 -    </target>
   5.245 -    <target name="-init-macrodef-property">
   5.246 -        <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
   5.247 -            <attribute name="name"/>
   5.248 -            <attribute name="value"/>
   5.249 -            <sequential>
   5.250 -                <property name="@{name}" value="${@{value}}"/>
   5.251 -            </sequential>
   5.252 -        </macrodef>
   5.253 -    </target>
   5.254 -    <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
   5.255 -        <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
   5.256 -            <attribute default="${src.dir}" name="srcdir"/>
   5.257 -            <attribute default="${build.classes.dir}" name="destdir"/>
   5.258 -            <attribute default="${javac.classpath}" name="classpath"/>
   5.259 -            <attribute default="${javac.processorpath}" name="processorpath"/>
   5.260 -            <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
   5.261 -            <attribute default="${includes}" name="includes"/>
   5.262 -            <attribute default="${excludes}" name="excludes"/>
   5.263 -            <attribute default="${javac.debug}" name="debug"/>
   5.264 -            <attribute default="${empty.dir}" name="sourcepath"/>
   5.265 -            <attribute default="${empty.dir}" name="gensrcdir"/>
   5.266 -            <element name="customize" optional="true"/>
   5.267 -            <sequential>
   5.268 -                <property location="${build.dir}/empty" name="empty.dir"/>
   5.269 -                <mkdir dir="${empty.dir}"/>
   5.270 -                <mkdir dir="@{apgeneratedsrcdir}"/>
   5.271 -                <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.272 -                    <src>
   5.273 -                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
   5.274 -                            <include name="*"/>
   5.275 -                        </dirset>
   5.276 -                    </src>
   5.277 -                    <classpath>
   5.278 -                        <path path="@{classpath}"/>
   5.279 -                    </classpath>
   5.280 -                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
   5.281 -                    <compilerarg line="${javac.compilerargs}"/>
   5.282 -                    <compilerarg value="-processorpath"/>
   5.283 -                    <compilerarg path="@{processorpath}:${empty.dir}"/>
   5.284 -                    <compilerarg line="${ap.processors.internal}"/>
   5.285 -                    <compilerarg line="${annotation.processing.processor.options}"/>
   5.286 -                    <compilerarg value="-s"/>
   5.287 -                    <compilerarg path="@{apgeneratedsrcdir}"/>
   5.288 -                    <compilerarg line="${ap.proc.none.internal}"/>
   5.289 -                    <customize/>
   5.290 -                </javac>
   5.291 -            </sequential>
   5.292 -        </macrodef>
   5.293 -    </target>
   5.294 -    <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
   5.295 -        <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
   5.296 -            <attribute default="${src.dir}" name="srcdir"/>
   5.297 -            <attribute default="${build.classes.dir}" name="destdir"/>
   5.298 -            <attribute default="${javac.classpath}" name="classpath"/>
   5.299 -            <attribute default="${javac.processorpath}" name="processorpath"/>
   5.300 -            <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
   5.301 -            <attribute default="${includes}" name="includes"/>
   5.302 -            <attribute default="${excludes}" name="excludes"/>
   5.303 -            <attribute default="${javac.debug}" name="debug"/>
   5.304 -            <attribute default="${empty.dir}" name="sourcepath"/>
   5.305 -            <attribute default="${empty.dir}" name="gensrcdir"/>
   5.306 -            <element name="customize" optional="true"/>
   5.307 -            <sequential>
   5.308 -                <property location="${build.dir}/empty" name="empty.dir"/>
   5.309 -                <mkdir dir="${empty.dir}"/>
   5.310 -                <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.311 -                    <src>
   5.312 -                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
   5.313 -                            <include name="*"/>
   5.314 -                        </dirset>
   5.315 -                    </src>
   5.316 -                    <classpath>
   5.317 -                        <path path="@{classpath}"/>
   5.318 -                    </classpath>
   5.319 -                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
   5.320 -                    <compilerarg line="${javac.compilerargs}"/>
   5.321 -                    <customize/>
   5.322 -                </javac>
   5.323 -            </sequential>
   5.324 -        </macrodef>
   5.325 -    </target>
   5.326 -    <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
   5.327 -        <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
   5.328 -            <attribute default="${src.dir}" name="srcdir"/>
   5.329 -            <attribute default="${build.classes.dir}" name="destdir"/>
   5.330 -            <attribute default="${javac.classpath}" name="classpath"/>
   5.331 -            <sequential>
   5.332 -                <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
   5.333 -                    <classpath>
   5.334 -                        <path path="@{classpath}"/>
   5.335 -                    </classpath>
   5.336 -                </depend>
   5.337 -            </sequential>
   5.338 -        </macrodef>
   5.339 -        <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
   5.340 -            <attribute default="${build.classes.dir}" name="destdir"/>
   5.341 -            <sequential>
   5.342 -                <fail unless="javac.includes">Must set javac.includes</fail>
   5.343 -                <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
   5.344 -                    <path>
   5.345 -                        <filelist dir="@{destdir}" files="${javac.includes}"/>
   5.346 -                    </path>
   5.347 -                    <globmapper from="*.java" to="*.class"/>
   5.348 -                </pathconvert>
   5.349 -                <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
   5.350 -                <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
   5.351 -                <delete>
   5.352 -                    <files includesfile="${javac.includesfile.binary}"/>
   5.353 -                </delete>
   5.354 -                <delete>
   5.355 -                    <fileset file="${javac.includesfile.binary}"/>
   5.356 -                </delete>
   5.357 -            </sequential>
   5.358 -        </macrodef>
   5.359 -    </target>
   5.360 -    <target if="${junit.available}" name="-init-macrodef-junit-init">
   5.361 -        <condition else="false" property="nb.junit.batch" value="true">
   5.362 -            <and>
   5.363 -                <istrue value="${junit.available}"/>
   5.364 -                <not>
   5.365 -                    <isset property="test.method"/>
   5.366 -                </not>
   5.367 -            </and>
   5.368 -        </condition>
   5.369 -        <condition else="false" property="nb.junit.single" value="true">
   5.370 -            <and>
   5.371 -                <istrue value="${junit.available}"/>
   5.372 -                <isset property="test.method"/>
   5.373 -            </and>
   5.374 -        </condition>
   5.375 -    </target>
   5.376 -    <target name="-init-test-properties">
   5.377 -        <property name="test.binaryincludes" value="&lt;nothing&gt;"/>
   5.378 -        <property name="test.binarytestincludes" value=""/>
   5.379 -        <property name="test.binaryexcludes" value=""/>
   5.380 -    </target>
   5.381 -    <target if="${nb.junit.single}" name="-init-macrodef-junit-single" unless="${nb.junit.batch}">
   5.382 -        <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
   5.383 -            <attribute default="${includes}" name="includes"/>
   5.384 -            <attribute default="${excludes}" name="excludes"/>
   5.385 -            <attribute default="**" name="testincludes"/>
   5.386 -            <attribute default="" name="testmethods"/>
   5.387 -            <element name="customize" optional="true"/>
   5.388 -            <sequential>
   5.389 -                <property name="junit.forkmode" value="perTest"/>
   5.390 -                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
   5.391 -                    <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
   5.392 -                    <syspropertyset>
   5.393 -                        <propertyref prefix="test-sys-prop."/>
   5.394 -                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
   5.395 -                    </syspropertyset>
   5.396 -                    <formatter type="brief" usefile="false"/>
   5.397 -                    <formatter type="xml"/>
   5.398 -                    <jvmarg value="-ea"/>
   5.399 -                    <customize/>
   5.400 -                </junit>
   5.401 -            </sequential>
   5.402 -        </macrodef>
   5.403 -    </target>
   5.404 -    <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-batch" unless="${nb.junit.single}">
   5.405 -        <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
   5.406 -            <attribute default="${includes}" name="includes"/>
   5.407 -            <attribute default="${excludes}" name="excludes"/>
   5.408 -            <attribute default="**" name="testincludes"/>
   5.409 -            <attribute default="" name="testmethods"/>
   5.410 -            <element name="customize" optional="true"/>
   5.411 -            <sequential>
   5.412 -                <property name="junit.forkmode" value="perTest"/>
   5.413 -                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
   5.414 -                    <batchtest todir="${build.test.results.dir}">
   5.415 -                        <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
   5.416 -                            <filename name="@{testincludes}"/>
   5.417 -                        </fileset>
   5.418 -                        <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
   5.419 -                            <filename name="${test.binarytestincludes}"/>
   5.420 -                        </fileset>
   5.421 -                    </batchtest>
   5.422 -                    <syspropertyset>
   5.423 -                        <propertyref prefix="test-sys-prop."/>
   5.424 -                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
   5.425 -                    </syspropertyset>
   5.426 -                    <formatter type="brief" usefile="false"/>
   5.427 -                    <formatter type="xml"/>
   5.428 -                    <jvmarg value="-ea"/>
   5.429 -                    <customize/>
   5.430 -                </junit>
   5.431 -            </sequential>
   5.432 -        </macrodef>
   5.433 -    </target>
   5.434 -    <target depends="-init-macrodef-junit-init,-init-macrodef-junit-single, -init-macrodef-junit-batch" if="${junit.available}" name="-init-macrodef-junit"/>
   5.435 -    <target if="${testng.available}" name="-init-macrodef-testng">
   5.436 -        <macrodef name="testng" uri="http://www.netbeans.org/ns/j2se-project/3">
   5.437 -            <attribute default="${includes}" name="includes"/>
   5.438 -            <attribute default="${excludes}" name="excludes"/>
   5.439 -            <attribute default="**" name="testincludes"/>
   5.440 -            <attribute default="" name="testmethods"/>
   5.441 -            <element name="customize" optional="true"/>
   5.442 -            <sequential>
   5.443 -                <condition else="" property="testng.methods.arg" value="@{testincludes}.@{testmethods}">
   5.444 -                    <isset property="test.method"/>
   5.445 -                </condition>
   5.446 -                <union id="test.set">
   5.447 -                    <fileset dir="${test.src.dir}" excludes="@{excludes},**/*.xml,${excludes}" includes="@{includes}">
   5.448 -                        <filename name="@{testincludes}"/>
   5.449 -                    </fileset>
   5.450 -                </union>
   5.451 -                <taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
   5.452 -                <testng classfilesetref="test.set" failureProperty="tests.failed" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="alt2xml" testname="TestNG tests" workingDir="${work.dir}">
   5.453 -                    <xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
   5.454 -                    <propertyset>
   5.455 -                        <propertyref prefix="test-sys-prop."/>
   5.456 -                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
   5.457 -                    </propertyset>
   5.458 -                    <customize/>
   5.459 -                </testng>
   5.460 -            </sequential>
   5.461 -        </macrodef>
   5.462 -    </target>
   5.463 -    <target name="-init-macrodef-test-impl">
   5.464 -        <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
   5.465 -            <attribute default="${includes}" name="includes"/>
   5.466 -            <attribute default="${excludes}" name="excludes"/>
   5.467 -            <attribute default="**" name="testincludes"/>
   5.468 -            <attribute default="" name="testmethods"/>
   5.469 -            <element implicit="true" name="customize" optional="true"/>
   5.470 -            <sequential>
   5.471 -                <echo>No tests executed.</echo>
   5.472 -            </sequential>
   5.473 -        </macrodef>
   5.474 -    </target>
   5.475 -    <target depends="-init-macrodef-junit" if="${junit.available}" name="-init-macrodef-junit-impl">
   5.476 -        <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
   5.477 -            <attribute default="${includes}" name="includes"/>
   5.478 -            <attribute default="${excludes}" name="excludes"/>
   5.479 -            <attribute default="**" name="testincludes"/>
   5.480 -            <attribute default="" name="testmethods"/>
   5.481 -            <element implicit="true" name="customize" optional="true"/>
   5.482 -            <sequential>
   5.483 -                <j2seproject3:junit excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
   5.484 -                    <customize/>
   5.485 -                </j2seproject3:junit>
   5.486 -            </sequential>
   5.487 -        </macrodef>
   5.488 -    </target>
   5.489 -    <target depends="-init-macrodef-testng" if="${testng.available}" name="-init-macrodef-testng-impl">
   5.490 -        <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
   5.491 -            <attribute default="${includes}" name="includes"/>
   5.492 -            <attribute default="${excludes}" name="excludes"/>
   5.493 -            <attribute default="**" name="testincludes"/>
   5.494 -            <attribute default="" name="testmethods"/>
   5.495 -            <element implicit="true" name="customize" optional="true"/>
   5.496 -            <sequential>
   5.497 -                <j2seproject3:testng excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
   5.498 -                    <customize/>
   5.499 -                </j2seproject3:testng>
   5.500 -            </sequential>
   5.501 -        </macrodef>
   5.502 -    </target>
   5.503 -    <target depends="-init-macrodef-test-impl,-init-macrodef-junit-impl,-init-macrodef-testng-impl" name="-init-macrodef-test">
   5.504 -        <macrodef name="test" uri="http://www.netbeans.org/ns/j2se-project/3">
   5.505 -            <attribute default="${includes}" name="includes"/>
   5.506 -            <attribute default="${excludes}" name="excludes"/>
   5.507 -            <attribute default="**" name="testincludes"/>
   5.508 -            <attribute default="" name="testmethods"/>
   5.509 -            <sequential>
   5.510 -                <j2seproject3:test-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
   5.511 -                    <customize>
   5.512 -                        <classpath>
   5.513 -                            <path path="${run.test.classpath}"/>
   5.514 -                        </classpath>
   5.515 -                        <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   5.516 -                        <jvmarg line="${run.jvmargs}"/>
   5.517 -                        <jvmarg line="${run.jvmargs.ide}"/>
   5.518 -                    </customize>
   5.519 -                </j2seproject3:test-impl>
   5.520 -            </sequential>
   5.521 -        </macrodef>
   5.522 -    </target>
   5.523 -    <target if="${junit.available}" name="-init-macrodef-junit-debug" unless="${nb.junit.batch}">
   5.524 -        <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
   5.525 -            <attribute default="${includes}" name="includes"/>
   5.526 -            <attribute default="${excludes}" name="excludes"/>
   5.527 -            <attribute default="**" name="testincludes"/>
   5.528 -            <attribute default="" name="testmethods"/>
   5.529 -            <element name="customize" optional="true"/>
   5.530 -            <sequential>
   5.531 -                <property name="junit.forkmode" value="perTest"/>
   5.532 -                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
   5.533 -                    <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
   5.534 -                    <syspropertyset>
   5.535 -                        <propertyref prefix="test-sys-prop."/>
   5.536 -                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
   5.537 -                    </syspropertyset>
   5.538 -                    <formatter type="brief" usefile="false"/>
   5.539 -                    <formatter type="xml"/>
   5.540 -                    <jvmarg value="-ea"/>
   5.541 -                    <jvmarg line="${debug-args-line}"/>
   5.542 -                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
   5.543 -                    <customize/>
   5.544 -                </junit>
   5.545 -            </sequential>
   5.546 -        </macrodef>
   5.547 -    </target>
   5.548 -    <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-debug-batch">
   5.549 -        <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
   5.550 -            <attribute default="${includes}" name="includes"/>
   5.551 -            <attribute default="${excludes}" name="excludes"/>
   5.552 -            <attribute default="**" name="testincludes"/>
   5.553 -            <attribute default="" name="testmethods"/>
   5.554 -            <element name="customize" optional="true"/>
   5.555 -            <sequential>
   5.556 -                <property name="junit.forkmode" value="perTest"/>
   5.557 -                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
   5.558 -                    <batchtest todir="${build.test.results.dir}">
   5.559 -                        <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
   5.560 -                            <filename name="@{testincludes}"/>
   5.561 -                        </fileset>
   5.562 -                        <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
   5.563 -                            <filename name="${test.binarytestincludes}"/>
   5.564 -                        </fileset>
   5.565 -                    </batchtest>
   5.566 -                    <syspropertyset>
   5.567 -                        <propertyref prefix="test-sys-prop."/>
   5.568 -                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
   5.569 -                    </syspropertyset>
   5.570 -                    <formatter type="brief" usefile="false"/>
   5.571 -                    <formatter type="xml"/>
   5.572 -                    <jvmarg value="-ea"/>
   5.573 -                    <jvmarg line="${debug-args-line}"/>
   5.574 -                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
   5.575 -                    <customize/>
   5.576 -                </junit>
   5.577 -            </sequential>
   5.578 -        </macrodef>
   5.579 -    </target>
   5.580 -    <target depends="-init-macrodef-junit-debug,-init-macrodef-junit-debug-batch" if="${junit.available}" name="-init-macrodef-junit-debug-impl">
   5.581 -        <macrodef name="test-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
   5.582 -            <attribute default="${includes}" name="includes"/>
   5.583 -            <attribute default="${excludes}" name="excludes"/>
   5.584 -            <attribute default="**" name="testincludes"/>
   5.585 -            <attribute default="" name="testmethods"/>
   5.586 -            <element implicit="true" name="customize" optional="true"/>
   5.587 -            <sequential>
   5.588 -                <j2seproject3:junit-debug excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
   5.589 -                    <customize/>
   5.590 -                </j2seproject3:junit-debug>
   5.591 -            </sequential>
   5.592 -        </macrodef>
   5.593 -    </target>
   5.594 -    <target if="${testng.available}" name="-init-macrodef-testng-debug">
   5.595 -        <macrodef name="testng-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
   5.596 -            <attribute default="${main.class}" name="testClass"/>
   5.597 -            <attribute default="" name="testMethod"/>
   5.598 -            <element name="customize2" optional="true"/>
   5.599 -            <sequential>
   5.600 -                <condition else="-testclass @{testClass}" property="test.class.or.method" value="-methods @{testClass}.@{testMethod}">
   5.601 -                    <isset property="test.method"/>
   5.602 -                </condition>
   5.603 -                <condition else="-suitename alt2xml -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}">
   5.604 -                    <matches pattern=".*\.xml" string="@{testClass}"/>
   5.605 -                </condition>
   5.606 -                <delete dir="${build.test.results.dir}" quiet="true"/>
   5.607 -                <mkdir dir="${build.test.results.dir}"/>
   5.608 -                <j2seproject3:debug classname="org.testng.TestNG" classpath="${debug.test.classpath}">
   5.609 -                    <customize>
   5.610 -                        <customize2/>
   5.611 -                        <jvmarg value="-ea"/>
   5.612 -                        <arg line="${testng.debug.mode}"/>
   5.613 -                        <arg line="-d ${build.test.results.dir}"/>
   5.614 -                        <arg line="-listener org.testng.reporters.VerboseReporter"/>
   5.615 -                        <arg line="${testng.cmd.args}"/>
   5.616 -                    </customize>
   5.617 -                </j2seproject3:debug>
   5.618 -            </sequential>
   5.619 -        </macrodef>
   5.620 -    </target>
   5.621 -    <target depends="-init-macrodef-testng-debug" if="${testng.available}" name="-init-macrodef-testng-debug-impl">
   5.622 -        <macrodef name="testng-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
   5.623 -            <attribute default="${main.class}" name="testClass"/>
   5.624 -            <attribute default="" name="testMethod"/>
   5.625 -            <element implicit="true" name="customize2" optional="true"/>
   5.626 -            <sequential>
   5.627 -                <j2seproject3:testng-debug testClass="@{testClass}" testMethod="@{testMethod}">
   5.628 -                    <customize2/>
   5.629 -                </j2seproject3:testng-debug>
   5.630 -            </sequential>
   5.631 -        </macrodef>
   5.632 -    </target>
   5.633 -    <target depends="-init-macrodef-junit-debug-impl" if="${junit.available}" name="-init-macrodef-test-debug-junit">
   5.634 -        <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
   5.635 -            <attribute default="${includes}" name="includes"/>
   5.636 -            <attribute default="${excludes}" name="excludes"/>
   5.637 -            <attribute default="**" name="testincludes"/>
   5.638 -            <attribute default="" name="testmethods"/>
   5.639 -            <attribute default="${main.class}" name="testClass"/>
   5.640 -            <attribute default="" name="testMethod"/>
   5.641 -            <sequential>
   5.642 -                <j2seproject3:test-debug-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
   5.643 -                    <customize>
   5.644 -                        <classpath>
   5.645 -                            <path path="${run.test.classpath}"/>
   5.646 -                        </classpath>
   5.647 -                        <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   5.648 -                        <jvmarg line="${run.jvmargs}"/>
   5.649 -                        <jvmarg line="${run.jvmargs.ide}"/>
   5.650 -                    </customize>
   5.651 -                </j2seproject3:test-debug-impl>
   5.652 -            </sequential>
   5.653 -        </macrodef>
   5.654 -    </target>
   5.655 -    <target depends="-init-macrodef-testng-debug-impl" if="${testng.available}" name="-init-macrodef-test-debug-testng">
   5.656 -        <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
   5.657 -            <attribute default="${includes}" name="includes"/>
   5.658 -            <attribute default="${excludes}" name="excludes"/>
   5.659 -            <attribute default="**" name="testincludes"/>
   5.660 -            <attribute default="" name="testmethods"/>
   5.661 -            <attribute default="${main.class}" name="testClass"/>
   5.662 -            <attribute default="" name="testMethod"/>
   5.663 -            <sequential>
   5.664 -                <j2seproject3:testng-debug-impl testClass="@{testClass}" testMethod="@{testMethod}">
   5.665 -                    <customize2>
   5.666 -                        <syspropertyset>
   5.667 -                            <propertyref prefix="test-sys-prop."/>
   5.668 -                            <mapper from="test-sys-prop.*" to="*" type="glob"/>
   5.669 -                        </syspropertyset>
   5.670 -                    </customize2>
   5.671 -                </j2seproject3:testng-debug-impl>
   5.672 -            </sequential>
   5.673 -        </macrodef>
   5.674 -    </target>
   5.675 -    <target depends="-init-macrodef-test-debug-junit,-init-macrodef-test-debug-testng" name="-init-macrodef-test-debug"/>
   5.676 -    <!--
   5.677 -                pre NB7.2 profiling section; consider it deprecated
   5.678 -            -->
   5.679 -    <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.680 -    <target if="profiler.info.jvmargs.agent" name="-profile-pre-init">
   5.681 -        <!-- Empty placeholder for easier customization. -->
   5.682 -        <!-- You can override this target in the ../build.xml file. -->
   5.683 -    </target>
   5.684 -    <target if="profiler.info.jvmargs.agent" name="-profile-post-init">
   5.685 -        <!-- Empty placeholder for easier customization. -->
   5.686 -        <!-- You can override this target in the ../build.xml file. -->
   5.687 -    </target>
   5.688 -    <target if="profiler.info.jvmargs.agent" name="-profile-init-macrodef-profile">
   5.689 -        <macrodef name="resolve">
   5.690 -            <attribute name="name"/>
   5.691 -            <attribute name="value"/>
   5.692 -            <sequential>
   5.693 -                <property name="@{name}" value="${env.@{value}}"/>
   5.694 -            </sequential>
   5.695 -        </macrodef>
   5.696 -        <macrodef name="profile">
   5.697 -            <attribute default="${main.class}" name="classname"/>
   5.698 -            <element name="customize" optional="true"/>
   5.699 -            <sequential>
   5.700 -                <property environment="env"/>
   5.701 -                <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
   5.702 -                <java classname="@{classname}" dir="${profiler.info.dir}" fork="true" jvm="${profiler.info.jvm}">
   5.703 -                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   5.704 -                    <jvmarg value="${profiler.info.jvmargs.agent}"/>
   5.705 -                    <jvmarg line="${profiler.info.jvmargs}"/>
   5.706 -                    <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
   5.707 -                    <arg line="${application.args}"/>
   5.708 -                    <classpath>
   5.709 -                        <path path="${run.classpath}"/>
   5.710 -                    </classpath>
   5.711 -                    <syspropertyset>
   5.712 -                        <propertyref prefix="run-sys-prop."/>
   5.713 -                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
   5.714 -                    </syspropertyset>
   5.715 -                    <customize/>
   5.716 -                </java>
   5.717 -            </sequential>
   5.718 -        </macrodef>
   5.719 -    </target>
   5.720 -    <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" if="profiler.info.jvmargs.agent" name="-profile-init-check">
   5.721 -        <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
   5.722 -        <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
   5.723 -    </target>
   5.724 -    <!--
   5.725 -                end of pre NB7.2 profiling section
   5.726 -            -->
   5.727 -    <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
   5.728 -        <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
   5.729 -            <attribute default="${main.class}" name="name"/>
   5.730 -            <attribute default="${debug.classpath}" name="classpath"/>
   5.731 -            <attribute default="" name="stopclassname"/>
   5.732 -            <sequential>
   5.733 -                <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
   5.734 -                    <classpath>
   5.735 -                        <path path="@{classpath}"/>
   5.736 -                    </classpath>
   5.737 -                </nbjpdastart>
   5.738 -            </sequential>
   5.739 -        </macrodef>
   5.740 -        <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
   5.741 -            <attribute default="${build.classes.dir}" name="dir"/>
   5.742 -            <sequential>
   5.743 -                <nbjpdareload>
   5.744 -                    <fileset dir="@{dir}" includes="${fix.classes}">
   5.745 -                        <include name="${fix.includes}*.class"/>
   5.746 -                    </fileset>
   5.747 -                </nbjpdareload>
   5.748 -            </sequential>
   5.749 -        </macrodef>
   5.750 -    </target>
   5.751 -    <target name="-init-debug-args">
   5.752 -        <property name="version-output" value="java version &quot;${ant.java.version}"/>
   5.753 -        <condition property="have-jdk-older-than-1.4">
   5.754 -            <or>
   5.755 -                <contains string="${version-output}" substring="java version &quot;1.0"/>
   5.756 -                <contains string="${version-output}" substring="java version &quot;1.1"/>
   5.757 -                <contains string="${version-output}" substring="java version &quot;1.2"/>
   5.758 -                <contains string="${version-output}" substring="java version &quot;1.3"/>
   5.759 -            </or>
   5.760 -        </condition>
   5.761 -        <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
   5.762 -            <istrue value="${have-jdk-older-than-1.4}"/>
   5.763 -        </condition>
   5.764 -        <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
   5.765 -            <os family="windows"/>
   5.766 -        </condition>
   5.767 -        <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
   5.768 -            <isset property="debug.transport"/>
   5.769 -        </condition>
   5.770 -    </target>
   5.771 -    <target depends="-init-debug-args" name="-init-macrodef-debug">
   5.772 -        <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
   5.773 -            <attribute default="${main.class}" name="classname"/>
   5.774 -            <attribute default="${debug.classpath}" name="classpath"/>
   5.775 -            <element name="customize" optional="true"/>
   5.776 -            <sequential>
   5.777 -                <java classname="@{classname}" dir="${work.dir}" fork="true">
   5.778 -                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   5.779 -                    <jvmarg line="${debug-args-line}"/>
   5.780 -                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
   5.781 -                    <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
   5.782 -                    <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
   5.783 -                    <jvmarg line="${run.jvmargs}"/>
   5.784 -                    <jvmarg line="${run.jvmargs.ide}"/>
   5.785 -                    <classpath>
   5.786 -                        <path path="@{classpath}"/>
   5.787 -                    </classpath>
   5.788 -                    <syspropertyset>
   5.789 -                        <propertyref prefix="run-sys-prop."/>
   5.790 -                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
   5.791 -                    </syspropertyset>
   5.792 -                    <customize/>
   5.793 -                </java>
   5.794 -            </sequential>
   5.795 -        </macrodef>
   5.796 -    </target>
   5.797 -    <target name="-init-macrodef-java">
   5.798 -        <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
   5.799 -            <attribute default="${main.class}" name="classname"/>
   5.800 -            <attribute default="${run.classpath}" name="classpath"/>
   5.801 -            <attribute default="jvm" name="jvm"/>
   5.802 -            <element name="customize" optional="true"/>
   5.803 -            <sequential>
   5.804 -                <java classname="@{classname}" dir="${work.dir}" fork="true">
   5.805 -                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   5.806 -                    <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
   5.807 -                    <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
   5.808 -                    <jvmarg line="${run.jvmargs}"/>
   5.809 -                    <jvmarg line="${run.jvmargs.ide}"/>
   5.810 -                    <classpath>
   5.811 -                        <path path="@{classpath}"/>
   5.812 -                    </classpath>
   5.813 -                    <syspropertyset>
   5.814 -                        <propertyref prefix="run-sys-prop."/>
   5.815 -                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
   5.816 -                    </syspropertyset>
   5.817 -                    <customize/>
   5.818 -                </java>
   5.819 -            </sequential>
   5.820 -        </macrodef>
   5.821 -    </target>
   5.822 -    <target name="-init-macrodef-copylibs">
   5.823 -        <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">
   5.824 -            <attribute default="${manifest.file}" name="manifest"/>
   5.825 -            <element name="customize" optional="true"/>
   5.826 -            <sequential>
   5.827 -                <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
   5.828 -                <pathconvert property="run.classpath.without.build.classes.dir">
   5.829 -                    <path path="${run.classpath}"/>
   5.830 -                    <map from="${build.classes.dir.resolved}" to=""/>
   5.831 -                </pathconvert>
   5.832 -                <pathconvert pathsep=" " property="jar.classpath">
   5.833 -                    <path path="${run.classpath.without.build.classes.dir}"/>
   5.834 -                    <chainedmapper>
   5.835 -                        <flattenmapper/>
   5.836 -                        <filtermapper>
   5.837 -                            <replacestring from=" " to="%20"/>
   5.838 -                        </filtermapper>
   5.839 -                        <globmapper from="*" to="lib/*"/>
   5.840 -                    </chainedmapper>
   5.841 -                </pathconvert>
   5.842 -                <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
   5.843 -                <copylibs compress="${jar.compress}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
   5.844 -                    <fileset dir="${build.classes.dir}"/>
   5.845 -                    <manifest>
   5.846 -                        <attribute name="Class-Path" value="${jar.classpath}"/>
   5.847 -                        <customize/>
   5.848 -                    </manifest>
   5.849 -                </copylibs>
   5.850 -            </sequential>
   5.851 -        </macrodef>
   5.852 -    </target>
   5.853 -    <target name="-init-presetdef-jar">
   5.854 -        <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
   5.855 -            <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">
   5.856 -                <j2seproject1:fileset dir="${build.classes.dir}"/>
   5.857 -            </jar>
   5.858 -        </presetdef>
   5.859 -    </target>
   5.860 -    <target name="-init-ap-cmdline-properties">
   5.861 -        <property name="annotation.processing.enabled" value="true"/>
   5.862 -        <property name="annotation.processing.processors.list" value=""/>
   5.863 -        <property name="annotation.processing.processor.options" value=""/>
   5.864 -        <property name="annotation.processing.run.all.processors" value="true"/>
   5.865 -        <property name="javac.processorpath" value="${javac.classpath}"/>
   5.866 -        <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
   5.867 -        <condition property="ap.supported.internal" value="true">
   5.868 -            <not>
   5.869 -                <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
   5.870 -            </not>
   5.871 -        </condition>
   5.872 -    </target>
   5.873 -    <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
   5.874 -        <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
   5.875 -            <isfalse value="${annotation.processing.run.all.processors}"/>
   5.876 -        </condition>
   5.877 -        <condition else="" property="ap.proc.none.internal" value="-proc:none">
   5.878 -            <isfalse value="${annotation.processing.enabled}"/>
   5.879 -        </condition>
   5.880 -    </target>
   5.881 -    <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
   5.882 -        <property name="ap.cmd.line.internal" value=""/>
   5.883 -    </target>
   5.884 -    <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.885 -    <!--
   5.886 -                ===================
   5.887 -                COMPILATION SECTION
   5.888 -                ===================
   5.889 -            -->
   5.890 -    <target name="-deps-jar-init" unless="built-jar.properties">
   5.891 -        <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>
   5.892 -        <delete file="${built-jar.properties}" quiet="true"/>
   5.893 -    </target>
   5.894 -    <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
   5.895 -        <echo level="warn" message="Cycle detected: alt2xml was already built"/>
   5.896 -    </target>
   5.897 -    <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
   5.898 -        <mkdir dir="${build.dir}"/>
   5.899 -        <touch file="${built-jar.properties}" verbose="false"/>
   5.900 -        <property file="${built-jar.properties}" prefix="already.built.jar."/>
   5.901 -        <antcall target="-warn-already-built-jar"/>
   5.902 -        <propertyfile file="${built-jar.properties}">
   5.903 -            <entry key="${basedir}" value=""/>
   5.904 -        </propertyfile>
   5.905 -    </target>
   5.906 -    <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
   5.907 -    <target depends="init" name="-check-automatic-build">
   5.908 -        <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
   5.909 -    </target>
   5.910 -    <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
   5.911 -        <antcall target="clean"/>
   5.912 -    </target>
   5.913 -    <target depends="init,deps-jar,-groovy-init-macrodef-javac" name="-pre-pre-compile">
   5.914 -        <mkdir dir="${build.classes.dir}"/>
   5.915 -    </target>
   5.916 -    <target name="-pre-compile">
   5.917 -        <!-- Empty placeholder for easier customization. -->
   5.918 -        <!-- You can override this target in the ../build.xml file. -->
   5.919 -    </target>
   5.920 -    <target if="do.depend.true" name="-compile-depend">
   5.921 -        <pathconvert property="build.generated.subdirs">
   5.922 -            <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
   5.923 -                <include name="*"/>
   5.924 -            </dirset>
   5.925 -        </pathconvert>
   5.926 -        <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>
   5.927 -    </target>
   5.928 -    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">
   5.929 -        <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
   5.930 -        <copy todir="${build.classes.dir}">
   5.931 -            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
   5.932 -        </copy>
   5.933 -    </target>
   5.934 -    <target if="has.persistence.xml" name="-copy-persistence-xml">
   5.935 -        <mkdir dir="${build.classes.dir}/META-INF"/>
   5.936 -        <copy todir="${build.classes.dir}/META-INF">
   5.937 -            <fileset dir="${meta.inf.dir}" includes="persistence.xml orm.xml"/>
   5.938 -        </copy>
   5.939 -    </target>
   5.940 -    <target name="-post-compile">
   5.941 -        <!-- Empty placeholder for easier customization. -->
   5.942 -        <!-- You can override this target in the ../build.xml file. -->
   5.943 -    </target>
   5.944 -    <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
   5.945 -    <target name="-pre-compile-single">
   5.946 -        <!-- Empty placeholder for easier customization. -->
   5.947 -        <!-- You can override this target in the ../build.xml file. -->
   5.948 -    </target>
   5.949 -    <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
   5.950 -        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
   5.951 -        <j2seproject3:force-recompile/>
   5.952 -        <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>
   5.953 -    </target>
   5.954 -    <target name="-post-compile-single">
   5.955 -        <!-- Empty placeholder for easier customization. -->
   5.956 -        <!-- You can override this target in the ../build.xml file. -->
   5.957 -    </target>
   5.958 -    <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
   5.959 -    <!--
   5.960 -                ====================
   5.961 -                JAR BUILDING SECTION
   5.962 -                ====================
   5.963 -            -->
   5.964 -    <target depends="init" name="-pre-pre-jar">
   5.965 -        <dirname file="${dist.jar}" property="dist.jar.dir"/>
   5.966 -        <mkdir dir="${dist.jar.dir}"/>
   5.967 -    </target>
   5.968 -    <target name="-pre-jar">
   5.969 -        <!-- Empty placeholder for easier customization. -->
   5.970 -        <!-- You can override this target in the ../build.xml file. -->
   5.971 -    </target>
   5.972 -    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive" name="-do-jar-without-manifest" unless="manifest.available-mkdist.available">
   5.973 -        <j2seproject1:jar/>
   5.974 -    </target>
   5.975 -    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class-mkdist.available">
   5.976 -        <j2seproject1:jar manifest="${manifest.file}"/>
   5.977 -    </target>
   5.978 -    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available">
   5.979 -        <j2seproject1:jar manifest="${manifest.file}">
   5.980 -            <j2seproject1:manifest>
   5.981 -                <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
   5.982 -            </j2seproject1:manifest>
   5.983 -        </j2seproject1:jar>
   5.984 -        <echo level="info">To run this application from the command line without Ant, try:</echo>
   5.985 -        <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
   5.986 -        <property location="${dist.jar}" name="dist.jar.resolved"/>
   5.987 -        <pathconvert property="run.classpath.with.dist.jar">
   5.988 -            <path path="${run.classpath}"/>
   5.989 -            <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
   5.990 -        </pathconvert>
   5.991 -        <echo level="info">java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
   5.992 -    </target>
   5.993 -    <target depends="init" if="do.archive" name="-do-jar-with-libraries-create-manifest" unless="manifest.available">
   5.994 -        <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
   5.995 -        <touch file="${tmp.manifest.file}" verbose="false"/>
   5.996 -    </target>
   5.997 -    <target depends="init" if="do.archive+manifest.available" name="-do-jar-with-libraries-copy-manifest">
   5.998 -        <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
   5.999 -        <copy file="${manifest.file}" tofile="${tmp.manifest.file}"/>
  5.1000 -    </target>
  5.1001 -    <target depends="init,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest" if="do.archive+main.class.available" name="-do-jar-with-libraries-set-main">
  5.1002 -        <manifest file="${tmp.manifest.file}" mode="update">
  5.1003 -            <attribute name="Main-Class" value="${main.class}"/>
  5.1004 -        </manifest>
  5.1005 -    </target>
  5.1006 -    <target depends="init,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-with-libraries-set-splashscreen">
  5.1007 -        <basename file="${application.splash}" property="splashscreen.basename"/>
  5.1008 -        <mkdir dir="${build.classes.dir}/META-INF"/>
  5.1009 -        <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
  5.1010 -        <manifest file="${tmp.manifest.file}" mode="update">
  5.1011 -            <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
  5.1012 -        </manifest>
  5.1013 -    </target>
  5.1014 -    <target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen" if="do.mkdist" name="-do-jar-with-libraries-pack">
  5.1015 -        <j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
  5.1016 -        <echo level="info">To run this application from the command line without Ant, try:</echo>
  5.1017 -        <property location="${dist.jar}" name="dist.jar.resolved"/>
  5.1018 -        <echo level="info">java -jar "${dist.jar.resolved}"</echo>
  5.1019 -    </target>
  5.1020 -    <target depends="-do-jar-with-libraries-pack" if="do.archive" name="-do-jar-with-libraries-delete-manifest">
  5.1021 -        <delete>
  5.1022 -            <fileset file="${tmp.manifest.file}"/>
  5.1023 -        </delete>
  5.1024 -    </target>
  5.1025 -    <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen,-do-jar-with-libraries-pack,-do-jar-with-libraries-delete-manifest" name="-do-jar-with-libraries"/>
  5.1026 -    <target name="-post-jar">
  5.1027 -        <!-- Empty placeholder for easier customization. -->
  5.1028 -        <!-- You can override this target in the ../build.xml file. -->
  5.1029 -    </target>
  5.1030 -    <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-post-jar" description="Build JAR." name="jar"/>
  5.1031 -    <!--
  5.1032 -                =================
  5.1033 -                EXECUTION SECTION
  5.1034 -                =================
  5.1035 -            -->
  5.1036 -    <target depends="init,compile" description="Run a main class." name="run">
  5.1037 -        <j2seproject1:java>
  5.1038 -            <customize>
  5.1039 -                <arg line="${application.args}"/>
  5.1040 -            </customize>
  5.1041 -        </j2seproject1:java>
  5.1042 -    </target>
  5.1043 -    <target name="-do-not-recompile">
  5.1044 -        <property name="javac.includes.binary" value=""/>
  5.1045 -    </target>
  5.1046 -    <target depends="init,compile-single" name="run-single">
  5.1047 -        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
  5.1048 -        <j2seproject1:java classname="${run.class}"/>
  5.1049 -    </target>
  5.1050 -    <target depends="init,compile-test-single" name="run-test-with-main">
  5.1051 -        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
  5.1052 -        <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
  5.1053 -    </target>
  5.1054 -    <!--
  5.1055 -                =================
  5.1056 -                DEBUGGING SECTION
  5.1057 -                =================
  5.1058 -            -->
  5.1059 -    <target depends="init" if="netbeans.home" name="-debug-start-debugger">
  5.1060 -        <j2seproject1:nbjpdastart name="${debug.class}"/>
  5.1061 -    </target>
  5.1062 -    <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
  5.1063 -        <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
  5.1064 -    </target>
  5.1065 -    <target depends="init,compile" name="-debug-start-debuggee">
  5.1066 -        <j2seproject3:debug>
  5.1067 -            <customize>
  5.1068 -                <arg line="${application.args}"/>
  5.1069 -            </customize>
  5.1070 -        </j2seproject3:debug>
  5.1071 -    </target>
  5.1072 -    <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
  5.1073 -    <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
  5.1074 -        <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
  5.1075 -    </target>
  5.1076 -    <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
  5.1077 -    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
  5.1078 -        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
  5.1079 -        <j2seproject3:debug classname="${debug.class}"/>
  5.1080 -    </target>
  5.1081 -    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
  5.1082 -    <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
  5.1083 -        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
  5.1084 -        <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
  5.1085 -    </target>
  5.1086 -    <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.1087 -    <target depends="init" name="-pre-debug-fix">
  5.1088 -        <fail unless="fix.includes">Must set fix.includes</fail>
  5.1089 -        <property name="javac.includes" value="${fix.includes}.java"/>
  5.1090 -    </target>
  5.1091 -    <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
  5.1092 -        <j2seproject1:nbjpdareload/>
  5.1093 -    </target>
  5.1094 -    <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
  5.1095 -    <!--
  5.1096 -                =================
  5.1097 -                PROFILING SECTION
  5.1098 -                =================
  5.1099 -            -->
  5.1100 -    <!--
  5.1101 -                pre NB7.2 profiler integration
  5.1102 -            -->
  5.1103 -    <target depends="profile-init,compile" description="Profile a project in the IDE." if="profiler.info.jvmargs.agent" name="-profile-pre72">
  5.1104 -        <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
  5.1105 -        <nbprofiledirect>
  5.1106 -            <classpath>
  5.1107 -                <path path="${run.classpath}"/>
  5.1108 -            </classpath>
  5.1109 -        </nbprofiledirect>
  5.1110 -        <profile/>
  5.1111 -    </target>
  5.1112 -    <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="profiler.info.jvmargs.agent" name="-profile-single-pre72">
  5.1113 -        <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail>
  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 classname="${profile.class}"/>
  5.1121 -    </target>
  5.1122 -    <target depends="profile-init,compile-single" if="profiler.info.jvmargs.agent" name="-profile-applet-pre72">
  5.1123 -        <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
  5.1124 -        <nbprofiledirect>
  5.1125 -            <classpath>
  5.1126 -                <path path="${run.classpath}"/>
  5.1127 -            </classpath>
  5.1128 -        </nbprofiledirect>
  5.1129 -        <profile classname="sun.applet.AppletViewer">
  5.1130 -            <customize>
  5.1131 -                <arg value="${applet.url}"/>
  5.1132 -            </customize>
  5.1133 -        </profile>
  5.1134 -    </target>
  5.1135 -    <target depends="profile-init,compile-test-single" if="profiler.info.jvmargs.agent" name="-profile-test-single-pre72">
  5.1136 -        <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
  5.1137 -        <nbprofiledirect>
  5.1138 -            <classpath>
  5.1139 -                <path path="${run.test.classpath}"/>
  5.1140 -            </classpath>
  5.1141 -        </nbprofiledirect>
  5.1142 -        <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
  5.1143 -            <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
  5.1144 -            <jvmarg value="${profiler.info.jvmargs.agent}"/>
  5.1145 -            <jvmarg line="${profiler.info.jvmargs}"/>
  5.1146 -            <test name="${profile.class}"/>
  5.1147 -            <classpath>
  5.1148 -                <path path="${run.test.classpath}"/>
  5.1149 -            </classpath>
  5.1150 -            <syspropertyset>
  5.1151 -                <propertyref prefix="test-sys-prop."/>
  5.1152 -                <mapper from="test-sys-prop.*" to="*" type="glob"/>
  5.1153 -            </syspropertyset>
  5.1154 -            <formatter type="brief" usefile="false"/>
  5.1155 -            <formatter type="xml"/>
  5.1156 -        </junit>
  5.1157 -    </target>
  5.1158 -    <!--
  5.1159 -                end of pre NB72 profiling section
  5.1160 -            -->
  5.1161 -    <target if="netbeans.home" name="-profile-check">
  5.1162 -        <condition property="profiler.configured">
  5.1163 -            <or>
  5.1164 -                <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-agentpath:"/>
  5.1165 -                <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-javaagent:"/>
  5.1166 -            </or>
  5.1167 -        </condition>
  5.1168 -    </target>
  5.1169 -    <target depends="-profile-check,-profile-pre72" description="Profile a project in the IDE." if="profiler.configured" name="profile" unless="profiler.info.jvmargs.agent">
  5.1170 -        <startprofiler/>
  5.1171 -        <antcall target="run"/>
  5.1172 -    </target>
  5.1173 -    <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.1174 -        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
  5.1175 -        <startprofiler/>
  5.1176 -        <antcall target="run-single"/>
  5.1177 -    </target>
  5.1178 -    <target depends="-profile-test-single-pre72" description="Profile a selected test in the IDE." name="profile-test-single"/>
  5.1179 -    <target depends="-profile-check" description="Profile a selected test in the IDE." if="profiler.configured" name="profile-test" unless="profiler.info.jvmargs">
  5.1180 -        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
  5.1181 -        <startprofiler/>
  5.1182 -        <antcall target="test-single"/>
  5.1183 -    </target>
  5.1184 -    <target depends="-profile-check" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-test-with-main">
  5.1185 -        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
  5.1186 -        <startprofiler/>
  5.1187 -        <antcal target="run-test-with-main"/>
  5.1188 -    </target>
  5.1189 -    <target depends="-profile-check,-profile-applet-pre72" if="profiler.configured" name="profile-applet" unless="profiler.info.jvmargs.agent">
  5.1190 -        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
  5.1191 -        <startprofiler/>
  5.1192 -        <antcall target="run-applet"/>
  5.1193 -    </target>
  5.1194 -    <!--
  5.1195 -                ===============
  5.1196 -                JAVADOC SECTION
  5.1197 -                ===============
  5.1198 -            -->
  5.1199 -    <target depends="init" if="have.sources" name="-javadoc-build">
  5.1200 -        <mkdir dir="${dist.javadoc.dir}"/>
  5.1201 -        <condition else="" property="javadoc.endorsed.classpath.cmd.line.arg" value="-J${endorsed.classpath.cmd.line.arg}">
  5.1202 -            <and>
  5.1203 -                <isset property="endorsed.classpath.cmd.line.arg"/>
  5.1204 -                <not>
  5.1205 -                    <equals arg1="${endorsed.classpath.cmd.line.arg}" arg2=""/>
  5.1206 -                </not>
  5.1207 -            </and>
  5.1208 -        </condition>
  5.1209 -        <javadoc additionalparam="${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}">
  5.1210 -            <classpath>
  5.1211 -                <path path="${javac.classpath}"/>
  5.1212 -            </classpath>
  5.1213 -            <fileset dir="${src.dir}" excludes="*.java,${excludes}" includes="${includes}">
  5.1214 -                <filename name="**/*.java"/>
  5.1215 -            </fileset>
  5.1216 -            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
  5.1217 -                <include name="**/*.java"/>
  5.1218 -                <exclude name="*.java"/>
  5.1219 -            </fileset>
  5.1220 -            <arg line="${javadoc.endorsed.classpath.cmd.line.arg}"/>
  5.1221 -        </javadoc>
  5.1222 -        <copy todir="${dist.javadoc.dir}">
  5.1223 -            <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
  5.1224 -                <filename name="**/doc-files/**"/>
  5.1225 -            </fileset>
  5.1226 -            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
  5.1227 -                <include name="**/doc-files/**"/>
  5.1228 -            </fileset>
  5.1229 -        </copy>
  5.1230 -    </target>
  5.1231 -    <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
  5.1232 -        <nbbrowse file="${dist.javadoc.dir}/index.html"/>
  5.1233 -    </target>
  5.1234 -    <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
  5.1235 -    <!--
  5.1236 -                =========================
  5.1237 -                TEST COMPILATION SECTION
  5.1238 -                =========================
  5.1239 -            -->
  5.1240 -    <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
  5.1241 -        <mkdir dir="${build.test.classes.dir}"/>
  5.1242 -    </target>
  5.1243 -    <target name="-pre-compile-test">
  5.1244 -        <!-- Empty placeholder for easier customization. -->
  5.1245 -        <!-- You can override this target in the ../build.xml file. -->
  5.1246 -    </target>
  5.1247 -    <target if="do.depend.true" name="-compile-test-depend">
  5.1248 -        <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
  5.1249 -    </target>
  5.1250 -    <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
  5.1251 -        <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.1252 -        <copy todir="${build.test.classes.dir}">
  5.1253 -            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  5.1254 -        </copy>
  5.1255 -    </target>
  5.1256 -    <target name="-post-compile-test">
  5.1257 -        <!-- Empty placeholder for easier customization. -->
  5.1258 -        <!-- You can override this target in the ../build.xml file. -->
  5.1259 -    </target>
  5.1260 -    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
  5.1261 -    <target name="-pre-compile-test-single">
  5.1262 -        <!-- Empty placeholder for easier customization. -->
  5.1263 -        <!-- You can override this target in the ../build.xml file. -->
  5.1264 -    </target>
  5.1265 -    <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
  5.1266 -        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
  5.1267 -        <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
  5.1268 -        <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.1269 -        <copy todir="${build.test.classes.dir}">
  5.1270 -            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  5.1271 -        </copy>
  5.1272 -    </target>
  5.1273 -    <target name="-post-compile-test-single">
  5.1274 -        <!-- Empty placeholder for easier customization. -->
  5.1275 -        <!-- You can override this target in the ../build.xml file. -->
  5.1276 -    </target>
  5.1277 -    <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.1278 -    <!--
  5.1279 -                =======================
  5.1280 -                TEST EXECUTION SECTION
  5.1281 -                =======================
  5.1282 -            -->
  5.1283 -    <target depends="init" if="have.tests" name="-pre-test-run">
  5.1284 -        <mkdir dir="${build.test.results.dir}"/>
  5.1285 -    </target>
  5.1286 -    <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
  5.1287 -        <j2seproject3:test testincludes="**/*Test.java"/>
  5.1288 -    </target>
  5.1289 -    <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
  5.1290 -        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
  5.1291 -    </target>
  5.1292 -    <target depends="init" if="have.tests" name="test-report"/>
  5.1293 -    <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
  5.1294 -    <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.1295 -    <target depends="init" if="have.tests" name="-pre-test-run-single">
  5.1296 -        <mkdir dir="${build.test.results.dir}"/>
  5.1297 -    </target>
  5.1298 -    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
  5.1299 -        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
  5.1300 -        <j2seproject3:test excludes="" includes="${test.includes}" testincludes="${test.includes}"/>
  5.1301 -    </target>
  5.1302 -    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
  5.1303 -        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
  5.1304 -    </target>
  5.1305 -    <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.1306 -    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single-method">
  5.1307 -        <fail unless="test.class">Must select some files in the IDE or set test.class</fail>
  5.1308 -        <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
  5.1309 -        <j2seproject3:test excludes="" includes="${javac.includes}" testincludes="${test.class}" testmethods="${test.method}"/>
  5.1310 -    </target>
  5.1311 -    <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.1312 -        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
  5.1313 -    </target>
  5.1314 -    <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.1315 -    <!--
  5.1316 -                =======================
  5.1317 -                TEST DEBUGGING SECTION
  5.1318 -                =======================
  5.1319 -            -->
  5.1320 -    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test">
  5.1321 -        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
  5.1322 -        <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testincludes="${javac.includes}"/>
  5.1323 -    </target>
  5.1324 -    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test-method">
  5.1325 -        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
  5.1326 -        <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
  5.1327 -        <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testMethod="${test.method}" testincludes="${test.class}" testmethods="${test.method}"/>
  5.1328 -    </target>
  5.1329 -    <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
  5.1330 -        <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
  5.1331 -    </target>
  5.1332 -    <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
  5.1333 -    <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test-method" name="debug-test-method"/>
  5.1334 -    <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
  5.1335 -        <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
  5.1336 -    </target>
  5.1337 -    <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
  5.1338 -    <!--
  5.1339 -                =========================
  5.1340 -                APPLET EXECUTION SECTION
  5.1341 -                =========================
  5.1342 -            -->
  5.1343 -    <target depends="init,compile-single" name="run-applet">
  5.1344 -        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
  5.1345 -        <j2seproject1:java classname="sun.applet.AppletViewer">
  5.1346 -            <customize>
  5.1347 -                <arg value="${applet.url}"/>
  5.1348 -            </customize>
  5.1349 -        </j2seproject1:java>
  5.1350 -    </target>
  5.1351 -    <!--
  5.1352 -                =========================
  5.1353 -                APPLET DEBUGGING  SECTION
  5.1354 -                =========================
  5.1355 -            -->
  5.1356 -    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
  5.1357 -        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
  5.1358 -        <j2seproject3:debug classname="sun.applet.AppletViewer">
  5.1359 -            <customize>
  5.1360 -                <arg value="${applet.url}"/>
  5.1361 -            </customize>
  5.1362 -        </j2seproject3:debug>
  5.1363 -    </target>
  5.1364 -    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
  5.1365 -    <!--
  5.1366 -                ===============
  5.1367 -                CLEANUP SECTION
  5.1368 -                ===============
  5.1369 -            -->
  5.1370 -    <target name="-deps-clean-init" unless="built-clean.properties">
  5.1371 -        <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>
  5.1372 -        <delete file="${built-clean.properties}" quiet="true"/>
  5.1373 -    </target>
  5.1374 -    <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
  5.1375 -        <echo level="warn" message="Cycle detected: alt2xml was already built"/>
  5.1376 -    </target>
  5.1377 -    <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
  5.1378 -        <mkdir dir="${build.dir}"/>
  5.1379 -        <touch file="${built-clean.properties}" verbose="false"/>
  5.1380 -        <property file="${built-clean.properties}" prefix="already.built.clean."/>
  5.1381 -        <antcall target="-warn-already-built-clean"/>
  5.1382 -        <propertyfile file="${built-clean.properties}">
  5.1383 -            <entry key="${basedir}" value=""/>
  5.1384 -        </propertyfile>
  5.1385 -    </target>
  5.1386 -    <target depends="init" name="-do-clean">
  5.1387 -        <delete dir="${build.dir}"/>
  5.1388 -        <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
  5.1389 -    </target>
  5.1390 -    <target name="-post-clean">
  5.1391 -        <!-- Empty placeholder for easier customization. -->
  5.1392 -        <!-- You can override this target in the ../build.xml file. -->
  5.1393 -    </target>
  5.1394 -    <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
  5.1395 -    <target name="-check-call-dep">
  5.1396 -        <property file="${call.built.properties}" prefix="already.built."/>
  5.1397 -        <condition property="should.call.dep">
  5.1398 -            <and>
  5.1399 -                <not>
  5.1400 -                    <isset property="already.built.${call.subproject}"/>
  5.1401 -                </not>
  5.1402 -                <available file="${call.script}"/>
  5.1403 -            </and>
  5.1404 -        </condition>
  5.1405 -    </target>
  5.1406 -    <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
  5.1407 -        <ant antfile="${call.script}" inheritall="false" target="${call.target}">
  5.1408 -            <propertyset>
  5.1409 -                <propertyref prefix="transfer."/>
  5.1410 -                <mapper from="transfer.*" to="*" type="glob"/>
  5.1411 -            </propertyset>
  5.1412 -        </ant>
  5.1413 -    </target>
  5.1414 -</project>
     6.1 --- a/java/alt2xml-bin/nbproject/genfiles.properties	Sat Jun 07 10:38:31 2014 +0200
     6.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.3 @@ -1,11 +0,0 @@
     6.4 -build.xml.data.CRC32=00ae4836
     6.5 -build.xml.script.CRC32=98793cfd
     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=31175c28
    6.10 -nbproject/build-impl.xml.script.CRC32=aa79723f
    6.11 -nbproject/build-impl.xml.stylesheet.CRC32=c6d2a60f@1.56.1.46
    6.12 -nbproject/groovy-build.xml.data.CRC32=00ae4836
    6.13 -nbproject/groovy-build.xml.script.CRC32=66297360
    6.14 -nbproject/groovy-build.xml.stylesheet.CRC32=28d0e1f2@1.7.1
     7.1 --- a/java/alt2xml-bin/nbproject/groovy-build.xml	Sat Jun 07 10:38:31 2014 +0200
     7.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.3 @@ -1,93 +0,0 @@
     7.4 -<?xml version="1.0" encoding="UTF-8"?>
     7.5 -<!--
     7.6 -*** GENERATED FROM project.xml - DO NOT EDIT  ***
     7.7 -***         EDIT ../build.xml INSTEAD         ***
     7.8 -
     7.9 -        
    7.10 -        -->
    7.11 -<project xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc">
    7.12 -    <target name="-groovy-init-macrodef-javac">
    7.13 -        <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
    7.14 -            <attribute name="srcdir" default="${src.dir}"/>
    7.15 -            <attribute name="destdir" default="${build.classes.dir}"/>
    7.16 -            <attribute name="classpath" default="${javac.classpath}"/>
    7.17 -            <attribute name="includes" default="${includes}"/>
    7.18 -            <attribute name="excludes" default="${excludes}"/>
    7.19 -            <attribute name="debug" default="${javac.debug}"/>
    7.20 -            <attribute name="sourcepath" default="${empty.dir}"/>
    7.21 -            <attribute name="gensrcdir" default="${empty.dir}"/>
    7.22 -            <attribute name="processorpath" default="${javac.processorpath}"/>
    7.23 -            <attribute name="apgeneratedsrcdir" default="${build.generated.sources.dir}/ap-source-output"/>
    7.24 -            <element name="customize" optional="true"/>
    7.25 -            <sequential>
    7.26 -                <taskdef name="groovyc" classpath="${javac.classpath}" classname="org.codehaus.groovy.ant.Groovyc"/>
    7.27 -                <property name="empty.dir" location="${build.dir}/empty"/>
    7.28 -                <mkdir dir="${empty.dir}"/>
    7.29 -                <groovyc srcdir="@{srcdir}" sourcepath="@{sourcepath}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" includeAntRuntime="false" fork="true">
    7.30 -                    <src>
    7.31 -                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
    7.32 -                            <include name="*"/>
    7.33 -                        </dirset>
    7.34 -                    </src>
    7.35 -                    <classpath>
    7.36 -                        <path path="@{classpath}"/>
    7.37 -                    </classpath>
    7.38 -                    <javac debug="@{debug}" deprecation="${javac.deprecation}" encoding="${source.encoding}" source="${javac.source}" target="${javac.target}">
    7.39 -                        <compilerarg line="${javac.compilerargs} ${javac.compilerargs.jaxws}"/>
    7.40 -                        <customize/>
    7.41 -                    </javac>
    7.42 -                </groovyc>
    7.43 -            </sequential>
    7.44 -        </macrodef>
    7.45 -        <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
    7.46 -            <attribute name="srcdir" default="${src.dir}"/>
    7.47 -            <attribute name="destdir" default="${build.classes.dir}"/>
    7.48 -            <attribute name="classpath" default="${javac.classpath}"/>
    7.49 -            <sequential>
    7.50 -                <depend srcdir="@{srcdir}" destdir="@{destdir}" cache="${build.dir}/depcache" includes="${includes}" excludes="${excludes}">
    7.51 -                    <classpath>
    7.52 -                        <path path="@{classpath}"/>
    7.53 -                    </classpath>
    7.54 -                </depend>
    7.55 -            </sequential>
    7.56 -        </macrodef>
    7.57 -        <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
    7.58 -            <attribute name="destdir" default="${build.classes.dir}"/>
    7.59 -            <sequential>
    7.60 -                <fail unless="javac.includes">Must set javac.includes</fail>
    7.61 -                <pathconvert property="javac.includes.binary" pathsep=",">
    7.62 -                    <path>
    7.63 -                        <filelist dir="@{destdir}" files="${javac.includes}"/>
    7.64 -                    </path>
    7.65 -                    <globmapper from="*.java" to="*.class"/>
    7.66 -                </pathconvert>
    7.67 -                <delete>
    7.68 -                    <files includes="${javac.includes.binary}"/>
    7.69 -                </delete>
    7.70 -            </sequential>
    7.71 -        </macrodef>
    7.72 -    </target>
    7.73 -    <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run-with-groovy">
    7.74 -        <j2seproject3:test testincludes=""/>
    7.75 -    </target>
    7.76 -    <target depends="init,compile-test,-pre-test-run,-do-test-run-with-groovy" if="have.tests" name="-post-test-run-with-groovy">
    7.77 -        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
    7.78 -    </target>
    7.79 -    <target depends="init,compile-test,-pre-test-run,-do-test-run-with-groovy,test-report,-post-test-run-with-groovy,-test-browse" description="Run unit tests." name="test-with-groovy"/>
    7.80 -    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single-groovy">
    7.81 -        <fail unless="test.binarytestincludes">Must select some files in the IDE or set test.includes</fail>
    7.82 -        <j2seproject3:test testincludes=""/>
    7.83 -    </target>
    7.84 -    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-groovy" if="have.tests" name="-post-test-run-single-groovy">
    7.85 -        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
    7.86 -    </target>
    7.87 -    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-groovy,-post-test-run-single-groovy" description="Run single unit test." name="test-single-groovy"/>
    7.88 -    <target depends="init,compile-test-single,-pre-test-run-single,-debug-start-debugger-test" name="-do-test-debug-single-groovy">
    7.89 -        <fail unless="test.binarytestincludes">Must select some files in the IDE or set test.binarytestincludes</fail>
    7.90 -        <j2seproject3:test-debug testincludes=""/>
    7.91 -    </target>
    7.92 -    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-debug-single-groovy" if="have.tests" name="-post-test-debug-single-groovy">
    7.93 -        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
    7.94 -    </target>
    7.95 -    <target depends="init,compile-test-single,-pre-test-run-single,-debug-start-debugger-test,-do-test-debug-single-groovy,-post-test-debug-single-groovy" name="debug-test-with-groovy"/>
    7.96 -</project>
     8.1 --- a/java/alt2xml-bin/nbproject/project.properties	Sat Jun 07 10:38:31 2014 +0200
     8.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.3 @@ -1,77 +0,0 @@
     8.4 -annotation.processing.enabled=true
     8.5 -annotation.processing.enabled.in.editor=true
     8.6 -annotation.processing.processors.list=
     8.7 -annotation.processing.run.all.processors=true
     8.8 -annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
     8.9 -application.title=alt2xml-bin
    8.10 -application.vendor=fiki
    8.11 -build.classes.dir=${build.dir}/classes
    8.12 -build.classes.excludes=**/*.java,**/*.form,**/*.groovy
    8.13 -# This directory is removed when the project is cleaned:
    8.14 -build.dir=build
    8.15 -build.generated.dir=${build.dir}/generated
    8.16 -build.generated.sources.dir=${build.dir}/generated-sources
    8.17 -# Only compile against the classpath explicitly listed here:
    8.18 -build.sysclasspath=ignore
    8.19 -build.test.classes.dir=${build.dir}/test/classes
    8.20 -build.test.results.dir=${build.dir}/test/results
    8.21 -# Uncomment to specify the preferred debugger connection transport:
    8.22 -#debug.transport=dt_socket
    8.23 -debug.classpath=\
    8.24 -    ${run.classpath}
    8.25 -debug.test.classpath=\
    8.26 -    ${run.test.classpath}
    8.27 -# This directory is removed when the project is cleaned:
    8.28 -dist.dir=dist
    8.29 -dist.jar=${dist.dir}/alt2xml-bin.jar
    8.30 -dist.javadoc.dir=${dist.dir}/javadoc
    8.31 -endorsed.classpath=
    8.32 -excludes=
    8.33 -includes=**
    8.34 -jar.compress=false
    8.35 -javac.classpath=\
    8.36 -    ${reference.alt2xml-lib.jar}
    8.37 -# Space-separated list of extra javac options
    8.38 -javac.compilerargs=
    8.39 -javac.deprecation=false
    8.40 -javac.processorpath=\
    8.41 -    ${javac.classpath}
    8.42 -javac.source=1.7
    8.43 -javac.target=1.7
    8.44 -javac.test.classpath=\
    8.45 -    ${javac.classpath}:\
    8.46 -    ${build.classes.dir}
    8.47 -javac.test.processorpath=\
    8.48 -    ${javac.test.classpath}
    8.49 -javadoc.additionalparam=
    8.50 -javadoc.author=false
    8.51 -javadoc.encoding=${source.encoding}
    8.52 -javadoc.noindex=false
    8.53 -javadoc.nonavbar=false
    8.54 -javadoc.notree=false
    8.55 -javadoc.private=false
    8.56 -javadoc.splitindex=true
    8.57 -javadoc.use=true
    8.58 -javadoc.version=false
    8.59 -javadoc.windowtitle=
    8.60 -main.class=cz.frantovo.alt2xml.CLI
    8.61 -manifest.file=manifest.mf
    8.62 -meta.inf.dir=${src.dir}/META-INF
    8.63 -mkdist.disabled=false
    8.64 -platform.active=default_platform
    8.65 -project.alt2xml-lib=../alt2xml-lib
    8.66 -reference.alt2xml-lib.jar=${project.alt2xml-lib}/dist/alt2xml-lib.jar
    8.67 -run.classpath=\
    8.68 -    ${javac.classpath}:\
    8.69 -    ${build.classes.dir}
    8.70 -# Space-separated list of JVM arguments used when running the project
    8.71 -# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value
    8.72 -# or test-sys-prop.name=value to set system properties for unit tests):
    8.73 -run.jvmargs=
    8.74 -run.test.classpath=\
    8.75 -    ${javac.test.classpath}:\
    8.76 -    ${build.test.classes.dir}
    8.77 -source.encoding=UTF-8
    8.78 -src.dir=src
    8.79 -test.src.dir=test
    8.80 -compile.on.save.unsupported.groovy=true
     9.1 --- a/java/alt2xml-bin/nbproject/project.xml	Sat Jun 07 10:38:31 2014 +0200
     9.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.3 @@ -1,30 +0,0 @@
     9.4 -<?xml version="1.0" encoding="UTF-8"?>
     9.5 -<project xmlns="http://www.netbeans.org/ns/project/1">
     9.6 -    <type>org.netbeans.modules.java.j2seproject</type>
     9.7 -    <configuration>
     9.8 -        <buildExtensions xmlns="http://www.netbeans.org/ns/ant-build-extender/1">
     9.9 -            <extension file="groovy-build.xml" id="groovy">
    9.10 -                <dependency dependsOn="-groovy-init-macrodef-javac" target="-pre-pre-compile"/>
    9.11 -            </extension>
    9.12 -        </buildExtensions>
    9.13 -        <data xmlns="http://www.netbeans.org/ns/j2se-project/3">
    9.14 -            <name>alt2xml-bin</name>
    9.15 -            <source-roots>
    9.16 -                <root id="src.dir"/>
    9.17 -            </source-roots>
    9.18 -            <test-roots>
    9.19 -                <root id="test.src.dir"/>
    9.20 -            </test-roots>
    9.21 -        </data>
    9.22 -        <references xmlns="http://www.netbeans.org/ns/ant-project-references/1">
    9.23 -            <reference>
    9.24 -                <foreign-project>alt2xml-lib</foreign-project>
    9.25 -                <artifact-type>jar</artifact-type>
    9.26 -                <script>build.xml</script>
    9.27 -                <target>jar</target>
    9.28 -                <clean-target>clean</clean-target>
    9.29 -                <id>jar</id>
    9.30 -            </reference>
    9.31 -        </references>
    9.32 -    </configuration>
    9.33 -</project>
    10.1 --- a/java/alt2xml-bin/src/cz/frantovo/alt2xml/CLI.java	Sat Jun 07 10:38:31 2014 +0200
    10.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.3 @@ -1,59 +0,0 @@
    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;
   10.22 -
   10.23 -import cz.frantovo.alt2xml.výstup.EchoContentHandler;
   10.24 -import java.io.InputStream;
   10.25 -import java.io.OutputStream;
   10.26 -import javax.xml.parsers.SAXParser;
   10.27 -import javax.xml.parsers.SAXParserFactory;
   10.28 -import javax.xml.stream.XMLOutputFactory;
   10.29 -import javax.xml.stream.XMLStreamWriter;
   10.30 -import org.xml.sax.helpers.DefaultHandler;
   10.31 -
   10.32 -/**
   10.33 - *
   10.34 - * @author fiki
   10.35 - */
   10.36 -public class CLI {
   10.37 -
   10.38 -	public static void main(String[] args) throws Exception {
   10.39 -		/**
   10.40 -		 * Použijeme standardní vstup a výstup:
   10.41 -		 */
   10.42 -		InputStream vstup = System.in;
   10.43 -		OutputStream výstup = System.out;
   10.44 -		
   10.45 -		/**
   10.46 -		 * Serializujeme data do XML.
   10.47 -		 * To normálně vůbec není potřeba – data se do tvaru proudu obsahujícího ostré závorky
   10.48 -		 * vůbec nedostanou – zpracováváme události (volání javovských metod – začátky a konce elementů atd.)
   10.49 -		 * a z nich např. deserializujeme nějaké naše objekty, provádíme nějaké akce, nebo třeba stavíme DOM.
   10.50 -		 */
   10.51 -		XMLOutputFactory xmlOutputFactory = XMLOutputFactory.newFactory();
   10.52 -		XMLStreamWriter w = xmlOutputFactory.createXMLStreamWriter(výstup);
   10.53 -		DefaultHandler h = new EchoContentHandler(w);
   10.54 -		
   10.55 -		/**
   10.56 -		 * Parsujeme JSON a děláme z něj XML:
   10.57 -		 */
   10.58 -		SAXParserFactory t = SAXParserFactory.newInstance(SAXTovarna.class.getName(), null);
   10.59 -		SAXParser p = t.newSAXParser();
   10.60 -		p.parse(vstup, h);
   10.61 -	}
   10.62 -}
    11.1 --- a/java/alt2xml-bin/src/cz/frantovo/alt2xml/ReaderFinder.java	Sat Jun 07 10:38:31 2014 +0200
    11.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    11.3 @@ -1,20 +0,0 @@
    11.4 -package cz.frantovo.alt2xml;
    11.5 -
    11.6 -import org.xml.sax.SAXException;
    11.7 -import org.xml.sax.XMLReader;
    11.8 -
    11.9 -/**
   11.10 - *
   11.11 - * @author Ing. František Kučera (frantovo.cz)
   11.12 - */
   11.13 -public interface ReaderFinder {
   11.14 -
   11.15 -	/**
   11.16 -	 *
   11.17 -	 * @param systemId systemId of the document which should be parsed
   11.18 -	 * @return XMLReader appropriate for this document
   11.19 -	 * @throws org.xml.sax.SAXException if we have no reader for given systemId
   11.20 -	 */
   11.21 -	public XMLReader findReader(String systemId) throws SAXException;
   11.22 -
   11.23 -}
    12.1 --- a/java/alt2xml-bin/src/cz/frantovo/alt2xml/SAXTovarna.java	Sat Jun 07 10:38:31 2014 +0200
    12.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    12.3 @@ -1,113 +0,0 @@
    12.4 -/**
    12.5 - * Alt2XML
    12.6 - * Copyright © 2014 František Kučera (frantovo.cz)
    12.7 - *
    12.8 - * This program is free software: you can redistribute it and/or modify
    12.9 - * it under the terms of the GNU General Public License as published by
   12.10 - * the Free Software Foundation, either version 3 of the License, or
   12.11 - * (at your option) any later version.
   12.12 - *
   12.13 - * This program is distributed in the hope that it will be useful,
   12.14 - * but WITHOUT ANY WARRANTY; without even the implied warranty of
   12.15 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
   12.16 - * GNU General Public License for more details.
   12.17 - *
   12.18 - * You should have received a copy of the GNU General Public License
   12.19 - * along with this program. If not, see <http://www.gnu.org/licenses/>.
   12.20 - */
   12.21 -package cz.frantovo.alt2xml;
   12.22 -
   12.23 -import cz.frantovo.alt2xml.vstup.SuperReader;
   12.24 -import java.util.Deque;
   12.25 -import java.util.LinkedList;
   12.26 -import java.util.ServiceLoader;
   12.27 -import javax.xml.parsers.ParserConfigurationException;
   12.28 -import javax.xml.parsers.SAXParser;
   12.29 -import javax.xml.parsers.SAXParserFactory;
   12.30 -import org.xml.sax.Parser;
   12.31 -import org.xml.sax.SAXException;
   12.32 -import org.xml.sax.SAXNotRecognizedException;
   12.33 -import org.xml.sax.SAXNotSupportedException;
   12.34 -import org.xml.sax.XMLReader;
   12.35 -
   12.36 -/**
   12.37 - *
   12.38 - * @author fiki
   12.39 - */
   12.40 -public class SAXTovarna extends SAXParserFactory implements ReaderFinder {
   12.41 -
   12.42 -	private final Deque<Alt2XmlReaderFactory> readerFactories = new LinkedList();
   12.43 -
   12.44 -	public SAXTovarna() {
   12.45 -		super();
   12.46 -		for (Alt2XmlReaderFactory f : ServiceLoader.load(Alt2XmlReaderFactory.class)) {
   12.47 -			readerFactories.add(f);
   12.48 -		}
   12.49 -
   12.50 -	}
   12.51 -
   12.52 -	@Override
   12.53 -	public XMLReader findReader(String systemId) throws SAXException {
   12.54 -		for (Alt2XmlReaderFactory f : readerFactories) {
   12.55 -			if (f.canRead(systemId)) {
   12.56 -				return f.getReader();
   12.57 -			}
   12.58 -		}
   12.59 -		throw new SAXException("Iterated over " + readerFactories.size() + " and was unable to find XMLReader for SystemId: " + systemId);
   12.60 -	}
   12.61 -
   12.62 -	@Override
   12.63 -	public SAXParser newSAXParser() throws ParserConfigurationException, SAXException {
   12.64 -		return new AltSAXParser(new SuperReader(this));
   12.65 -	}
   12.66 -
   12.67 -	@Override
   12.68 -	public void setFeature(String name, boolean value) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException {
   12.69 -		throw new SAXNotSupportedException("Zatím není podporováno.");
   12.70 -	}
   12.71 -
   12.72 -	@Override
   12.73 -	public boolean getFeature(String name) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException {
   12.74 -		throw new SAXNotSupportedException("Zatím není podporováno.");
   12.75 -	}
   12.76 -
   12.77 -	private static class AltSAXParser extends SAXParser {
   12.78 -
   12.79 -		private XMLReader xmlReader;
   12.80 -
   12.81 -		public AltSAXParser(XMLReader xmlReader) {
   12.82 -			this.xmlReader = xmlReader;
   12.83 -		}
   12.84 -
   12.85 -		@Override
   12.86 -		@Deprecated
   12.87 -		public Parser getParser() throws SAXException {
   12.88 -			throw new SAXException("Není podporováno.");
   12.89 -		}
   12.90 -
   12.91 -		@Override
   12.92 -		public XMLReader getXMLReader() throws SAXException {
   12.93 -			return xmlReader;
   12.94 -		}
   12.95 -
   12.96 -		@Override
   12.97 -		public boolean isNamespaceAware() {
   12.98 -			return true;
   12.99 -		}
  12.100 -
  12.101 -		@Override
  12.102 -		public boolean isValidating() {
  12.103 -			return false;
  12.104 -		}
  12.105 -
  12.106 -		@Override
  12.107 -		public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException {
  12.108 -			xmlReader.setProperty(name, value);
  12.109 -		}
  12.110 -
  12.111 -		@Override
  12.112 -		public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException {
  12.113 -			return xmlReader.getProperty(name);
  12.114 -		}
  12.115 -	}
  12.116 -}
    13.1 --- a/java/alt2xml-bin/src/cz/frantovo/alt2xml/vstup/SuperReader.java	Sat Jun 07 10:38:31 2014 +0200
    13.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    13.3 @@ -1,140 +0,0 @@
    13.4 -/**
    13.5 - * Alt2XML
    13.6 - * Copyright © 2014 František Kučera (frantovo.cz)
    13.7 - *
    13.8 - * This program is free software: you can redistribute it and/or modify
    13.9 - * it under the terms of the GNU General Public License as published by
   13.10 - * the Free Software Foundation, either version 3 of the License, or
   13.11 - * (at your option) any later version.
   13.12 - *
   13.13 - * This program is distributed in the hope that it will be useful,
   13.14 - * but WITHOUT ANY WARRANTY; without even the implied warranty of
   13.15 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
   13.16 - * GNU General Public License for more details.
   13.17 - *
   13.18 - * You should have received a copy of the GNU General Public License
   13.19 - * along with this program. If not, see <http://www.gnu.org/licenses/>.
   13.20 - */
   13.21 -package cz.frantovo.alt2xml.vstup;
   13.22 -
   13.23 -import cz.frantovo.alt2xml.ReaderFinder;
   13.24 -import java.io.IOException;
   13.25 -import java.io.InputStreamReader;
   13.26 -import java.util.HashMap;
   13.27 -import java.util.Map;
   13.28 -import org.xml.sax.ContentHandler;
   13.29 -import org.xml.sax.DTDHandler;
   13.30 -import org.xml.sax.EntityResolver;
   13.31 -import org.xml.sax.ErrorHandler;
   13.32 -import org.xml.sax.InputSource;
   13.33 -import org.xml.sax.SAXException;
   13.34 -import org.xml.sax.SAXNotRecognizedException;
   13.35 -import org.xml.sax.SAXNotSupportedException;
   13.36 -import org.xml.sax.XMLReader;
   13.37 -
   13.38 -/**
   13.39 - *
   13.40 - * @author fiki
   13.41 - */
   13.42 -public class SuperReader implements XMLReader {
   13.43 -
   13.44 -	private ContentHandler contentHandler;
   13.45 -	private ErrorHandler errorHandler;
   13.46 -	private DTDHandler dtdHandler;
   13.47 -	private EntityResolver entityResolver;
   13.48 -	private Map<String, Object> konfigurace = new HashMap<>();
   13.49 -	private final ReaderFinder readerFinder;
   13.50 -
   13.51 -	public SuperReader(ReaderFinder readerFinder) {
   13.52 -		this.readerFinder = readerFinder;
   13.53 -	}
   13.54 -
   13.55 -	@Override
   13.56 -	public void parse(InputSource input) throws IOException, SAXException {
   13.57 -		/**
   13.58 -		 * TODO: rozpornat formát vstupu a podle toho delegovat
   13.59 -		 */
   13.60 -		//JSONParser p = new JSONParser();
   13.61 -		InputStreamReader vstup = new InputStreamReader(input.getByteStream());
   13.62 -		//JsonSimpleContentHandler handler = new JsonSimpleContentHandler(contentHandler);
   13.63 -
   13.64 -		/*
   13.65 -		 try {
   13.66 -		 p.parse(vstup, handler);
   13.67 -		 } catch (ParseException e) {
   13.68 -		 throw new SAXException("Chyba při načítání JSONu", e);
   13.69 -		 }
   13.70 -		 */
   13.71 -	}
   13.72 -
   13.73 -	@Override
   13.74 -	public void parse(String systemId) throws IOException, SAXException {
   13.75 -		parse(new InputSource(systemId));
   13.76 -	}
   13.77 -
   13.78 -	@Override
   13.79 -	public boolean getFeature(String name) throws SAXNotRecognizedException, SAXNotSupportedException {
   13.80 -		/**
   13.81 -		 * TODO:
   13.82 -		 * All XMLReaders are required to recognize
   13.83 -		 * the http://xml.org/sax/features/namespaces
   13.84 -		 * and the http://xml.org/sax/features/namespace-prefixes feature names.
   13.85 -		 */
   13.86 -		throw new SAXNotSupportedException("Zatím není podporováno.");
   13.87 -	}
   13.88 -
   13.89 -	@Override
   13.90 -	public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException {
   13.91 -		throw new SAXNotSupportedException("Zatím není podporováno.");
   13.92 -	}
   13.93 -
   13.94 -	@Override
   13.95 -	public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException {
   13.96 -		return konfigurace.get(name);
   13.97 -	}
   13.98 -
   13.99 -	@Override
  13.100 -	public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException {
  13.101 -		konfigurace.put(name, value);
  13.102 -	}
  13.103 -
  13.104 -	@Override
  13.105 -	public void setEntityResolver(EntityResolver entityResolver) {
  13.106 -		this.entityResolver = entityResolver;
  13.107 -	}
  13.108 -
  13.109 -	@Override
  13.110 -	public EntityResolver getEntityResolver() {
  13.111 -		return entityResolver;
  13.112 -	}
  13.113 -
  13.114 -	@Override
  13.115 -	public void setDTDHandler(DTDHandler dtdHandler) {
  13.116 -		this.dtdHandler = dtdHandler;
  13.117 -	}
  13.118 -
  13.119 -	@Override
  13.120 -	public DTDHandler getDTDHandler() {
  13.121 -		return dtdHandler;
  13.122 -	}
  13.123 -
  13.124 -	@Override
  13.125 -	public void setContentHandler(ContentHandler contentHandler) {
  13.126 -		this.contentHandler = contentHandler;
  13.127 -	}
  13.128 -
  13.129 -	@Override
  13.130 -	public ContentHandler getContentHandler() {
  13.131 -		return contentHandler;
  13.132 -	}
  13.133 -
  13.134 -	@Override
  13.135 -	public void setErrorHandler(ErrorHandler errorHandler) {
  13.136 -		this.errorHandler = errorHandler;
  13.137 -	}
  13.138 -
  13.139 -	@Override
  13.140 -	public ErrorHandler getErrorHandler() {
  13.141 -		return errorHandler;
  13.142 -	}
  13.143 -}
    14.1 --- a/java/alt2xml-bin/src/cz/frantovo/alt2xml/výstup/EchoContentHandler.java	Sat Jun 07 10:38:31 2014 +0200
    14.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    14.3 @@ -1,100 +0,0 @@
    14.4 -/**
    14.5 - * Alt2XML
    14.6 - * Copyright © 2014 František Kučera (frantovo.cz)
    14.7 - *
    14.8 - * This program is free software: you can redistribute it and/or modify
    14.9 - * it under the terms of the GNU General Public License as published by
   14.10 - * the Free Software Foundation, either version 3 of the License, or
   14.11 - * (at your option) any later version.
   14.12 - *
   14.13 - * This program is distributed in the hope that it will be useful,
   14.14 - * but WITHOUT ANY WARRANTY; without even the implied warranty of
   14.15 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
   14.16 - * GNU General Public License for more details.
   14.17 - *
   14.18 - * You should have received a copy of the GNU General Public License
   14.19 - * along with this program. If not, see <http://www.gnu.org/licenses/>.
   14.20 - */
   14.21 -package cz.frantovo.alt2xml.výstup;
   14.22 -
   14.23 -import javax.xml.stream.XMLStreamException;
   14.24 -import javax.xml.stream.XMLStreamWriter;
   14.25 -import org.xml.sax.Attributes;
   14.26 -import org.xml.sax.SAXException;
   14.27 -import org.xml.sax.helpers.DefaultHandler;
   14.28 -
   14.29 -/**
   14.30 - * Slouží k převodu právě parsovaného XML zpět na XML.
   14.31 - * Určen pro testování a ladění a pro použití s neobvyklými „XML“ parsery,
   14.32 - * které nečtou XML ale jiný jazyk (např. JSON, INI atd.), ale používají stejné rozhraní (SAX).
   14.33 - * 
   14.34 - * TODO: další typy uzlů a jmenné prostory.
   14.35 - * @author fiki
   14.36 - */
   14.37 -public class EchoContentHandler extends DefaultHandler {
   14.38 -
   14.39 -	private XMLStreamWriter w;
   14.40 -
   14.41 -	/**
   14.42 -	 * @param writer kam se bude vypisovat XML.
   14.43 -	 */
   14.44 -	public EchoContentHandler(XMLStreamWriter writer) {
   14.45 -		w = writer;
   14.46 -	}
   14.47 -
   14.48 -	@Override
   14.49 -	public void startDocument() throws SAXException {
   14.50 -		try {
   14.51 -			w.writeStartDocument();
   14.52 -		} catch (XMLStreamException e) {
   14.53 -			throw new SAXException(e);
   14.54 -		}
   14.55 -	}
   14.56 -
   14.57 -	@Override
   14.58 -	public void endDocument() throws SAXException {
   14.59 -		try {
   14.60 -			w.writeEndDocument();
   14.61 -			w.close();
   14.62 -		} catch (XMLStreamException e) {
   14.63 -			throw new SAXException(e);
   14.64 -		}
   14.65 -	}
   14.66 -
   14.67 -	@Override
   14.68 -	public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
   14.69 -		try {
   14.70 -			w.writeStartElement(qName);
   14.71 -
   14.72 -			if (attributes != null) {
   14.73 -				for (int i = 0; i < attributes.getLength(); i++) {
   14.74 -					w.writeAttribute(attributes.getQName(i), attributes.getValue(i));
   14.75 -				}
   14.76 -			}
   14.77 -
   14.78 -			w.flush();
   14.79 -		} catch (XMLStreamException e) {
   14.80 -			throw new SAXException(e);
   14.81 -		}
   14.82 -	}
   14.83 -
   14.84 -	@Override
   14.85 -	public void endElement(String uri, String localName, String qName) throws SAXException {
   14.86 -		try {
   14.87 -			w.writeEndElement();
   14.88 -			w.flush();
   14.89 -		} catch (XMLStreamException e) {
   14.90 -			throw new SAXException(e);
   14.91 -		}
   14.92 -	}
   14.93 -
   14.94 -	@Override
   14.95 -	public void characters(char[] ch, int start, int length) throws SAXException {
   14.96 -		try {
   14.97 -			w.writeCharacters(ch, start, length);
   14.98 -			w.flush();
   14.99 -		} catch (XMLStreamException e) {
  14.100 -			throw new SAXException(e);
  14.101 -		}
  14.102 -	}
  14.103 -}
    15.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    15.2 +++ b/java/alt2xml-cli/build.xml	Sat Jun 07 10:49:42 2014 +0200
    15.3 @@ -0,0 +1,73 @@
    15.4 +<?xml version="1.0" encoding="UTF-8"?>
    15.5 +<!-- You may freely edit this file. See commented blocks below for -->
    15.6 +<!-- some examples of how to customize the build. -->
    15.7 +<!-- (If you delete it and reopen the project it will be recreated.) -->
    15.8 +<!-- By default, only the Clean and Build commands use this build script. -->
    15.9 +<!-- Commands such as Run, Debug, and Test only use this build script if -->
   15.10 +<!-- the Compile on Save feature is turned off for the project. -->
   15.11 +<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
   15.12 +<!-- in the project's Project Properties dialog box.-->
   15.13 +<project name="alt2xml-cli" default="default" basedir=".">
   15.14 +    <description>Builds, tests, and runs the project alt2xml-cli.</description>
   15.15 +    <import file="nbproject/build-impl.xml"/>
   15.16 +    <!--
   15.17 +
   15.18 +    There exist several targets which are by default empty and which can be 
   15.19 +    used for execution of your tasks. These targets are usually executed 
   15.20 +    before and after some main targets. They are: 
   15.21 +
   15.22 +      -pre-init:                 called before initialization of project properties
   15.23 +      -post-init:                called after initialization of project properties
   15.24 +      -pre-compile:              called before javac compilation
   15.25 +      -post-compile:             called after javac compilation
   15.26 +      -pre-compile-single:       called before javac compilation of single file
   15.27 +      -post-compile-single:      called after javac compilation of single file
   15.28 +      -pre-compile-test:         called before javac compilation of JUnit tests
   15.29 +      -post-compile-test:        called after javac compilation of JUnit tests
   15.30 +      -pre-compile-test-single:  called before javac compilation of single JUnit test
   15.31 +      -post-compile-test-single: called after javac compilation of single JUunit test
   15.32 +      -pre-jar:                  called before JAR building
   15.33 +      -post-jar:                 called after JAR building
   15.34 +      -post-clean:               called after cleaning build products
   15.35 +
   15.36 +    (Targets beginning with '-' are not intended to be called on their own.)
   15.37 +
   15.38 +    Example of inserting an obfuscator after compilation could look like this:
   15.39 +
   15.40 +        <target name="-post-compile">
   15.41 +            <obfuscate>
   15.42 +                <fileset dir="${build.classes.dir}"/>
   15.43 +            </obfuscate>
   15.44 +        </target>
   15.45 +
   15.46 +    For list of available properties check the imported 
   15.47 +    nbproject/build-impl.xml file. 
   15.48 +
   15.49 +
   15.50 +    Another way to customize the build is by overriding existing main targets.
   15.51 +    The targets of interest are: 
   15.52 +
   15.53 +      -init-macrodef-javac:     defines macro for javac compilation
   15.54 +      -init-macrodef-junit:     defines macro for junit execution
   15.55 +      -init-macrodef-debug:     defines macro for class debugging
   15.56 +      -init-macrodef-java:      defines macro for class execution
   15.57 +      -do-jar:                  JAR building
   15.58 +      run:                      execution of project 
   15.59 +      -javadoc-build:           Javadoc generation
   15.60 +      test-report:              JUnit report generation
   15.61 +
   15.62 +    An example of overriding the target for project execution could look like this:
   15.63 +
   15.64 +        <target name="run" depends="alt2xml-cli-impl.jar">
   15.65 +            <exec dir="bin" executable="launcher.exe">
   15.66 +                <arg file="${dist.jar}"/>
   15.67 +            </exec>
   15.68 +        </target>
   15.69 +
   15.70 +    Notice that the overridden target depends on the jar target and not only on 
   15.71 +    the compile target as the regular run target does. Again, for a list of available 
   15.72 +    properties which you can use, check the target you are overriding in the
   15.73 +    nbproject/build-impl.xml file. 
   15.74 +
   15.75 +    -->
   15.76 +</project>
    16.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    16.2 +++ b/java/alt2xml-cli/manifest.mf	Sat Jun 07 10:49:42 2014 +0200
    16.3 @@ -0,0 +1,3 @@
    16.4 +Manifest-Version: 1.0
    16.5 +X-COMMENT: Main-Class will be added automatically by build
    16.6 +
    17.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    17.2 +++ b/java/alt2xml-cli/nbproject/build-impl.xml	Sat Jun 07 10:49:42 2014 +0200
    17.3 @@ -0,0 +1,1042 @@
    17.4 +<?xml version="1.0" encoding="UTF-8"?>
    17.5 +<!--
    17.6 +*** GENERATED FROM project.xml - DO NOT EDIT  ***
    17.7 +***         EDIT ../build.xml INSTEAD         ***
    17.8 +
    17.9 +For the purpose of easier reading the script
   17.10 +is divided into following sections:
   17.11 +
   17.12 +  - initialization
   17.13 +  - compilation
   17.14 +  - jar
   17.15 +  - execution
   17.16 +  - debugging
   17.17 +  - javadoc
   17.18 +  - junit compilation
   17.19 +  - junit execution
   17.20 +  - junit debugging
   17.21 +  - applet
   17.22 +  - cleanup
   17.23 +
   17.24 +        -->
   17.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-impl">
   17.26 +    <fail message="Please build using Ant 1.7.1 or higher.">
   17.27 +        <condition>
   17.28 +            <not>
   17.29 +                <antversion atleast="1.7.1"/>
   17.30 +            </not>
   17.31 +        </condition>
   17.32 +    </fail>
   17.33 +    <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
   17.34 +    <!-- 
   17.35 +                ======================
   17.36 +                INITIALIZATION SECTION 
   17.37 +                ======================
   17.38 +            -->
   17.39 +    <target name="-pre-init">
   17.40 +        <!-- Empty placeholder for easier customization. -->
   17.41 +        <!-- You can override this target in the ../build.xml file. -->
   17.42 +    </target>
   17.43 +    <target depends="-pre-init" name="-init-private">
   17.44 +        <property file="nbproject/private/config.properties"/>
   17.45 +        <property file="nbproject/private/configs/${config}.properties"/>
   17.46 +        <property file="nbproject/private/private.properties"/>
   17.47 +    </target>
   17.48 +    <target depends="-pre-init,-init-private" name="-init-user">
   17.49 +        <property file="${user.properties.file}"/>
   17.50 +        <!-- The two properties below are usually overridden -->
   17.51 +        <!-- by the active platform. Just a fallback. -->
   17.52 +        <property name="default.javac.source" value="1.4"/>
   17.53 +        <property name="default.javac.target" value="1.4"/>
   17.54 +    </target>
   17.55 +    <target depends="-pre-init,-init-private,-init-user" name="-init-project">
   17.56 +        <property file="nbproject/configs/${config}.properties"/>
   17.57 +        <property file="nbproject/project.properties"/>
   17.58 +    </target>
   17.59 +    <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
   17.60 +        <available file="${manifest.file}" property="manifest.available"/>
   17.61 +        <condition property="splashscreen.available">
   17.62 +            <and>
   17.63 +                <not>
   17.64 +                    <equals arg1="${application.splash}" arg2="" trim="true"/>
   17.65 +                </not>
   17.66 +                <available file="${application.splash}"/>
   17.67 +            </and>
   17.68 +        </condition>
   17.69 +        <condition property="main.class.available">
   17.70 +            <and>
   17.71 +                <isset property="main.class"/>
   17.72 +                <not>
   17.73 +                    <equals arg1="${main.class}" arg2="" trim="true"/>
   17.74 +                </not>
   17.75 +            </and>
   17.76 +        </condition>
   17.77 +        <condition property="manifest.available+main.class">
   17.78 +            <and>
   17.79 +                <isset property="manifest.available"/>
   17.80 +                <isset property="main.class.available"/>
   17.81 +            </and>
   17.82 +        </condition>
   17.83 +        <condition property="do.archive">
   17.84 +            <not>
   17.85 +                <istrue value="${jar.archive.disabled}"/>
   17.86 +            </not>
   17.87 +        </condition>
   17.88 +        <condition property="do.mkdist">
   17.89 +            <and>
   17.90 +                <isset property="do.archive"/>
   17.91 +                <isset property="libs.CopyLibs.classpath"/>
   17.92 +                <not>
   17.93 +                    <istrue value="${mkdist.disabled}"/>
   17.94 +                </not>
   17.95 +            </and>
   17.96 +        </condition>
   17.97 +        <condition property="manifest.available+main.class+mkdist.available">
   17.98 +            <and>
   17.99 +                <istrue value="${manifest.available+main.class}"/>
  17.100 +                <isset property="do.mkdist"/>
  17.101 +            </and>
  17.102 +        </condition>
  17.103 +        <condition property="do.archive+manifest.available">
  17.104 +            <and>
  17.105 +                <isset property="manifest.available"/>
  17.106 +                <istrue value="${do.archive}"/>
  17.107 +            </and>
  17.108 +        </condition>
  17.109 +        <condition property="do.archive+main.class.available">
  17.110 +            <and>
  17.111 +                <isset property="main.class.available"/>
  17.112 +                <istrue value="${do.archive}"/>
  17.113 +            </and>
  17.114 +        </condition>
  17.115 +        <condition property="do.archive+splashscreen.available">
  17.116 +            <and>
  17.117 +                <isset property="splashscreen.available"/>
  17.118 +                <istrue value="${do.archive}"/>
  17.119 +            </and>
  17.120 +        </condition>
  17.121 +        <condition property="do.archive+manifest.available+main.class">
  17.122 +            <and>
  17.123 +                <istrue value="${manifest.available+main.class}"/>
  17.124 +                <istrue value="${do.archive}"/>
  17.125 +            </and>
  17.126 +        </condition>
  17.127 +        <condition property="manifest.available-mkdist.available">
  17.128 +            <or>
  17.129 +                <istrue value="${manifest.available}"/>
  17.130 +                <isset property="do.mkdist"/>
  17.131 +            </or>
  17.132 +        </condition>
  17.133 +        <condition property="manifest.available+main.class-mkdist.available">
  17.134 +            <or>
  17.135 +                <istrue value="${manifest.available+main.class}"/>
  17.136 +                <isset property="do.mkdist"/>
  17.137 +            </or>
  17.138 +        </condition>
  17.139 +        <condition property="have.tests">
  17.140 +            <or>
  17.141 +                <available file="${test.src.dir}"/>
  17.142 +            </or>
  17.143 +        </condition>
  17.144 +        <condition property="have.sources">
  17.145 +            <or>
  17.146 +                <available file="${src.dir}"/>
  17.147 +            </or>
  17.148 +        </condition>
  17.149 +        <condition property="netbeans.home+have.tests">
  17.150 +            <and>
  17.151 +                <isset property="netbeans.home"/>
  17.152 +                <isset property="have.tests"/>
  17.153 +            </and>
  17.154 +        </condition>
  17.155 +        <condition property="no.javadoc.preview">
  17.156 +            <and>
  17.157 +                <isset property="javadoc.preview"/>
  17.158 +                <isfalse value="${javadoc.preview}"/>
  17.159 +            </and>
  17.160 +        </condition>
  17.161 +        <property name="run.jvmargs" value=""/>
  17.162 +        <property name="javac.compilerargs" value=""/>
  17.163 +        <property name="work.dir" value="${basedir}"/>
  17.164 +        <condition property="no.deps">
  17.165 +            <and>
  17.166 +                <istrue value="${no.dependencies}"/>
  17.167 +            </and>
  17.168 +        </condition>
  17.169 +        <property name="javac.debug" value="true"/>
  17.170 +        <property name="javadoc.preview" value="true"/>
  17.171 +        <property name="application.args" value=""/>
  17.172 +        <property name="source.encoding" value="${file.encoding}"/>
  17.173 +        <property name="runtime.encoding" value="${source.encoding}"/>
  17.174 +        <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
  17.175 +            <and>
  17.176 +                <isset property="javadoc.encoding"/>
  17.177 +                <not>
  17.178 +                    <equals arg1="${javadoc.encoding}" arg2=""/>
  17.179 +                </not>
  17.180 +            </and>
  17.181 +        </condition>
  17.182 +        <property name="javadoc.encoding.used" value="${source.encoding}"/>
  17.183 +        <property name="includes" value="**"/>
  17.184 +        <property name="excludes" value=""/>
  17.185 +        <property name="do.depend" value="false"/>
  17.186 +        <condition property="do.depend.true">
  17.187 +            <istrue value="${do.depend}"/>
  17.188 +        </condition>
  17.189 +        <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
  17.190 +        <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
  17.191 +            <length length="0" string="${endorsed.classpath}" when="greater"/>
  17.192 +        </condition>
  17.193 +        <condition else="false" property="jdkBug6558476">
  17.194 +            <and>
  17.195 +                <matches pattern="1\.[56]" string="${java.specification.version}"/>
  17.196 +                <not>
  17.197 +                    <os family="unix"/>
  17.198 +                </not>
  17.199 +            </and>
  17.200 +        </condition>
  17.201 +        <property name="javac.fork" value="${jdkBug6558476}"/>
  17.202 +        <property name="jar.index" value="false"/>
  17.203 +        <property name="jar.index.metainf" value="${jar.index}"/>
  17.204 +        <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
  17.205 +    </target>
  17.206 +    <target name="-post-init">
  17.207 +        <!-- Empty placeholder for easier customization. -->
  17.208 +        <!-- You can override this target in the ../build.xml file. -->
  17.209 +    </target>
  17.210 +    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
  17.211 +        <fail unless="src.dir">Must set src.dir</fail>
  17.212 +        <fail unless="test.src.dir">Must set test.src.dir</fail>
  17.213 +        <fail unless="build.dir">Must set build.dir</fail>
  17.214 +        <fail unless="dist.dir">Must set dist.dir</fail>
  17.215 +        <fail unless="build.classes.dir">Must set build.classes.dir</fail>
  17.216 +        <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
  17.217 +        <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
  17.218 +        <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
  17.219 +        <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
  17.220 +        <fail unless="dist.jar">Must set dist.jar</fail>
  17.221 +    </target>
  17.222 +    <target name="-init-macrodef-property">
  17.223 +        <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
  17.224 +            <attribute name="name"/>
  17.225 +            <attribute name="value"/>
  17.226 +            <sequential>
  17.227 +                <property name="@{name}" value="${@{value}}"/>
  17.228 +            </sequential>
  17.229 +        </macrodef>
  17.230 +    </target>
  17.231 +    <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
  17.232 +        <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
  17.233 +            <attribute default="${src.dir}" name="srcdir"/>
  17.234 +            <attribute default="${build.classes.dir}" name="destdir"/>
  17.235 +            <attribute default="${javac.classpath}" name="classpath"/>
  17.236 +            <attribute default="${javac.processorpath}" name="processorpath"/>
  17.237 +            <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
  17.238 +            <attribute default="${includes}" name="includes"/>
  17.239 +            <attribute default="${excludes}" name="excludes"/>
  17.240 +            <attribute default="${javac.debug}" name="debug"/>
  17.241 +            <attribute default="${empty.dir}" name="sourcepath"/>
  17.242 +            <attribute default="${empty.dir}" name="gensrcdir"/>
  17.243 +            <element name="customize" optional="true"/>
  17.244 +            <sequential>
  17.245 +                <property location="${build.dir}/empty" name="empty.dir"/>
  17.246 +                <mkdir dir="${empty.dir}"/>
  17.247 +                <mkdir dir="@{apgeneratedsrcdir}"/>
  17.248 +                <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}">
  17.249 +                    <src>
  17.250 +                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
  17.251 +                            <include name="*"/>
  17.252 +                        </dirset>
  17.253 +                    </src>
  17.254 +                    <classpath>
  17.255 +                        <path path="@{classpath}"/>
  17.256 +                    </classpath>
  17.257 +                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
  17.258 +                    <compilerarg line="${javac.compilerargs}"/>
  17.259 +                    <compilerarg value="-processorpath"/>
  17.260 +                    <compilerarg path="@{processorpath}:${empty.dir}"/>
  17.261 +                    <compilerarg line="${ap.processors.internal}"/>
  17.262 +                    <compilerarg line="${annotation.processing.processor.options}"/>
  17.263 +                    <compilerarg value="-s"/>
  17.264 +                    <compilerarg path="@{apgeneratedsrcdir}"/>
  17.265 +                    <compilerarg line="${ap.proc.none.internal}"/>
  17.266 +                    <customize/>
  17.267 +                </javac>
  17.268 +            </sequential>
  17.269 +        </macrodef>
  17.270 +    </target>
  17.271 +    <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
  17.272 +        <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
  17.273 +            <attribute default="${src.dir}" name="srcdir"/>
  17.274 +            <attribute default="${build.classes.dir}" name="destdir"/>
  17.275 +            <attribute default="${javac.classpath}" name="classpath"/>
  17.276 +            <attribute default="${javac.processorpath}" name="processorpath"/>
  17.277 +            <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
  17.278 +            <attribute default="${includes}" name="includes"/>
  17.279 +            <attribute default="${excludes}" name="excludes"/>
  17.280 +            <attribute default="${javac.debug}" name="debug"/>
  17.281 +            <attribute default="${empty.dir}" name="sourcepath"/>
  17.282 +            <attribute default="${empty.dir}" name="gensrcdir"/>
  17.283 +            <element name="customize" optional="true"/>
  17.284 +            <sequential>
  17.285 +                <property location="${build.dir}/empty" name="empty.dir"/>
  17.286 +                <mkdir dir="${empty.dir}"/>
  17.287 +                <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}">
  17.288 +                    <src>
  17.289 +                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
  17.290 +                            <include name="*"/>
  17.291 +                        </dirset>
  17.292 +                    </src>
  17.293 +                    <classpath>
  17.294 +                        <path path="@{classpath}"/>
  17.295 +                    </classpath>
  17.296 +                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
  17.297 +                    <compilerarg line="${javac.compilerargs}"/>
  17.298 +                    <customize/>
  17.299 +                </javac>
  17.300 +            </sequential>
  17.301 +        </macrodef>
  17.302 +    </target>
  17.303 +    <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
  17.304 +        <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
  17.305 +            <attribute default="${src.dir}" name="srcdir"/>
  17.306 +            <attribute default="${build.classes.dir}" name="destdir"/>
  17.307 +            <attribute default="${javac.classpath}" name="classpath"/>
  17.308 +            <sequential>
  17.309 +                <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
  17.310 +                    <classpath>
  17.311 +                        <path path="@{classpath}"/>
  17.312 +                    </classpath>
  17.313 +                </depend>
  17.314 +            </sequential>
  17.315 +        </macrodef>
  17.316 +        <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
  17.317 +            <attribute default="${build.classes.dir}" name="destdir"/>
  17.318 +            <sequential>
  17.319 +                <fail unless="javac.includes">Must set javac.includes</fail>
  17.320 +                <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
  17.321 +                    <path>
  17.322 +                        <filelist dir="@{destdir}" files="${javac.includes}"/>
  17.323 +                    </path>
  17.324 +                    <globmapper from="*.java" to="*.class"/>
  17.325 +                </pathconvert>
  17.326 +                <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
  17.327 +                <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
  17.328 +                <delete>
  17.329 +                    <files includesfile="${javac.includesfile.binary}"/>
  17.330 +                </delete>
  17.331 +                <delete>
  17.332 +                    <fileset file="${javac.includesfile.binary}"/>
  17.333 +                </delete>
  17.334 +            </sequential>
  17.335 +        </macrodef>
  17.336 +    </target>
  17.337 +    <target name="-init-macrodef-junit">
  17.338 +        <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
  17.339 +            <attribute default="${includes}" name="includes"/>
  17.340 +            <attribute default="${excludes}" name="excludes"/>
  17.341 +            <attribute default="**" name="testincludes"/>
  17.342 +            <sequential>
  17.343 +                <property name="junit.forkmode" value="perTest"/>
  17.344 +                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
  17.345 +                    <batchtest todir="${build.test.results.dir}">
  17.346 +                        <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
  17.347 +                            <filename name="@{testincludes}"/>
  17.348 +                        </fileset>
  17.349 +                    </batchtest>
  17.350 +                    <classpath>
  17.351 +                        <path path="${run.test.classpath}"/>
  17.352 +                    </classpath>
  17.353 +                    <syspropertyset>
  17.354 +                        <propertyref prefix="test-sys-prop."/>
  17.355 +                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
  17.356 +                    </syspropertyset>
  17.357 +                    <formatter type="brief" usefile="false"/>
  17.358 +                    <formatter type="xml"/>
  17.359 +                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
  17.360 +                    <jvmarg value="-ea"/>
  17.361 +                    <jvmarg line="${run.jvmargs}"/>
  17.362 +                </junit>
  17.363 +            </sequential>
  17.364 +        </macrodef>
  17.365 +    </target>
  17.366 +    <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" name="profile-init"/>
  17.367 +    <target name="-profile-pre-init">
  17.368 +        <!-- Empty placeholder for easier customization. -->
  17.369 +        <!-- You can override this target in the ../build.xml file. -->
  17.370 +    </target>
  17.371 +    <target name="-profile-post-init">
  17.372 +        <!-- Empty placeholder for easier customization. -->
  17.373 +        <!-- You can override this target in the ../build.xml file. -->
  17.374 +    </target>
  17.375 +    <target name="-profile-init-macrodef-profile">
  17.376 +        <macrodef name="resolve">
  17.377 +            <attribute name="name"/>
  17.378 +            <attribute name="value"/>
  17.379 +            <sequential>
  17.380 +                <property name="@{name}" value="${env.@{value}}"/>
  17.381 +            </sequential>
  17.382 +        </macrodef>
  17.383 +        <macrodef name="profile">
  17.384 +            <attribute default="${main.class}" name="classname"/>
  17.385 +            <element name="customize" optional="true"/>
  17.386 +            <sequential>
  17.387 +                <property environment="env"/>
  17.388 +                <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
  17.389 +                <java classname="@{classname}" dir="${profiler.info.dir}" fork="true" jvm="${profiler.info.jvm}">
  17.390 +                    <jvmarg value="${profiler.info.jvmargs.agent}"/>
  17.391 +                    <jvmarg line="${profiler.info.jvmargs}"/>
  17.392 +                    <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
  17.393 +                    <arg line="${application.args}"/>
  17.394 +                    <classpath>
  17.395 +                        <path path="${run.classpath}"/>
  17.396 +                    </classpath>
  17.397 +                    <syspropertyset>
  17.398 +                        <propertyref prefix="run-sys-prop."/>
  17.399 +                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
  17.400 +                    </syspropertyset>
  17.401 +                    <customize/>
  17.402 +                </java>
  17.403 +            </sequential>
  17.404 +        </macrodef>
  17.405 +    </target>
  17.406 +    <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" name="-profile-init-check">
  17.407 +        <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
  17.408 +        <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
  17.409 +    </target>
  17.410 +    <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
  17.411 +        <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
  17.412 +            <attribute default="${main.class}" name="name"/>
  17.413 +            <attribute default="${debug.classpath}" name="classpath"/>
  17.414 +            <attribute default="" name="stopclassname"/>
  17.415 +            <sequential>
  17.416 +                <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
  17.417 +                    <classpath>
  17.418 +                        <path path="@{classpath}"/>
  17.419 +                    </classpath>
  17.420 +                </nbjpdastart>
  17.421 +            </sequential>
  17.422 +        </macrodef>
  17.423 +        <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
  17.424 +            <attribute default="${build.classes.dir}" name="dir"/>
  17.425 +            <sequential>
  17.426 +                <nbjpdareload>
  17.427 +                    <fileset dir="@{dir}" includes="${fix.classes}">
  17.428 +                        <include name="${fix.includes}*.class"/>
  17.429 +                    </fileset>
  17.430 +                </nbjpdareload>
  17.431 +            </sequential>
  17.432 +        </macrodef>
  17.433 +    </target>
  17.434 +    <target name="-init-debug-args">
  17.435 +        <property name="version-output" value="java version &quot;${ant.java.version}"/>
  17.436 +        <condition property="have-jdk-older-than-1.4">
  17.437 +            <or>
  17.438 +                <contains string="${version-output}" substring="java version &quot;1.0"/>
  17.439 +                <contains string="${version-output}" substring="java version &quot;1.1"/>
  17.440 +                <contains string="${version-output}" substring="java version &quot;1.2"/>
  17.441 +                <contains string="${version-output}" substring="java version &quot;1.3"/>
  17.442 +            </or>
  17.443 +        </condition>
  17.444 +        <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
  17.445 +            <istrue value="${have-jdk-older-than-1.4}"/>
  17.446 +        </condition>
  17.447 +        <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
  17.448 +            <os family="windows"/>
  17.449 +        </condition>
  17.450 +        <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
  17.451 +            <isset property="debug.transport"/>
  17.452 +        </condition>
  17.453 +    </target>
  17.454 +    <target depends="-init-debug-args" name="-init-macrodef-debug">
  17.455 +        <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
  17.456 +            <attribute default="${main.class}" name="classname"/>
  17.457 +            <attribute default="${debug.classpath}" name="classpath"/>
  17.458 +            <element name="customize" optional="true"/>
  17.459 +            <sequential>
  17.460 +                <java classname="@{classname}" dir="${work.dir}" fork="true">
  17.461 +                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
  17.462 +                    <jvmarg line="${debug-args-line}"/>
  17.463 +                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
  17.464 +                    <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
  17.465 +                    <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
  17.466 +                    <jvmarg line="${run.jvmargs}"/>
  17.467 +                    <classpath>
  17.468 +                        <path path="@{classpath}"/>
  17.469 +                    </classpath>
  17.470 +                    <syspropertyset>
  17.471 +                        <propertyref prefix="run-sys-prop."/>
  17.472 +                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
  17.473 +                    </syspropertyset>
  17.474 +                    <customize/>
  17.475 +                </java>
  17.476 +            </sequential>
  17.477 +        </macrodef>
  17.478 +    </target>
  17.479 +    <target name="-init-macrodef-java">
  17.480 +        <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
  17.481 +            <attribute default="${main.class}" name="classname"/>
  17.482 +            <attribute default="${run.classpath}" name="classpath"/>
  17.483 +            <element name="customize" optional="true"/>
  17.484 +            <sequential>
  17.485 +                <java classname="@{classname}" dir="${work.dir}" fork="true">
  17.486 +                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
  17.487 +                    <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
  17.488 +                    <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
  17.489 +                    <jvmarg line="${run.jvmargs}"/>
  17.490 +                    <classpath>
  17.491 +                        <path path="@{classpath}"/>
  17.492 +                    </classpath>
  17.493 +                    <syspropertyset>
  17.494 +                        <propertyref prefix="run-sys-prop."/>
  17.495 +                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
  17.496 +                    </syspropertyset>
  17.497 +                    <customize/>
  17.498 +                </java>
  17.499 +            </sequential>
  17.500 +        </macrodef>
  17.501 +    </target>
  17.502 +    <target name="-init-macrodef-copylibs">
  17.503 +        <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">
  17.504 +            <attribute default="${manifest.file}" name="manifest"/>
  17.505 +            <element name="customize" optional="true"/>
  17.506 +            <sequential>
  17.507 +                <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
  17.508 +                <pathconvert property="run.classpath.without.build.classes.dir">
  17.509 +                    <path path="${run.classpath}"/>
  17.510 +                    <map from="${build.classes.dir.resolved}" to=""/>
  17.511 +                </pathconvert>
  17.512 +                <pathconvert pathsep=" " property="jar.classpath">
  17.513 +                    <path path="${run.classpath.without.build.classes.dir}"/>
  17.514 +                    <chainedmapper>
  17.515 +                        <flattenmapper/>
  17.516 +                        <globmapper from="*" to="lib/*"/>
  17.517 +                    </chainedmapper>
  17.518 +                </pathconvert>
  17.519 +                <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
  17.520 +                <copylibs compress="${jar.compress}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
  17.521 +                    <fileset dir="${build.classes.dir}"/>
  17.522 +                    <manifest>
  17.523 +                        <attribute name="Class-Path" value="${jar.classpath}"/>
  17.524 +                        <customize/>
  17.525 +                    </manifest>
  17.526 +                </copylibs>
  17.527 +            </sequential>
  17.528 +        </macrodef>
  17.529 +    </target>
  17.530 +    <target name="-init-presetdef-jar">
  17.531 +        <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
  17.532 +            <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">
  17.533 +                <j2seproject1:fileset dir="${build.classes.dir}"/>
  17.534 +            </jar>
  17.535 +        </presetdef>
  17.536 +    </target>
  17.537 +    <target name="-init-ap-cmdline-properties">
  17.538 +        <property name="annotation.processing.enabled" value="true"/>
  17.539 +        <property name="annotation.processing.processors.list" value=""/>
  17.540 +        <property name="annotation.processing.processor.options" value=""/>
  17.541 +        <property name="annotation.processing.run.all.processors" value="true"/>
  17.542 +        <property name="javac.processorpath" value="${javac.classpath}"/>
  17.543 +        <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
  17.544 +        <condition property="ap.supported.internal" value="true">
  17.545 +            <not>
  17.546 +                <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
  17.547 +            </not>
  17.548 +        </condition>
  17.549 +    </target>
  17.550 +    <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
  17.551 +        <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
  17.552 +            <isfalse value="${annotation.processing.run.all.processors}"/>
  17.553 +        </condition>
  17.554 +        <condition else="" property="ap.proc.none.internal" value="-proc:none">
  17.555 +            <isfalse value="${annotation.processing.enabled}"/>
  17.556 +        </condition>
  17.557 +    </target>
  17.558 +    <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
  17.559 +        <property name="ap.cmd.line.internal" value=""/>
  17.560 +    </target>
  17.561 +    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-junit,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar,-init-ap-cmdline" name="init"/>
  17.562 +    <!--
  17.563 +                ===================
  17.564 +                COMPILATION SECTION
  17.565 +                ===================
  17.566 +            -->
  17.567 +    <target name="-deps-jar-init" unless="built-jar.properties">
  17.568 +        <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>
  17.569 +        <delete file="${built-jar.properties}" quiet="true"/>
  17.570 +    </target>
  17.571 +    <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
  17.572 +        <echo level="warn" message="Cycle detected: alt2xml was already built"/>
  17.573 +    </target>
  17.574 +    <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
  17.575 +        <mkdir dir="${build.dir}"/>
  17.576 +        <touch file="${built-jar.properties}" verbose="false"/>
  17.577 +        <property file="${built-jar.properties}" prefix="already.built.jar."/>
  17.578 +        <antcall target="-warn-already-built-jar"/>
  17.579 +        <propertyfile file="${built-jar.properties}">
  17.580 +            <entry key="${basedir}" value=""/>
  17.581 +        </propertyfile>
  17.582 +    </target>
  17.583 +    <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
  17.584 +    <target depends="init" name="-check-automatic-build">
  17.585 +        <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
  17.586 +    </target>
  17.587 +    <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
  17.588 +        <antcall target="clean"/>
  17.589 +    </target>
  17.590 +    <target depends="init,deps-jar" name="-pre-pre-compile">
  17.591 +        <mkdir dir="${build.classes.dir}"/>
  17.592 +    </target>
  17.593 +    <target name="-pre-compile">
  17.594 +        <!-- Empty placeholder for easier customization. -->
  17.595 +        <!-- You can override this target in the ../build.xml file. -->
  17.596 +    </target>
  17.597 +    <target if="do.depend.true" name="-compile-depend">
  17.598 +        <pathconvert property="build.generated.subdirs">
  17.599 +            <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
  17.600 +                <include name="*"/>
  17.601 +            </dirset>
  17.602 +        </pathconvert>
  17.603 +        <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>
  17.604 +    </target>
  17.605 +    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">
  17.606 +        <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
  17.607 +        <copy todir="${build.classes.dir}">
  17.608 +            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  17.609 +        </copy>
  17.610 +    </target>
  17.611 +    <target if="has.persistence.xml" name="-copy-persistence-xml">
  17.612 +        <mkdir dir="${build.classes.dir}/META-INF"/>
  17.613 +        <copy todir="${build.classes.dir}/META-INF">
  17.614 +            <fileset dir="${meta.inf.dir}" includes="persistence.xml"/>
  17.615 +        </copy>
  17.616 +    </target>
  17.617 +    <target name="-post-compile">
  17.618 +        <!-- Empty placeholder for easier customization. -->
  17.619 +        <!-- You can override this target in the ../build.xml file. -->
  17.620 +    </target>
  17.621 +    <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
  17.622 +    <target name="-pre-compile-single">
  17.623 +        <!-- Empty placeholder for easier customization. -->
  17.624 +        <!-- You can override this target in the ../build.xml file. -->
  17.625 +    </target>
  17.626 +    <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
  17.627 +        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
  17.628 +        <j2seproject3:force-recompile/>
  17.629 +        <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>
  17.630 +    </target>
  17.631 +    <target name="-post-compile-single">
  17.632 +        <!-- Empty placeholder for easier customization. -->
  17.633 +        <!-- You can override this target in the ../build.xml file. -->
  17.634 +    </target>
  17.635 +    <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
  17.636 +    <!--
  17.637 +                ====================
  17.638 +                JAR BUILDING SECTION
  17.639 +                ====================
  17.640 +            -->
  17.641 +    <target depends="init" name="-pre-pre-jar">
  17.642 +        <dirname file="${dist.jar}" property="dist.jar.dir"/>
  17.643 +        <mkdir dir="${dist.jar.dir}"/>
  17.644 +    </target>
  17.645 +    <target name="-pre-jar">
  17.646 +        <!-- Empty placeholder for easier customization. -->
  17.647 +        <!-- You can override this target in the ../build.xml file. -->
  17.648 +    </target>
  17.649 +    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive" name="-do-jar-without-manifest" unless="manifest.available-mkdist.available">
  17.650 +        <j2seproject1:jar/>
  17.651 +    </target>
  17.652 +    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class-mkdist.available">
  17.653 +        <j2seproject1:jar manifest="${manifest.file}"/>
  17.654 +    </target>
  17.655 +    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available">
  17.656 +        <j2seproject1:jar manifest="${manifest.file}">
  17.657 +            <j2seproject1:manifest>
  17.658 +                <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
  17.659 +            </j2seproject1:manifest>
  17.660 +        </j2seproject1:jar>
  17.661 +        <echo level="info">To run this application from the command line without Ant, try:</echo>
  17.662 +        <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
  17.663 +        <property location="${dist.jar}" name="dist.jar.resolved"/>
  17.664 +        <pathconvert property="run.classpath.with.dist.jar">
  17.665 +            <path path="${run.classpath}"/>
  17.666 +            <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
  17.667 +        </pathconvert>
  17.668 +        <echo level="info">java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
  17.669 +    </target>
  17.670 +    <target depends="init" if="do.archive" name="-do-jar-with-libraries-create-manifest" unless="manifest.available">
  17.671 +        <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
  17.672 +        <touch file="${tmp.manifest.file}" verbose="false"/>
  17.673 +    </target>
  17.674 +    <target depends="init" if="do.archive+manifest.available" name="-do-jar-with-libraries-copy-manifest">
  17.675 +        <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
  17.676 +        <copy file="${manifest.file}" tofile="${tmp.manifest.file}"/>
  17.677 +    </target>
  17.678 +    <target depends="init,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest" if="do.archive+main.class.available" name="-do-jar-with-libraries-set-main">
  17.679 +        <manifest file="${tmp.manifest.file}" mode="update">
  17.680 +            <attribute name="Main-Class" value="${main.class}"/>
  17.681 +        </manifest>
  17.682 +    </target>
  17.683 +    <target depends="init,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-with-libraries-set-splashscreen">
  17.684 +        <basename file="${application.splash}" property="splashscreen.basename"/>
  17.685 +        <mkdir dir="${build.classes.dir}/META-INF"/>
  17.686 +        <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
  17.687 +        <manifest file="${tmp.manifest.file}" mode="update">
  17.688 +            <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
  17.689 +        </manifest>
  17.690 +    </target>
  17.691 +    <target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen" if="do.mkdist" name="-do-jar-with-libraries-pack">
  17.692 +        <j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
  17.693 +        <echo level="info">To run this application from the command line without Ant, try:</echo>
  17.694 +        <property location="${dist.jar}" name="dist.jar.resolved"/>
  17.695 +        <echo level="info">java -jar "${dist.jar.resolved}"</echo>
  17.696 +    </target>
  17.697 +    <target depends="-do-jar-with-libraries-pack" if="do.archive" name="-do-jar-with-libraries-delete-manifest">
  17.698 +        <delete>
  17.699 +            <fileset file="${tmp.manifest.file}"/>
  17.700 +        </delete>
  17.701 +    </target>
  17.702 +    <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen,-do-jar-with-libraries-pack,-do-jar-with-libraries-delete-manifest" name="-do-jar-with-libraries"/>
  17.703 +    <target name="-post-jar">
  17.704 +        <!-- Empty placeholder for easier customization. -->
  17.705 +        <!-- You can override this target in the ../build.xml file. -->
  17.706 +    </target>
  17.707 +    <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-post-jar" description="Build JAR." name="jar"/>
  17.708 +    <!--
  17.709 +                =================
  17.710 +                EXECUTION SECTION
  17.711 +                =================
  17.712 +            -->
  17.713 +    <target depends="init,compile" description="Run a main class." name="run">
  17.714 +        <j2seproject1:java>
  17.715 +            <customize>
  17.716 +                <arg line="${application.args}"/>
  17.717 +            </customize>
  17.718 +        </j2seproject1:java>
  17.719 +    </target>
  17.720 +    <target name="-do-not-recompile">
  17.721 +        <property name="javac.includes.binary" value=""/>
  17.722 +    </target>
  17.723 +    <target depends="init,compile-single" name="run-single">
  17.724 +        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
  17.725 +        <j2seproject1:java classname="${run.class}"/>
  17.726 +    </target>
  17.727 +    <target depends="init,compile-test-single" name="run-test-with-main">
  17.728 +        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
  17.729 +        <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
  17.730 +    </target>
  17.731 +    <!--
  17.732 +                =================
  17.733 +                DEBUGGING SECTION
  17.734 +                =================
  17.735 +            -->
  17.736 +    <target depends="init" if="netbeans.home" name="-debug-start-debugger">
  17.737 +        <j2seproject1:nbjpdastart name="${debug.class}"/>
  17.738 +    </target>
  17.739 +    <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
  17.740 +        <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
  17.741 +    </target>
  17.742 +    <target depends="init,compile" name="-debug-start-debuggee">
  17.743 +        <j2seproject3:debug>
  17.744 +            <customize>
  17.745 +                <arg line="${application.args}"/>
  17.746 +            </customize>
  17.747 +        </j2seproject3:debug>
  17.748 +    </target>
  17.749 +    <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
  17.750 +    <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
  17.751 +        <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
  17.752 +    </target>
  17.753 +    <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
  17.754 +    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
  17.755 +        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
  17.756 +        <j2seproject3:debug classname="${debug.class}"/>
  17.757 +    </target>
  17.758 +    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
  17.759 +    <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
  17.760 +        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
  17.761 +        <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
  17.762 +    </target>
  17.763 +    <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
  17.764 +    <target depends="init" name="-pre-debug-fix">
  17.765 +        <fail unless="fix.includes">Must set fix.includes</fail>
  17.766 +        <property name="javac.includes" value="${fix.includes}.java"/>
  17.767 +    </target>
  17.768 +    <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
  17.769 +        <j2seproject1:nbjpdareload/>
  17.770 +    </target>
  17.771 +    <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
  17.772 +    <!--
  17.773 +                =================
  17.774 +                PROFILING SECTION
  17.775 +                =================
  17.776 +            -->
  17.777 +    <target depends="profile-init,compile" description="Profile a project in the IDE." if="netbeans.home" name="profile">
  17.778 +        <nbprofiledirect>
  17.779 +            <classpath>
  17.780 +                <path path="${run.classpath}"/>
  17.781 +            </classpath>
  17.782 +        </nbprofiledirect>
  17.783 +        <profile/>
  17.784 +    </target>
  17.785 +    <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="netbeans.home" name="profile-single">
  17.786 +        <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail>
  17.787 +        <nbprofiledirect>
  17.788 +            <classpath>
  17.789 +                <path path="${run.classpath}"/>
  17.790 +            </classpath>
  17.791 +        </nbprofiledirect>
  17.792 +        <profile classname="${profile.class}"/>
  17.793 +    </target>
  17.794 +    <!--
  17.795 +                =========================
  17.796 +                APPLET PROFILING  SECTION
  17.797 +                =========================
  17.798 +            -->
  17.799 +    <target depends="profile-init,compile-single" if="netbeans.home" name="profile-applet">
  17.800 +        <nbprofiledirect>
  17.801 +            <classpath>
  17.802 +                <path path="${run.classpath}"/>
  17.803 +            </classpath>
  17.804 +        </nbprofiledirect>
  17.805 +        <profile classname="sun.applet.AppletViewer">
  17.806 +            <customize>
  17.807 +                <arg value="${applet.url}"/>
  17.808 +            </customize>
  17.809 +        </profile>
  17.810 +    </target>
  17.811 +    <!--
  17.812 +                =========================
  17.813 +                TESTS PROFILING  SECTION
  17.814 +                =========================
  17.815 +            -->
  17.816 +    <target depends="profile-init,compile-test-single" if="netbeans.home" name="profile-test-single">
  17.817 +        <nbprofiledirect>
  17.818 +            <classpath>
  17.819 +                <path path="${run.test.classpath}"/>
  17.820 +            </classpath>
  17.821 +        </nbprofiledirect>
  17.822 +        <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
  17.823 +            <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
  17.824 +            <jvmarg value="${profiler.info.jvmargs.agent}"/>
  17.825 +            <jvmarg line="${profiler.info.jvmargs}"/>
  17.826 +            <test name="${profile.class}"/>
  17.827 +            <classpath>
  17.828 +                <path path="${run.test.classpath}"/>
  17.829 +            </classpath>
  17.830 +            <syspropertyset>
  17.831 +                <propertyref prefix="test-sys-prop."/>
  17.832 +                <mapper from="test-sys-prop.*" to="*" type="glob"/>
  17.833 +            </syspropertyset>
  17.834 +            <formatter type="brief" usefile="false"/>
  17.835 +            <formatter type="xml"/>
  17.836 +        </junit>
  17.837 +    </target>
  17.838 +    <!--
  17.839 +                ===============
  17.840 +                JAVADOC SECTION
  17.841 +                ===============
  17.842 +            -->
  17.843 +    <target depends="init" if="have.sources" name="-javadoc-build">
  17.844 +        <mkdir dir="${dist.javadoc.dir}"/>
  17.845 +        <javadoc additionalparam="${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}">
  17.846 +            <classpath>
  17.847 +                <path path="${javac.classpath}"/>
  17.848 +            </classpath>
  17.849 +            <fileset dir="${src.dir}" excludes="*.java,${excludes}" includes="${includes}">
  17.850 +                <filename name="**/*.java"/>
  17.851 +            </fileset>
  17.852 +            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
  17.853 +                <include name="**/*.java"/>
  17.854 +                <exclude name="*.java"/>
  17.855 +            </fileset>
  17.856 +        </javadoc>
  17.857 +        <copy todir="${dist.javadoc.dir}">
  17.858 +            <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
  17.859 +                <filename name="**/doc-files/**"/>
  17.860 +            </fileset>
  17.861 +            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
  17.862 +                <include name="**/doc-files/**"/>
  17.863 +            </fileset>
  17.864 +        </copy>
  17.865 +    </target>
  17.866 +    <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
  17.867 +        <nbbrowse file="${dist.javadoc.dir}/index.html"/>
  17.868 +    </target>
  17.869 +    <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
  17.870 +    <!--
  17.871 +                =========================
  17.872 +                JUNIT COMPILATION SECTION
  17.873 +                =========================
  17.874 +            -->
  17.875 +    <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
  17.876 +        <mkdir dir="${build.test.classes.dir}"/>
  17.877 +    </target>
  17.878 +    <target name="-pre-compile-test">
  17.879 +        <!-- Empty placeholder for easier customization. -->
  17.880 +        <!-- You can override this target in the ../build.xml file. -->
  17.881 +    </target>
  17.882 +    <target if="do.depend.true" name="-compile-test-depend">
  17.883 +        <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
  17.884 +    </target>
  17.885 +    <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
  17.886 +        <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}"/>
  17.887 +        <copy todir="${build.test.classes.dir}">
  17.888 +            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  17.889 +        </copy>
  17.890 +    </target>
  17.891 +    <target name="-post-compile-test">
  17.892 +        <!-- Empty placeholder for easier customization. -->
  17.893 +        <!-- You can override this target in the ../build.xml file. -->
  17.894 +    </target>
  17.895 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
  17.896 +    <target name="-pre-compile-test-single">
  17.897 +        <!-- Empty placeholder for easier customization. -->
  17.898 +        <!-- You can override this target in the ../build.xml file. -->
  17.899 +    </target>
  17.900 +    <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
  17.901 +        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
  17.902 +        <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
  17.903 +        <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}"/>
  17.904 +        <copy todir="${build.test.classes.dir}">
  17.905 +            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  17.906 +        </copy>
  17.907 +    </target>
  17.908 +    <target name="-post-compile-test-single">
  17.909 +        <!-- Empty placeholder for easier customization. -->
  17.910 +        <!-- You can override this target in the ../build.xml file. -->
  17.911 +    </target>
  17.912 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
  17.913 +    <!--
  17.914 +                =======================
  17.915 +                JUNIT EXECUTION SECTION
  17.916 +                =======================
  17.917 +            -->
  17.918 +    <target depends="init" if="have.tests" name="-pre-test-run">
  17.919 +        <mkdir dir="${build.test.results.dir}"/>
  17.920 +    </target>
  17.921 +    <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
  17.922 +        <j2seproject3:junit testincludes="**/*Test.java"/>
  17.923 +    </target>
  17.924 +    <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
  17.925 +        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
  17.926 +    </target>
  17.927 +    <target depends="init" if="have.tests" name="test-report"/>
  17.928 +    <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
  17.929 +    <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
  17.930 +    <target depends="init" if="have.tests" name="-pre-test-run-single">
  17.931 +        <mkdir dir="${build.test.results.dir}"/>
  17.932 +    </target>
  17.933 +    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
  17.934 +        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
  17.935 +        <j2seproject3:junit excludes="" includes="${test.includes}"/>
  17.936 +    </target>
  17.937 +    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
  17.938 +        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
  17.939 +    </target>
  17.940 +    <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"/>
  17.941 +    <!--
  17.942 +                =======================
  17.943 +                JUNIT DEBUGGING SECTION
  17.944 +                =======================
  17.945 +            -->
  17.946 +    <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
  17.947 +        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
  17.948 +        <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
  17.949 +        <delete file="${test.report.file}"/>
  17.950 +        <mkdir dir="${build.test.results.dir}"/>
  17.951 +        <j2seproject3:debug classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner" classpath="${ant.home}/lib/ant.jar:${ant.home}/lib/ant-junit.jar:${debug.test.classpath}">
  17.952 +            <customize>
  17.953 +                <syspropertyset>
  17.954 +                    <propertyref prefix="test-sys-prop."/>
  17.955 +                    <mapper from="test-sys-prop.*" to="*" type="glob"/>
  17.956 +                </syspropertyset>
  17.957 +                <arg value="${test.class}"/>
  17.958 +                <arg value="showoutput=true"/>
  17.959 +                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
  17.960 +                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
  17.961 +            </customize>
  17.962 +        </j2seproject3:debug>
  17.963 +    </target>
  17.964 +    <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
  17.965 +        <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
  17.966 +    </target>
  17.967 +    <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
  17.968 +    <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
  17.969 +        <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
  17.970 +    </target>
  17.971 +    <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
  17.972 +    <!--
  17.973 +                =========================
  17.974 +                APPLET EXECUTION SECTION
  17.975 +                =========================
  17.976 +            -->
  17.977 +    <target depends="init,compile-single" name="run-applet">
  17.978 +        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
  17.979 +        <j2seproject1:java classname="sun.applet.AppletViewer">
  17.980 +            <customize>
  17.981 +                <arg value="${applet.url}"/>
  17.982 +            </customize>
  17.983 +        </j2seproject1:java>
  17.984 +    </target>
  17.985 +    <!--
  17.986 +                =========================
  17.987 +                APPLET DEBUGGING  SECTION
  17.988 +                =========================
  17.989 +            -->
  17.990 +    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
  17.991 +        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
  17.992 +        <j2seproject3:debug classname="sun.applet.AppletViewer">
  17.993 +            <customize>
  17.994 +                <arg value="${applet.url}"/>
  17.995 +            </customize>
  17.996 +        </j2seproject3:debug>
  17.997 +    </target>
  17.998 +    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
  17.999 +    <!--
 17.1000 +                ===============
 17.1001 +                CLEANUP SECTION
 17.1002 +                ===============
 17.1003 +            -->
 17.1004 +    <target name="-deps-clean-init" unless="built-clean.properties">
 17.1005 +        <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>
 17.1006 +        <delete file="${built-clean.properties}" quiet="true"/>
 17.1007 +    </target>
 17.1008 +    <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
 17.1009 +        <echo level="warn" message="Cycle detected: alt2xml was already built"/>
 17.1010 +    </target>
 17.1011 +    <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
 17.1012 +        <mkdir dir="${build.dir}"/>
 17.1013 +        <touch file="${built-clean.properties}" verbose="false"/>
 17.1014 +        <property file="${built-clean.properties}" prefix="already.built.clean."/>
 17.1015 +        <antcall target="-warn-already-built-clean"/>
 17.1016 +        <propertyfile file="${built-clean.properties}">
 17.1017 +            <entry key="${basedir}" value=""/>
 17.1018 +        </propertyfile>
 17.1019 +    </target>
 17.1020 +    <target depends="init" name="-do-clean">
 17.1021 +        <delete dir="${build.dir}"/>
 17.1022 +        <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
 17.1023 +    </target>
 17.1024 +    <target name="-post-clean">
 17.1025 +        <!-- Empty placeholder for easier customization. -->
 17.1026 +        <!-- You can override this target in the ../build.xml file. -->
 17.1027 +    </target>
 17.1028 +    <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
 17.1029 +    <target name="-check-call-dep">
 17.1030 +        <property file="${call.built.properties}" prefix="already.built."/>
 17.1031 +        <condition property="should.call.dep">
 17.1032 +            <not>
 17.1033 +                <isset property="already.built.${call.subproject}"/>
 17.1034 +            </not>
 17.1035 +        </condition>
 17.1036 +    </target>
 17.1037 +    <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
 17.1038 +        <ant antfile="${call.script}" inheritall="false" target="${call.target}">
 17.1039 +            <propertyset>
 17.1040 +                <propertyref prefix="transfer."/>
 17.1041 +                <mapper from="transfer.*" to="*" type="glob"/>
 17.1042 +            </propertyset>
 17.1043 +        </ant>
 17.1044 +    </target>
 17.1045 +</project>
    18.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    18.2 +++ b/java/alt2xml-cli/nbproject/build-impl.xml.orig	Sat Jun 07 10:49:42 2014 +0200
    18.3 @@ -0,0 +1,1411 @@
    18.4 +<?xml version="1.0" encoding="UTF-8"?>
    18.5 +<!--
    18.6 +*** GENERATED FROM project.xml - DO NOT EDIT  ***
    18.7 +***         EDIT ../build.xml INSTEAD         ***
    18.8 +
    18.9 +For the purpose of easier reading the script
   18.10 +is divided into following sections:
   18.11 +
   18.12 +  - initialization
   18.13 +  - compilation
   18.14 +  - jar
   18.15 +  - execution
   18.16 +  - debugging
   18.17 +  - javadoc
   18.18 +  - junit compilation
   18.19 +  - junit execution
   18.20 +  - junit debugging
   18.21 +  - applet
   18.22 +  - cleanup
   18.23 +
   18.24 +        -->
   18.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-impl">
   18.26 +    <fail message="Please build using Ant 1.7.1 or higher.">
   18.27 +        <condition>
   18.28 +            <not>
   18.29 +                <antversion atleast="1.7.1"/>
   18.30 +            </not>
   18.31 +        </condition>
   18.32 +    </fail>
   18.33 +    <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
   18.34 +    <!-- 
   18.35 +                ======================
   18.36 +                INITIALIZATION SECTION 
   18.37 +                ======================
   18.38 +            -->
   18.39 +    <target name="-pre-init">
   18.40 +        <!-- Empty placeholder for easier customization. -->
   18.41 +        <!-- You can override this target in the ../build.xml file. -->
   18.42 +    </target>
   18.43 +    <target depends="-pre-init" name="-init-private">
   18.44 +        <property file="nbproject/private/config.properties"/>
   18.45 +        <property file="nbproject/private/configs/${config}.properties"/>
   18.46 +        <property file="nbproject/private/private.properties"/>
   18.47 +    </target>
   18.48 +    <target depends="-pre-init,-init-private" name="-init-user">
   18.49 +        <property file="${user.properties.file}"/>
   18.50 +        <!-- The two properties below are usually overridden -->
   18.51 +        <!-- by the active platform. Just a fallback. -->
   18.52 +        <property name="default.javac.source" value="1.4"/>
   18.53 +        <property name="default.javac.target" value="1.4"/>
   18.54 +    </target>
   18.55 +    <target depends="-pre-init,-init-private,-init-user" name="-init-project">
   18.56 +        <property file="nbproject/configs/${config}.properties"/>
   18.57 +        <property file="nbproject/project.properties"/>
   18.58 +    </target>
   18.59 +    <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
   18.60 +        <available file="${manifest.file}" property="manifest.available"/>
   18.61 +        <condition property="splashscreen.available">
   18.62 +            <and>
   18.63 +                <not>
   18.64 +                    <equals arg1="${application.splash}" arg2="" trim="true"/>
   18.65 +                </not>
   18.66 +                <available file="${application.splash}"/>
   18.67 +            </and>
   18.68 +        </condition>
   18.69 +        <condition property="main.class.available">
   18.70 +            <and>
   18.71 +                <isset property="main.class"/>
   18.72 +                <not>
   18.73 +                    <equals arg1="${main.class}" arg2="" trim="true"/>
   18.74 +                </not>
   18.75 +            </and>
   18.76 +        </condition>
   18.77 +        <condition property="manifest.available+main.class">
   18.78 +            <and>
   18.79 +                <isset property="manifest.available"/>
   18.80 +                <isset property="main.class.available"/>
   18.81 +            </and>
   18.82 +        </condition>
   18.83 +        <condition property="do.archive">
   18.84 +            <not>
   18.85 +                <istrue value="${jar.archive.disabled}"/>
   18.86 +            </not>
   18.87 +        </condition>
   18.88 +        <condition property="do.mkdist">
   18.89 +            <and>
   18.90 +                <isset property="do.archive"/>
   18.91 +                <isset property="libs.CopyLibs.classpath"/>
   18.92 +                <not>
   18.93 +                    <istrue value="${mkdist.disabled}"/>
   18.94 +                </not>
   18.95 +            </and>
   18.96 +        </condition>
   18.97 +        <condition property="manifest.available+main.class+mkdist.available">
   18.98 +            <and>
   18.99 +                <istrue value="${manifest.available+main.class}"/>
  18.100 +                <isset property="do.mkdist"/>
  18.101 +            </and>
  18.102 +        </condition>
  18.103 +        <condition property="do.archive+manifest.available">
  18.104 +            <and>
  18.105 +                <isset property="manifest.available"/>
  18.106 +                <istrue value="${do.archive}"/>
  18.107 +            </and>
  18.108 +        </condition>
  18.109 +        <condition property="do.archive+main.class.available">
  18.110 +            <and>
  18.111 +                <isset property="main.class.available"/>
  18.112 +                <istrue value="${do.archive}"/>
  18.113 +            </and>
  18.114 +        </condition>
  18.115 +        <condition property="do.archive+splashscreen.available">
  18.116 +            <and>
  18.117 +                <isset property="splashscreen.available"/>
  18.118 +                <istrue value="${do.archive}"/>
  18.119 +            </and>
  18.120 +        </condition>
  18.121 +        <condition property="do.archive+manifest.available+main.class">
  18.122 +            <and>
  18.123 +                <istrue value="${manifest.available+main.class}"/>
  18.124 +                <istrue value="${do.archive}"/>
  18.125 +            </and>
  18.126 +        </condition>
  18.127 +        <condition property="manifest.available-mkdist.available">
  18.128 +            <or>
  18.129 +                <istrue value="${manifest.available}"/>
  18.130 +                <isset property="do.mkdist"/>
  18.131 +            </or>
  18.132 +        </condition>
  18.133 +        <condition property="manifest.available+main.class-mkdist.available">
  18.134 +            <or>
  18.135 +                <istrue value="${manifest.available+main.class}"/>
  18.136 +                <isset property="do.mkdist"/>
  18.137 +            </or>
  18.138 +        </condition>
  18.139 +        <condition property="have.tests">
  18.140 +            <or>
  18.141 +                <available file="${test.src.dir}"/>
  18.142 +            </or>
  18.143 +        </condition>
  18.144 +        <condition property="have.sources">
  18.145 +            <or>
  18.146 +                <available file="${src.dir}"/>
  18.147 +            </or>
  18.148 +        </condition>
  18.149 +        <condition property="netbeans.home+have.tests">
  18.150 +            <and>
  18.151 +                <isset property="netbeans.home"/>
  18.152 +                <isset property="have.tests"/>
  18.153 +            </and>
  18.154 +        </condition>
  18.155 +        <condition property="no.javadoc.preview">
  18.156 +            <and>
  18.157 +                <isset property="javadoc.preview"/>
  18.158 +                <isfalse value="${javadoc.preview}"/>
  18.159 +            </and>
  18.160 +        </condition>
  18.161 +        <property name="run.jvmargs" value=""/>
  18.162 +        <property name="run.jvmargs.ide" value=""/>
  18.163 +        <property name="javac.compilerargs" value=""/>
  18.164 +        <property name="work.dir" value="${basedir}"/>
  18.165 +        <condition property="no.deps">
  18.166 +            <and>
  18.167 +                <istrue value="${no.dependencies}"/>
  18.168 +            </and>
  18.169 +        </condition>
  18.170 +        <property name="javac.debug" value="true"/>
  18.171 +        <property name="javadoc.preview" value="true"/>
  18.172 +        <property name="application.args" value=""/>
  18.173 +        <property name="source.encoding" value="${file.encoding}"/>
  18.174 +        <property name="runtime.encoding" value="${source.encoding}"/>
  18.175 +        <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
  18.176 +            <and>
  18.177 +                <isset property="javadoc.encoding"/>
  18.178 +                <not>
  18.179 +                    <equals arg1="${javadoc.encoding}" arg2=""/>
  18.180 +                </not>
  18.181 +            </and>
  18.182 +        </condition>
  18.183 +        <property name="javadoc.encoding.used" value="${source.encoding}"/>
  18.184 +        <property name="includes" value="**"/>
  18.185 +        <property name="excludes" value=""/>
  18.186 +        <property name="do.depend" value="false"/>
  18.187 +        <condition property="do.depend.true">
  18.188 +            <istrue value="${do.depend}"/>
  18.189 +        </condition>
  18.190 +        <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
  18.191 +        <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
  18.192 +            <length length="0" string="${endorsed.classpath}" when="greater"/>
  18.193 +        </condition>
  18.194 +        <condition else="false" property="jdkBug6558476">
  18.195 +            <and>
  18.196 +                <matches pattern="1\.[56]" string="${java.specification.version}"/>
  18.197 +                <not>
  18.198 +                    <os family="unix"/>
  18.199 +                </not>
  18.200 +            </and>
  18.201 +        </condition>
  18.202 +        <property name="javac.fork" value="${jdkBug6558476}"/>
  18.203 +        <property name="jar.index" value="false"/>
  18.204 +        <property name="jar.index.metainf" value="${jar.index}"/>
  18.205 +        <property name="copylibs.rebase" value="true"/>
  18.206 +        <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
  18.207 +        <condition property="junit.available">
  18.208 +            <or>
  18.209 +                <available classname="org.junit.Test" classpath="${run.test.classpath}"/>
  18.210 +                <available classname="junit.framework.Test" classpath="${run.test.classpath}"/>
  18.211 +            </or>
  18.212 +        </condition>
  18.213 +        <condition property="testng.available">
  18.214 +            <available classname="org.testng.annotations.Test" classpath="${run.test.classpath}"/>
  18.215 +        </condition>
  18.216 +        <condition property="junit+testng.available">
  18.217 +            <and>
  18.218 +                <istrue value="${junit.available}"/>
  18.219 +                <istrue value="${testng.available}"/>
  18.220 +            </and>
  18.221 +        </condition>
  18.222 +        <condition else="testng" property="testng.mode" value="mixed">
  18.223 +            <istrue value="${junit+testng.available}"/>
  18.224 +        </condition>
  18.225 +        <condition else="" property="testng.debug.mode" value="-mixed">
  18.226 +            <istrue value="${junit+testng.available}"/>
  18.227 +        </condition>
  18.228 +    </target>
  18.229 +    <target name="-post-init">
  18.230 +        <!-- Empty placeholder for easier customization. -->
  18.231 +        <!-- You can override this target in the ../build.xml file. -->
  18.232 +    </target>
  18.233 +    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
  18.234 +        <fail unless="src.dir">Must set src.dir</fail>
  18.235 +        <fail unless="test.src.dir">Must set test.src.dir</fail>
  18.236 +        <fail unless="build.dir">Must set build.dir</fail>
  18.237 +        <fail unless="dist.dir">Must set dist.dir</fail>
  18.238 +        <fail unless="build.classes.dir">Must set build.classes.dir</fail>
  18.239 +        <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
  18.240 +        <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
  18.241 +        <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
  18.242 +        <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
  18.243 +        <fail unless="dist.jar">Must set dist.jar</fail>
  18.244 +    </target>
  18.245 +    <target name="-init-macrodef-property">
  18.246 +        <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
  18.247 +            <attribute name="name"/>
  18.248 +            <attribute name="value"/>
  18.249 +            <sequential>
  18.250 +                <property name="@{name}" value="${@{value}}"/>
  18.251 +            </sequential>
  18.252 +        </macrodef>
  18.253 +    </target>
  18.254 +    <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
  18.255 +        <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
  18.256 +            <attribute default="${src.dir}" name="srcdir"/>
  18.257 +            <attribute default="${build.classes.dir}" name="destdir"/>
  18.258 +            <attribute default="${javac.classpath}" name="classpath"/>
  18.259 +            <attribute default="${javac.processorpath}" name="processorpath"/>
  18.260 +            <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
  18.261 +            <attribute default="${includes}" name="includes"/>
  18.262 +            <attribute default="${excludes}" name="excludes"/>
  18.263 +            <attribute default="${javac.debug}" name="debug"/>
  18.264 +            <attribute default="${empty.dir}" name="sourcepath"/>
  18.265 +            <attribute default="${empty.dir}" name="gensrcdir"/>
  18.266 +            <element name="customize" optional="true"/>
  18.267 +            <sequential>
  18.268 +                <property location="${build.dir}/empty" name="empty.dir"/>
  18.269 +                <mkdir dir="${empty.dir}"/>
  18.270 +                <mkdir dir="@{apgeneratedsrcdir}"/>
  18.271 +                <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}">
  18.272 +                    <src>
  18.273 +                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
  18.274 +                            <include name="*"/>
  18.275 +                        </dirset>
  18.276 +                    </src>
  18.277 +                    <classpath>
  18.278 +                        <path path="@{classpath}"/>
  18.279 +                    </classpath>
  18.280 +                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
  18.281 +                    <compilerarg line="${javac.compilerargs}"/>
  18.282 +                    <compilerarg value="-processorpath"/>
  18.283 +                    <compilerarg path="@{processorpath}:${empty.dir}"/>
  18.284 +                    <compilerarg line="${ap.processors.internal}"/>
  18.285 +                    <compilerarg line="${annotation.processing.processor.options}"/>
  18.286 +                    <compilerarg value="-s"/>
  18.287 +                    <compilerarg path="@{apgeneratedsrcdir}"/>
  18.288 +                    <compilerarg line="${ap.proc.none.internal}"/>
  18.289 +                    <customize/>
  18.290 +                </javac>
  18.291 +            </sequential>
  18.292 +        </macrodef>
  18.293 +    </target>
  18.294 +    <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
  18.295 +        <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
  18.296 +            <attribute default="${src.dir}" name="srcdir"/>
  18.297 +            <attribute default="${build.classes.dir}" name="destdir"/>
  18.298 +            <attribute default="${javac.classpath}" name="classpath"/>
  18.299 +            <attribute default="${javac.processorpath}" name="processorpath"/>
  18.300 +            <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
  18.301 +            <attribute default="${includes}" name="includes"/>
  18.302 +            <attribute default="${excludes}" name="excludes"/>
  18.303 +            <attribute default="${javac.debug}" name="debug"/>
  18.304 +            <attribute default="${empty.dir}" name="sourcepath"/>
  18.305 +            <attribute default="${empty.dir}" name="gensrcdir"/>
  18.306 +            <element name="customize" optional="true"/>
  18.307 +            <sequential>
  18.308 +                <property location="${build.dir}/empty" name="empty.dir"/>
  18.309 +                <mkdir dir="${empty.dir}"/>
  18.310 +                <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}">
  18.311 +                    <src>
  18.312 +                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
  18.313 +                            <include name="*"/>
  18.314 +                        </dirset>
  18.315 +                    </src>
  18.316 +                    <classpath>
  18.317 +                        <path path="@{classpath}"/>
  18.318 +                    </classpath>
  18.319 +                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
  18.320 +                    <compilerarg line="${javac.compilerargs}"/>
  18.321 +                    <customize/>
  18.322 +                </javac>
  18.323 +            </sequential>
  18.324 +        </macrodef>
  18.325 +    </target>
  18.326 +    <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
  18.327 +        <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
  18.328 +            <attribute default="${src.dir}" name="srcdir"/>
  18.329 +            <attribute default="${build.classes.dir}" name="destdir"/>
  18.330 +            <attribute default="${javac.classpath}" name="classpath"/>
  18.331 +            <sequential>
  18.332 +                <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
  18.333 +                    <classpath>
  18.334 +                        <path path="@{classpath}"/>
  18.335 +                    </classpath>
  18.336 +                </depend>
  18.337 +            </sequential>
  18.338 +        </macrodef>
  18.339 +        <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
  18.340 +            <attribute default="${build.classes.dir}" name="destdir"/>
  18.341 +            <sequential>
  18.342 +                <fail unless="javac.includes">Must set javac.includes</fail>
  18.343 +                <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
  18.344 +                    <path>
  18.345 +                        <filelist dir="@{destdir}" files="${javac.includes}"/>
  18.346 +                    </path>
  18.347 +                    <globmapper from="*.java" to="*.class"/>
  18.348 +                </pathconvert>
  18.349 +                <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
  18.350 +                <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
  18.351 +                <delete>
  18.352 +                    <files includesfile="${javac.includesfile.binary}"/>
  18.353 +                </delete>
  18.354 +                <delete>
  18.355 +                    <fileset file="${javac.includesfile.binary}"/>
  18.356 +                </delete>
  18.357 +            </sequential>
  18.358 +        </macrodef>
  18.359 +    </target>
  18.360 +    <target if="${junit.available}" name="-init-macrodef-junit-init">
  18.361 +        <condition else="false" property="nb.junit.batch" value="true">
  18.362 +            <and>
  18.363 +                <istrue value="${junit.available}"/>
  18.364 +                <not>
  18.365 +                    <isset property="test.method"/>
  18.366 +                </not>
  18.367 +            </and>
  18.368 +        </condition>
  18.369 +        <condition else="false" property="nb.junit.single" value="true">
  18.370 +            <and>
  18.371 +                <istrue value="${junit.available}"/>
  18.372 +                <isset property="test.method"/>
  18.373 +            </and>
  18.374 +        </condition>
  18.375 +    </target>
  18.376 +    <target name="-init-test-properties">
  18.377 +        <property name="test.binaryincludes" value="&lt;nothing&gt;"/>
  18.378 +        <property name="test.binarytestincludes" value=""/>
  18.379 +        <property name="test.binaryexcludes" value=""/>
  18.380 +    </target>
  18.381 +    <target if="${nb.junit.single}" name="-init-macrodef-junit-single" unless="${nb.junit.batch}">
  18.382 +        <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
  18.383 +            <attribute default="${includes}" name="includes"/>
  18.384 +            <attribute default="${excludes}" name="excludes"/>
  18.385 +            <attribute default="**" name="testincludes"/>
  18.386 +            <attribute default="" name="testmethods"/>
  18.387 +            <element name="customize" optional="true"/>
  18.388 +            <sequential>
  18.389 +                <property name="junit.forkmode" value="perTest"/>
  18.390 +                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
  18.391 +                    <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
  18.392 +                    <syspropertyset>
  18.393 +                        <propertyref prefix="test-sys-prop."/>
  18.394 +                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
  18.395 +                    </syspropertyset>
  18.396 +                    <formatter type="brief" usefile="false"/>
  18.397 +                    <formatter type="xml"/>
  18.398 +                    <jvmarg value="-ea"/>
  18.399 +                    <customize/>
  18.400 +                </junit>
  18.401 +            </sequential>
  18.402 +        </macrodef>
  18.403 +    </target>
  18.404 +    <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-batch" unless="${nb.junit.single}">
  18.405 +        <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
  18.406 +            <attribute default="${includes}" name="includes"/>
  18.407 +            <attribute default="${excludes}" name="excludes"/>
  18.408 +            <attribute default="**" name="testincludes"/>
  18.409 +            <attribute default="" name="testmethods"/>
  18.410 +            <element name="customize" optional="true"/>
  18.411 +            <sequential>
  18.412 +                <property name="junit.forkmode" value="perTest"/>
  18.413 +                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
  18.414 +                    <batchtest todir="${build.test.results.dir}">
  18.415 +                        <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
  18.416 +                            <filename name="@{testincludes}"/>
  18.417 +                        </fileset>
  18.418 +                        <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
  18.419 +                            <filename name="${test.binarytestincludes}"/>
  18.420 +                        </fileset>
  18.421 +                    </batchtest>
  18.422 +                    <syspropertyset>
  18.423 +                        <propertyref prefix="test-sys-prop."/>
  18.424 +                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
  18.425 +                    </syspropertyset>
  18.426 +                    <formatter type="brief" usefile="false"/>
  18.427 +                    <formatter type="xml"/>
  18.428 +                    <jvmarg value="-ea"/>
  18.429 +                    <customize/>
  18.430 +                </junit>
  18.431 +            </sequential>
  18.432 +        </macrodef>
  18.433 +    </target>
  18.434 +    <target depends="-init-macrodef-junit-init,-init-macrodef-junit-single, -init-macrodef-junit-batch" if="${junit.available}" name="-init-macrodef-junit"/>
  18.435 +    <target if="${testng.available}" name="-init-macrodef-testng">
  18.436 +        <macrodef name="testng" uri="http://www.netbeans.org/ns/j2se-project/3">
  18.437 +            <attribute default="${includes}" name="includes"/>
  18.438 +            <attribute default="${excludes}" name="excludes"/>
  18.439 +            <attribute default="**" name="testincludes"/>
  18.440 +            <attribute default="" name="testmethods"/>
  18.441 +            <element name="customize" optional="true"/>
  18.442 +            <sequential>
  18.443 +                <condition else="" property="testng.methods.arg" value="@{testincludes}.@{testmethods}">
  18.444 +                    <isset property="test.method"/>
  18.445 +                </condition>
  18.446 +                <union id="test.set">
  18.447 +                    <fileset dir="${test.src.dir}" excludes="@{excludes},**/*.xml,${excludes}" includes="@{includes}">
  18.448 +                        <filename name="@{testincludes}"/>
  18.449 +                    </fileset>
  18.450 +                </union>
  18.451 +                <taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
  18.452 +                <testng classfilesetref="test.set" failureProperty="tests.failed" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="alt2xml" testname="TestNG tests" workingDir="${work.dir}">
  18.453 +                    <xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
  18.454 +                    <propertyset>
  18.455 +                        <propertyref prefix="test-sys-prop."/>
  18.456 +                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
  18.457 +                    </propertyset>
  18.458 +                    <customize/>
  18.459 +                </testng>
  18.460 +            </sequential>
  18.461 +        </macrodef>
  18.462 +    </target>
  18.463 +    <target name="-init-macrodef-test-impl">
  18.464 +        <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
  18.465 +            <attribute default="${includes}" name="includes"/>
  18.466 +            <attribute default="${excludes}" name="excludes"/>
  18.467 +            <attribute default="**" name="testincludes"/>
  18.468 +            <attribute default="" name="testmethods"/>
  18.469 +            <element implicit="true" name="customize" optional="true"/>
  18.470 +            <sequential>
  18.471 +                <echo>No tests executed.</echo>
  18.472 +            </sequential>
  18.473 +        </macrodef>
  18.474 +    </target>
  18.475 +    <target depends="-init-macrodef-junit" if="${junit.available}" name="-init-macrodef-junit-impl">
  18.476 +        <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
  18.477 +            <attribute default="${includes}" name="includes"/>
  18.478 +            <attribute default="${excludes}" name="excludes"/>
  18.479 +            <attribute default="**" name="testincludes"/>
  18.480 +            <attribute default="" name="testmethods"/>
  18.481 +            <element implicit="true" name="customize" optional="true"/>
  18.482 +            <sequential>
  18.483 +                <j2seproject3:junit excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
  18.484 +                    <customize/>
  18.485 +                </j2seproject3:junit>
  18.486 +            </sequential>
  18.487 +        </macrodef>
  18.488 +    </target>
  18.489 +    <target depends="-init-macrodef-testng" if="${testng.available}" name="-init-macrodef-testng-impl">
  18.490 +        <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
  18.491 +            <attribute default="${includes}" name="includes"/>
  18.492 +            <attribute default="${excludes}" name="excludes"/>
  18.493 +            <attribute default="**" name="testincludes"/>
  18.494 +            <attribute default="" name="testmethods"/>
  18.495 +            <element implicit="true" name="customize" optional="true"/>
  18.496 +            <sequential>
  18.497 +                <j2seproject3:testng excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
  18.498 +                    <customize/>
  18.499 +                </j2seproject3:testng>
  18.500 +            </sequential>
  18.501 +        </macrodef>
  18.502 +    </target>
  18.503 +    <target depends="-init-macrodef-test-impl,-init-macrodef-junit-impl,-init-macrodef-testng-impl" name="-init-macrodef-test">
  18.504 +        <macrodef name="test" uri="http://www.netbeans.org/ns/j2se-project/3">
  18.505 +            <attribute default="${includes}" name="includes"/>
  18.506 +            <attribute default="${excludes}" name="excludes"/>
  18.507 +            <attribute default="**" name="testincludes"/>
  18.508 +            <attribute default="" name="testmethods"/>
  18.509 +            <sequential>
  18.510 +                <j2seproject3:test-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
  18.511 +                    <customize>
  18.512 +                        <classpath>
  18.513 +                            <path path="${run.test.classpath}"/>
  18.514 +                        </classpath>
  18.515 +                        <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
  18.516 +                        <jvmarg line="${run.jvmargs}"/>
  18.517 +                        <jvmarg line="${run.jvmargs.ide}"/>
  18.518 +                    </customize>
  18.519 +                </j2seproject3:test-impl>
  18.520 +            </sequential>
  18.521 +        </macrodef>
  18.522 +    </target>
  18.523 +    <target if="${junit.available}" name="-init-macrodef-junit-debug" unless="${nb.junit.batch}">
  18.524 +        <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
  18.525 +            <attribute default="${includes}" name="includes"/>
  18.526 +            <attribute default="${excludes}" name="excludes"/>
  18.527 +            <attribute default="**" name="testincludes"/>
  18.528 +            <attribute default="" name="testmethods"/>
  18.529 +            <element name="customize" optional="true"/>
  18.530 +            <sequential>
  18.531 +                <property name="junit.forkmode" value="perTest"/>
  18.532 +                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
  18.533 +                    <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
  18.534 +                    <syspropertyset>
  18.535 +                        <propertyref prefix="test-sys-prop."/>
  18.536 +                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
  18.537 +                    </syspropertyset>
  18.538 +                    <formatter type="brief" usefile="false"/>
  18.539 +                    <formatter type="xml"/>
  18.540 +                    <jvmarg value="-ea"/>
  18.541 +                    <jvmarg line="${debug-args-line}"/>
  18.542 +                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
  18.543 +                    <customize/>
  18.544 +                </junit>
  18.545 +            </sequential>
  18.546 +        </macrodef>
  18.547 +    </target>
  18.548 +    <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-debug-batch">
  18.549 +        <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
  18.550 +            <attribute default="${includes}" name="includes"/>
  18.551 +            <attribute default="${excludes}" name="excludes"/>
  18.552 +            <attribute default="**" name="testincludes"/>
  18.553 +            <attribute default="" name="testmethods"/>
  18.554 +            <element name="customize" optional="true"/>
  18.555 +            <sequential>
  18.556 +                <property name="junit.forkmode" value="perTest"/>
  18.557 +                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
  18.558 +                    <batchtest todir="${build.test.results.dir}">
  18.559 +                        <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
  18.560 +                            <filename name="@{testincludes}"/>
  18.561 +                        </fileset>
  18.562 +                        <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
  18.563 +                            <filename name="${test.binarytestincludes}"/>
  18.564 +                        </fileset>
  18.565 +                    </batchtest>
  18.566 +                    <syspropertyset>
  18.567 +                        <propertyref prefix="test-sys-prop."/>
  18.568 +                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
  18.569 +                    </syspropertyset>
  18.570 +                    <formatter type="brief" usefile="false"/>
  18.571 +                    <formatter type="xml"/>
  18.572 +                    <jvmarg value="-ea"/>
  18.573 +                    <jvmarg line="${debug-args-line}"/>
  18.574 +                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
  18.575 +                    <customize/>
  18.576 +                </junit>
  18.577 +            </sequential>
  18.578 +        </macrodef>
  18.579 +    </target>
  18.580 +    <target depends="-init-macrodef-junit-debug,-init-macrodef-junit-debug-batch" if="${junit.available}" name="-init-macrodef-junit-debug-impl">
  18.581 +        <macrodef name="test-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
  18.582 +            <attribute default="${includes}" name="includes"/>
  18.583 +            <attribute default="${excludes}" name="excludes"/>
  18.584 +            <attribute default="**" name="testincludes"/>
  18.585 +            <attribute default="" name="testmethods"/>
  18.586 +            <element implicit="true" name="customize" optional="true"/>
  18.587 +            <sequential>
  18.588 +                <j2seproject3:junit-debug excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
  18.589 +                    <customize/>
  18.590 +                </j2seproject3:junit-debug>
  18.591 +            </sequential>
  18.592 +        </macrodef>
  18.593 +    </target>
  18.594 +    <target if="${testng.available}" name="-init-macrodef-testng-debug">
  18.595 +        <macrodef name="testng-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
  18.596 +            <attribute default="${main.class}" name="testClass"/>
  18.597 +            <attribute default="" name="testMethod"/>
  18.598 +            <element name="customize2" optional="true"/>
  18.599 +            <sequential>
  18.600 +                <condition else="-testclass @{testClass}" property="test.class.or.method" value="-methods @{testClass}.@{testMethod}">
  18.601 +                    <isset property="test.method"/>
  18.602 +                </condition>
  18.603 +                <condition else="-suitename alt2xml -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}">
  18.604 +                    <matches pattern=".*\.xml" string="@{testClass}"/>
  18.605 +                </condition>
  18.606 +                <delete dir="${build.test.results.dir}" quiet="true"/>
  18.607 +                <mkdir dir="${build.test.results.dir}"/>
  18.608 +                <j2seproject3:debug classname="org.testng.TestNG" classpath="${debug.test.classpath}">
  18.609 +                    <customize>
  18.610 +                        <customize2/>
  18.611 +                        <jvmarg value="-ea"/>
  18.612 +                        <arg line="${testng.debug.mode}"/>
  18.613 +                        <arg line="-d ${build.test.results.dir}"/>
  18.614 +                        <arg line="-listener org.testng.reporters.VerboseReporter"/>
  18.615 +                        <arg line="${testng.cmd.args}"/>
  18.616 +                    </customize>
  18.617 +                </j2seproject3:debug>
  18.618 +            </sequential>
  18.619 +        </macrodef>
  18.620 +    </target>
  18.621 +    <target depends="-init-macrodef-testng-debug" if="${testng.available}" name="-init-macrodef-testng-debug-impl">
  18.622 +        <macrodef name="testng-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
  18.623 +            <attribute default="${main.class}" name="testClass"/>
  18.624 +            <attribute default="" name="testMethod"/>
  18.625 +            <element implicit="true" name="customize2" optional="true"/>
  18.626 +            <sequential>
  18.627 +                <j2seproject3:testng-debug testClass="@{testClass}" testMethod="@{testMethod}">
  18.628 +                    <customize2/>
  18.629 +                </j2seproject3:testng-debug>
  18.630 +            </sequential>
  18.631 +        </macrodef>
  18.632 +    </target>
  18.633 +    <target depends="-init-macrodef-junit-debug-impl" if="${junit.available}" name="-init-macrodef-test-debug-junit">
  18.634 +        <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
  18.635 +            <attribute default="${includes}" name="includes"/>
  18.636 +            <attribute default="${excludes}" name="excludes"/>
  18.637 +            <attribute default="**" name="testincludes"/>
  18.638 +            <attribute default="" name="testmethods"/>
  18.639 +            <attribute default="${main.class}" name="testClass"/>
  18.640 +            <attribute default="" name="testMethod"/>
  18.641 +            <sequential>
  18.642 +                <j2seproject3:test-debug-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
  18.643 +                    <customize>
  18.644 +                        <classpath>
  18.645 +                            <path path="${run.test.classpath}"/>
  18.646 +                        </classpath>
  18.647 +                        <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
  18.648 +                        <jvmarg line="${run.jvmargs}"/>
  18.649 +                        <jvmarg line="${run.jvmargs.ide}"/>
  18.650 +                    </customize>
  18.651 +                </j2seproject3:test-debug-impl>
  18.652 +            </sequential>
  18.653 +        </macrodef>
  18.654 +    </target>
  18.655 +    <target depends="-init-macrodef-testng-debug-impl" if="${testng.available}" name="-init-macrodef-test-debug-testng">
  18.656 +        <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
  18.657 +            <attribute default="${includes}" name="includes"/>
  18.658 +            <attribute default="${excludes}" name="excludes"/>
  18.659 +            <attribute default="**" name="testincludes"/>
  18.660 +            <attribute default="" name="testmethods"/>
  18.661 +            <attribute default="${main.class}" name="testClass"/>
  18.662 +            <attribute default="" name="testMethod"/>
  18.663 +            <sequential>
  18.664 +                <j2seproject3:testng-debug-impl testClass="@{testClass}" testMethod="@{testMethod}">
  18.665 +                    <customize2>
  18.666 +                        <syspropertyset>
  18.667 +                            <propertyref prefix="test-sys-prop."/>
  18.668 +                            <mapper from="test-sys-prop.*" to="*" type="glob"/>
  18.669 +                        </syspropertyset>
  18.670 +                    </customize2>
  18.671 +                </j2seproject3:testng-debug-impl>
  18.672 +            </sequential>
  18.673 +        </macrodef>
  18.674 +    </target>
  18.675 +    <target depends="-init-macrodef-test-debug-junit,-init-macrodef-test-debug-testng" name="-init-macrodef-test-debug"/>
  18.676 +    <!--
  18.677 +                pre NB7.2 profiling section; consider it deprecated
  18.678 +            -->
  18.679 +    <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" if="profiler.info.jvmargs.agent" name="profile-init"/>
  18.680 +    <target if="profiler.info.jvmargs.agent" name="-profile-pre-init">
  18.681 +        <!-- Empty placeholder for easier customization. -->
  18.682 +        <!-- You can override this target in the ../build.xml file. -->
  18.683 +    </target>
  18.684 +    <target if="profiler.info.jvmargs.agent" name="-profile-post-init">
  18.685 +        <!-- Empty placeholder for easier customization. -->
  18.686 +        <!-- You can override this target in the ../build.xml file. -->
  18.687 +    </target>
  18.688 +    <target if="profiler.info.jvmargs.agent" name="-profile-init-macrodef-profile">
  18.689 +        <macrodef name="resolve">
  18.690 +            <attribute name="name"/>
  18.691 +            <attribute name="value"/>
  18.692 +            <sequential>
  18.693 +                <property name="@{name}" value="${env.@{value}}"/>
  18.694 +            </sequential>
  18.695 +        </macrodef>
  18.696 +        <macrodef name="profile">
  18.697 +            <attribute default="${main.class}" name="classname"/>
  18.698 +            <element name="customize" optional="true"/>
  18.699 +            <sequential>
  18.700 +                <property environment="env"/>
  18.701 +                <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
  18.702 +                <java classname="@{classname}" dir="${profiler.info.dir}" fork="true" jvm="${profiler.info.jvm}">
  18.703 +                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
  18.704 +                    <jvmarg value="${profiler.info.jvmargs.agent}"/>
  18.705 +                    <jvmarg line="${profiler.info.jvmargs}"/>
  18.706 +                    <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
  18.707 +                    <arg line="${application.args}"/>
  18.708 +                    <classpath>
  18.709 +                        <path path="${run.classpath}"/>
  18.710 +                    </classpath>
  18.711 +                    <syspropertyset>
  18.712 +                        <propertyref prefix="run-sys-prop."/>
  18.713 +                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
  18.714 +                    </syspropertyset>
  18.715 +                    <customize/>
  18.716 +                </java>
  18.717 +            </sequential>
  18.718 +        </macrodef>
  18.719 +    </target>
  18.720 +    <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" if="profiler.info.jvmargs.agent" name="-profile-init-check">
  18.721 +        <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
  18.722 +        <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
  18.723 +    </target>
  18.724 +    <!--
  18.725 +                end of pre NB7.2 profiling section
  18.726 +            -->
  18.727 +    <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
  18.728 +        <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
  18.729 +            <attribute default="${main.class}" name="name"/>
  18.730 +            <attribute default="${debug.classpath}" name="classpath"/>
  18.731 +            <attribute default="" name="stopclassname"/>
  18.732 +            <sequential>
  18.733 +                <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
  18.734 +                    <classpath>
  18.735 +                        <path path="@{classpath}"/>
  18.736 +                    </classpath>
  18.737 +                </nbjpdastart>
  18.738 +            </sequential>
  18.739 +        </macrodef>
  18.740 +        <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
  18.741 +            <attribute default="${build.classes.dir}" name="dir"/>
  18.742 +            <sequential>
  18.743 +                <nbjpdareload>
  18.744 +                    <fileset dir="@{dir}" includes="${fix.classes}">
  18.745 +                        <include name="${fix.includes}*.class"/>
  18.746 +                    </fileset>
  18.747 +                </nbjpdareload>
  18.748 +            </sequential>
  18.749 +        </macrodef>
  18.750 +    </target>
  18.751 +    <target name="-init-debug-args">
  18.752 +        <property name="version-output" value="java version &quot;${ant.java.version}"/>
  18.753 +        <condition property="have-jdk-older-than-1.4">
  18.754 +            <or>
  18.755 +                <contains string="${version-output}" substring="java version &quot;1.0"/>
  18.756 +                <contains string="${version-output}" substring="java version &quot;1.1"/>
  18.757 +                <contains string="${version-output}" substring="java version &quot;1.2"/>
  18.758 +                <contains string="${version-output}" substring="java version &quot;1.3"/>
  18.759 +            </or>
  18.760 +        </condition>
  18.761 +        <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
  18.762 +            <istrue value="${have-jdk-older-than-1.4}"/>
  18.763 +        </condition>
  18.764 +        <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
  18.765 +            <os family="windows"/>
  18.766 +        </condition>
  18.767 +        <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
  18.768 +            <isset property="debug.transport"/>
  18.769 +        </condition>
  18.770 +    </target>
  18.771 +    <target depends="-init-debug-args" name="-init-macrodef-debug">
  18.772 +        <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
  18.773 +            <attribute default="${main.class}" name="classname"/>
  18.774 +            <attribute default="${debug.classpath}" name="classpath"/>
  18.775 +            <element name="customize" optional="true"/>
  18.776 +            <sequential>
  18.777 +                <java classname="@{classname}" dir="${work.dir}" fork="true">
  18.778 +                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
  18.779 +                    <jvmarg line="${debug-args-line}"/>
  18.780 +                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
  18.781 +                    <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
  18.782 +                    <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
  18.783 +                    <jvmarg line="${run.jvmargs}"/>
  18.784 +                    <jvmarg line="${run.jvmargs.ide}"/>
  18.785 +                    <classpath>
  18.786 +                        <path path="@{classpath}"/>
  18.787 +                    </classpath>
  18.788 +                    <syspropertyset>
  18.789 +                        <propertyref prefix="run-sys-prop."/>
  18.790 +                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
  18.791 +                    </syspropertyset>
  18.792 +                    <customize/>
  18.793 +                </java>
  18.794 +            </sequential>
  18.795 +        </macrodef>
  18.796 +    </target>
  18.797 +    <target name="-init-macrodef-java">
  18.798 +        <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
  18.799 +            <attribute default="${main.class}" name="classname"/>
  18.800 +            <attribute default="${run.classpath}" name="classpath"/>
  18.801 +            <attribute default="jvm" name="jvm"/>
  18.802 +            <element name="customize" optional="true"/>
  18.803 +            <sequential>
  18.804 +                <java classname="@{classname}" dir="${work.dir}" fork="true">
  18.805 +                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
  18.806 +                    <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
  18.807 +                    <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
  18.808 +                    <jvmarg line="${run.jvmargs}"/>
  18.809 +                    <jvmarg line="${run.jvmargs.ide}"/>
  18.810 +                    <classpath>
  18.811 +                        <path path="@{classpath}"/>
  18.812 +                    </classpath>
  18.813 +                    <syspropertyset>
  18.814 +                        <propertyref prefix="run-sys-prop."/>
  18.815 +                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
  18.816 +                    </syspropertyset>
  18.817 +                    <customize/>
  18.818 +                </java>
  18.819 +            </sequential>
  18.820 +        </macrodef>
  18.821 +    </target>
  18.822 +    <target name="-init-macrodef-copylibs">
  18.823 +        <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">
  18.824 +            <attribute default="${manifest.file}" name="manifest"/>
  18.825 +            <element name="customize" optional="true"/>
  18.826 +            <sequential>
  18.827 +                <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
  18.828 +                <pathconvert property="run.classpath.without.build.classes.dir">
  18.829 +                    <path path="${run.classpath}"/>
  18.830 +                    <map from="${build.classes.dir.resolved}" to=""/>
  18.831 +                </pathconvert>
  18.832 +                <pathconvert pathsep=" " property="jar.classpath">
  18.833 +                    <path path="${run.classpath.without.build.classes.dir}"/>
  18.834 +                    <chainedmapper>
  18.835 +                        <flattenmapper/>
  18.836 +                        <filtermapper>
  18.837 +                            <replacestring from=" " to="%20"/>
  18.838 +                        </filtermapper>
  18.839 +                        <globmapper from="*" to="lib/*"/>
  18.840 +                    </chainedmapper>
  18.841 +                </pathconvert>
  18.842 +                <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
  18.843 +                <copylibs compress="${jar.compress}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
  18.844 +                    <fileset dir="${build.classes.dir}"/>
  18.845 +                    <manifest>
  18.846 +                        <attribute name="Class-Path" value="${jar.classpath}"/>
  18.847 +                        <customize/>
  18.848 +                    </manifest>
  18.849 +                </copylibs>
  18.850 +            </sequential>
  18.851 +        </macrodef>
  18.852 +    </target>
  18.853 +    <target name="-init-presetdef-jar">
  18.854 +        <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
  18.855 +            <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">
  18.856 +                <j2seproject1:fileset dir="${build.classes.dir}"/>
  18.857 +            </jar>
  18.858 +        </presetdef>
  18.859 +    </target>
  18.860 +    <target name="-init-ap-cmdline-properties">
  18.861 +        <property name="annotation.processing.enabled" value="true"/>
  18.862 +        <property name="annotation.processing.processors.list" value=""/>
  18.863 +        <property name="annotation.processing.processor.options" value=""/>
  18.864 +        <property name="annotation.processing.run.all.processors" value="true"/>
  18.865 +        <property name="javac.processorpath" value="${javac.classpath}"/>
  18.866 +        <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
  18.867 +        <condition property="ap.supported.internal" value="true">
  18.868 +            <not>
  18.869 +                <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
  18.870 +            </not>
  18.871 +        </condition>
  18.872 +    </target>
  18.873 +    <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
  18.874 +        <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
  18.875 +            <isfalse value="${annotation.processing.run.all.processors}"/>
  18.876 +        </condition>
  18.877 +        <condition else="" property="ap.proc.none.internal" value="-proc:none">
  18.878 +            <isfalse value="${annotation.processing.enabled}"/>
  18.879 +        </condition>
  18.880 +    </target>
  18.881 +    <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
  18.882 +        <property name="ap.cmd.line.internal" value=""/>
  18.883 +    </target>
  18.884 +    <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"/>
  18.885 +    <!--
  18.886 +                ===================
  18.887 +                COMPILATION SECTION
  18.888 +                ===================
  18.889 +            -->
  18.890 +    <target name="-deps-jar-init" unless="built-jar.properties">
  18.891 +        <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>
  18.892 +        <delete file="${built-jar.properties}" quiet="true"/>
  18.893 +    </target>
  18.894 +    <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
  18.895 +        <echo level="warn" message="Cycle detected: alt2xml was already built"/>
  18.896 +    </target>
  18.897 +    <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
  18.898 +        <mkdir dir="${build.dir}"/>
  18.899 +        <touch file="${built-jar.properties}" verbose="false"/>
  18.900 +        <property file="${built-jar.properties}" prefix="already.built.jar."/>
  18.901 +        <antcall target="-warn-already-built-jar"/>
  18.902 +        <propertyfile file="${built-jar.properties}">
  18.903 +            <entry key="${basedir}" value=""/>
  18.904 +        </propertyfile>
  18.905 +    </target>
  18.906 +    <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
  18.907 +    <target depends="init" name="-check-automatic-build">
  18.908 +        <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
  18.909 +    </target>
  18.910 +    <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
  18.911 +        <antcall target="clean"/>
  18.912 +    </target>
  18.913 +    <target depends="init,deps-jar,-groovy-init-macrodef-javac" name="-pre-pre-compile">
  18.914 +        <mkdir dir="${build.classes.dir}"/>
  18.915 +    </target>
  18.916 +    <target name="-pre-compile">
  18.917 +        <!-- Empty placeholder for easier customization. -->
  18.918 +        <!-- You can override this target in the ../build.xml file. -->
  18.919 +    </target>
  18.920 +    <target if="do.depend.true" name="-compile-depend">
  18.921 +        <pathconvert property="build.generated.subdirs">
  18.922 +            <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
  18.923 +                <include name="*"/>
  18.924 +            </dirset>
  18.925 +        </pathconvert>
  18.926 +        <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>
  18.927 +    </target>
  18.928 +    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">
  18.929 +        <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
  18.930 +        <copy todir="${build.classes.dir}">
  18.931 +            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
  18.932 +        </copy>
  18.933 +    </target>
  18.934 +    <target if="has.persistence.xml" name="-copy-persistence-xml">
  18.935 +        <mkdir dir="${build.classes.dir}/META-INF"/>
  18.936 +        <copy todir="${build.classes.dir}/META-INF">
  18.937 +            <fileset dir="${meta.inf.dir}" includes="persistence.xml orm.xml"/>
  18.938 +        </copy>
  18.939 +    </target>
  18.940 +    <target name="-post-compile">
  18.941 +        <!-- Empty placeholder for easier customization. -->
  18.942 +        <!-- You can override this target in the ../build.xml file. -->
  18.943 +    </target>
  18.944 +    <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
  18.945 +    <target name="-pre-compile-single">
  18.946 +        <!-- Empty placeholder for easier customization. -->
  18.947 +        <!-- You can override this target in the ../build.xml file. -->
  18.948 +    </target>
  18.949 +    <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
  18.950 +        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
  18.951 +        <j2seproject3:force-recompile/>
  18.952 +        <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>
  18.953 +    </target>
  18.954 +    <target name="-post-compile-single">
  18.955 +        <!-- Empty placeholder for easier customization. -->
  18.956 +        <!-- You can override this target in the ../build.xml file. -->
  18.957 +    </target>
  18.958 +    <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
  18.959 +    <!--
  18.960 +                ====================
  18.961 +                JAR BUILDING SECTION
  18.962 +                ====================
  18.963 +            -->
  18.964 +    <target depends="init" name="-pre-pre-jar">
  18.965 +        <dirname file="${dist.jar}" property="dist.jar.dir"/>
  18.966 +        <mkdir dir="${dist.jar.dir}"/>
  18.967 +    </target>
  18.968 +    <target name="-pre-jar">
  18.969 +        <!-- Empty placeholder for easier customization. -->
  18.970 +        <!-- You can override this target in the ../build.xml file. -->
  18.971 +    </target>
  18.972 +    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive" name="-do-jar-without-manifest" unless="manifest.available-mkdist.available">
  18.973 +        <j2seproject1:jar/>
  18.974 +    </target>
  18.975 +    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class-mkdist.available">
  18.976 +        <j2seproject1:jar manifest="${manifest.file}"/>
  18.977 +    </target>
  18.978 +    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available">
  18.979 +        <j2seproject1:jar manifest="${manifest.file}">
  18.980 +            <j2seproject1:manifest>
  18.981 +                <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
  18.982 +            </j2seproject1:manifest>
  18.983 +        </j2seproject1:jar>
  18.984 +        <echo level="info">To run this application from the command line without Ant, try:</echo>
  18.985 +        <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
  18.986 +        <property location="${dist.jar}" name="dist.jar.resolved"/>
  18.987 +        <pathconvert property="run.classpath.with.dist.jar">
  18.988 +            <path path="${run.classpath}"/>
  18.989 +            <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
  18.990 +        </pathconvert>
  18.991 +        <echo level="info">java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
  18.992 +    </target>
  18.993 +    <target depends="init" if="do.archive" name="-do-jar-with-libraries-create-manifest" unless="manifest.available">
  18.994 +        <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
  18.995 +        <touch file="${tmp.manifest.file}" verbose="false"/>
  18.996 +    </target>
  18.997 +    <target depends="init" if="do.archive+manifest.available" name="-do-jar-with-libraries-copy-manifest">
  18.998 +        <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
  18.999 +        <copy file="${manifest.file}" tofile="${tmp.manifest.file}"/>
 18.1000 +    </target>
 18.1001 +    <target depends="init,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest" if="do.archive+main.class.available" name="-do-jar-with-libraries-set-main">
 18.1002 +        <manifest file="${tmp.manifest.file}" mode="update">
 18.1003 +            <attribute name="Main-Class" value="${main.class}"/>
 18.1004 +        </manifest>
 18.1005 +    </target>
 18.1006 +    <target depends="init,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-with-libraries-set-splashscreen">
 18.1007 +        <basename file="${application.splash}" property="splashscreen.basename"/>
 18.1008 +        <mkdir dir="${build.classes.dir}/META-INF"/>
 18.1009 +        <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
 18.1010 +        <manifest file="${tmp.manifest.file}" mode="update">
 18.1011 +            <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
 18.1012 +        </manifest>
 18.1013 +    </target>
 18.1014 +    <target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen" if="do.mkdist" name="-do-jar-with-libraries-pack">
 18.1015 +        <j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
 18.1016 +        <echo level="info">To run this application from the command line without Ant, try:</echo>
 18.1017 +        <property location="${dist.jar}" name="dist.jar.resolved"/>
 18.1018 +        <echo level="info">java -jar "${dist.jar.resolved}"</echo>
 18.1019 +    </target>
 18.1020 +    <target depends="-do-jar-with-libraries-pack" if="do.archive" name="-do-jar-with-libraries-delete-manifest">
 18.1021 +        <delete>
 18.1022 +            <fileset file="${tmp.manifest.file}"/>
 18.1023 +        </delete>
 18.1024 +    </target>
 18.1025 +    <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen,-do-jar-with-libraries-pack,-do-jar-with-libraries-delete-manifest" name="-do-jar-with-libraries"/>
 18.1026 +    <target name="-post-jar">
 18.1027 +        <!-- Empty placeholder for easier customization. -->
 18.1028 +        <!-- You can override this target in the ../build.xml file. -->
 18.1029 +    </target>
 18.1030 +    <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-post-jar" description="Build JAR." name="jar"/>
 18.1031 +    <!--
 18.1032 +                =================
 18.1033 +                EXECUTION SECTION
 18.1034 +                =================
 18.1035 +            -->
 18.1036 +    <target depends="init,compile" description="Run a main class." name="run">
 18.1037 +        <j2seproject1:java>
 18.1038 +            <customize>
 18.1039 +                <arg line="${application.args}"/>
 18.1040 +            </customize>
 18.1041 +        </j2seproject1:java>
 18.1042 +    </target>
 18.1043 +    <target name="-do-not-recompile">
 18.1044 +        <property name="javac.includes.binary" value=""/>
 18.1045 +    </target>
 18.1046 +    <target depends="init,compile-single" name="run-single">
 18.1047 +        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
 18.1048 +        <j2seproject1:java classname="${run.class}"/>
 18.1049 +    </target>
 18.1050 +    <target depends="init,compile-test-single" name="run-test-with-main">
 18.1051 +        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
 18.1052 +        <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
 18.1053 +    </target>
 18.1054 +    <!--
 18.1055 +                =================
 18.1056 +                DEBUGGING SECTION
 18.1057 +                =================
 18.1058 +            -->
 18.1059 +    <target depends="init" if="netbeans.home" name="-debug-start-debugger">
 18.1060 +        <j2seproject1:nbjpdastart name="${debug.class}"/>
 18.1061 +    </target>
 18.1062 +    <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
 18.1063 +        <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
 18.1064 +    </target>
 18.1065 +    <target depends="init,compile" name="-debug-start-debuggee">
 18.1066 +        <j2seproject3:debug>
 18.1067 +            <customize>
 18.1068 +                <arg line="${application.args}"/>
 18.1069 +            </customize>
 18.1070 +        </j2seproject3:debug>
 18.1071 +    </target>
 18.1072 +    <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
 18.1073 +    <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
 18.1074 +        <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
 18.1075 +    </target>
 18.1076 +    <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
 18.1077 +    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
 18.1078 +        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
 18.1079 +        <j2seproject3:debug classname="${debug.class}"/>
 18.1080 +    </target>
 18.1081 +    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
 18.1082 +    <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
 18.1083 +        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
 18.1084 +        <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
 18.1085 +    </target>
 18.1086 +    <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
 18.1087 +    <target depends="init" name="-pre-debug-fix">
 18.1088 +        <fail unless="fix.includes">Must set fix.includes</fail>
 18.1089 +        <property name="javac.includes" value="${fix.includes}.java"/>
 18.1090 +    </target>
 18.1091 +    <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
 18.1092 +        <j2seproject1:nbjpdareload/>
 18.1093 +    </target>
 18.1094 +    <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
 18.1095 +    <!--
 18.1096 +                =================
 18.1097 +                PROFILING SECTION
 18.1098 +                =================
 18.1099 +            -->
 18.1100 +    <!--
 18.1101 +                pre NB7.2 profiler integration
 18.1102 +            -->
 18.1103 +    <target depends="profile-init,compile" description="Profile a project in the IDE." if="profiler.info.jvmargs.agent" name="-profile-pre72">
 18.1104 +        <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
 18.1105 +        <nbprofiledirect>
 18.1106 +            <classpath>
 18.1107 +                <path path="${run.classpath}"/>
 18.1108 +            </classpath>
 18.1109 +        </nbprofiledirect>
 18.1110 +        <profile/>
 18.1111 +    </target>
 18.1112 +    <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="profiler.info.jvmargs.agent" name="-profile-single-pre72">
 18.1113 +        <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail>
 18.1114 +        <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
 18.1115 +        <nbprofiledirect>
 18.1116 +            <classpath>
 18.1117 +                <path path="${run.classpath}"/>
 18.1118 +            </classpath>
 18.1119 +        </nbprofiledirect>
 18.1120 +        <profile classname="${profile.class}"/>
 18.1121 +    </target>
 18.1122 +    <target depends="profile-init,compile-single" if="profiler.info.jvmargs.agent" name="-profile-applet-pre72">
 18.1123 +        <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
 18.1124 +        <nbprofiledirect>
 18.1125 +            <classpath>
 18.1126 +                <path path="${run.classpath}"/>
 18.1127 +            </classpath>
 18.1128 +        </nbprofiledirect>
 18.1129 +        <profile classname="sun.applet.AppletViewer">
 18.1130 +            <customize>
 18.1131 +                <arg value="${applet.url}"/>
 18.1132 +            </customize>
 18.1133 +        </profile>
 18.1134 +    </target>
 18.1135 +    <target depends="profile-init,compile-test-single" if="profiler.info.jvmargs.agent" name="-profile-test-single-pre72">
 18.1136 +        <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
 18.1137 +        <nbprofiledirect>
 18.1138 +            <classpath>
 18.1139 +                <path path="${run.test.classpath}"/>
 18.1140 +            </classpath>
 18.1141 +        </nbprofiledirect>
 18.1142 +        <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
 18.1143 +            <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
 18.1144 +            <jvmarg value="${profiler.info.jvmargs.agent}"/>
 18.1145 +            <jvmarg line="${profiler.info.jvmargs}"/>
 18.1146 +            <test name="${profile.class}"/>
 18.1147 +            <classpath>
 18.1148 +                <path path="${run.test.classpath}"/>
 18.1149 +            </classpath>
 18.1150 +            <syspropertyset>
 18.1151 +                <propertyref prefix="test-sys-prop."/>
 18.1152 +                <mapper from="test-sys-prop.*" to="*" type="glob"/>
 18.1153 +            </syspropertyset>
 18.1154 +            <formatter type="brief" usefile="false"/>
 18.1155 +            <formatter type="xml"/>
 18.1156 +        </junit>
 18.1157 +    </target>
 18.1158 +    <!--
 18.1159 +                end of pre NB72 profiling section
 18.1160 +            -->
 18.1161 +    <target if="netbeans.home" name="-profile-check">
 18.1162 +        <condition property="profiler.configured">
 18.1163 +            <or>
 18.1164 +                <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-agentpath:"/>
 18.1165 +                <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-javaagent:"/>
 18.1166 +            </or>
 18.1167 +        </condition>
 18.1168 +    </target>
 18.1169 +    <target depends="-profile-check,-profile-pre72" description="Profile a project in the IDE." if="profiler.configured" name="profile" unless="profiler.info.jvmargs.agent">
 18.1170 +        <startprofiler/>
 18.1171 +        <antcall target="run"/>
 18.1172 +    </target>
 18.1173 +    <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">
 18.1174 +        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
 18.1175 +        <startprofiler/>
 18.1176 +        <antcall target="run-single"/>
 18.1177 +    </target>
 18.1178 +    <target depends="-profile-test-single-pre72" description="Profile a selected test in the IDE." name="profile-test-single"/>
 18.1179 +    <target depends="-profile-check" description="Profile a selected test in the IDE." if="profiler.configured" name="profile-test" unless="profiler.info.jvmargs">
 18.1180 +        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
 18.1181 +        <startprofiler/>
 18.1182 +        <antcall target="test-single"/>
 18.1183 +    </target>
 18.1184 +    <target depends="-profile-check" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-test-with-main">
 18.1185 +        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
 18.1186 +        <startprofiler/>
 18.1187 +        <antcal target="run-test-with-main"/>
 18.1188 +    </target>
 18.1189 +    <target depends="-profile-check,-profile-applet-pre72" if="profiler.configured" name="profile-applet" unless="profiler.info.jvmargs.agent">
 18.1190 +        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
 18.1191 +        <startprofiler/>
 18.1192 +        <antcall target="run-applet"/>
 18.1193 +    </target>
 18.1194 +    <!--
 18.1195 +                ===============
 18.1196 +                JAVADOC SECTION
 18.1197 +                ===============
 18.1198 +            -->
 18.1199 +    <target depends="init" if="have.sources" name="-javadoc-build">
 18.1200 +        <mkdir dir="${dist.javadoc.dir}"/>
 18.1201 +        <condition else="" property="javadoc.endorsed.classpath.cmd.line.arg" value="-J${endorsed.classpath.cmd.line.arg}">
 18.1202 +            <and>
 18.1203 +                <isset property="endorsed.classpath.cmd.line.arg"/>
 18.1204 +                <not>
 18.1205 +                    <equals arg1="${endorsed.classpath.cmd.line.arg}" arg2=""/>
 18.1206 +                </not>
 18.1207 +            </and>
 18.1208 +        </condition>
 18.1209 +        <javadoc additionalparam="${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}">
 18.1210 +            <classpath>
 18.1211 +                <path path="${javac.classpath}"/>
 18.1212 +            </classpath>
 18.1213 +            <fileset dir="${src.dir}" excludes="*.java,${excludes}" includes="${includes}">
 18.1214 +                <filename name="**/*.java"/>
 18.1215 +            </fileset>
 18.1216 +            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
 18.1217 +                <include name="**/*.java"/>
 18.1218 +                <exclude name="*.java"/>
 18.1219 +            </fileset>
 18.1220 +            <arg line="${javadoc.endorsed.classpath.cmd.line.arg}"/>
 18.1221 +        </javadoc>
 18.1222 +        <copy todir="${dist.javadoc.dir}">
 18.1223 +            <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
 18.1224 +                <filename name="**/doc-files/**"/>
 18.1225 +            </fileset>
 18.1226 +            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
 18.1227 +                <include name="**/doc-files/**"/>
 18.1228 +            </fileset>
 18.1229 +        </copy>
 18.1230 +    </target>
 18.1231 +    <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
 18.1232 +        <nbbrowse file="${dist.javadoc.dir}/index.html"/>
 18.1233 +    </target>
 18.1234 +    <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
 18.1235 +    <!--
 18.1236 +                =========================
 18.1237 +                TEST COMPILATION SECTION
 18.1238 +                =========================
 18.1239 +            -->
 18.1240 +    <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
 18.1241 +        <mkdir dir="${build.test.classes.dir}"/>
 18.1242 +    </target>
 18.1243 +    <target name="-pre-compile-test">
 18.1244 +        <!-- Empty placeholder for easier customization. -->
 18.1245 +        <!-- You can override this target in the ../build.xml file. -->
 18.1246 +    </target>
 18.1247 +    <target if="do.depend.true" name="-compile-test-depend">
 18.1248 +        <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
 18.1249 +    </target>
 18.1250 +    <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
 18.1251 +        <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}"/>
 18.1252 +        <copy todir="${build.test.classes.dir}">
 18.1253 +            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
 18.1254 +        </copy>
 18.1255 +    </target>
 18.1256 +    <target name="-post-compile-test">
 18.1257 +        <!-- Empty placeholder for easier customization. -->
 18.1258 +        <!-- You can override this target in the ../build.xml file. -->
 18.1259 +    </target>
 18.1260 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
 18.1261 +    <target name="-pre-compile-test-single">
 18.1262 +        <!-- Empty placeholder for easier customization. -->
 18.1263 +        <!-- You can override this target in the ../build.xml file. -->
 18.1264 +    </target>
 18.1265 +    <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
 18.1266 +        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
 18.1267 +        <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
 18.1268 +        <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}"/>
 18.1269 +        <copy todir="${build.test.classes.dir}">
 18.1270 +            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
 18.1271 +        </copy>
 18.1272 +    </target>
 18.1273 +    <target name="-post-compile-test-single">
 18.1274 +        <!-- Empty placeholder for easier customization. -->
 18.1275 +        <!-- You can override this target in the ../build.xml file. -->
 18.1276 +    </target>
 18.1277 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
 18.1278 +    <!--
 18.1279 +                =======================
 18.1280 +                TEST EXECUTION SECTION
 18.1281 +                =======================
 18.1282 +            -->
 18.1283 +    <target depends="init" if="have.tests" name="-pre-test-run">
 18.1284 +        <mkdir dir="${build.test.results.dir}"/>
 18.1285 +    </target>
 18.1286 +    <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
 18.1287 +        <j2seproject3:test testincludes="**/*Test.java"/>
 18.1288 +    </target>
 18.1289 +    <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
 18.1290 +        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
 18.1291 +    </target>
 18.1292 +    <target depends="init" if="have.tests" name="test-report"/>
 18.1293 +    <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
 18.1294 +    <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
 18.1295 +    <target depends="init" if="have.tests" name="-pre-test-run-single">
 18.1296 +        <mkdir dir="${build.test.results.dir}"/>
 18.1297 +    </target>
 18.1298 +    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
 18.1299 +        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
 18.1300 +        <j2seproject3:test excludes="" includes="${test.includes}" testincludes="${test.includes}"/>
 18.1301 +    </target>
 18.1302 +    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
 18.1303 +        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
 18.1304 +    </target>
 18.1305 +    <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"/>
 18.1306 +    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single-method">
 18.1307 +        <fail unless="test.class">Must select some files in the IDE or set test.class</fail>
 18.1308 +        <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
 18.1309 +        <j2seproject3:test excludes="" includes="${javac.includes}" testincludes="${test.class}" testmethods="${test.method}"/>
 18.1310 +    </target>
 18.1311 +    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method" if="have.tests" name="-post-test-run-single-method">
 18.1312 +        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
 18.1313 +    </target>
 18.1314 +    <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"/>
 18.1315 +    <!--
 18.1316 +                =======================
 18.1317 +                TEST DEBUGGING SECTION
 18.1318 +                =======================
 18.1319 +            -->
 18.1320 +    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test">
 18.1321 +        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
 18.1322 +        <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testincludes="${javac.includes}"/>
 18.1323 +    </target>
 18.1324 +    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test-method">
 18.1325 +        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
 18.1326 +        <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
 18.1327 +        <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testMethod="${test.method}" testincludes="${test.class}" testmethods="${test.method}"/>
 18.1328 +    </target>
 18.1329 +    <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
 18.1330 +        <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
 18.1331 +    </target>
 18.1332 +    <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
 18.1333 +    <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test-method" name="debug-test-method"/>
 18.1334 +    <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
 18.1335 +        <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
 18.1336 +    </target>
 18.1337 +    <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
 18.1338 +    <!--
 18.1339 +                =========================
 18.1340 +                APPLET EXECUTION SECTION
 18.1341 +                =========================
 18.1342 +            -->
 18.1343 +    <target depends="init,compile-single" name="run-applet">
 18.1344 +        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
 18.1345 +        <j2seproject1:java classname="sun.applet.AppletViewer">
 18.1346 +            <customize>
 18.1347 +                <arg value="${applet.url}"/>
 18.1348 +            </customize>
 18.1349 +        </j2seproject1:java>
 18.1350 +    </target>
 18.1351 +    <!--
 18.1352 +                =========================
 18.1353 +                APPLET DEBUGGING  SECTION
 18.1354 +                =========================
 18.1355 +            -->
 18.1356 +    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
 18.1357 +        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
 18.1358 +        <j2seproject3:debug classname="sun.applet.AppletViewer">
 18.1359 +            <customize>
 18.1360 +                <arg value="${applet.url}"/>
 18.1361 +            </customize>
 18.1362 +        </j2seproject3:debug>
 18.1363 +    </target>
 18.1364 +    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
 18.1365 +    <!--
 18.1366 +                ===============
 18.1367 +                CLEANUP SECTION
 18.1368 +                ===============
 18.1369 +            -->
 18.1370 +    <target name="-deps-clean-init" unless="built-clean.properties">
 18.1371 +        <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>
 18.1372 +        <delete file="${built-clean.properties}" quiet="true"/>
 18.1373 +    </target>
 18.1374 +    <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
 18.1375 +        <echo level="warn" message="Cycle detected: alt2xml was already built"/>
 18.1376 +    </target>
 18.1377 +    <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
 18.1378 +        <mkdir dir="${build.dir}"/>
 18.1379 +        <touch file="${built-clean.properties}" verbose="false"/>
 18.1380 +        <property file="${built-clean.properties}" prefix="already.built.clean."/>
 18.1381 +        <antcall target="-warn-already-built-clean"/>
 18.1382 +        <propertyfile file="${built-clean.properties}">
 18.1383 +            <entry key="${basedir}" value=""/>
 18.1384 +        </propertyfile>
 18.1385 +    </target>
 18.1386 +    <target depends="init" name="-do-clean">
 18.1387 +        <delete dir="${build.dir}"/>
 18.1388 +        <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
 18.1389 +    </target>
 18.1390 +    <target name="-post-clean">
 18.1391 +        <!-- Empty placeholder for easier customization. -->
 18.1392 +        <!-- You can override this target in the ../build.xml file. -->
 18.1393 +    </target>
 18.1394 +    <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
 18.1395 +    <target name="-check-call-dep">
 18.1396 +        <property file="${call.built.properties}" prefix="already.built."/>
 18.1397 +        <condition property="should.call.dep">
 18.1398 +            <and>
 18.1399 +                <not>
 18.1400 +                    <isset property="already.built.${call.subproject}"/>
 18.1401 +                </not>
 18.1402 +                <available file="${call.script}"/>
 18.1403 +            </and>
 18.1404 +        </condition>
 18.1405 +    </target>
 18.1406 +    <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
 18.1407 +        <ant antfile="${call.script}" inheritall="false" target="${call.target}">
 18.1408 +            <propertyset>
 18.1409 +                <propertyref prefix="transfer."/>
 18.1410 +                <mapper from="transfer.*" to="*" type="glob"/>
 18.1411 +            </propertyset>
 18.1412 +        </ant>
 18.1413 +    </target>
 18.1414 +</project>
    19.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    19.2 +++ b/java/alt2xml-cli/nbproject/genfiles.properties	Sat Jun 07 10:49:42 2014 +0200
    19.3 @@ -0,0 +1,11 @@
    19.4 +build.xml.data.CRC32=97b0f0d3
    19.5 +build.xml.script.CRC32=c0ec96ea
    19.6 +build.xml.stylesheet.CRC32=8064a381@1.74.2.48
    19.7 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
    19.8 +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
    19.9 +nbproject/build-impl.xml.data.CRC32=31175c28
   19.10 +nbproject/build-impl.xml.script.CRC32=aa79723f
   19.11 +nbproject/build-impl.xml.stylesheet.CRC32=c6d2a60f@1.56.1.46
   19.12 +nbproject/groovy-build.xml.data.CRC32=97b0f0d3
   19.13 +nbproject/groovy-build.xml.script.CRC32=66297360
   19.14 +nbproject/groovy-build.xml.stylesheet.CRC32=28d0e1f2@1.7.1
    20.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    20.2 +++ b/java/alt2xml-cli/nbproject/groovy-build.xml	Sat Jun 07 10:49:42 2014 +0200
    20.3 @@ -0,0 +1,93 @@
    20.4 +<?xml version="1.0" encoding="UTF-8"?>
    20.5 +<!--
    20.6 +*** GENERATED FROM project.xml - DO NOT EDIT  ***
    20.7 +***         EDIT ../build.xml INSTEAD         ***
    20.8 +
    20.9 +        
   20.10 +        -->
   20.11 +<project xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc">
   20.12 +    <target name="-groovy-init-macrodef-javac">
   20.13 +        <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
   20.14 +            <attribute name="srcdir" default="${src.dir}"/>
   20.15 +            <attribute name="destdir" default="${build.classes.dir}"/>
   20.16 +            <attribute name="classpath" default="${javac.classpath}"/>
   20.17 +            <attribute name="includes" default="${includes}"/>
   20.18 +            <attribute name="excludes" default="${excludes}"/>
   20.19 +            <attribute name="debug" default="${javac.debug}"/>
   20.20 +            <attribute name="sourcepath" default="${empty.dir}"/>
   20.21 +            <attribute name="gensrcdir" default="${empty.dir}"/>
   20.22 +            <attribute name="processorpath" default="${javac.processorpath}"/>
   20.23 +            <attribute name="apgeneratedsrcdir" default="${build.generated.sources.dir}/ap-source-output"/>
   20.24 +            <element name="customize" optional="true"/>
   20.25 +            <sequential>
   20.26 +                <taskdef name="groovyc" classpath="${javac.classpath}" classname="org.codehaus.groovy.ant.Groovyc"/>
   20.27 +                <property name="empty.dir" location="${build.dir}/empty"/>
   20.28 +                <mkdir dir="${empty.dir}"/>
   20.29 +                <groovyc srcdir="@{srcdir}" sourcepath="@{sourcepath}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" includeAntRuntime="false" fork="true">
   20.30 +                    <src>
   20.31 +                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
   20.32 +                            <include name="*"/>
   20.33 +                        </dirset>
   20.34 +                    </src>
   20.35 +                    <classpath>
   20.36 +                        <path path="@{classpath}"/>
   20.37 +                    </classpath>
   20.38 +                    <javac debug="@{debug}" deprecation="${javac.deprecation}" encoding="${source.encoding}" source="${javac.source}" target="${javac.target}">
   20.39 +                        <compilerarg line="${javac.compilerargs} ${javac.compilerargs.jaxws}"/>
   20.40 +                        <customize/>
   20.41 +                    </javac>
   20.42 +                </groovyc>
   20.43 +            </sequential>
   20.44 +        </macrodef>
   20.45 +        <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
   20.46 +            <attribute name="srcdir" default="${src.dir}"/>
   20.47 +            <attribute name="destdir" default="${build.classes.dir}"/>
   20.48 +            <attribute name="classpath" default="${javac.classpath}"/>
   20.49 +            <sequential>
   20.50 +                <depend srcdir="@{srcdir}" destdir="@{destdir}" cache="${build.dir}/depcache" includes="${includes}" excludes="${excludes}">
   20.51 +                    <classpath>
   20.52 +                        <path path="@{classpath}"/>
   20.53 +                    </classpath>
   20.54 +                </depend>
   20.55 +            </sequential>
   20.56 +        </macrodef>
   20.57 +        <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
   20.58 +            <attribute name="destdir" default="${build.classes.dir}"/>
   20.59 +            <sequential>
   20.60 +                <fail unless="javac.includes">Must set javac.includes</fail>
   20.61 +                <pathconvert property="javac.includes.binary" pathsep=",">
   20.62 +                    <path>
   20.63 +                        <filelist dir="@{destdir}" files="${javac.includes}"/>
   20.64 +                    </path>
   20.65 +                    <globmapper from="*.java" to="*.class"/>
   20.66 +                </pathconvert>
   20.67 +                <delete>
   20.68 +                    <files includes="${javac.includes.binary}"/>
   20.69 +                </delete>
   20.70 +            </sequential>
   20.71 +        </macrodef>
   20.72 +    </target>
   20.73 +    <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run-with-groovy">
   20.74 +        <j2seproject3:test testincludes=""/>
   20.75 +    </target>
   20.76 +    <target depends="init,compile-test,-pre-test-run,-do-test-run-with-groovy" if="have.tests" name="-post-test-run-with-groovy">
   20.77 +        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
   20.78 +    </target>
   20.79 +    <target depends="init,compile-test,-pre-test-run,-do-test-run-with-groovy,test-report,-post-test-run-with-groovy,-test-browse" description="Run unit tests." name="test-with-groovy"/>
   20.80 +    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single-groovy">
   20.81 +        <fail unless="test.binarytestincludes">Must select some files in the IDE or set test.includes</fail>
   20.82 +        <j2seproject3:test testincludes=""/>
   20.83 +    </target>
   20.84 +    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-groovy" if="have.tests" name="-post-test-run-single-groovy">
   20.85 +        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
   20.86 +    </target>
   20.87 +    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-groovy,-post-test-run-single-groovy" description="Run single unit test." name="test-single-groovy"/>
   20.88 +    <target depends="init,compile-test-single,-pre-test-run-single,-debug-start-debugger-test" name="-do-test-debug-single-groovy">
   20.89 +        <fail unless="test.binarytestincludes">Must select some files in the IDE or set test.binarytestincludes</fail>
   20.90 +        <j2seproject3:test-debug testincludes=""/>
   20.91 +    </target>
   20.92 +    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-debug-single-groovy" if="have.tests" name="-post-test-debug-single-groovy">
   20.93 +        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
   20.94 +    </target>
   20.95 +    <target depends="init,compile-test-single,-pre-test-run-single,-debug-start-debugger-test,-do-test-debug-single-groovy,-post-test-debug-single-groovy" name="debug-test-with-groovy"/>
   20.96 +</project>
    21.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    21.2 +++ b/java/alt2xml-cli/nbproject/project.properties	Sat Jun 07 10:49:42 2014 +0200
    21.3 @@ -0,0 +1,77 @@
    21.4 +annotation.processing.enabled=true
    21.5 +annotation.processing.enabled.in.editor=true
    21.6 +annotation.processing.processors.list=
    21.7 +annotation.processing.run.all.processors=true
    21.8 +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
    21.9 +application.title=alt2xml-cli
   21.10 +application.vendor=fiki
   21.11 +build.classes.dir=${build.dir}/classes
   21.12 +build.classes.excludes=**/*.java,**/*.form,**/*.groovy
   21.13 +# This directory is removed when the project is cleaned:
   21.14 +build.dir=build
   21.15 +build.generated.dir=${build.dir}/generated
   21.16 +build.generated.sources.dir=${build.dir}/generated-sources
   21.17 +# Only compile against the classpath explicitly listed here:
   21.18 +build.sysclasspath=ignore
   21.19 +build.test.classes.dir=${build.dir}/test/classes
   21.20 +build.test.results.dir=${build.dir}/test/results
   21.21 +# Uncomment to specify the preferred debugger connection transport:
   21.22 +#debug.transport=dt_socket
   21.23 +debug.classpath=\
   21.24 +    ${run.classpath}
   21.25 +debug.test.classpath=\
   21.26 +    ${run.test.classpath}
   21.27 +# This directory is removed when the project is cleaned:
   21.28 +dist.dir=dist
   21.29 +dist.jar=${dist.dir}/alt2xml-cli.jar
   21.30 +dist.javadoc.dir=${dist.dir}/javadoc
   21.31 +endorsed.classpath=
   21.32 +excludes=
   21.33 +includes=**
   21.34 +jar.compress=false
   21.35 +javac.classpath=\
   21.36 +    ${reference.alt2xml-lib.jar}
   21.37 +# Space-separated list of extra javac options
   21.38 +javac.compilerargs=
   21.39 +javac.deprecation=false
   21.40 +javac.processorpath=\
   21.41 +    ${javac.classpath}
   21.42 +javac.source=1.7
   21.43 +javac.target=1.7
   21.44 +javac.test.classpath=\
   21.45 +    ${javac.classpath}:\
   21.46 +    ${build.classes.dir}
   21.47 +javac.test.processorpath=\
   21.48 +    ${javac.test.classpath}
   21.49 +javadoc.additionalparam=
   21.50 +javadoc.author=false
   21.51 +javadoc.encoding=${source.encoding}
   21.52 +javadoc.noindex=false
   21.53 +javadoc.nonavbar=false
   21.54 +javadoc.notree=false
   21.55 +javadoc.private=false
   21.56 +javadoc.splitindex=true
   21.57 +javadoc.use=true
   21.58 +javadoc.version=false
   21.59 +javadoc.windowtitle=
   21.60 +main.class=cz.frantovo.alt2xml.CLI
   21.61 +manifest.file=manifest.mf
   21.62 +meta.inf.dir=${src.dir}/META-INF
   21.63 +mkdist.disabled=false
   21.64 +platform.active=default_platform
   21.65 +project.alt2xml-lib=../alt2xml-lib
   21.66 +reference.alt2xml-lib.jar=${project.alt2xml-lib}/dist/alt2xml-lib.jar
   21.67 +run.classpath=\
   21.68 +    ${javac.classpath}:\
   21.69 +    ${build.classes.dir}
   21.70 +# Space-separated list of JVM arguments used when running the project
   21.71 +# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value
   21.72 +# or test-sys-prop.name=value to set system properties for unit tests):
   21.73 +run.jvmargs=
   21.74 +run.test.classpath=\
   21.75 +    ${javac.test.classpath}:\
   21.76 +    ${build.test.classes.dir}
   21.77 +source.encoding=UTF-8
   21.78 +src.dir=src
   21.79 +test.src.dir=test
   21.80 +compile.on.save.unsupported.groovy=true
    22.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    22.2 +++ b/java/alt2xml-cli/nbproject/project.xml	Sat Jun 07 10:49:42 2014 +0200
    22.3 @@ -0,0 +1,30 @@
    22.4 +<?xml version="1.0" encoding="UTF-8"?>
    22.5 +<project xmlns="http://www.netbeans.org/ns/project/1">
    22.6 +    <type>org.netbeans.modules.java.j2seproject</type>
    22.7 +    <configuration>
    22.8 +        <buildExtensions xmlns="http://www.netbeans.org/ns/ant-build-extender/1">
    22.9 +            <extension file="groovy-build.xml" id="groovy">
   22.10 +                <dependency dependsOn="-groovy-init-macrodef-javac" target="-pre-pre-compile"/>
   22.11 +            </extension>
   22.12 +        </buildExtensions>
   22.13 +        <data xmlns="http://www.netbeans.org/ns/j2se-project/3">
   22.14 +            <name>alt2xml-cli</name>
   22.15 +            <source-roots>
   22.16 +                <root id="src.dir"/>
   22.17 +            </source-roots>
   22.18 +            <test-roots>
   22.19 +                <root id="test.src.dir"/>
   22.20 +            </test-roots>
   22.21 +        </data>
   22.22 +        <references xmlns="http://www.netbeans.org/ns/ant-project-references/1">
   22.23 +            <reference>
   22.24 +                <foreign-project>alt2xml-lib</foreign-project>
   22.25 +                <artifact-type>jar</artifact-type>
   22.26 +                <script>build.xml</script>
   22.27 +                <target>jar</target>
   22.28 +                <clean-target>clean</clean-target>
   22.29 +                <id>jar</id>
   22.30 +            </reference>
   22.31 +        </references>
   22.32 +    </configuration>
   22.33 +</project>
    23.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    23.2 +++ b/java/alt2xml-cli/src/cz/frantovo/alt2xml/cli/CLI.java	Sat Jun 07 10:49:42 2014 +0200
    23.3 @@ -0,0 +1,61 @@
    23.4 +/**
    23.5 + * Alt2XML
    23.6 + * Copyright © 2014 František Kučera (frantovo.cz)
    23.7 + *
    23.8 + * This program is free software: you can redistribute it and/or modify
    23.9 + * it under the terms of the GNU General Public License as published by
   23.10 + * the Free Software Foundation, either version 3 of the License, or
   23.11 + * (at your option) any later version.
   23.12 + *
   23.13 + * This program is distributed in the hope that it will be useful,
   23.14 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
   23.15 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
   23.16 + * GNU General Public License for more details.
   23.17 + *
   23.18 + * You should have received a copy of the GNU General Public License
   23.19 + * along with this program. If not, see <http://www.gnu.org/licenses/>.
   23.20 + */
   23.21 +package cz.frantovo.alt2xml.cli;
   23.22 +
   23.23 +import cz.frantovo.alt2xml.ParserFactory;
   23.24 +import java.io.InputStream;
   23.25 +import java.io.OutputStream;
   23.26 +import javax.xml.parsers.SAXParser;
   23.27 +import javax.xml.parsers.SAXParserFactory;
   23.28 +import javax.xml.stream.XMLOutputFactory;
   23.29 +import javax.xml.stream.XMLStreamWriter;
   23.30 +import org.xml.sax.helpers.DefaultHandler;
   23.31 +
   23.32 +/**
   23.33 + *
   23.34 + * @author fiki
   23.35 + */
   23.36 +public class CLI {
   23.37 +
   23.38 +	public static void main(String[] args) throws Exception {
   23.39 +		/**
   23.40 +		 * Použijeme standardní vstup a výstup:
   23.41 +		 */
   23.42 +		InputStream vstup = System.in;
   23.43 +		OutputStream výstup = System.out;
   23.44 +
   23.45 +		/**
   23.46 +		 * Serializujeme data do XML.
   23.47 +		 * To normálně vůbec není potřeba – data se do tvaru proudu obsahujícího ostré závorky
   23.48 +		 * vůbec nedostanou – zpracováváme události (volání javovských metod – začátky a konce
   23.49 +		 * elementů atd.)
   23.50 +		 * a z nich např. deserializujeme nějaké naše objekty, provádíme nějaké akce, nebo třeba
   23.51 +		 * stavíme DOM.
   23.52 +		 */
   23.53 +		XMLOutputFactory xmlOutputFactory = XMLOutputFactory.newFactory();
   23.54 +		XMLStreamWriter w = xmlOutputFactory.createXMLStreamWriter(výstup);
   23.55 +		DefaultHandler h = new EchoContentHandler(w);
   23.56 +
   23.57 +		/**
   23.58 +		 * Parsujeme JSON a děláme z něj XML:
   23.59 +		 */
   23.60 +		SAXParserFactory t = SAXParserFactory.newInstance(ParserFactory.class.getName(), null);
   23.61 +		SAXParser p = t.newSAXParser();
   23.62 +		p.parse(vstup, h);
   23.63 +	}
   23.64 +}
    24.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    24.2 +++ b/java/alt2xml-cli/src/cz/frantovo/alt2xml/cli/EchoContentHandler.java	Sat Jun 07 10:49:42 2014 +0200
    24.3 @@ -0,0 +1,100 @@
    24.4 +/**
    24.5 + * Alt2XML
    24.6 + * Copyright © 2014 František Kučera (frantovo.cz)
    24.7 + *
    24.8 + * This program is free software: you can redistribute it and/or modify
    24.9 + * it under the terms of the GNU General Public License as published by
   24.10 + * the Free Software Foundation, either version 3 of the License, or
   24.11 + * (at your option) any later version.
   24.12 + *
   24.13 + * This program is distributed in the hope that it will be useful,
   24.14 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
   24.15 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
   24.16 + * GNU General Public License for more details.
   24.17 + *
   24.18 + * You should have received a copy of the GNU General Public License
   24.19 + * along with this program. If not, see <http://www.gnu.org/licenses/>.
   24.20 + */
   24.21 +package cz.frantovo.alt2xml.cli;
   24.22 +
   24.23 +import javax.xml.stream.XMLStreamException;
   24.24 +import javax.xml.stream.XMLStreamWriter;
   24.25 +import org.xml.sax.Attributes;
   24.26 +import org.xml.sax.SAXException;
   24.27 +import org.xml.sax.helpers.DefaultHandler;
   24.28 +
   24.29 +/**
   24.30 + * Slouží k převodu právě parsovaného XML zpět na XML.
   24.31 + * Určen pro testování a ladění a pro použití s neobvyklými „XML“ parsery,
   24.32 + * které nečtou XML ale jiný jazyk (např. JSON, INI atd.), ale používají stejné rozhraní (SAX).
   24.33 + * 
   24.34 + * TODO: další typy uzlů a jmenné prostory.
   24.35 + * @author fiki
   24.36 + */
   24.37 +public class EchoContentHandler extends DefaultHandler {
   24.38 +
   24.39 +	private XMLStreamWriter w;
   24.40 +
   24.41 +	/**
   24.42 +	 * @param writer kam se bude vypisovat XML.
   24.43 +	 */
   24.44 +	public EchoContentHandler(XMLStreamWriter writer) {
   24.45 +		w = writer;
   24.46 +	}
   24.47 +
   24.48 +	@Override
   24.49 +	public void startDocument() throws SAXException {
   24.50 +		try {
   24.51 +			w.writeStartDocument();
   24.52 +		} catch (XMLStreamException e) {
   24.53 +			throw new SAXException(e);
   24.54 +		}
   24.55 +	}
   24.56 +
   24.57 +	@Override
   24.58 +	public void endDocument() throws SAXException {
   24.59 +		try {
   24.60 +			w.writeEndDocument();
   24.61 +			w.close();
   24.62 +		} catch (XMLStreamException e) {
   24.63 +			throw new SAXException(e);
   24.64 +		}
   24.65 +	}
   24.66 +
   24.67 +	@Override
   24.68 +	public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
   24.69 +		try {
   24.70 +			w.writeStartElement(qName);
   24.71 +
   24.72 +			if (attributes != null) {
   24.73 +				for (int i = 0; i < attributes.getLength(); i++) {
   24.74 +					w.writeAttribute(attributes.getQName(i), attributes.getValue(i));
   24.75 +				}
   24.76 +			}
   24.77 +
   24.78 +			w.flush();
   24.79 +		} catch (XMLStreamException e) {
   24.80 +			throw new SAXException(e);
   24.81 +		}
   24.82 +	}
   24.83 +
   24.84 +	@Override
   24.85 +	public void endElement(String uri, String localName, String qName) throws SAXException {
   24.86 +		try {
   24.87 +			w.writeEndElement();
   24.88 +			w.flush();
   24.89 +		} catch (XMLStreamException e) {
   24.90 +			throw new SAXException(e);
   24.91 +		}
   24.92 +	}
   24.93 +
   24.94 +	@Override
   24.95 +	public void characters(char[] ch, int start, int length) throws SAXException {
   24.96 +		try {
   24.97 +			w.writeCharacters(ch, start, length);
   24.98 +			w.flush();
   24.99 +		} catch (XMLStreamException e) {
  24.100 +			throw new SAXException(e);
  24.101 +		}
  24.102 +	}
  24.103 +}
    25.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    25.2 +++ b/java/alt2xml-lib/src/cz/frantovo/alt2xml/ParserFactory.java	Sat Jun 07 10:49:42 2014 +0200
    25.3 @@ -0,0 +1,112 @@
    25.4 +/**
    25.5 + * Alt2XML
    25.6 + * Copyright © 2014 František Kučera (frantovo.cz)
    25.7 + *
    25.8 + * This program is free software: you can redistribute it and/or modify
    25.9 + * it under the terms of the GNU General Public License as published by
   25.10 + * the Free Software Foundation, either version 3 of the License, or
   25.11 + * (at your option) any later version.
   25.12 + *
   25.13 + * This program is distributed in the hope that it will be useful,
   25.14 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
   25.15 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
   25.16 + * GNU General Public License for more details.
   25.17 + *
   25.18 + * You should have received a copy of the GNU General Public License
   25.19 + * along with this program. If not, see <http://www.gnu.org/licenses/>.
   25.20 + */
   25.21 +package cz.frantovo.alt2xml;
   25.22 +
   25.23 +import java.util.Deque;
   25.24 +import java.util.LinkedList;
   25.25 +import java.util.ServiceLoader;
   25.26 +import javax.xml.parsers.ParserConfigurationException;
   25.27 +import javax.xml.parsers.SAXParser;
   25.28 +import javax.xml.parsers.SAXParserFactory;
   25.29 +import org.xml.sax.Parser;
   25.30 +import org.xml.sax.SAXException;
   25.31 +import org.xml.sax.SAXNotRecognizedException;
   25.32 +import org.xml.sax.SAXNotSupportedException;
   25.33 +import org.xml.sax.XMLReader;
   25.34 +
   25.35 +/**
   25.36 + *
   25.37 + * @author fiki
   25.38 + */
   25.39 +public class ParserFactory extends SAXParserFactory implements ReaderFinder {
   25.40 +
   25.41 +	private final Deque<Alt2XmlReaderFactory> readerFactories = new LinkedList();
   25.42 +
   25.43 +	public ParserFactory() {
   25.44 +		super();
   25.45 +		for (Alt2XmlReaderFactory f : ServiceLoader.load(Alt2XmlReaderFactory.class)) {
   25.46 +			readerFactories.add(f);
   25.47 +		}
   25.48 +
   25.49 +	}
   25.50 +
   25.51 +	@Override
   25.52 +	public XMLReader findReader(String systemId) throws SAXException {
   25.53 +		for (Alt2XmlReaderFactory f : readerFactories) {
   25.54 +			if (f.canRead(systemId)) {
   25.55 +				return f.getReader();
   25.56 +			}
   25.57 +		}
   25.58 +		throw new SAXException("Iterated over " + readerFactories.size() + " and was unable to find XMLReader for SystemId: " + systemId);
   25.59 +	}
   25.60 +
   25.61 +	@Override
   25.62 +	public SAXParser newSAXParser() throws ParserConfigurationException, SAXException {
   25.63 +		return new AltSAXParser(new SuperReader(this));
   25.64 +	}
   25.65 +
   25.66 +	@Override
   25.67 +	public void setFeature(String name, boolean value) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException {
   25.68 +		throw new SAXNotSupportedException("Zatím není podporováno.");
   25.69 +	}
   25.70 +
   25.71 +	@Override
   25.72 +	public boolean getFeature(String name) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException {
   25.73 +		throw new SAXNotSupportedException("Zatím není podporováno.");
   25.74 +	}
   25.75 +
   25.76 +	private static class AltSAXParser extends SAXParser {
   25.77 +
   25.78 +		private XMLReader xmlReader;
   25.79 +
   25.80 +		public AltSAXParser(XMLReader xmlReader) {
   25.81 +			this.xmlReader = xmlReader;
   25.82 +		}
   25.83 +
   25.84 +		@Override
   25.85 +		@Deprecated
   25.86 +		public Parser getParser() throws SAXException {
   25.87 +			throw new SAXException("Není podporováno.");
   25.88 +		}
   25.89 +
   25.90 +		@Override
   25.91 +		public XMLReader getXMLReader() throws SAXException {
   25.92 +			return xmlReader;
   25.93 +		}
   25.94 +
   25.95 +		@Override
   25.96 +		public boolean isNamespaceAware() {
   25.97 +			return true;
   25.98 +		}
   25.99 +
  25.100 +		@Override
  25.101 +		public boolean isValidating() {
  25.102 +			return false;
  25.103 +		}
  25.104 +
  25.105 +		@Override
  25.106 +		public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException {
  25.107 +			xmlReader.setProperty(name, value);
  25.108 +		}
  25.109 +
  25.110 +		@Override
  25.111 +		public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException {
  25.112 +			return xmlReader.getProperty(name);
  25.113 +		}
  25.114 +	}
  25.115 +}
    26.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    26.2 +++ b/java/alt2xml-lib/src/cz/frantovo/alt2xml/ReaderFinder.java	Sat Jun 07 10:49:42 2014 +0200
    26.3 @@ -0,0 +1,20 @@
    26.4 +package cz.frantovo.alt2xml;
    26.5 +
    26.6 +import org.xml.sax.SAXException;
    26.7 +import org.xml.sax.XMLReader;
    26.8 +
    26.9 +/**
   26.10 + *
   26.11 + * @author Ing. František Kučera (frantovo.cz)
   26.12 + */
   26.13 +public interface ReaderFinder {
   26.14 +
   26.15 +	/**
   26.16 +	 *
   26.17 +	 * @param systemId systemId of the document which should be parsed
   26.18 +	 * @return XMLReader appropriate for this document
   26.19 +	 * @throws org.xml.sax.SAXException if we have no reader for given systemId
   26.20 +	 */
   26.21 +	public XMLReader findReader(String systemId) throws SAXException;
   26.22 +
   26.23 +}
    27.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    27.2 +++ b/java/alt2xml-lib/src/cz/frantovo/alt2xml/SuperReader.java	Sat Jun 07 10:49:42 2014 +0200
    27.3 @@ -0,0 +1,139 @@
    27.4 +/**
    27.5 + * Alt2XML
    27.6 + * Copyright © 2014 František Kučera (frantovo.cz)
    27.7 + *
    27.8 + * This program is free software: you can redistribute it and/or modify
    27.9 + * it under the terms of the GNU General Public License as published by
   27.10 + * the Free Software Foundation, either version 3 of the License, or
   27.11 + * (at your option) any later version.
   27.12 + *
   27.13 + * This program is distributed in the hope that it will be useful,
   27.14 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
   27.15 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
   27.16 + * GNU General Public License for more details.
   27.17 + *
   27.18 + * You should have received a copy of the GNU General Public License
   27.19 + * along with this program. If not, see <http://www.gnu.org/licenses/>.
   27.20 + */
   27.21 +package cz.frantovo.alt2xml;
   27.22 +
   27.23 +import java.io.IOException;
   27.24 +import java.io.InputStreamReader;
   27.25 +import java.util.HashMap;
   27.26 +import java.util.Map;
   27.27 +import org.xml.sax.ContentHandler;
   27.28 +import org.xml.sax.DTDHandler;
   27.29 +import org.xml.sax.EntityResolver;
   27.30 +import org.xml.sax.ErrorHandler;
   27.31 +import org.xml.sax.InputSource;
   27.32 +import org.xml.sax.SAXException;
   27.33 +import org.xml.sax.SAXNotRecognizedException;
   27.34 +import org.xml.sax.SAXNotSupportedException;
   27.35 +import org.xml.sax.XMLReader;
   27.36 +
   27.37 +/**
   27.38 + *
   27.39 + * @author fiki
   27.40 + */
   27.41 +public class SuperReader implements XMLReader {
   27.42 +
   27.43 +	private ContentHandler contentHandler;
   27.44 +	private ErrorHandler errorHandler;
   27.45 +	private DTDHandler dtdHandler;
   27.46 +	private EntityResolver entityResolver;
   27.47 +	private Map<String, Object> konfigurace = new HashMap<>();
   27.48 +	private final ReaderFinder readerFinder;
   27.49 +
   27.50 +	public SuperReader(ReaderFinder readerFinder) {
   27.51 +		this.readerFinder = readerFinder;
   27.52 +	}
   27.53 +
   27.54 +	@Override
   27.55 +	public void parse(InputSource input) throws IOException, SAXException {
   27.56 +		/**
   27.57 +		 * TODO: rozpornat formát vstupu a podle toho delegovat
   27.58 +		 */
   27.59 +		//JSONParser p = new JSONParser();
   27.60 +		InputStreamReader vstup = new InputStreamReader(input.getByteStream());
   27.61 +		//JsonSimpleContentHandler handler = new JsonSimpleContentHandler(contentHandler);
   27.62 +
   27.63 +		/*
   27.64 +		 try {
   27.65 +		 p.parse(vstup, handler);
   27.66 +		 } catch (ParseException e) {
   27.67 +		 throw new SAXException("Chyba při načítání JSONu", e);
   27.68 +		 }
   27.69 +		 */
   27.70 +	}
   27.71 +
   27.72 +	@Override
   27.73 +	public void parse(String systemId) throws IOException, SAXException {
   27.74 +		parse(new InputSource(systemId));
   27.75 +	}
   27.76 +
   27.77 +	@Override
   27.78 +	public boolean getFeature(String name) throws SAXNotRecognizedException, SAXNotSupportedException {
   27.79 +		/**
   27.80 +		 * TODO:
   27.81 +		 * All XMLReaders are required to recognize
   27.82 +		 * the http://xml.org/sax/features/namespaces
   27.83 +		 * and the http://xml.org/sax/features/namespace-prefixes feature names.
   27.84 +		 */
   27.85 +		throw new SAXNotSupportedException("Zatím není podporováno.");
   27.86 +	}
   27.87 +
   27.88 +	@Override
   27.89 +	public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException {
   27.90 +		throw new SAXNotSupportedException("Zatím není podporováno.");
   27.91 +	}
   27.92 +
   27.93 +	@Override
   27.94 +	public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException {
   27.95 +		return konfigurace.get(name);
   27.96 +	}
   27.97 +
   27.98 +	@Override
   27.99 +	public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException {
  27.100 +		konfigurace.put(name, value);
  27.101 +	}
  27.102 +
  27.103 +	@Override
  27.104 +	public void setEntityResolver(EntityResolver entityResolver) {
  27.105 +		this.entityResolver = entityResolver;
  27.106 +	}
  27.107 +
  27.108 +	@Override
  27.109 +	public EntityResolver getEntityResolver() {
  27.110 +		return entityResolver;
  27.111 +	}
  27.112 +
  27.113 +	@Override
  27.114 +	public void setDTDHandler(DTDHandler dtdHandler) {
  27.115 +		this.dtdHandler = dtdHandler;
  27.116 +	}
  27.117 +
  27.118 +	@Override
  27.119 +	public DTDHandler getDTDHandler() {
  27.120 +		return dtdHandler;
  27.121 +	}
  27.122 +
  27.123 +	@Override
  27.124 +	public void setContentHandler(ContentHandler contentHandler) {
  27.125 +		this.contentHandler = contentHandler;
  27.126 +	}
  27.127 +
  27.128 +	@Override
  27.129 +	public ContentHandler getContentHandler() {
  27.130 +		return contentHandler;
  27.131 +	}
  27.132 +
  27.133 +	@Override
  27.134 +	public void setErrorHandler(ErrorHandler errorHandler) {
  27.135 +		this.errorHandler = errorHandler;
  27.136 +	}
  27.137 +
  27.138 +	@Override
  27.139 +	public ErrorHandler getErrorHandler() {
  27.140 +		return errorHandler;
  27.141 +	}
  27.142 +}