1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/java/alt2xml-in-ini/build.xml Sat Sep 06 17:19:21 2014 +0200
1.3 @@ -0,0 +1,73 @@
1.4 +<?xml version="1.0" encoding="UTF-8"?>
1.5 +<!-- You may freely edit this file. See commented blocks below for -->
1.6 +<!-- some examples of how to customize the build. -->
1.7 +<!-- (If you delete it and reopen the project it will be recreated.) -->
1.8 +<!-- By default, only the Clean and Build commands use this build script. -->
1.9 +<!-- Commands such as Run, Debug, and Test only use this build script if -->
1.10 +<!-- the Compile on Save feature is turned off for the project. -->
1.11 +<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
1.12 +<!-- in the project's Project Properties dialog box.-->
1.13 +<project name="alt2xml-in-ini" default="default" basedir=".">
1.14 + <description>Builds, tests, and runs the project alt2xml-in-ini.</description>
1.15 + <import file="nbproject/build-impl.xml"/>
1.16 + <!--
1.17 +
1.18 + There exist several targets which are by default empty and which can be
1.19 + used for execution of your tasks. These targets are usually executed
1.20 + before and after some main targets. They are:
1.21 +
1.22 + -pre-init: called before initialization of project properties
1.23 + -post-init: called after initialization of project properties
1.24 + -pre-compile: called before javac compilation
1.25 + -post-compile: called after javac compilation
1.26 + -pre-compile-single: called before javac compilation of single file
1.27 + -post-compile-single: called after javac compilation of single file
1.28 + -pre-compile-test: called before javac compilation of JUnit tests
1.29 + -post-compile-test: called after javac compilation of JUnit tests
1.30 + -pre-compile-test-single: called before javac compilation of single JUnit test
1.31 + -post-compile-test-single: called after javac compilation of single JUunit test
1.32 + -pre-jar: called before JAR building
1.33 + -post-jar: called after JAR building
1.34 + -post-clean: called after cleaning build products
1.35 +
1.36 + (Targets beginning with '-' are not intended to be called on their own.)
1.37 +
1.38 + Example of inserting an obfuscator after compilation could look like this:
1.39 +
1.40 + <target name="-post-compile">
1.41 + <obfuscate>
1.42 + <fileset dir="${build.classes.dir}"/>
1.43 + </obfuscate>
1.44 + </target>
1.45 +
1.46 + For list of available properties check the imported
1.47 + nbproject/build-impl.xml file.
1.48 +
1.49 +
1.50 + Another way to customize the build is by overriding existing main targets.
1.51 + The targets of interest are:
1.52 +
1.53 + -init-macrodef-javac: defines macro for javac compilation
1.54 + -init-macrodef-junit: defines macro for junit execution
1.55 + -init-macrodef-debug: defines macro for class debugging
1.56 + -init-macrodef-java: defines macro for class execution
1.57 + -do-jar: JAR building
1.58 + run: execution of project
1.59 + -javadoc-build: Javadoc generation
1.60 + test-report: JUnit report generation
1.61 +
1.62 + An example of overriding the target for project execution could look like this:
1.63 +
1.64 + <target name="run" depends="alt2xml-in-ini-impl.jar">
1.65 + <exec dir="bin" executable="launcher.exe">
1.66 + <arg file="${dist.jar}"/>
1.67 + </exec>
1.68 + </target>
1.69 +
1.70 + Notice that the overridden target depends on the jar target and not only on
1.71 + the compile target as the regular run target does. Again, for a list of available
1.72 + properties which you can use, check the target you are overriding in the
1.73 + nbproject/build-impl.xml file.
1.74 +
1.75 + -->
1.76 +</project>
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2.2 +++ b/java/alt2xml-in-ini/config/META-INF/services/cz.frantovo.alt2xml.Alt2XmlReaderFactory Sat Sep 06 17:19:21 2014 +0200
2.3 @@ -0,0 +1,1 @@
2.4 +cz.frantovo.alt2xml.in.ini.ReaderFactory
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
3.2 +++ b/java/alt2xml-in-ini/nbproject/build-impl.xml Sat Sep 06 17:19:21 2014 +0200
3.3 @@ -0,0 +1,1438 @@
3.4 +<?xml version="1.0" encoding="UTF-8"?>
3.5 +<!--
3.6 +*** GENERATED FROM project.xml - DO NOT EDIT ***
3.7 +*** EDIT ../build.xml INSTEAD ***
3.8 +
3.9 +For the purpose of easier reading the script
3.10 +is divided into following sections:
3.11 +
3.12 + - initialization
3.13 + - compilation
3.14 + - jar
3.15 + - execution
3.16 + - debugging
3.17 + - javadoc
3.18 + - test compilation
3.19 + - test execution
3.20 + - test debugging
3.21 + - applet
3.22 + - cleanup
3.23 +
3.24 + -->
3.25 +<project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="alt2xml-in-ini-impl">
3.26 + <fail message="Please build using Ant 1.8.0 or higher.">
3.27 + <condition>
3.28 + <not>
3.29 + <antversion atleast="1.8.0"/>
3.30 + </not>
3.31 + </condition>
3.32 + </fail>
3.33 + <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
3.34 + <!--
3.35 + ======================
3.36 + INITIALIZATION SECTION
3.37 + ======================
3.38 + -->
3.39 + <target name="-pre-init">
3.40 + <!-- Empty placeholder for easier customization. -->
3.41 + <!-- You can override this target in the ../build.xml file. -->
3.42 + </target>
3.43 + <target depends="-pre-init" name="-init-private">
3.44 + <property file="nbproject/private/config.properties"/>
3.45 + <property file="nbproject/private/configs/${config}.properties"/>
3.46 + <property file="nbproject/private/private.properties"/>
3.47 + </target>
3.48 + <target depends="-pre-init,-init-private" name="-init-user">
3.49 + <property file="${user.properties.file}"/>
3.50 + <!-- The two properties below are usually overridden -->
3.51 + <!-- by the active platform. Just a fallback. -->
3.52 + <property name="default.javac.source" value="1.4"/>
3.53 + <property name="default.javac.target" value="1.4"/>
3.54 + </target>
3.55 + <target depends="-pre-init,-init-private,-init-user" name="-init-project">
3.56 + <property file="nbproject/configs/${config}.properties"/>
3.57 + <property file="nbproject/project.properties"/>
3.58 + </target>
3.59 + <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
3.60 + <property name="platform.java" value="${java.home}/bin/java"/>
3.61 + <available file="${manifest.file}" property="manifest.available"/>
3.62 + <condition property="splashscreen.available">
3.63 + <and>
3.64 + <not>
3.65 + <equals arg1="${application.splash}" arg2="" trim="true"/>
3.66 + </not>
3.67 + <available file="${application.splash}"/>
3.68 + </and>
3.69 + </condition>
3.70 + <condition property="main.class.available">
3.71 + <and>
3.72 + <isset property="main.class"/>
3.73 + <not>
3.74 + <equals arg1="${main.class}" arg2="" trim="true"/>
3.75 + </not>
3.76 + </and>
3.77 + </condition>
3.78 + <condition property="profile.available">
3.79 + <and>
3.80 + <isset property="javac.profile"/>
3.81 + <length length="0" string="${javac.profile}" when="greater"/>
3.82 + <matches pattern="1\.[89](\..*)?" string="${javac.source}"/>
3.83 + </and>
3.84 + </condition>
3.85 + <condition property="do.archive">
3.86 + <or>
3.87 + <not>
3.88 + <istrue value="${jar.archive.disabled}"/>
3.89 + </not>
3.90 + <istrue value="${not.archive.disabled}"/>
3.91 + </or>
3.92 + </condition>
3.93 + <condition property="do.mkdist">
3.94 + <and>
3.95 + <isset property="do.archive"/>
3.96 + <isset property="libs.CopyLibs.classpath"/>
3.97 + <not>
3.98 + <istrue value="${mkdist.disabled}"/>
3.99 + </not>
3.100 + </and>
3.101 + </condition>
3.102 + <condition property="do.archive+manifest.available">
3.103 + <and>
3.104 + <isset property="manifest.available"/>
3.105 + <istrue value="${do.archive}"/>
3.106 + </and>
3.107 + </condition>
3.108 + <condition property="do.archive+main.class.available">
3.109 + <and>
3.110 + <isset property="main.class.available"/>
3.111 + <istrue value="${do.archive}"/>
3.112 + </and>
3.113 + </condition>
3.114 + <condition property="do.archive+splashscreen.available">
3.115 + <and>
3.116 + <isset property="splashscreen.available"/>
3.117 + <istrue value="${do.archive}"/>
3.118 + </and>
3.119 + </condition>
3.120 + <condition property="do.archive+profile.available">
3.121 + <and>
3.122 + <isset property="profile.available"/>
3.123 + <istrue value="${do.archive}"/>
3.124 + </and>
3.125 + </condition>
3.126 + <condition property="have.tests">
3.127 + <or>
3.128 + <available file="${test.src.dir}"/>
3.129 + </or>
3.130 + </condition>
3.131 + <condition property="have.sources">
3.132 + <or>
3.133 + <available file="${src.dir}"/>
3.134 + <available file="${src.config.dir}"/>
3.135 + </or>
3.136 + </condition>
3.137 + <condition property="netbeans.home+have.tests">
3.138 + <and>
3.139 + <isset property="netbeans.home"/>
3.140 + <isset property="have.tests"/>
3.141 + </and>
3.142 + </condition>
3.143 + <condition property="no.javadoc.preview">
3.144 + <and>
3.145 + <isset property="javadoc.preview"/>
3.146 + <isfalse value="${javadoc.preview}"/>
3.147 + </and>
3.148 + </condition>
3.149 + <property name="run.jvmargs" value=""/>
3.150 + <property name="run.jvmargs.ide" value=""/>
3.151 + <property name="javac.compilerargs" value=""/>
3.152 + <property name="work.dir" value="${basedir}"/>
3.153 + <condition property="no.deps">
3.154 + <and>
3.155 + <istrue value="${no.dependencies}"/>
3.156 + </and>
3.157 + </condition>
3.158 + <property name="javac.debug" value="true"/>
3.159 + <property name="javadoc.preview" value="true"/>
3.160 + <property name="application.args" value=""/>
3.161 + <property name="source.encoding" value="${file.encoding}"/>
3.162 + <property name="runtime.encoding" value="${source.encoding}"/>
3.163 + <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
3.164 + <and>
3.165 + <isset property="javadoc.encoding"/>
3.166 + <not>
3.167 + <equals arg1="${javadoc.encoding}" arg2=""/>
3.168 + </not>
3.169 + </and>
3.170 + </condition>
3.171 + <property name="javadoc.encoding.used" value="${source.encoding}"/>
3.172 + <property name="includes" value="**"/>
3.173 + <property name="excludes" value=""/>
3.174 + <property name="do.depend" value="false"/>
3.175 + <condition property="do.depend.true">
3.176 + <istrue value="${do.depend}"/>
3.177 + </condition>
3.178 + <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
3.179 + <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
3.180 + <and>
3.181 + <isset property="endorsed.classpath"/>
3.182 + <not>
3.183 + <equals arg1="${endorsed.classpath}" arg2="" trim="true"/>
3.184 + </not>
3.185 + </and>
3.186 + </condition>
3.187 + <condition else="" property="javac.profile.cmd.line.arg" value="-profile ${javac.profile}">
3.188 + <isset property="profile.available"/>
3.189 + </condition>
3.190 + <condition else="false" property="jdkBug6558476">
3.191 + <and>
3.192 + <matches pattern="1\.[56]" string="${java.specification.version}"/>
3.193 + <not>
3.194 + <os family="unix"/>
3.195 + </not>
3.196 + </and>
3.197 + </condition>
3.198 + <property name="javac.fork" value="${jdkBug6558476}"/>
3.199 + <property name="jar.index" value="false"/>
3.200 + <property name="jar.index.metainf" value="${jar.index}"/>
3.201 + <property name="copylibs.rebase" value="true"/>
3.202 + <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
3.203 + <condition property="junit.available">
3.204 + <or>
3.205 + <available classname="org.junit.Test" classpath="${run.test.classpath}"/>
3.206 + <available classname="junit.framework.Test" classpath="${run.test.classpath}"/>
3.207 + </or>
3.208 + </condition>
3.209 + <condition property="testng.available">
3.210 + <available classname="org.testng.annotations.Test" classpath="${run.test.classpath}"/>
3.211 + </condition>
3.212 + <condition property="junit+testng.available">
3.213 + <and>
3.214 + <istrue value="${junit.available}"/>
3.215 + <istrue value="${testng.available}"/>
3.216 + </and>
3.217 + </condition>
3.218 + <condition else="testng" property="testng.mode" value="mixed">
3.219 + <istrue value="${junit+testng.available}"/>
3.220 + </condition>
3.221 + <condition else="" property="testng.debug.mode" value="-mixed">
3.222 + <istrue value="${junit+testng.available}"/>
3.223 + </condition>
3.224 + </target>
3.225 + <target name="-post-init">
3.226 + <!-- Empty placeholder for easier customization. -->
3.227 + <!-- You can override this target in the ../build.xml file. -->
3.228 + </target>
3.229 + <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
3.230 + <fail unless="src.dir">Must set src.dir</fail>
3.231 + <fail unless="src.config.dir">Must set src.config.dir</fail>
3.232 + <fail unless="test.src.dir">Must set test.src.dir</fail>
3.233 + <fail unless="build.dir">Must set build.dir</fail>
3.234 + <fail unless="dist.dir">Must set dist.dir</fail>
3.235 + <fail unless="build.classes.dir">Must set build.classes.dir</fail>
3.236 + <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
3.237 + <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
3.238 + <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
3.239 + <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
3.240 + <fail unless="dist.jar">Must set dist.jar</fail>
3.241 + </target>
3.242 + <target name="-init-macrodef-property">
3.243 + <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
3.244 + <attribute name="name"/>
3.245 + <attribute name="value"/>
3.246 + <sequential>
3.247 + <property name="@{name}" value="${@{value}}"/>
3.248 + </sequential>
3.249 + </macrodef>
3.250 + </target>
3.251 + <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
3.252 + <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
3.253 + <attribute default="${src.dir}:${src.config.dir}" name="srcdir"/>
3.254 + <attribute default="${build.classes.dir}" name="destdir"/>
3.255 + <attribute default="${javac.classpath}" name="classpath"/>
3.256 + <attribute default="${javac.processorpath}" name="processorpath"/>
3.257 + <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
3.258 + <attribute default="${includes}" name="includes"/>
3.259 + <attribute default="${excludes}" name="excludes"/>
3.260 + <attribute default="${javac.debug}" name="debug"/>
3.261 + <attribute default="${empty.dir}" name="sourcepath"/>
3.262 + <attribute default="${empty.dir}" name="gensrcdir"/>
3.263 + <element name="customize" optional="true"/>
3.264 + <sequential>
3.265 + <property location="${build.dir}/empty" name="empty.dir"/>
3.266 + <mkdir dir="${empty.dir}"/>
3.267 + <mkdir dir="@{apgeneratedsrcdir}"/>
3.268 + <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
3.269 + <src>
3.270 + <dirset dir="@{gensrcdir}" erroronmissingdir="false">
3.271 + <include name="*"/>
3.272 + </dirset>
3.273 + </src>
3.274 + <classpath>
3.275 + <path path="@{classpath}"/>
3.276 + </classpath>
3.277 + <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
3.278 + <compilerarg line="${javac.profile.cmd.line.arg}"/>
3.279 + <compilerarg line="${javac.compilerargs}"/>
3.280 + <compilerarg value="-processorpath"/>
3.281 + <compilerarg path="@{processorpath}:${empty.dir}"/>
3.282 + <compilerarg line="${ap.processors.internal}"/>
3.283 + <compilerarg line="${annotation.processing.processor.options}"/>
3.284 + <compilerarg value="-s"/>
3.285 + <compilerarg path="@{apgeneratedsrcdir}"/>
3.286 + <compilerarg line="${ap.proc.none.internal}"/>
3.287 + <customize/>
3.288 + </javac>
3.289 + </sequential>
3.290 + </macrodef>
3.291 + </target>
3.292 + <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
3.293 + <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
3.294 + <attribute default="${src.dir}:${src.config.dir}" name="srcdir"/>
3.295 + <attribute default="${build.classes.dir}" name="destdir"/>
3.296 + <attribute default="${javac.classpath}" name="classpath"/>
3.297 + <attribute default="${javac.processorpath}" name="processorpath"/>
3.298 + <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
3.299 + <attribute default="${includes}" name="includes"/>
3.300 + <attribute default="${excludes}" name="excludes"/>
3.301 + <attribute default="${javac.debug}" name="debug"/>
3.302 + <attribute default="${empty.dir}" name="sourcepath"/>
3.303 + <attribute default="${empty.dir}" name="gensrcdir"/>
3.304 + <element name="customize" optional="true"/>
3.305 + <sequential>
3.306 + <property location="${build.dir}/empty" name="empty.dir"/>
3.307 + <mkdir dir="${empty.dir}"/>
3.308 + <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
3.309 + <src>
3.310 + <dirset dir="@{gensrcdir}" erroronmissingdir="false">
3.311 + <include name="*"/>
3.312 + </dirset>
3.313 + </src>
3.314 + <classpath>
3.315 + <path path="@{classpath}"/>
3.316 + </classpath>
3.317 + <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
3.318 + <compilerarg line="${javac.profile.cmd.line.arg}"/>
3.319 + <compilerarg line="${javac.compilerargs}"/>
3.320 + <customize/>
3.321 + </javac>
3.322 + </sequential>
3.323 + </macrodef>
3.324 + </target>
3.325 + <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
3.326 + <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
3.327 + <attribute default="${src.dir}:${src.config.dir}" name="srcdir"/>
3.328 + <attribute default="${build.classes.dir}" name="destdir"/>
3.329 + <attribute default="${javac.classpath}" name="classpath"/>
3.330 + <sequential>
3.331 + <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
3.332 + <classpath>
3.333 + <path path="@{classpath}"/>
3.334 + </classpath>
3.335 + </depend>
3.336 + </sequential>
3.337 + </macrodef>
3.338 + <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
3.339 + <attribute default="${build.classes.dir}" name="destdir"/>
3.340 + <sequential>
3.341 + <fail unless="javac.includes">Must set javac.includes</fail>
3.342 + <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
3.343 + <path>
3.344 + <filelist dir="@{destdir}" files="${javac.includes}"/>
3.345 + </path>
3.346 + <globmapper from="*.java" to="*.class"/>
3.347 + </pathconvert>
3.348 + <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
3.349 + <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
3.350 + <delete>
3.351 + <files includesfile="${javac.includesfile.binary}"/>
3.352 + </delete>
3.353 + <delete>
3.354 + <fileset file="${javac.includesfile.binary}"/>
3.355 + </delete>
3.356 + </sequential>
3.357 + </macrodef>
3.358 + </target>
3.359 + <target if="${junit.available}" name="-init-macrodef-junit-init">
3.360 + <condition else="false" property="nb.junit.batch" value="true">
3.361 + <and>
3.362 + <istrue value="${junit.available}"/>
3.363 + <not>
3.364 + <isset property="test.method"/>
3.365 + </not>
3.366 + </and>
3.367 + </condition>
3.368 + <condition else="false" property="nb.junit.single" value="true">
3.369 + <and>
3.370 + <istrue value="${junit.available}"/>
3.371 + <isset property="test.method"/>
3.372 + </and>
3.373 + </condition>
3.374 + </target>
3.375 + <target name="-init-test-properties">
3.376 + <property name="test.binaryincludes" value="<nothing>"/>
3.377 + <property name="test.binarytestincludes" value=""/>
3.378 + <property name="test.binaryexcludes" value=""/>
3.379 + </target>
3.380 + <target if="${nb.junit.single}" name="-init-macrodef-junit-single" unless="${nb.junit.batch}">
3.381 + <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
3.382 + <attribute default="${includes}" name="includes"/>
3.383 + <attribute default="${excludes}" name="excludes"/>
3.384 + <attribute default="**" name="testincludes"/>
3.385 + <attribute default="" name="testmethods"/>
3.386 + <element name="customize" optional="true"/>
3.387 + <sequential>
3.388 + <property name="junit.forkmode" value="perTest"/>
3.389 + <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
3.390 + <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
3.391 + <syspropertyset>
3.392 + <propertyref prefix="test-sys-prop."/>
3.393 + <mapper from="test-sys-prop.*" to="*" type="glob"/>
3.394 + </syspropertyset>
3.395 + <formatter type="brief" usefile="false"/>
3.396 + <formatter type="xml"/>
3.397 + <jvmarg value="-ea"/>
3.398 + <customize/>
3.399 + </junit>
3.400 + </sequential>
3.401 + </macrodef>
3.402 + </target>
3.403 + <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-batch" unless="${nb.junit.single}">
3.404 + <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
3.405 + <attribute default="${includes}" name="includes"/>
3.406 + <attribute default="${excludes}" name="excludes"/>
3.407 + <attribute default="**" name="testincludes"/>
3.408 + <attribute default="" name="testmethods"/>
3.409 + <element name="customize" optional="true"/>
3.410 + <sequential>
3.411 + <property name="junit.forkmode" value="perTest"/>
3.412 + <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
3.413 + <batchtest todir="${build.test.results.dir}">
3.414 + <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
3.415 + <filename name="@{testincludes}"/>
3.416 + </fileset>
3.417 + <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
3.418 + <filename name="${test.binarytestincludes}"/>
3.419 + </fileset>
3.420 + </batchtest>
3.421 + <syspropertyset>
3.422 + <propertyref prefix="test-sys-prop."/>
3.423 + <mapper from="test-sys-prop.*" to="*" type="glob"/>
3.424 + </syspropertyset>
3.425 + <formatter type="brief" usefile="false"/>
3.426 + <formatter type="xml"/>
3.427 + <jvmarg value="-ea"/>
3.428 + <customize/>
3.429 + </junit>
3.430 + </sequential>
3.431 + </macrodef>
3.432 + </target>
3.433 + <target depends="-init-macrodef-junit-init,-init-macrodef-junit-single, -init-macrodef-junit-batch" if="${junit.available}" name="-init-macrodef-junit"/>
3.434 + <target if="${testng.available}" name="-init-macrodef-testng">
3.435 + <macrodef name="testng" uri="http://www.netbeans.org/ns/j2se-project/3">
3.436 + <attribute default="${includes}" name="includes"/>
3.437 + <attribute default="${excludes}" name="excludes"/>
3.438 + <attribute default="**" name="testincludes"/>
3.439 + <attribute default="" name="testmethods"/>
3.440 + <element name="customize" optional="true"/>
3.441 + <sequential>
3.442 + <condition else="" property="testng.methods.arg" value="@{testincludes}.@{testmethods}">
3.443 + <isset property="test.method"/>
3.444 + </condition>
3.445 + <union id="test.set">
3.446 + <fileset dir="${test.src.dir}" excludes="@{excludes},**/*.xml,${excludes}" includes="@{includes}">
3.447 + <filename name="@{testincludes}"/>
3.448 + </fileset>
3.449 + </union>
3.450 + <taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
3.451 + <testng classfilesetref="test.set" failureProperty="tests.failed" listeners="org.testng.reporters.VerboseReporter" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="alt2xml-in-ini" testname="TestNG tests" workingDir="${work.dir}">
3.452 + <xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
3.453 + <propertyset>
3.454 + <propertyref prefix="test-sys-prop."/>
3.455 + <mapper from="test-sys-prop.*" to="*" type="glob"/>
3.456 + </propertyset>
3.457 + <customize/>
3.458 + </testng>
3.459 + </sequential>
3.460 + </macrodef>
3.461 + </target>
3.462 + <target name="-init-macrodef-test-impl">
3.463 + <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
3.464 + <attribute default="${includes}" name="includes"/>
3.465 + <attribute default="${excludes}" name="excludes"/>
3.466 + <attribute default="**" name="testincludes"/>
3.467 + <attribute default="" name="testmethods"/>
3.468 + <element implicit="true" name="customize" optional="true"/>
3.469 + <sequential>
3.470 + <echo>No tests executed.</echo>
3.471 + </sequential>
3.472 + </macrodef>
3.473 + </target>
3.474 + <target depends="-init-macrodef-junit" if="${junit.available}" name="-init-macrodef-junit-impl">
3.475 + <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
3.476 + <attribute default="${includes}" name="includes"/>
3.477 + <attribute default="${excludes}" name="excludes"/>
3.478 + <attribute default="**" name="testincludes"/>
3.479 + <attribute default="" name="testmethods"/>
3.480 + <element implicit="true" name="customize" optional="true"/>
3.481 + <sequential>
3.482 + <j2seproject3:junit excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
3.483 + <customize/>
3.484 + </j2seproject3:junit>
3.485 + </sequential>
3.486 + </macrodef>
3.487 + </target>
3.488 + <target depends="-init-macrodef-testng" if="${testng.available}" name="-init-macrodef-testng-impl">
3.489 + <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
3.490 + <attribute default="${includes}" name="includes"/>
3.491 + <attribute default="${excludes}" name="excludes"/>
3.492 + <attribute default="**" name="testincludes"/>
3.493 + <attribute default="" name="testmethods"/>
3.494 + <element implicit="true" name="customize" optional="true"/>
3.495 + <sequential>
3.496 + <j2seproject3:testng excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
3.497 + <customize/>
3.498 + </j2seproject3:testng>
3.499 + </sequential>
3.500 + </macrodef>
3.501 + </target>
3.502 + <target depends="-init-macrodef-test-impl,-init-macrodef-junit-impl,-init-macrodef-testng-impl" name="-init-macrodef-test">
3.503 + <macrodef name="test" uri="http://www.netbeans.org/ns/j2se-project/3">
3.504 + <attribute default="${includes}" name="includes"/>
3.505 + <attribute default="${excludes}" name="excludes"/>
3.506 + <attribute default="**" name="testincludes"/>
3.507 + <attribute default="" name="testmethods"/>
3.508 + <sequential>
3.509 + <j2seproject3:test-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
3.510 + <customize>
3.511 + <classpath>
3.512 + <path path="${run.test.classpath}"/>
3.513 + </classpath>
3.514 + <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
3.515 + <jvmarg line="${run.jvmargs}"/>
3.516 + <jvmarg line="${run.jvmargs.ide}"/>
3.517 + </customize>
3.518 + </j2seproject3:test-impl>
3.519 + </sequential>
3.520 + </macrodef>
3.521 + </target>
3.522 + <target if="${junit.available}" name="-init-macrodef-junit-debug" unless="${nb.junit.batch}">
3.523 + <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
3.524 + <attribute default="${includes}" name="includes"/>
3.525 + <attribute default="${excludes}" name="excludes"/>
3.526 + <attribute default="**" name="testincludes"/>
3.527 + <attribute default="" name="testmethods"/>
3.528 + <element name="customize" optional="true"/>
3.529 + <sequential>
3.530 + <property name="junit.forkmode" value="perTest"/>
3.531 + <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
3.532 + <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
3.533 + <syspropertyset>
3.534 + <propertyref prefix="test-sys-prop."/>
3.535 + <mapper from="test-sys-prop.*" to="*" type="glob"/>
3.536 + </syspropertyset>
3.537 + <formatter type="brief" usefile="false"/>
3.538 + <formatter type="xml"/>
3.539 + <jvmarg value="-ea"/>
3.540 + <jvmarg line="${debug-args-line}"/>
3.541 + <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
3.542 + <customize/>
3.543 + </junit>
3.544 + </sequential>
3.545 + </macrodef>
3.546 + </target>
3.547 + <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-debug-batch">
3.548 + <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
3.549 + <attribute default="${includes}" name="includes"/>
3.550 + <attribute default="${excludes}" name="excludes"/>
3.551 + <attribute default="**" name="testincludes"/>
3.552 + <attribute default="" name="testmethods"/>
3.553 + <element name="customize" optional="true"/>
3.554 + <sequential>
3.555 + <property name="junit.forkmode" value="perTest"/>
3.556 + <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
3.557 + <batchtest todir="${build.test.results.dir}">
3.558 + <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
3.559 + <filename name="@{testincludes}"/>
3.560 + </fileset>
3.561 + <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
3.562 + <filename name="${test.binarytestincludes}"/>
3.563 + </fileset>
3.564 + </batchtest>
3.565 + <syspropertyset>
3.566 + <propertyref prefix="test-sys-prop."/>
3.567 + <mapper from="test-sys-prop.*" to="*" type="glob"/>
3.568 + </syspropertyset>
3.569 + <formatter type="brief" usefile="false"/>
3.570 + <formatter type="xml"/>
3.571 + <jvmarg value="-ea"/>
3.572 + <jvmarg line="${debug-args-line}"/>
3.573 + <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
3.574 + <customize/>
3.575 + </junit>
3.576 + </sequential>
3.577 + </macrodef>
3.578 + </target>
3.579 + <target depends="-init-macrodef-junit-debug,-init-macrodef-junit-debug-batch" if="${junit.available}" name="-init-macrodef-junit-debug-impl">
3.580 + <macrodef name="test-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
3.581 + <attribute default="${includes}" name="includes"/>
3.582 + <attribute default="${excludes}" name="excludes"/>
3.583 + <attribute default="**" name="testincludes"/>
3.584 + <attribute default="" name="testmethods"/>
3.585 + <element implicit="true" name="customize" optional="true"/>
3.586 + <sequential>
3.587 + <j2seproject3:junit-debug excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
3.588 + <customize/>
3.589 + </j2seproject3:junit-debug>
3.590 + </sequential>
3.591 + </macrodef>
3.592 + </target>
3.593 + <target if="${testng.available}" name="-init-macrodef-testng-debug">
3.594 + <macrodef name="testng-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
3.595 + <attribute default="${main.class}" name="testClass"/>
3.596 + <attribute default="" name="testMethod"/>
3.597 + <element name="customize2" optional="true"/>
3.598 + <sequential>
3.599 + <condition else="-testclass @{testClass}" property="test.class.or.method" value="-methods @{testClass}.@{testMethod}">
3.600 + <isset property="test.method"/>
3.601 + </condition>
3.602 + <condition else="-suitename alt2xml-in-ini -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}">
3.603 + <matches pattern=".*\.xml" string="@{testClass}"/>
3.604 + </condition>
3.605 + <delete dir="${build.test.results.dir}" quiet="true"/>
3.606 + <mkdir dir="${build.test.results.dir}"/>
3.607 + <j2seproject3:debug classname="org.testng.TestNG" classpath="${debug.test.classpath}">
3.608 + <customize>
3.609 + <customize2/>
3.610 + <jvmarg value="-ea"/>
3.611 + <arg line="${testng.debug.mode}"/>
3.612 + <arg line="-d ${build.test.results.dir}"/>
3.613 + <arg line="-listener org.testng.reporters.VerboseReporter"/>
3.614 + <arg line="${testng.cmd.args}"/>
3.615 + </customize>
3.616 + </j2seproject3:debug>
3.617 + </sequential>
3.618 + </macrodef>
3.619 + </target>
3.620 + <target depends="-init-macrodef-testng-debug" if="${testng.available}" name="-init-macrodef-testng-debug-impl">
3.621 + <macrodef name="testng-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
3.622 + <attribute default="${main.class}" name="testClass"/>
3.623 + <attribute default="" name="testMethod"/>
3.624 + <element implicit="true" name="customize2" optional="true"/>
3.625 + <sequential>
3.626 + <j2seproject3:testng-debug testClass="@{testClass}" testMethod="@{testMethod}">
3.627 + <customize2/>
3.628 + </j2seproject3:testng-debug>
3.629 + </sequential>
3.630 + </macrodef>
3.631 + </target>
3.632 + <target depends="-init-macrodef-junit-debug-impl" if="${junit.available}" name="-init-macrodef-test-debug-junit">
3.633 + <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
3.634 + <attribute default="${includes}" name="includes"/>
3.635 + <attribute default="${excludes}" name="excludes"/>
3.636 + <attribute default="**" name="testincludes"/>
3.637 + <attribute default="" name="testmethods"/>
3.638 + <attribute default="${main.class}" name="testClass"/>
3.639 + <attribute default="" name="testMethod"/>
3.640 + <sequential>
3.641 + <j2seproject3:test-debug-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
3.642 + <customize>
3.643 + <classpath>
3.644 + <path path="${run.test.classpath}"/>
3.645 + </classpath>
3.646 + <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
3.647 + <jvmarg line="${run.jvmargs}"/>
3.648 + <jvmarg line="${run.jvmargs.ide}"/>
3.649 + </customize>
3.650 + </j2seproject3:test-debug-impl>
3.651 + </sequential>
3.652 + </macrodef>
3.653 + </target>
3.654 + <target depends="-init-macrodef-testng-debug-impl" if="${testng.available}" name="-init-macrodef-test-debug-testng">
3.655 + <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
3.656 + <attribute default="${includes}" name="includes"/>
3.657 + <attribute default="${excludes}" name="excludes"/>
3.658 + <attribute default="**" name="testincludes"/>
3.659 + <attribute default="" name="testmethods"/>
3.660 + <attribute default="${main.class}" name="testClass"/>
3.661 + <attribute default="" name="testMethod"/>
3.662 + <sequential>
3.663 + <j2seproject3:testng-debug-impl testClass="@{testClass}" testMethod="@{testMethod}">
3.664 + <customize2>
3.665 + <syspropertyset>
3.666 + <propertyref prefix="test-sys-prop."/>
3.667 + <mapper from="test-sys-prop.*" to="*" type="glob"/>
3.668 + </syspropertyset>
3.669 + </customize2>
3.670 + </j2seproject3:testng-debug-impl>
3.671 + </sequential>
3.672 + </macrodef>
3.673 + </target>
3.674 + <target depends="-init-macrodef-test-debug-junit,-init-macrodef-test-debug-testng" name="-init-macrodef-test-debug"/>
3.675 + <!--
3.676 + pre NB7.2 profiling section; consider it deprecated
3.677 + -->
3.678 + <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" if="profiler.info.jvmargs.agent" name="profile-init"/>
3.679 + <target if="profiler.info.jvmargs.agent" name="-profile-pre-init">
3.680 + <!-- Empty placeholder for easier customization. -->
3.681 + <!-- You can override this target in the ../build.xml file. -->
3.682 + </target>
3.683 + <target if="profiler.info.jvmargs.agent" name="-profile-post-init">
3.684 + <!-- Empty placeholder for easier customization. -->
3.685 + <!-- You can override this target in the ../build.xml file. -->
3.686 + </target>
3.687 + <target if="profiler.info.jvmargs.agent" name="-profile-init-macrodef-profile">
3.688 + <macrodef name="resolve">
3.689 + <attribute name="name"/>
3.690 + <attribute name="value"/>
3.691 + <sequential>
3.692 + <property name="@{name}" value="${env.@{value}}"/>
3.693 + </sequential>
3.694 + </macrodef>
3.695 + <macrodef name="profile">
3.696 + <attribute default="${main.class}" name="classname"/>
3.697 + <element name="customize" optional="true"/>
3.698 + <sequential>
3.699 + <property environment="env"/>
3.700 + <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
3.701 + <java classname="@{classname}" dir="${profiler.info.dir}" fork="true" jvm="${profiler.info.jvm}">
3.702 + <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
3.703 + <jvmarg value="${profiler.info.jvmargs.agent}"/>
3.704 + <jvmarg line="${profiler.info.jvmargs}"/>
3.705 + <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
3.706 + <arg line="${application.args}"/>
3.707 + <classpath>
3.708 + <path path="${run.classpath}"/>
3.709 + </classpath>
3.710 + <syspropertyset>
3.711 + <propertyref prefix="run-sys-prop."/>
3.712 + <mapper from="run-sys-prop.*" to="*" type="glob"/>
3.713 + </syspropertyset>
3.714 + <customize/>
3.715 + </java>
3.716 + </sequential>
3.717 + </macrodef>
3.718 + </target>
3.719 + <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" if="profiler.info.jvmargs.agent" name="-profile-init-check">
3.720 + <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
3.721 + <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
3.722 + </target>
3.723 + <!--
3.724 + end of pre NB7.2 profiling section
3.725 + -->
3.726 + <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
3.727 + <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
3.728 + <attribute default="${main.class}" name="name"/>
3.729 + <attribute default="${debug.classpath}" name="classpath"/>
3.730 + <attribute default="" name="stopclassname"/>
3.731 + <sequential>
3.732 + <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
3.733 + <classpath>
3.734 + <path path="@{classpath}"/>
3.735 + </classpath>
3.736 + </nbjpdastart>
3.737 + </sequential>
3.738 + </macrodef>
3.739 + <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
3.740 + <attribute default="${build.classes.dir}" name="dir"/>
3.741 + <sequential>
3.742 + <nbjpdareload>
3.743 + <fileset dir="@{dir}" includes="${fix.classes}">
3.744 + <include name="${fix.includes}*.class"/>
3.745 + </fileset>
3.746 + </nbjpdareload>
3.747 + </sequential>
3.748 + </macrodef>
3.749 + </target>
3.750 + <target name="-init-debug-args">
3.751 + <property name="version-output" value="java version "${ant.java.version}"/>
3.752 + <condition property="have-jdk-older-than-1.4">
3.753 + <or>
3.754 + <contains string="${version-output}" substring="java version "1.0"/>
3.755 + <contains string="${version-output}" substring="java version "1.1"/>
3.756 + <contains string="${version-output}" substring="java version "1.2"/>
3.757 + <contains string="${version-output}" substring="java version "1.3"/>
3.758 + </or>
3.759 + </condition>
3.760 + <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
3.761 + <istrue value="${have-jdk-older-than-1.4}"/>
3.762 + </condition>
3.763 + <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
3.764 + <os family="windows"/>
3.765 + </condition>
3.766 + <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
3.767 + <isset property="debug.transport"/>
3.768 + </condition>
3.769 + </target>
3.770 + <target depends="-init-debug-args" name="-init-macrodef-debug">
3.771 + <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
3.772 + <attribute default="${main.class}" name="classname"/>
3.773 + <attribute default="${debug.classpath}" name="classpath"/>
3.774 + <element name="customize" optional="true"/>
3.775 + <sequential>
3.776 + <java classname="@{classname}" dir="${work.dir}" fork="true">
3.777 + <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
3.778 + <jvmarg line="${debug-args-line}"/>
3.779 + <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
3.780 + <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
3.781 + <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
3.782 + <jvmarg line="${run.jvmargs}"/>
3.783 + <jvmarg line="${run.jvmargs.ide}"/>
3.784 + <classpath>
3.785 + <path path="@{classpath}"/>
3.786 + </classpath>
3.787 + <syspropertyset>
3.788 + <propertyref prefix="run-sys-prop."/>
3.789 + <mapper from="run-sys-prop.*" to="*" type="glob"/>
3.790 + </syspropertyset>
3.791 + <customize/>
3.792 + </java>
3.793 + </sequential>
3.794 + </macrodef>
3.795 + </target>
3.796 + <target name="-init-macrodef-java">
3.797 + <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
3.798 + <attribute default="${main.class}" name="classname"/>
3.799 + <attribute default="${run.classpath}" name="classpath"/>
3.800 + <attribute default="jvm" name="jvm"/>
3.801 + <element name="customize" optional="true"/>
3.802 + <sequential>
3.803 + <java classname="@{classname}" dir="${work.dir}" fork="true">
3.804 + <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
3.805 + <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
3.806 + <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
3.807 + <jvmarg line="${run.jvmargs}"/>
3.808 + <jvmarg line="${run.jvmargs.ide}"/>
3.809 + <classpath>
3.810 + <path path="@{classpath}"/>
3.811 + </classpath>
3.812 + <syspropertyset>
3.813 + <propertyref prefix="run-sys-prop."/>
3.814 + <mapper from="run-sys-prop.*" to="*" type="glob"/>
3.815 + </syspropertyset>
3.816 + <customize/>
3.817 + </java>
3.818 + </sequential>
3.819 + </macrodef>
3.820 + </target>
3.821 + <target name="-init-macrodef-copylibs">
3.822 + <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">
3.823 + <attribute default="${manifest.file}" name="manifest"/>
3.824 + <element name="customize" optional="true"/>
3.825 + <sequential>
3.826 + <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
3.827 + <pathconvert property="run.classpath.without.build.classes.dir">
3.828 + <path path="${run.classpath}"/>
3.829 + <map from="${build.classes.dir.resolved}" to=""/>
3.830 + </pathconvert>
3.831 + <pathconvert pathsep=" " property="jar.classpath">
3.832 + <path path="${run.classpath.without.build.classes.dir}"/>
3.833 + <chainedmapper>
3.834 + <flattenmapper/>
3.835 + <filtermapper>
3.836 + <replacestring from=" " to="%20"/>
3.837 + </filtermapper>
3.838 + <globmapper from="*" to="lib/*"/>
3.839 + </chainedmapper>
3.840 + </pathconvert>
3.841 + <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
3.842 + <copylibs compress="${jar.compress}" excludeFromCopy="${copylibs.excludes}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
3.843 + <fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
3.844 + <manifest>
3.845 + <attribute name="Class-Path" value="${jar.classpath}"/>
3.846 + <customize/>
3.847 + </manifest>
3.848 + </copylibs>
3.849 + </sequential>
3.850 + </macrodef>
3.851 + </target>
3.852 + <target name="-init-presetdef-jar">
3.853 + <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
3.854 + <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">
3.855 + <j2seproject1:fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
3.856 + </jar>
3.857 + </presetdef>
3.858 + </target>
3.859 + <target name="-init-ap-cmdline-properties">
3.860 + <property name="annotation.processing.enabled" value="true"/>
3.861 + <property name="annotation.processing.processors.list" value=""/>
3.862 + <property name="annotation.processing.processor.options" value=""/>
3.863 + <property name="annotation.processing.run.all.processors" value="true"/>
3.864 + <property name="javac.processorpath" value="${javac.classpath}"/>
3.865 + <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
3.866 + <condition property="ap.supported.internal" value="true">
3.867 + <not>
3.868 + <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
3.869 + </not>
3.870 + </condition>
3.871 + </target>
3.872 + <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
3.873 + <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
3.874 + <isfalse value="${annotation.processing.run.all.processors}"/>
3.875 + </condition>
3.876 + <condition else="" property="ap.proc.none.internal" value="-proc:none">
3.877 + <isfalse value="${annotation.processing.enabled}"/>
3.878 + </condition>
3.879 + </target>
3.880 + <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
3.881 + <property name="ap.cmd.line.internal" value=""/>
3.882 + </target>
3.883 + <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-test,-init-macrodef-test-debug,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar,-init-ap-cmdline" name="init"/>
3.884 + <!--
3.885 + ===================
3.886 + COMPILATION SECTION
3.887 + ===================
3.888 + -->
3.889 + <target name="-deps-jar-init" unless="built-jar.properties">
3.890 + <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>
3.891 + <delete file="${built-jar.properties}" quiet="true"/>
3.892 + </target>
3.893 + <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
3.894 + <echo level="warn" message="Cycle detected: alt2xml-in-ini was already built"/>
3.895 + </target>
3.896 + <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
3.897 + <mkdir dir="${build.dir}"/>
3.898 + <touch file="${built-jar.properties}" verbose="false"/>
3.899 + <property file="${built-jar.properties}" prefix="already.built.jar."/>
3.900 + <antcall target="-warn-already-built-jar"/>
3.901 + <propertyfile file="${built-jar.properties}">
3.902 + <entry key="${basedir}" value=""/>
3.903 + </propertyfile>
3.904 + <antcall target="-maybe-call-dep">
3.905 + <param name="call.built.properties" value="${built-jar.properties}"/>
3.906 + <param location="${project.alt2xml-lib-input}" name="call.subproject"/>
3.907 + <param location="${project.alt2xml-lib-input}/build.xml" name="call.script"/>
3.908 + <param name="call.target" value="jar"/>
3.909 + <param name="transfer.built-jar.properties" value="${built-jar.properties}"/>
3.910 + <param name="transfer.not.archive.disabled" value="true"/>
3.911 + </antcall>
3.912 + </target>
3.913 + <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
3.914 + <target depends="init" name="-check-automatic-build">
3.915 + <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
3.916 + </target>
3.917 + <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
3.918 + <antcall target="clean"/>
3.919 + </target>
3.920 + <target depends="init,deps-jar" name="-pre-pre-compile">
3.921 + <mkdir dir="${build.classes.dir}"/>
3.922 + </target>
3.923 + <target name="-pre-compile">
3.924 + <!-- Empty placeholder for easier customization. -->
3.925 + <!-- You can override this target in the ../build.xml file. -->
3.926 + </target>
3.927 + <target if="do.depend.true" name="-compile-depend">
3.928 + <pathconvert property="build.generated.subdirs">
3.929 + <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
3.930 + <include name="*"/>
3.931 + </dirset>
3.932 + </pathconvert>
3.933 + <j2seproject3:depend srcdir="${src.dir}:${src.config.dir}:${build.generated.subdirs}"/>
3.934 + </target>
3.935 + <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">
3.936 + <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
3.937 + <copy todir="${build.classes.dir}">
3.938 + <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
3.939 + <fileset dir="${src.config.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
3.940 + </copy>
3.941 + </target>
3.942 + <target if="has.persistence.xml" name="-copy-persistence-xml">
3.943 + <mkdir dir="${build.classes.dir}/META-INF"/>
3.944 + <copy todir="${build.classes.dir}/META-INF">
3.945 + <fileset dir="${meta.inf.dir}" includes="persistence.xml orm.xml"/>
3.946 + </copy>
3.947 + </target>
3.948 + <target name="-post-compile">
3.949 + <!-- Empty placeholder for easier customization. -->
3.950 + <!-- You can override this target in the ../build.xml file. -->
3.951 + </target>
3.952 + <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
3.953 + <target name="-pre-compile-single">
3.954 + <!-- Empty placeholder for easier customization. -->
3.955 + <!-- You can override this target in the ../build.xml file. -->
3.956 + </target>
3.957 + <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
3.958 + <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
3.959 + <j2seproject3:force-recompile/>
3.960 + <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}:${src.config.dir}"/>
3.961 + </target>
3.962 + <target name="-post-compile-single">
3.963 + <!-- Empty placeholder for easier customization. -->
3.964 + <!-- You can override this target in the ../build.xml file. -->
3.965 + </target>
3.966 + <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
3.967 + <!--
3.968 + ====================
3.969 + JAR BUILDING SECTION
3.970 + ====================
3.971 + -->
3.972 + <target depends="init" name="-pre-pre-jar">
3.973 + <dirname file="${dist.jar}" property="dist.jar.dir"/>
3.974 + <mkdir dir="${dist.jar.dir}"/>
3.975 + </target>
3.976 + <target name="-pre-jar">
3.977 + <!-- Empty placeholder for easier customization. -->
3.978 + <!-- You can override this target in the ../build.xml file. -->
3.979 + </target>
3.980 + <target depends="init" if="do.archive" name="-do-jar-create-manifest" unless="manifest.available">
3.981 + <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
3.982 + <touch file="${tmp.manifest.file}" verbose="false"/>
3.983 + </target>
3.984 + <target depends="init" if="do.archive+manifest.available" name="-do-jar-copy-manifest">
3.985 + <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
3.986 + <copy file="${manifest.file}" tofile="${tmp.manifest.file}"/>
3.987 + </target>
3.988 + <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+main.class.available" name="-do-jar-set-mainclass">
3.989 + <manifest file="${tmp.manifest.file}" mode="update">
3.990 + <attribute name="Main-Class" value="${main.class}"/>
3.991 + </manifest>
3.992 + </target>
3.993 + <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+profile.available" name="-do-jar-set-profile">
3.994 + <manifest file="${tmp.manifest.file}" mode="update">
3.995 + <attribute name="Profile" value="${javac.profile}"/>
3.996 + </manifest>
3.997 + </target>
3.998 + <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-set-splashscreen">
3.999 + <basename file="${application.splash}" property="splashscreen.basename"/>
3.1000 + <mkdir dir="${build.classes.dir}/META-INF"/>
3.1001 + <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
3.1002 + <manifest file="${tmp.manifest.file}" mode="update">
3.1003 + <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
3.1004 + </manifest>
3.1005 + </target>
3.1006 + <target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen" if="do.mkdist" name="-do-jar-copylibs">
3.1007 + <j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
3.1008 + <echo level="info">To run this application from the command line without Ant, try:</echo>
3.1009 + <property location="${dist.jar}" name="dist.jar.resolved"/>
3.1010 + <echo level="info">java -jar "${dist.jar.resolved}"</echo>
3.1011 + </target>
3.1012 + <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen" if="do.archive" name="-do-jar-jar" unless="do.mkdist">
3.1013 + <j2seproject1:jar manifest="${tmp.manifest.file}"/>
3.1014 + <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
3.1015 + <property location="${dist.jar}" name="dist.jar.resolved"/>
3.1016 + <pathconvert property="run.classpath.with.dist.jar">
3.1017 + <path path="${run.classpath}"/>
3.1018 + <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
3.1019 + </pathconvert>
3.1020 + <condition else="" property="jar.usage.message" value="To run this application from the command line without Ant, try:${line.separator}${platform.java} -cp ${run.classpath.with.dist.jar} ${main.class}">
3.1021 + <isset property="main.class.available"/>
3.1022 + </condition>
3.1023 + <condition else="debug" property="jar.usage.level" value="info">
3.1024 + <isset property="main.class.available"/>
3.1025 + </condition>
3.1026 + <echo level="${jar.usage.level}" message="${jar.usage.message}"/>
3.1027 + </target>
3.1028 + <target depends="-do-jar-copylibs" if="do.archive" name="-do-jar-delete-manifest">
3.1029 + <delete>
3.1030 + <fileset file="${tmp.manifest.file}"/>
3.1031 + </delete>
3.1032 + </target>
3.1033 + <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-do-jar-jar,-do-jar-delete-manifest" name="-do-jar-without-libraries"/>
3.1034 + <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-do-jar-copylibs,-do-jar-delete-manifest" name="-do-jar-with-libraries"/>
3.1035 + <target name="-post-jar">
3.1036 + <!-- Empty placeholder for easier customization. -->
3.1037 + <!-- You can override this target in the ../build.xml file. -->
3.1038 + </target>
3.1039 + <target depends="init,compile,-pre-jar,-do-jar-without-libraries,-do-jar-with-libraries,-post-jar" name="-do-jar"/>
3.1040 + <target depends="init,compile,-pre-jar,-do-jar,-post-jar" description="Build JAR." name="jar"/>
3.1041 + <!--
3.1042 + =================
3.1043 + EXECUTION SECTION
3.1044 + =================
3.1045 + -->
3.1046 + <target depends="init,compile" description="Run a main class." name="run">
3.1047 + <j2seproject1:java>
3.1048 + <customize>
3.1049 + <arg line="${application.args}"/>
3.1050 + </customize>
3.1051 + </j2seproject1:java>
3.1052 + </target>
3.1053 + <target name="-do-not-recompile">
3.1054 + <property name="javac.includes.binary" value=""/>
3.1055 + </target>
3.1056 + <target depends="init,compile-single" name="run-single">
3.1057 + <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
3.1058 + <j2seproject1:java classname="${run.class}"/>
3.1059 + </target>
3.1060 + <target depends="init,compile-test-single" name="run-test-with-main">
3.1061 + <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
3.1062 + <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
3.1063 + </target>
3.1064 + <!--
3.1065 + =================
3.1066 + DEBUGGING SECTION
3.1067 + =================
3.1068 + -->
3.1069 + <target depends="init" if="netbeans.home" name="-debug-start-debugger">
3.1070 + <j2seproject1:nbjpdastart name="${debug.class}"/>
3.1071 + </target>
3.1072 + <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
3.1073 + <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
3.1074 + </target>
3.1075 + <target depends="init,compile" name="-debug-start-debuggee">
3.1076 + <j2seproject3:debug>
3.1077 + <customize>
3.1078 + <arg line="${application.args}"/>
3.1079 + </customize>
3.1080 + </j2seproject3:debug>
3.1081 + </target>
3.1082 + <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
3.1083 + <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
3.1084 + <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
3.1085 + </target>
3.1086 + <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
3.1087 + <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
3.1088 + <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
3.1089 + <j2seproject3:debug classname="${debug.class}"/>
3.1090 + </target>
3.1091 + <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
3.1092 + <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
3.1093 + <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
3.1094 + <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
3.1095 + </target>
3.1096 + <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
3.1097 + <target depends="init" name="-pre-debug-fix">
3.1098 + <fail unless="fix.includes">Must set fix.includes</fail>
3.1099 + <property name="javac.includes" value="${fix.includes}.java"/>
3.1100 + </target>
3.1101 + <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
3.1102 + <j2seproject1:nbjpdareload/>
3.1103 + </target>
3.1104 + <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
3.1105 + <!--
3.1106 + =================
3.1107 + PROFILING SECTION
3.1108 + =================
3.1109 + -->
3.1110 + <!--
3.1111 + pre NB7.2 profiler integration
3.1112 + -->
3.1113 + <target depends="profile-init,compile" description="Profile a project in the IDE." if="profiler.info.jvmargs.agent" name="-profile-pre72">
3.1114 + <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
3.1115 + <nbprofiledirect>
3.1116 + <classpath>
3.1117 + <path path="${run.classpath}"/>
3.1118 + </classpath>
3.1119 + </nbprofiledirect>
3.1120 + <profile/>
3.1121 + </target>
3.1122 + <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="profiler.info.jvmargs.agent" name="-profile-single-pre72">
3.1123 + <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail>
3.1124 + <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
3.1125 + <nbprofiledirect>
3.1126 + <classpath>
3.1127 + <path path="${run.classpath}"/>
3.1128 + </classpath>
3.1129 + </nbprofiledirect>
3.1130 + <profile classname="${profile.class}"/>
3.1131 + </target>
3.1132 + <target depends="profile-init,compile-single" if="profiler.info.jvmargs.agent" name="-profile-applet-pre72">
3.1133 + <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
3.1134 + <nbprofiledirect>
3.1135 + <classpath>
3.1136 + <path path="${run.classpath}"/>
3.1137 + </classpath>
3.1138 + </nbprofiledirect>
3.1139 + <profile classname="sun.applet.AppletViewer">
3.1140 + <customize>
3.1141 + <arg value="${applet.url}"/>
3.1142 + </customize>
3.1143 + </profile>
3.1144 + </target>
3.1145 + <target depends="profile-init,compile-test-single" if="profiler.info.jvmargs.agent" name="-profile-test-single-pre72">
3.1146 + <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
3.1147 + <nbprofiledirect>
3.1148 + <classpath>
3.1149 + <path path="${run.test.classpath}"/>
3.1150 + </classpath>
3.1151 + </nbprofiledirect>
3.1152 + <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
3.1153 + <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
3.1154 + <jvmarg value="${profiler.info.jvmargs.agent}"/>
3.1155 + <jvmarg line="${profiler.info.jvmargs}"/>
3.1156 + <test name="${profile.class}"/>
3.1157 + <classpath>
3.1158 + <path path="${run.test.classpath}"/>
3.1159 + </classpath>
3.1160 + <syspropertyset>
3.1161 + <propertyref prefix="test-sys-prop."/>
3.1162 + <mapper from="test-sys-prop.*" to="*" type="glob"/>
3.1163 + </syspropertyset>
3.1164 + <formatter type="brief" usefile="false"/>
3.1165 + <formatter type="xml"/>
3.1166 + </junit>
3.1167 + </target>
3.1168 + <!--
3.1169 + end of pre NB72 profiling section
3.1170 + -->
3.1171 + <target if="netbeans.home" name="-profile-check">
3.1172 + <condition property="profiler.configured">
3.1173 + <or>
3.1174 + <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-agentpath:"/>
3.1175 + <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-javaagent:"/>
3.1176 + </or>
3.1177 + </condition>
3.1178 + </target>
3.1179 + <target depends="-profile-check,-profile-pre72" description="Profile a project in the IDE." if="profiler.configured" name="profile" unless="profiler.info.jvmargs.agent">
3.1180 + <startprofiler/>
3.1181 + <antcall target="run"/>
3.1182 + </target>
3.1183 + <target depends="-profile-check,-profile-single-pre72" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-single" unless="profiler.info.jvmargs.agent">
3.1184 + <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
3.1185 + <startprofiler/>
3.1186 + <antcall target="run-single"/>
3.1187 + </target>
3.1188 + <target depends="-profile-test-single-pre72" description="Profile a selected test in the IDE." name="profile-test-single"/>
3.1189 + <target depends="-profile-check" description="Profile a selected test in the IDE." if="profiler.configured" name="profile-test" unless="profiler.info.jvmargs">
3.1190 + <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
3.1191 + <startprofiler/>
3.1192 + <antcall target="test-single"/>
3.1193 + </target>
3.1194 + <target depends="-profile-check" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-test-with-main">
3.1195 + <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
3.1196 + <startprofiler/>
3.1197 + <antcal target="run-test-with-main"/>
3.1198 + </target>
3.1199 + <target depends="-profile-check,-profile-applet-pre72" if="profiler.configured" name="profile-applet" unless="profiler.info.jvmargs.agent">
3.1200 + <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
3.1201 + <startprofiler/>
3.1202 + <antcall target="run-applet"/>
3.1203 + </target>
3.1204 + <!--
3.1205 + ===============
3.1206 + JAVADOC SECTION
3.1207 + ===============
3.1208 + -->
3.1209 + <target depends="init" if="have.sources" name="-javadoc-build">
3.1210 + <mkdir dir="${dist.javadoc.dir}"/>
3.1211 + <condition else="" property="javadoc.endorsed.classpath.cmd.line.arg" value="-J${endorsed.classpath.cmd.line.arg}">
3.1212 + <and>
3.1213 + <isset property="endorsed.classpath.cmd.line.arg"/>
3.1214 + <not>
3.1215 + <equals arg1="${endorsed.classpath.cmd.line.arg}" arg2=""/>
3.1216 + </not>
3.1217 + </and>
3.1218 + </condition>
3.1219 + <condition else="" property="bug5101868workaround" value="*.java">
3.1220 + <matches pattern="1\.[56](\..*)?" string="${java.version}"/>
3.1221 + </condition>
3.1222 + <javadoc additionalparam="-J-Dfile.encoding=${file.encoding} ${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}">
3.1223 + <classpath>
3.1224 + <path path="${javac.classpath}"/>
3.1225 + </classpath>
3.1226 + <fileset dir="${src.dir}" excludes="${bug5101868workaround},${excludes}" includes="${includes}">
3.1227 + <filename name="**/*.java"/>
3.1228 + </fileset>
3.1229 + <fileset dir="${src.config.dir}" excludes="${bug5101868workaround},${excludes}" includes="${includes}">
3.1230 + <filename name="**/*.java"/>
3.1231 + </fileset>
3.1232 + <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
3.1233 + <include name="**/*.java"/>
3.1234 + <exclude name="*.java"/>
3.1235 + </fileset>
3.1236 + <arg line="${javadoc.endorsed.classpath.cmd.line.arg}"/>
3.1237 + </javadoc>
3.1238 + <copy todir="${dist.javadoc.dir}">
3.1239 + <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
3.1240 + <filename name="**/doc-files/**"/>
3.1241 + </fileset>
3.1242 + <fileset dir="${src.config.dir}" excludes="${excludes}" includes="${includes}">
3.1243 + <filename name="**/doc-files/**"/>
3.1244 + </fileset>
3.1245 + <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
3.1246 + <include name="**/doc-files/**"/>
3.1247 + </fileset>
3.1248 + </copy>
3.1249 + </target>
3.1250 + <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
3.1251 + <nbbrowse file="${dist.javadoc.dir}/index.html"/>
3.1252 + </target>
3.1253 + <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
3.1254 + <!--
3.1255 + =========================
3.1256 + TEST COMPILATION SECTION
3.1257 + =========================
3.1258 + -->
3.1259 + <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
3.1260 + <mkdir dir="${build.test.classes.dir}"/>
3.1261 + </target>
3.1262 + <target name="-pre-compile-test">
3.1263 + <!-- Empty placeholder for easier customization. -->
3.1264 + <!-- You can override this target in the ../build.xml file. -->
3.1265 + </target>
3.1266 + <target if="do.depend.true" name="-compile-test-depend">
3.1267 + <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
3.1268 + </target>
3.1269 + <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
3.1270 + <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" processorpath="${javac.test.processorpath}" srcdir="${test.src.dir}"/>
3.1271 + <copy todir="${build.test.classes.dir}">
3.1272 + <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
3.1273 + </copy>
3.1274 + </target>
3.1275 + <target name="-post-compile-test">
3.1276 + <!-- Empty placeholder for easier customization. -->
3.1277 + <!-- You can override this target in the ../build.xml file. -->
3.1278 + </target>
3.1279 + <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
3.1280 + <target name="-pre-compile-test-single">
3.1281 + <!-- Empty placeholder for easier customization. -->
3.1282 + <!-- You can override this target in the ../build.xml file. -->
3.1283 + </target>
3.1284 + <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
3.1285 + <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
3.1286 + <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
3.1287 + <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" processorpath="${javac.test.processorpath}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}"/>
3.1288 + <copy todir="${build.test.classes.dir}">
3.1289 + <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
3.1290 + </copy>
3.1291 + </target>
3.1292 + <target name="-post-compile-test-single">
3.1293 + <!-- Empty placeholder for easier customization. -->
3.1294 + <!-- You can override this target in the ../build.xml file. -->
3.1295 + </target>
3.1296 + <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
3.1297 + <!--
3.1298 + =======================
3.1299 + TEST EXECUTION SECTION
3.1300 + =======================
3.1301 + -->
3.1302 + <target depends="init" if="have.tests" name="-pre-test-run">
3.1303 + <mkdir dir="${build.test.results.dir}"/>
3.1304 + </target>
3.1305 + <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
3.1306 + <j2seproject3:test includes="${includes}" testincludes="**/*Test.java"/>
3.1307 + </target>
3.1308 + <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
3.1309 + <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
3.1310 + </target>
3.1311 + <target depends="init" if="have.tests" name="test-report"/>
3.1312 + <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
3.1313 + <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
3.1314 + <target depends="init" if="have.tests" name="-pre-test-run-single">
3.1315 + <mkdir dir="${build.test.results.dir}"/>
3.1316 + </target>
3.1317 + <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
3.1318 + <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
3.1319 + <j2seproject3:test excludes="" includes="${test.includes}" testincludes="${test.includes}"/>
3.1320 + </target>
3.1321 + <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
3.1322 + <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
3.1323 + </target>
3.1324 + <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>
3.1325 + <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single-method">
3.1326 + <fail unless="test.class">Must select some files in the IDE or set test.class</fail>
3.1327 + <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
3.1328 + <j2seproject3:test excludes="" includes="${javac.includes}" testincludes="${test.class}" testmethods="${test.method}"/>
3.1329 + </target>
3.1330 + <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method" if="have.tests" name="-post-test-run-single-method">
3.1331 + <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
3.1332 + </target>
3.1333 + <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method,-post-test-run-single-method" description="Run single unit test." name="test-single-method"/>
3.1334 + <!--
3.1335 + =======================
3.1336 + TEST DEBUGGING SECTION
3.1337 + =======================
3.1338 + -->
3.1339 + <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test">
3.1340 + <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
3.1341 + <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testincludes="${javac.includes}"/>
3.1342 + </target>
3.1343 + <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test-method">
3.1344 + <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
3.1345 + <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
3.1346 + <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testMethod="${test.method}" testincludes="${test.class}" testmethods="${test.method}"/>
3.1347 + </target>
3.1348 + <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
3.1349 + <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
3.1350 + </target>
3.1351 + <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
3.1352 + <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test-method" name="debug-test-method"/>
3.1353 + <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
3.1354 + <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
3.1355 + </target>
3.1356 + <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
3.1357 + <!--
3.1358 + =========================
3.1359 + APPLET EXECUTION SECTION
3.1360 + =========================
3.1361 + -->
3.1362 + <target depends="init,compile-single" name="run-applet">
3.1363 + <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
3.1364 + <j2seproject1:java classname="sun.applet.AppletViewer">
3.1365 + <customize>
3.1366 + <arg value="${applet.url}"/>
3.1367 + </customize>
3.1368 + </j2seproject1:java>
3.1369 + </target>
3.1370 + <!--
3.1371 + =========================
3.1372 + APPLET DEBUGGING SECTION
3.1373 + =========================
3.1374 + -->
3.1375 + <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
3.1376 + <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
3.1377 + <j2seproject3:debug classname="sun.applet.AppletViewer">
3.1378 + <customize>
3.1379 + <arg value="${applet.url}"/>
3.1380 + </customize>
3.1381 + </j2seproject3:debug>
3.1382 + </target>
3.1383 + <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
3.1384 + <!--
3.1385 + ===============
3.1386 + CLEANUP SECTION
3.1387 + ===============
3.1388 + -->
3.1389 + <target name="-deps-clean-init" unless="built-clean.properties">
3.1390 + <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>
3.1391 + <delete file="${built-clean.properties}" quiet="true"/>
3.1392 + </target>
3.1393 + <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
3.1394 + <echo level="warn" message="Cycle detected: alt2xml-in-ini was already built"/>
3.1395 + </target>
3.1396 + <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
3.1397 + <mkdir dir="${build.dir}"/>
3.1398 + <touch file="${built-clean.properties}" verbose="false"/>
3.1399 + <property file="${built-clean.properties}" prefix="already.built.clean."/>
3.1400 + <antcall target="-warn-already-built-clean"/>
3.1401 + <propertyfile file="${built-clean.properties}">
3.1402 + <entry key="${basedir}" value=""/>
3.1403 + </propertyfile>
3.1404 + <antcall target="-maybe-call-dep">
3.1405 + <param name="call.built.properties" value="${built-clean.properties}"/>
3.1406 + <param location="${project.alt2xml-lib-input}" name="call.subproject"/>
3.1407 + <param location="${project.alt2xml-lib-input}/build.xml" name="call.script"/>
3.1408 + <param name="call.target" value="clean"/>
3.1409 + <param name="transfer.built-clean.properties" value="${built-clean.properties}"/>
3.1410 + <param name="transfer.not.archive.disabled" value="true"/>
3.1411 + </antcall>
3.1412 + </target>
3.1413 + <target depends="init" name="-do-clean">
3.1414 + <delete dir="${build.dir}"/>
3.1415 + <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
3.1416 + </target>
3.1417 + <target name="-post-clean">
3.1418 + <!-- Empty placeholder for easier customization. -->
3.1419 + <!-- You can override this target in the ../build.xml file. -->
3.1420 + </target>
3.1421 + <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
3.1422 + <target name="-check-call-dep">
3.1423 + <property file="${call.built.properties}" prefix="already.built."/>
3.1424 + <condition property="should.call.dep">
3.1425 + <and>
3.1426 + <not>
3.1427 + <isset property="already.built.${call.subproject}"/>
3.1428 + </not>
3.1429 + <available file="${call.script}"/>
3.1430 + </and>
3.1431 + </condition>
3.1432 + </target>
3.1433 + <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
3.1434 + <ant antfile="${call.script}" inheritall="false" target="${call.target}">
3.1435 + <propertyset>
3.1436 + <propertyref prefix="transfer."/>
3.1437 + <mapper from="transfer.*" to="*" type="glob"/>
3.1438 + </propertyset>
3.1439 + </ant>
3.1440 + </target>
3.1441 +</project>
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
4.2 +++ b/java/alt2xml-in-ini/nbproject/genfiles.properties Sat Sep 06 17:19:21 2014 +0200
4.3 @@ -0,0 +1,8 @@
4.4 +build.xml.data.CRC32=baf64108
4.5 +build.xml.script.CRC32=df5287a4
4.6 +build.xml.stylesheet.CRC32=8064a381@1.74.2.48
4.7 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
4.8 +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
4.9 +nbproject/build-impl.xml.data.CRC32=baf64108
4.10 +nbproject/build-impl.xml.script.CRC32=ddfd8d33
4.11 +nbproject/build-impl.xml.stylesheet.CRC32=876e7a8f@1.74.2.48
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
5.2 +++ b/java/alt2xml-in-ini/nbproject/project.properties Sat Sep 06 17:19:21 2014 +0200
5.3 @@ -0,0 +1,77 @@
5.4 +annotation.processing.enabled=true
5.5 +annotation.processing.enabled.in.editor=false
5.6 +annotation.processing.processors.list=
5.7 +annotation.processing.run.all.processors=true
5.8 +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
5.9 +application.title=alt2xml-in-ini
5.10 +application.vendor=fiki
5.11 +build.classes.dir=${build.dir}/classes
5.12 +build.classes.excludes=**/*.java,**/*.form
5.13 +# This directory is removed when the project is cleaned:
5.14 +build.dir=build
5.15 +build.generated.dir=${build.dir}/generated
5.16 +build.generated.sources.dir=${build.dir}/generated-sources
5.17 +# Only compile against the classpath explicitly listed here:
5.18 +build.sysclasspath=ignore
5.19 +build.test.classes.dir=${build.dir}/test/classes
5.20 +build.test.results.dir=${build.dir}/test/results
5.21 +# Uncomment to specify the preferred debugger connection transport:
5.22 +#debug.transport=dt_socket
5.23 +debug.classpath=\
5.24 + ${run.classpath}
5.25 +debug.test.classpath=\
5.26 + ${run.test.classpath}
5.27 +# Files in build.classes.dir which should be excluded from distribution jar
5.28 +dist.archive.excludes=
5.29 +# This directory is removed when the project is cleaned:
5.30 +dist.dir=dist
5.31 +dist.jar=${dist.dir}/alt2xml-in-ini.jar
5.32 +dist.javadoc.dir=${dist.dir}/javadoc
5.33 +endorsed.classpath=
5.34 +excludes=
5.35 +includes=**
5.36 +jar.compress=false
5.37 +javac.classpath=\
5.38 + ${reference.alt2xml-lib-input.jar}
5.39 +# Space-separated list of extra javac options
5.40 +javac.compilerargs=
5.41 +javac.deprecation=false
5.42 +javac.processorpath=\
5.43 + ${javac.classpath}
5.44 +javac.source=1.7
5.45 +javac.target=1.7
5.46 +javac.test.classpath=\
5.47 + ${javac.classpath}:\
5.48 + ${build.classes.dir}
5.49 +javac.test.processorpath=\
5.50 + ${javac.test.classpath}
5.51 +javadoc.additionalparam=
5.52 +javadoc.author=false
5.53 +javadoc.encoding=${source.encoding}
5.54 +javadoc.noindex=false
5.55 +javadoc.nonavbar=false
5.56 +javadoc.notree=false
5.57 +javadoc.private=false
5.58 +javadoc.splitindex=true
5.59 +javadoc.use=true
5.60 +javadoc.version=false
5.61 +javadoc.windowtitle=
5.62 +meta.inf.dir=${src.dir}/META-INF
5.63 +mkdist.disabled=true
5.64 +platform.active=default_platform
5.65 +project.alt2xml-lib-input=../alt2xml-lib-input
5.66 +reference.alt2xml-lib-input.jar=${project.alt2xml-lib-input}/dist/alt2xml-lib-input.jar
5.67 +run.classpath=\
5.68 + ${javac.classpath}:\
5.69 + ${build.classes.dir}
5.70 +# Space-separated list of JVM arguments used when running the project.
5.71 +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value.
5.72 +# To set system properties for unit tests define test-sys-prop.name=value:
5.73 +run.jvmargs=
5.74 +run.test.classpath=\
5.75 + ${javac.test.classpath}:\
5.76 + ${build.test.classes.dir}
5.77 +source.encoding=UTF-8
5.78 +src.config.dir=config
5.79 +src.dir=src
5.80 +test.src.dir=test
6.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
6.2 +++ b/java/alt2xml-in-ini/nbproject/project.xml Sat Sep 06 17:19:21 2014 +0200
6.3 @@ -0,0 +1,26 @@
6.4 +<?xml version="1.0" encoding="UTF-8"?>
6.5 +<project xmlns="http://www.netbeans.org/ns/project/1">
6.6 + <type>org.netbeans.modules.java.j2seproject</type>
6.7 + <configuration>
6.8 + <data xmlns="http://www.netbeans.org/ns/j2se-project/3">
6.9 + <name>alt2xml-in-ini</name>
6.10 + <source-roots>
6.11 + <root id="src.dir"/>
6.12 + <root id="src.config.dir" name="Config"/>
6.13 + </source-roots>
6.14 + <test-roots>
6.15 + <root id="test.src.dir"/>
6.16 + </test-roots>
6.17 + </data>
6.18 + <references xmlns="http://www.netbeans.org/ns/ant-project-references/1">
6.19 + <reference>
6.20 + <foreign-project>alt2xml-lib-input</foreign-project>
6.21 + <artifact-type>jar</artifact-type>
6.22 + <script>build.xml</script>
6.23 + <target>jar</target>
6.24 + <clean-target>clean</clean-target>
6.25 + <id>jar</id>
6.26 + </reference>
6.27 + </references>
6.28 + </configuration>
6.29 +</project>
7.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
7.2 +++ b/java/alt2xml-in-ini/src/cz/frantovo/alt2xml/in/ini/Reader.java Sat Sep 06 17:19:21 2014 +0200
7.3 @@ -0,0 +1,51 @@
7.4 +/**
7.5 + * Alt2XML
7.6 + * Copyright © 2014 František Kučera (frantovo.cz)
7.7 + *
7.8 + * This program is free software: you can redistribute it and/or modify
7.9 + * it under the terms of the GNU General Public License as published by
7.10 + * the Free Software Foundation, either version 3 of the License, or
7.11 + * (at your option) any later version.
7.12 + *
7.13 + * This program is distributed in the hope that it will be useful,
7.14 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
7.15 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7.16 + * GNU General Public License for more details.
7.17 + *
7.18 + * You should have received a copy of the GNU General Public License
7.19 + * along with this program. If not, see <http://www.gnu.org/licenses/>.
7.20 + */
7.21 +package cz.frantovo.alt2xml.in.ini;
7.22 +
7.23 +import cz.frantovo.alt2xml.AbstractAlt2XmlReader;
7.24 +import java.io.IOException;
7.25 +import org.xml.sax.InputSource;
7.26 +import org.xml.sax.SAXException;
7.27 +
7.28 +/**
7.29 + *
7.30 + * @author Ing. František Kučera (frantovo.cz)
7.31 + */
7.32 +public class Reader extends AbstractAlt2XmlReader {
7.33 +
7.34 + @Override
7.35 + public void parse(InputSource input) throws IOException, SAXException {
7.36 + outputStart();
7.37 + // TODO: INI → SAX
7.38 + outputEnd();
7.39 + }
7.40 +
7.41 + private void outputStart() throws SAXException {
7.42 + contentHandler.startDocument();
7.43 + contentHandler.lineBreak();
7.44 + contentHandler.startElement(null, null, "ini", null);
7.45 + contentHandler.lineBreak();
7.46 + }
7.47 +
7.48 + private void outputEnd() throws SAXException {
7.49 + contentHandler.endElement(null, null, "ini");
7.50 + contentHandler.lineBreak();
7.51 + contentHandler.endDocument();
7.52 + }
7.53 +
7.54 +}
8.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
8.2 +++ b/java/alt2xml-in-ini/src/cz/frantovo/alt2xml/in/ini/ReaderFactory.java Sat Sep 06 17:19:21 2014 +0200
8.3 @@ -0,0 +1,41 @@
8.4 +/**
8.5 + * Alt2XML
8.6 + * Copyright © 2014 František Kučera (frantovo.cz)
8.7 + *
8.8 + * This program is free software: you can redistribute it and/or modify
8.9 + * it under the terms of the GNU General Public License as published by
8.10 + * the Free Software Foundation, either version 3 of the License, or
8.11 + * (at your option) any later version.
8.12 + *
8.13 + * This program is distributed in the hope that it will be useful,
8.14 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
8.15 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8.16 + * GNU General Public License for more details.
8.17 + *
8.18 + * You should have received a copy of the GNU General Public License
8.19 + * along with this program. If not, see <http://www.gnu.org/licenses/>.
8.20 + */
8.21 +package cz.frantovo.alt2xml.in.ini;
8.22 +
8.23 +import cz.frantovo.alt2xml.Alt2XmlRegexReaderFactory;
8.24 +import java.util.regex.Pattern;
8.25 +import org.xml.sax.XMLReader;
8.26 +
8.27 +/**
8.28 + *
8.29 + * @author Ing. František Kučera (frantovo.cz)
8.30 + */
8.31 +public class ReaderFactory extends Alt2XmlRegexReaderFactory {
8.32 +
8.33 + private static final Pattern pattern = Pattern.compile("^.*\\.(ini|desktop)$");
8.34 +
8.35 + @Override
8.36 + protected Pattern getSystemIdPattern() {
8.37 + return pattern;
8.38 + }
8.39 +
8.40 + @Override
8.41 + public XMLReader getReader() {
8.42 + return new Reader();
8.43 + }
8.44 +}
9.1 --- a/scripts/alt2xml.sh Sat Sep 06 17:17:37 2014 +0200
9.2 +++ b/scripts/alt2xml.sh Sat Sep 06 17:19:21 2014 +0200
9.3 @@ -10,6 +10,7 @@
9.4
9.5 INPUT_PLUGINS=(
9.6 "$DIR/java/alt2xml-in-properties/dist/alt2xml-in-properties.jar"
9.7 + "$DIR/java/alt2xml-in-ini/dist/alt2xml-in-ini.jar"
9.8
9.9 "$DIR/java/alt2xml-in-json/dist/alt2xml-in-json.jar"
9.10 "$DIR/../temp/lib/json_simple-1.1.jar"