1.1 --- a/.hgignore Mon Jul 08 01:22:51 2013 +0200
1.2 +++ b/.hgignore Mon Jul 08 23:36:50 2013 +0200
1.3 @@ -1,1 +1,3 @@
1.4 temp/*
1.5 +data/schemas.xml
1.6 +java/dictionary-generator/nbproject/private
2.1 --- a/data/dictionary.xml Mon Jul 08 01:22:51 2013 +0200
2.2 +++ b/data/dictionary.xml Mon Jul 08 23:36:50 2013 +0200
2.3 @@ -1,7 +1,7 @@
2.4 <?xml version="1.0" encoding="UTF-8"?>
2.5 <!--
2.6 Free Telco Dictionary
2.7 -Copyright © 2012 František Kučera (frantovo.cz)
2.8 +Copyright © 2013 František Kučera (frantovo.cz)
2.9
2.10 Permission is granted to copy, distribute and/or modify this document
2.11 under the terms of the GNU Free Documentation License, Version 1.3
3.1 --- a/data/dictionary.xsd Mon Jul 08 01:22:51 2013 +0200
3.2 +++ b/data/dictionary.xsd Mon Jul 08 23:36:50 2013 +0200
3.3 @@ -1,7 +1,7 @@
3.4 <?xml version="1.0" encoding="UTF-8"?>
3.5 <!--
3.6 Free Telco Dictionary
3.7 -Copyright © 2012 František Kučera (frantovo.cz)
3.8 +Copyright © 2013 František Kučera (frantovo.cz)
3.9
3.10 This program is free software: you can redistribute it and/or modify
3.11 it under the terms of the GNU General Public License as published by
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
4.2 +++ b/java/dictionary-generator/build.xml Mon Jul 08 23:36:50 2013 +0200
4.3 @@ -0,0 +1,74 @@
4.4 +<?xml version="1.0" encoding="UTF-8"?>
4.5 +<!-- You may freely edit this file. See commented blocks below for -->
4.6 +<!-- some examples of how to customize the build. -->
4.7 +<!-- (If you delete it and reopen the project it will be recreated.) -->
4.8 +<!-- By default, only the Clean and Build commands use this build script. -->
4.9 +<!-- Commands such as Run, Debug, and Test only use this build script if -->
4.10 +<!-- the Compile on Save feature is turned off for the project. -->
4.11 +<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
4.12 +<!-- in the project's Project Properties dialog box.-->
4.13 +<project name="dictionary-generator" default="default" basedir=".">
4.14 + <description>Builds, tests, and runs the project dictionary-generator.</description>
4.15 + <import file="nbproject/build-impl.xml"/>
4.16 + <!--
4.17 +
4.18 + There exist several targets which are by default empty and which can be
4.19 + used for execution of your tasks. These targets are usually executed
4.20 + before and after some main targets. They are:
4.21 +
4.22 + -pre-init: called before initialization of project properties
4.23 + -post-init: called after initialization of project properties
4.24 + -pre-compile: called before javac compilation
4.25 + -post-compile: called after javac compilation
4.26 + -pre-compile-single: called before javac compilation of single file
4.27 + -post-compile-single: called after javac compilation of single file
4.28 + -pre-compile-test: called before javac compilation of JUnit tests
4.29 + -post-compile-test: called after javac compilation of JUnit tests
4.30 + -pre-compile-test-single: called before javac compilation of single JUnit test
4.31 + -post-compile-test-single: called after javac compilation of single JUunit test
4.32 + -pre-jar: called before JAR building
4.33 + -post-jar: called after JAR building
4.34 + -post-clean: called after cleaning build products
4.35 +
4.36 + (Targets beginning with '-' are not intended to be called on their own.)
4.37 +
4.38 + Example of inserting an obfuscator after compilation could look like this:
4.39 +
4.40 + <target name="-post-compile">
4.41 + <obfuscate>
4.42 + <fileset dir="${build.classes.dir}"/>
4.43 + </obfuscate>
4.44 + </target>
4.45 +
4.46 + For list of available properties check the imported
4.47 + nbproject/build-impl.xml file.
4.48 +
4.49 +
4.50 + Another way to customize the build is by overriding existing main targets.
4.51 + The targets of interest are:
4.52 +
4.53 + -init-macrodef-javac: defines macro for javac compilation
4.54 + -init-macrodef-junit: defines macro for junit execution
4.55 + -init-macrodef-debug: defines macro for class debugging
4.56 + -init-macrodef-java: defines macro for class execution
4.57 + -do-jar-with-manifest: JAR building (if you are using a manifest)
4.58 + -do-jar-without-manifest: JAR building (if you are not using a manifest)
4.59 + run: execution of project
4.60 + -javadoc-build: Javadoc generation
4.61 + test-report: JUnit report generation
4.62 +
4.63 + An example of overriding the target for project execution could look like this:
4.64 +
4.65 + <target name="run" depends="dictionary-generator-impl.jar">
4.66 + <exec dir="bin" executable="launcher.exe">
4.67 + <arg file="${dist.jar}"/>
4.68 + </exec>
4.69 + </target>
4.70 +
4.71 + Notice that the overridden target depends on the jar target and not only on
4.72 + the compile target as the regular run target does. Again, for a list of available
4.73 + properties which you can use, check the target you are overriding in the
4.74 + nbproject/build-impl.xml file.
4.75 +
4.76 + -->
4.77 +</project>
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
5.2 +++ b/java/dictionary-generator/manifest.mf Mon Jul 08 23:36:50 2013 +0200
5.3 @@ -0,0 +1,3 @@
5.4 +Manifest-Version: 1.0
5.5 +X-COMMENT: Main-Class will be added automatically by build
5.6 +
6.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
6.2 +++ b/java/dictionary-generator/nbproject/build-impl.xml Mon Jul 08 23:36:50 2013 +0200
6.3 @@ -0,0 +1,1411 @@
6.4 +<?xml version="1.0" encoding="UTF-8"?>
6.5 +<!--
6.6 +*** GENERATED FROM project.xml - DO NOT EDIT ***
6.7 +*** EDIT ../build.xml INSTEAD ***
6.8 +
6.9 +For the purpose of easier reading the script
6.10 +is divided into following sections:
6.11 +
6.12 + - initialization
6.13 + - compilation
6.14 + - jar
6.15 + - execution
6.16 + - debugging
6.17 + - javadoc
6.18 + - test compilation
6.19 + - test execution
6.20 + - test debugging
6.21 + - applet
6.22 + - cleanup
6.23 +
6.24 + -->
6.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="dictionary-generator-impl">
6.26 + <fail message="Please build using Ant 1.8.0 or higher.">
6.27 + <condition>
6.28 + <not>
6.29 + <antversion atleast="1.8.0"/>
6.30 + </not>
6.31 + </condition>
6.32 + </fail>
6.33 + <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
6.34 + <!--
6.35 + ======================
6.36 + INITIALIZATION SECTION
6.37 + ======================
6.38 + -->
6.39 + <target name="-pre-init">
6.40 + <!-- Empty placeholder for easier customization. -->
6.41 + <!-- You can override this target in the ../build.xml file. -->
6.42 + </target>
6.43 + <target depends="-pre-init" name="-init-private">
6.44 + <property file="nbproject/private/config.properties"/>
6.45 + <property file="nbproject/private/configs/${config}.properties"/>
6.46 + <property file="nbproject/private/private.properties"/>
6.47 + </target>
6.48 + <target depends="-pre-init,-init-private" name="-init-user">
6.49 + <property file="${user.properties.file}"/>
6.50 + <!-- The two properties below are usually overridden -->
6.51 + <!-- by the active platform. Just a fallback. -->
6.52 + <property name="default.javac.source" value="1.4"/>
6.53 + <property name="default.javac.target" value="1.4"/>
6.54 + </target>
6.55 + <target depends="-pre-init,-init-private,-init-user" name="-init-project">
6.56 + <property file="nbproject/configs/${config}.properties"/>
6.57 + <property file="nbproject/project.properties"/>
6.58 + </target>
6.59 + <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
6.60 + <available file="${manifest.file}" property="manifest.available"/>
6.61 + <condition property="splashscreen.available">
6.62 + <and>
6.63 + <not>
6.64 + <equals arg1="${application.splash}" arg2="" trim="true"/>
6.65 + </not>
6.66 + <available file="${application.splash}"/>
6.67 + </and>
6.68 + </condition>
6.69 + <condition property="main.class.available">
6.70 + <and>
6.71 + <isset property="main.class"/>
6.72 + <not>
6.73 + <equals arg1="${main.class}" arg2="" trim="true"/>
6.74 + </not>
6.75 + </and>
6.76 + </condition>
6.77 + <condition property="manifest.available+main.class">
6.78 + <and>
6.79 + <isset property="manifest.available"/>
6.80 + <isset property="main.class.available"/>
6.81 + </and>
6.82 + </condition>
6.83 + <condition property="do.archive">
6.84 + <not>
6.85 + <istrue value="${jar.archive.disabled}"/>
6.86 + </not>
6.87 + </condition>
6.88 + <condition property="do.mkdist">
6.89 + <and>
6.90 + <isset property="do.archive"/>
6.91 + <isset property="libs.CopyLibs.classpath"/>
6.92 + <not>
6.93 + <istrue value="${mkdist.disabled}"/>
6.94 + </not>
6.95 + </and>
6.96 + </condition>
6.97 + <condition property="manifest.available+main.class+mkdist.available">
6.98 + <and>
6.99 + <istrue value="${manifest.available+main.class}"/>
6.100 + <isset property="do.mkdist"/>
6.101 + </and>
6.102 + </condition>
6.103 + <condition property="do.archive+manifest.available">
6.104 + <and>
6.105 + <isset property="manifest.available"/>
6.106 + <istrue value="${do.archive}"/>
6.107 + </and>
6.108 + </condition>
6.109 + <condition property="do.archive+main.class.available">
6.110 + <and>
6.111 + <isset property="main.class.available"/>
6.112 + <istrue value="${do.archive}"/>
6.113 + </and>
6.114 + </condition>
6.115 + <condition property="do.archive+splashscreen.available">
6.116 + <and>
6.117 + <isset property="splashscreen.available"/>
6.118 + <istrue value="${do.archive}"/>
6.119 + </and>
6.120 + </condition>
6.121 + <condition property="do.archive+manifest.available+main.class">
6.122 + <and>
6.123 + <istrue value="${manifest.available+main.class}"/>
6.124 + <istrue value="${do.archive}"/>
6.125 + </and>
6.126 + </condition>
6.127 + <condition property="manifest.available-mkdist.available">
6.128 + <or>
6.129 + <istrue value="${manifest.available}"/>
6.130 + <isset property="do.mkdist"/>
6.131 + </or>
6.132 + </condition>
6.133 + <condition property="manifest.available+main.class-mkdist.available">
6.134 + <or>
6.135 + <istrue value="${manifest.available+main.class}"/>
6.136 + <isset property="do.mkdist"/>
6.137 + </or>
6.138 + </condition>
6.139 + <condition property="have.tests">
6.140 + <or>
6.141 + <available file="${test.src.dir}"/>
6.142 + </or>
6.143 + </condition>
6.144 + <condition property="have.sources">
6.145 + <or>
6.146 + <available file="${src.dir}"/>
6.147 + </or>
6.148 + </condition>
6.149 + <condition property="netbeans.home+have.tests">
6.150 + <and>
6.151 + <isset property="netbeans.home"/>
6.152 + <isset property="have.tests"/>
6.153 + </and>
6.154 + </condition>
6.155 + <condition property="no.javadoc.preview">
6.156 + <and>
6.157 + <isset property="javadoc.preview"/>
6.158 + <isfalse value="${javadoc.preview}"/>
6.159 + </and>
6.160 + </condition>
6.161 + <property name="run.jvmargs" value=""/>
6.162 + <property name="run.jvmargs.ide" value=""/>
6.163 + <property name="javac.compilerargs" value=""/>
6.164 + <property name="work.dir" value="${basedir}"/>
6.165 + <condition property="no.deps">
6.166 + <and>
6.167 + <istrue value="${no.dependencies}"/>
6.168 + </and>
6.169 + </condition>
6.170 + <property name="javac.debug" value="true"/>
6.171 + <property name="javadoc.preview" value="true"/>
6.172 + <property name="application.args" value=""/>
6.173 + <property name="source.encoding" value="${file.encoding}"/>
6.174 + <property name="runtime.encoding" value="${source.encoding}"/>
6.175 + <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
6.176 + <and>
6.177 + <isset property="javadoc.encoding"/>
6.178 + <not>
6.179 + <equals arg1="${javadoc.encoding}" arg2=""/>
6.180 + </not>
6.181 + </and>
6.182 + </condition>
6.183 + <property name="javadoc.encoding.used" value="${source.encoding}"/>
6.184 + <property name="includes" value="**"/>
6.185 + <property name="excludes" value=""/>
6.186 + <property name="do.depend" value="false"/>
6.187 + <condition property="do.depend.true">
6.188 + <istrue value="${do.depend}"/>
6.189 + </condition>
6.190 + <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
6.191 + <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
6.192 + <length length="0" string="${endorsed.classpath}" when="greater"/>
6.193 + </condition>
6.194 + <condition else="false" property="jdkBug6558476">
6.195 + <and>
6.196 + <matches pattern="1\.[56]" string="${java.specification.version}"/>
6.197 + <not>
6.198 + <os family="unix"/>
6.199 + </not>
6.200 + </and>
6.201 + </condition>
6.202 + <property name="javac.fork" value="${jdkBug6558476}"/>
6.203 + <property name="jar.index" value="false"/>
6.204 + <property name="jar.index.metainf" value="${jar.index}"/>
6.205 + <property name="copylibs.rebase" value="true"/>
6.206 + <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
6.207 + <condition property="junit.available">
6.208 + <or>
6.209 + <available classname="org.junit.Test" classpath="${run.test.classpath}"/>
6.210 + <available classname="junit.framework.Test" classpath="${run.test.classpath}"/>
6.211 + </or>
6.212 + </condition>
6.213 + <condition property="testng.available">
6.214 + <available classname="org.testng.annotations.Test" classpath="${run.test.classpath}"/>
6.215 + </condition>
6.216 + <condition property="junit+testng.available">
6.217 + <and>
6.218 + <istrue value="${junit.available}"/>
6.219 + <istrue value="${testng.available}"/>
6.220 + </and>
6.221 + </condition>
6.222 + <condition else="testng" property="testng.mode" value="mixed">
6.223 + <istrue value="${junit+testng.available}"/>
6.224 + </condition>
6.225 + <condition else="" property="testng.debug.mode" value="-mixed">
6.226 + <istrue value="${junit+testng.available}"/>
6.227 + </condition>
6.228 + </target>
6.229 + <target name="-post-init">
6.230 + <!-- Empty placeholder for easier customization. -->
6.231 + <!-- You can override this target in the ../build.xml file. -->
6.232 + </target>
6.233 + <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
6.234 + <fail unless="src.dir">Must set src.dir</fail>
6.235 + <fail unless="test.src.dir">Must set test.src.dir</fail>
6.236 + <fail unless="build.dir">Must set build.dir</fail>
6.237 + <fail unless="dist.dir">Must set dist.dir</fail>
6.238 + <fail unless="build.classes.dir">Must set build.classes.dir</fail>
6.239 + <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
6.240 + <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
6.241 + <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
6.242 + <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
6.243 + <fail unless="dist.jar">Must set dist.jar</fail>
6.244 + </target>
6.245 + <target name="-init-macrodef-property">
6.246 + <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
6.247 + <attribute name="name"/>
6.248 + <attribute name="value"/>
6.249 + <sequential>
6.250 + <property name="@{name}" value="${@{value}}"/>
6.251 + </sequential>
6.252 + </macrodef>
6.253 + </target>
6.254 + <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
6.255 + <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
6.256 + <attribute default="${src.dir}" name="srcdir"/>
6.257 + <attribute default="${build.classes.dir}" name="destdir"/>
6.258 + <attribute default="${javac.classpath}" name="classpath"/>
6.259 + <attribute default="${javac.processorpath}" name="processorpath"/>
6.260 + <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
6.261 + <attribute default="${includes}" name="includes"/>
6.262 + <attribute default="${excludes}" name="excludes"/>
6.263 + <attribute default="${javac.debug}" name="debug"/>
6.264 + <attribute default="${empty.dir}" name="sourcepath"/>
6.265 + <attribute default="${empty.dir}" name="gensrcdir"/>
6.266 + <element name="customize" optional="true"/>
6.267 + <sequential>
6.268 + <property location="${build.dir}/empty" name="empty.dir"/>
6.269 + <mkdir dir="${empty.dir}"/>
6.270 + <mkdir dir="@{apgeneratedsrcdir}"/>
6.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}">
6.272 + <src>
6.273 + <dirset dir="@{gensrcdir}" erroronmissingdir="false">
6.274 + <include name="*"/>
6.275 + </dirset>
6.276 + </src>
6.277 + <classpath>
6.278 + <path path="@{classpath}"/>
6.279 + </classpath>
6.280 + <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
6.281 + <compilerarg line="${javac.compilerargs}"/>
6.282 + <compilerarg value="-processorpath"/>
6.283 + <compilerarg path="@{processorpath}:${empty.dir}"/>
6.284 + <compilerarg line="${ap.processors.internal}"/>
6.285 + <compilerarg line="${annotation.processing.processor.options}"/>
6.286 + <compilerarg value="-s"/>
6.287 + <compilerarg path="@{apgeneratedsrcdir}"/>
6.288 + <compilerarg line="${ap.proc.none.internal}"/>
6.289 + <customize/>
6.290 + </javac>
6.291 + </sequential>
6.292 + </macrodef>
6.293 + </target>
6.294 + <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
6.295 + <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
6.296 + <attribute default="${src.dir}" name="srcdir"/>
6.297 + <attribute default="${build.classes.dir}" name="destdir"/>
6.298 + <attribute default="${javac.classpath}" name="classpath"/>
6.299 + <attribute default="${javac.processorpath}" name="processorpath"/>
6.300 + <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
6.301 + <attribute default="${includes}" name="includes"/>
6.302 + <attribute default="${excludes}" name="excludes"/>
6.303 + <attribute default="${javac.debug}" name="debug"/>
6.304 + <attribute default="${empty.dir}" name="sourcepath"/>
6.305 + <attribute default="${empty.dir}" name="gensrcdir"/>
6.306 + <element name="customize" optional="true"/>
6.307 + <sequential>
6.308 + <property location="${build.dir}/empty" name="empty.dir"/>
6.309 + <mkdir dir="${empty.dir}"/>
6.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}">
6.311 + <src>
6.312 + <dirset dir="@{gensrcdir}" erroronmissingdir="false">
6.313 + <include name="*"/>
6.314 + </dirset>
6.315 + </src>
6.316 + <classpath>
6.317 + <path path="@{classpath}"/>
6.318 + </classpath>
6.319 + <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
6.320 + <compilerarg line="${javac.compilerargs}"/>
6.321 + <customize/>
6.322 + </javac>
6.323 + </sequential>
6.324 + </macrodef>
6.325 + </target>
6.326 + <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
6.327 + <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
6.328 + <attribute default="${src.dir}" name="srcdir"/>
6.329 + <attribute default="${build.classes.dir}" name="destdir"/>
6.330 + <attribute default="${javac.classpath}" name="classpath"/>
6.331 + <sequential>
6.332 + <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
6.333 + <classpath>
6.334 + <path path="@{classpath}"/>
6.335 + </classpath>
6.336 + </depend>
6.337 + </sequential>
6.338 + </macrodef>
6.339 + <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
6.340 + <attribute default="${build.classes.dir}" name="destdir"/>
6.341 + <sequential>
6.342 + <fail unless="javac.includes">Must set javac.includes</fail>
6.343 + <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
6.344 + <path>
6.345 + <filelist dir="@{destdir}" files="${javac.includes}"/>
6.346 + </path>
6.347 + <globmapper from="*.java" to="*.class"/>
6.348 + </pathconvert>
6.349 + <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
6.350 + <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
6.351 + <delete>
6.352 + <files includesfile="${javac.includesfile.binary}"/>
6.353 + </delete>
6.354 + <delete>
6.355 + <fileset file="${javac.includesfile.binary}"/>
6.356 + </delete>
6.357 + </sequential>
6.358 + </macrodef>
6.359 + </target>
6.360 + <target if="${junit.available}" name="-init-macrodef-junit-init">
6.361 + <condition else="false" property="nb.junit.batch" value="true">
6.362 + <and>
6.363 + <istrue value="${junit.available}"/>
6.364 + <not>
6.365 + <isset property="test.method"/>
6.366 + </not>
6.367 + </and>
6.368 + </condition>
6.369 + <condition else="false" property="nb.junit.single" value="true">
6.370 + <and>
6.371 + <istrue value="${junit.available}"/>
6.372 + <isset property="test.method"/>
6.373 + </and>
6.374 + </condition>
6.375 + </target>
6.376 + <target name="-init-test-properties">
6.377 + <property name="test.binaryincludes" value="<nothing>"/>
6.378 + <property name="test.binarytestincludes" value=""/>
6.379 + <property name="test.binaryexcludes" value=""/>
6.380 + </target>
6.381 + <target if="${nb.junit.single}" name="-init-macrodef-junit-single" unless="${nb.junit.batch}">
6.382 + <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
6.383 + <attribute default="${includes}" name="includes"/>
6.384 + <attribute default="${excludes}" name="excludes"/>
6.385 + <attribute default="**" name="testincludes"/>
6.386 + <attribute default="" name="testmethods"/>
6.387 + <element name="customize" optional="true"/>
6.388 + <sequential>
6.389 + <property name="junit.forkmode" value="perTest"/>
6.390 + <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
6.391 + <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
6.392 + <syspropertyset>
6.393 + <propertyref prefix="test-sys-prop."/>
6.394 + <mapper from="test-sys-prop.*" to="*" type="glob"/>
6.395 + </syspropertyset>
6.396 + <formatter type="brief" usefile="false"/>
6.397 + <formatter type="xml"/>
6.398 + <jvmarg value="-ea"/>
6.399 + <customize/>
6.400 + </junit>
6.401 + </sequential>
6.402 + </macrodef>
6.403 + </target>
6.404 + <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-batch" unless="${nb.junit.single}">
6.405 + <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
6.406 + <attribute default="${includes}" name="includes"/>
6.407 + <attribute default="${excludes}" name="excludes"/>
6.408 + <attribute default="**" name="testincludes"/>
6.409 + <attribute default="" name="testmethods"/>
6.410 + <element name="customize" optional="true"/>
6.411 + <sequential>
6.412 + <property name="junit.forkmode" value="perTest"/>
6.413 + <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
6.414 + <batchtest todir="${build.test.results.dir}">
6.415 + <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
6.416 + <filename name="@{testincludes}"/>
6.417 + </fileset>
6.418 + <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
6.419 + <filename name="${test.binarytestincludes}"/>
6.420 + </fileset>
6.421 + </batchtest>
6.422 + <syspropertyset>
6.423 + <propertyref prefix="test-sys-prop."/>
6.424 + <mapper from="test-sys-prop.*" to="*" type="glob"/>
6.425 + </syspropertyset>
6.426 + <formatter type="brief" usefile="false"/>
6.427 + <formatter type="xml"/>
6.428 + <jvmarg value="-ea"/>
6.429 + <customize/>
6.430 + </junit>
6.431 + </sequential>
6.432 + </macrodef>
6.433 + </target>
6.434 + <target depends="-init-macrodef-junit-init,-init-macrodef-junit-single, -init-macrodef-junit-batch" if="${junit.available}" name="-init-macrodef-junit"/>
6.435 + <target if="${testng.available}" name="-init-macrodef-testng">
6.436 + <macrodef name="testng" uri="http://www.netbeans.org/ns/j2se-project/3">
6.437 + <attribute default="${includes}" name="includes"/>
6.438 + <attribute default="${excludes}" name="excludes"/>
6.439 + <attribute default="**" name="testincludes"/>
6.440 + <attribute default="" name="testmethods"/>
6.441 + <element name="customize" optional="true"/>
6.442 + <sequential>
6.443 + <condition else="" property="testng.methods.arg" value="@{testincludes}.@{testmethods}">
6.444 + <isset property="test.method"/>
6.445 + </condition>
6.446 + <union id="test.set">
6.447 + <fileset dir="${test.src.dir}" excludes="@{excludes},**/*.xml,${excludes}" includes="@{includes}">
6.448 + <filename name="@{testincludes}"/>
6.449 + </fileset>
6.450 + </union>
6.451 + <taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
6.452 + <testng classfilesetref="test.set" failureProperty="tests.failed" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="dictionary-generator" testname="TestNG tests" workingDir="${work.dir}">
6.453 + <xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
6.454 + <propertyset>
6.455 + <propertyref prefix="test-sys-prop."/>
6.456 + <mapper from="test-sys-prop.*" to="*" type="glob"/>
6.457 + </propertyset>
6.458 + <customize/>
6.459 + </testng>
6.460 + </sequential>
6.461 + </macrodef>
6.462 + </target>
6.463 + <target name="-init-macrodef-test-impl">
6.464 + <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
6.465 + <attribute default="${includes}" name="includes"/>
6.466 + <attribute default="${excludes}" name="excludes"/>
6.467 + <attribute default="**" name="testincludes"/>
6.468 + <attribute default="" name="testmethods"/>
6.469 + <element implicit="true" name="customize" optional="true"/>
6.470 + <sequential>
6.471 + <echo>No tests executed.</echo>
6.472 + </sequential>
6.473 + </macrodef>
6.474 + </target>
6.475 + <target depends="-init-macrodef-junit" if="${junit.available}" name="-init-macrodef-junit-impl">
6.476 + <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
6.477 + <attribute default="${includes}" name="includes"/>
6.478 + <attribute default="${excludes}" name="excludes"/>
6.479 + <attribute default="**" name="testincludes"/>
6.480 + <attribute default="" name="testmethods"/>
6.481 + <element implicit="true" name="customize" optional="true"/>
6.482 + <sequential>
6.483 + <j2seproject3:junit excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
6.484 + <customize/>
6.485 + </j2seproject3:junit>
6.486 + </sequential>
6.487 + </macrodef>
6.488 + </target>
6.489 + <target depends="-init-macrodef-testng" if="${testng.available}" name="-init-macrodef-testng-impl">
6.490 + <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
6.491 + <attribute default="${includes}" name="includes"/>
6.492 + <attribute default="${excludes}" name="excludes"/>
6.493 + <attribute default="**" name="testincludes"/>
6.494 + <attribute default="" name="testmethods"/>
6.495 + <element implicit="true" name="customize" optional="true"/>
6.496 + <sequential>
6.497 + <j2seproject3:testng excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
6.498 + <customize/>
6.499 + </j2seproject3:testng>
6.500 + </sequential>
6.501 + </macrodef>
6.502 + </target>
6.503 + <target depends="-init-macrodef-test-impl,-init-macrodef-junit-impl,-init-macrodef-testng-impl" name="-init-macrodef-test">
6.504 + <macrodef name="test" uri="http://www.netbeans.org/ns/j2se-project/3">
6.505 + <attribute default="${includes}" name="includes"/>
6.506 + <attribute default="${excludes}" name="excludes"/>
6.507 + <attribute default="**" name="testincludes"/>
6.508 + <attribute default="" name="testmethods"/>
6.509 + <sequential>
6.510 + <j2seproject3:test-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
6.511 + <customize>
6.512 + <classpath>
6.513 + <path path="${run.test.classpath}"/>
6.514 + </classpath>
6.515 + <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
6.516 + <jvmarg line="${run.jvmargs}"/>
6.517 + <jvmarg line="${run.jvmargs.ide}"/>
6.518 + </customize>
6.519 + </j2seproject3:test-impl>
6.520 + </sequential>
6.521 + </macrodef>
6.522 + </target>
6.523 + <target if="${junit.available}" name="-init-macrodef-junit-debug" unless="${nb.junit.batch}">
6.524 + <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
6.525 + <attribute default="${includes}" name="includes"/>
6.526 + <attribute default="${excludes}" name="excludes"/>
6.527 + <attribute default="**" name="testincludes"/>
6.528 + <attribute default="" name="testmethods"/>
6.529 + <element name="customize" optional="true"/>
6.530 + <sequential>
6.531 + <property name="junit.forkmode" value="perTest"/>
6.532 + <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
6.533 + <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
6.534 + <syspropertyset>
6.535 + <propertyref prefix="test-sys-prop."/>
6.536 + <mapper from="test-sys-prop.*" to="*" type="glob"/>
6.537 + </syspropertyset>
6.538 + <formatter type="brief" usefile="false"/>
6.539 + <formatter type="xml"/>
6.540 + <jvmarg value="-ea"/>
6.541 + <jvmarg line="${debug-args-line}"/>
6.542 + <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
6.543 + <customize/>
6.544 + </junit>
6.545 + </sequential>
6.546 + </macrodef>
6.547 + </target>
6.548 + <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-debug-batch">
6.549 + <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
6.550 + <attribute default="${includes}" name="includes"/>
6.551 + <attribute default="${excludes}" name="excludes"/>
6.552 + <attribute default="**" name="testincludes"/>
6.553 + <attribute default="" name="testmethods"/>
6.554 + <element name="customize" optional="true"/>
6.555 + <sequential>
6.556 + <property name="junit.forkmode" value="perTest"/>
6.557 + <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
6.558 + <batchtest todir="${build.test.results.dir}">
6.559 + <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
6.560 + <filename name="@{testincludes}"/>
6.561 + </fileset>
6.562 + <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
6.563 + <filename name="${test.binarytestincludes}"/>
6.564 + </fileset>
6.565 + </batchtest>
6.566 + <syspropertyset>
6.567 + <propertyref prefix="test-sys-prop."/>
6.568 + <mapper from="test-sys-prop.*" to="*" type="glob"/>
6.569 + </syspropertyset>
6.570 + <formatter type="brief" usefile="false"/>
6.571 + <formatter type="xml"/>
6.572 + <jvmarg value="-ea"/>
6.573 + <jvmarg line="${debug-args-line}"/>
6.574 + <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
6.575 + <customize/>
6.576 + </junit>
6.577 + </sequential>
6.578 + </macrodef>
6.579 + </target>
6.580 + <target depends="-init-macrodef-junit-debug,-init-macrodef-junit-debug-batch" if="${junit.available}" name="-init-macrodef-junit-debug-impl">
6.581 + <macrodef name="test-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
6.582 + <attribute default="${includes}" name="includes"/>
6.583 + <attribute default="${excludes}" name="excludes"/>
6.584 + <attribute default="**" name="testincludes"/>
6.585 + <attribute default="" name="testmethods"/>
6.586 + <element implicit="true" name="customize" optional="true"/>
6.587 + <sequential>
6.588 + <j2seproject3:junit-debug excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
6.589 + <customize/>
6.590 + </j2seproject3:junit-debug>
6.591 + </sequential>
6.592 + </macrodef>
6.593 + </target>
6.594 + <target if="${testng.available}" name="-init-macrodef-testng-debug">
6.595 + <macrodef name="testng-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
6.596 + <attribute default="${main.class}" name="testClass"/>
6.597 + <attribute default="" name="testMethod"/>
6.598 + <element name="customize2" optional="true"/>
6.599 + <sequential>
6.600 + <condition else="-testclass @{testClass}" property="test.class.or.method" value="-methods @{testClass}.@{testMethod}">
6.601 + <isset property="test.method"/>
6.602 + </condition>
6.603 + <condition else="-suitename dictionary-generator -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}">
6.604 + <matches pattern=".*\.xml" string="@{testClass}"/>
6.605 + </condition>
6.606 + <delete dir="${build.test.results.dir}" quiet="true"/>
6.607 + <mkdir dir="${build.test.results.dir}"/>
6.608 + <j2seproject3:debug classname="org.testng.TestNG" classpath="${debug.test.classpath}">
6.609 + <customize>
6.610 + <customize2/>
6.611 + <jvmarg value="-ea"/>
6.612 + <arg line="${testng.debug.mode}"/>
6.613 + <arg line="-d ${build.test.results.dir}"/>
6.614 + <arg line="-listener org.testng.reporters.VerboseReporter"/>
6.615 + <arg line="${testng.cmd.args}"/>
6.616 + </customize>
6.617 + </j2seproject3:debug>
6.618 + </sequential>
6.619 + </macrodef>
6.620 + </target>
6.621 + <target depends="-init-macrodef-testng-debug" if="${testng.available}" name="-init-macrodef-testng-debug-impl">
6.622 + <macrodef name="testng-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
6.623 + <attribute default="${main.class}" name="testClass"/>
6.624 + <attribute default="" name="testMethod"/>
6.625 + <element implicit="true" name="customize2" optional="true"/>
6.626 + <sequential>
6.627 + <j2seproject3:testng-debug testClass="@{testClass}" testMethod="@{testMethod}">
6.628 + <customize2/>
6.629 + </j2seproject3:testng-debug>
6.630 + </sequential>
6.631 + </macrodef>
6.632 + </target>
6.633 + <target depends="-init-macrodef-junit-debug-impl" if="${junit.available}" name="-init-macrodef-test-debug-junit">
6.634 + <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
6.635 + <attribute default="${includes}" name="includes"/>
6.636 + <attribute default="${excludes}" name="excludes"/>
6.637 + <attribute default="**" name="testincludes"/>
6.638 + <attribute default="" name="testmethods"/>
6.639 + <attribute default="${main.class}" name="testClass"/>
6.640 + <attribute default="" name="testMethod"/>
6.641 + <sequential>
6.642 + <j2seproject3:test-debug-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
6.643 + <customize>
6.644 + <classpath>
6.645 + <path path="${run.test.classpath}"/>
6.646 + </classpath>
6.647 + <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
6.648 + <jvmarg line="${run.jvmargs}"/>
6.649 + <jvmarg line="${run.jvmargs.ide}"/>
6.650 + </customize>
6.651 + </j2seproject3:test-debug-impl>
6.652 + </sequential>
6.653 + </macrodef>
6.654 + </target>
6.655 + <target depends="-init-macrodef-testng-debug-impl" if="${testng.available}" name="-init-macrodef-test-debug-testng">
6.656 + <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
6.657 + <attribute default="${includes}" name="includes"/>
6.658 + <attribute default="${excludes}" name="excludes"/>
6.659 + <attribute default="**" name="testincludes"/>
6.660 + <attribute default="" name="testmethods"/>
6.661 + <attribute default="${main.class}" name="testClass"/>
6.662 + <attribute default="" name="testMethod"/>
6.663 + <sequential>
6.664 + <j2seproject3:testng-debug-impl testClass="@{testClass}" testMethod="@{testMethod}">
6.665 + <customize2>
6.666 + <syspropertyset>
6.667 + <propertyref prefix="test-sys-prop."/>
6.668 + <mapper from="test-sys-prop.*" to="*" type="glob"/>
6.669 + </syspropertyset>
6.670 + </customize2>
6.671 + </j2seproject3:testng-debug-impl>
6.672 + </sequential>
6.673 + </macrodef>
6.674 + </target>
6.675 + <target depends="-init-macrodef-test-debug-junit,-init-macrodef-test-debug-testng" name="-init-macrodef-test-debug"/>
6.676 + <!--
6.677 + pre NB7.2 profiling section; consider it deprecated
6.678 + -->
6.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"/>
6.680 + <target if="profiler.info.jvmargs.agent" name="-profile-pre-init">
6.681 + <!-- Empty placeholder for easier customization. -->
6.682 + <!-- You can override this target in the ../build.xml file. -->
6.683 + </target>
6.684 + <target if="profiler.info.jvmargs.agent" name="-profile-post-init">
6.685 + <!-- Empty placeholder for easier customization. -->
6.686 + <!-- You can override this target in the ../build.xml file. -->
6.687 + </target>
6.688 + <target if="profiler.info.jvmargs.agent" name="-profile-init-macrodef-profile">
6.689 + <macrodef name="resolve">
6.690 + <attribute name="name"/>
6.691 + <attribute name="value"/>
6.692 + <sequential>
6.693 + <property name="@{name}" value="${env.@{value}}"/>
6.694 + </sequential>
6.695 + </macrodef>
6.696 + <macrodef name="profile">
6.697 + <attribute default="${main.class}" name="classname"/>
6.698 + <element name="customize" optional="true"/>
6.699 + <sequential>
6.700 + <property environment="env"/>
6.701 + <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
6.702 + <java classname="@{classname}" dir="${profiler.info.dir}" fork="true" jvm="${profiler.info.jvm}">
6.703 + <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
6.704 + <jvmarg value="${profiler.info.jvmargs.agent}"/>
6.705 + <jvmarg line="${profiler.info.jvmargs}"/>
6.706 + <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
6.707 + <arg line="${application.args}"/>
6.708 + <classpath>
6.709 + <path path="${run.classpath}"/>
6.710 + </classpath>
6.711 + <syspropertyset>
6.712 + <propertyref prefix="run-sys-prop."/>
6.713 + <mapper from="run-sys-prop.*" to="*" type="glob"/>
6.714 + </syspropertyset>
6.715 + <customize/>
6.716 + </java>
6.717 + </sequential>
6.718 + </macrodef>
6.719 + </target>
6.720 + <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" if="profiler.info.jvmargs.agent" name="-profile-init-check">
6.721 + <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
6.722 + <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
6.723 + </target>
6.724 + <!--
6.725 + end of pre NB7.2 profiling section
6.726 + -->
6.727 + <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
6.728 + <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
6.729 + <attribute default="${main.class}" name="name"/>
6.730 + <attribute default="${debug.classpath}" name="classpath"/>
6.731 + <attribute default="" name="stopclassname"/>
6.732 + <sequential>
6.733 + <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
6.734 + <classpath>
6.735 + <path path="@{classpath}"/>
6.736 + </classpath>
6.737 + </nbjpdastart>
6.738 + </sequential>
6.739 + </macrodef>
6.740 + <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
6.741 + <attribute default="${build.classes.dir}" name="dir"/>
6.742 + <sequential>
6.743 + <nbjpdareload>
6.744 + <fileset dir="@{dir}" includes="${fix.classes}">
6.745 + <include name="${fix.includes}*.class"/>
6.746 + </fileset>
6.747 + </nbjpdareload>
6.748 + </sequential>
6.749 + </macrodef>
6.750 + </target>
6.751 + <target name="-init-debug-args">
6.752 + <property name="version-output" value="java version "${ant.java.version}"/>
6.753 + <condition property="have-jdk-older-than-1.4">
6.754 + <or>
6.755 + <contains string="${version-output}" substring="java version "1.0"/>
6.756 + <contains string="${version-output}" substring="java version "1.1"/>
6.757 + <contains string="${version-output}" substring="java version "1.2"/>
6.758 + <contains string="${version-output}" substring="java version "1.3"/>
6.759 + </or>
6.760 + </condition>
6.761 + <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
6.762 + <istrue value="${have-jdk-older-than-1.4}"/>
6.763 + </condition>
6.764 + <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
6.765 + <os family="windows"/>
6.766 + </condition>
6.767 + <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
6.768 + <isset property="debug.transport"/>
6.769 + </condition>
6.770 + </target>
6.771 + <target depends="-init-debug-args" name="-init-macrodef-debug">
6.772 + <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
6.773 + <attribute default="${main.class}" name="classname"/>
6.774 + <attribute default="${debug.classpath}" name="classpath"/>
6.775 + <element name="customize" optional="true"/>
6.776 + <sequential>
6.777 + <java classname="@{classname}" dir="${work.dir}" fork="true">
6.778 + <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
6.779 + <jvmarg line="${debug-args-line}"/>
6.780 + <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
6.781 + <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
6.782 + <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
6.783 + <jvmarg line="${run.jvmargs}"/>
6.784 + <jvmarg line="${run.jvmargs.ide}"/>
6.785 + <classpath>
6.786 + <path path="@{classpath}"/>
6.787 + </classpath>
6.788 + <syspropertyset>
6.789 + <propertyref prefix="run-sys-prop."/>
6.790 + <mapper from="run-sys-prop.*" to="*" type="glob"/>
6.791 + </syspropertyset>
6.792 + <customize/>
6.793 + </java>
6.794 + </sequential>
6.795 + </macrodef>
6.796 + </target>
6.797 + <target name="-init-macrodef-java">
6.798 + <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
6.799 + <attribute default="${main.class}" name="classname"/>
6.800 + <attribute default="${run.classpath}" name="classpath"/>
6.801 + <attribute default="jvm" name="jvm"/>
6.802 + <element name="customize" optional="true"/>
6.803 + <sequential>
6.804 + <java classname="@{classname}" dir="${work.dir}" fork="true">
6.805 + <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
6.806 + <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
6.807 + <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
6.808 + <jvmarg line="${run.jvmargs}"/>
6.809 + <jvmarg line="${run.jvmargs.ide}"/>
6.810 + <classpath>
6.811 + <path path="@{classpath}"/>
6.812 + </classpath>
6.813 + <syspropertyset>
6.814 + <propertyref prefix="run-sys-prop."/>
6.815 + <mapper from="run-sys-prop.*" to="*" type="glob"/>
6.816 + </syspropertyset>
6.817 + <customize/>
6.818 + </java>
6.819 + </sequential>
6.820 + </macrodef>
6.821 + </target>
6.822 + <target name="-init-macrodef-copylibs">
6.823 + <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">
6.824 + <attribute default="${manifest.file}" name="manifest"/>
6.825 + <element name="customize" optional="true"/>
6.826 + <sequential>
6.827 + <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
6.828 + <pathconvert property="run.classpath.without.build.classes.dir">
6.829 + <path path="${run.classpath}"/>
6.830 + <map from="${build.classes.dir.resolved}" to=""/>
6.831 + </pathconvert>
6.832 + <pathconvert pathsep=" " property="jar.classpath">
6.833 + <path path="${run.classpath.without.build.classes.dir}"/>
6.834 + <chainedmapper>
6.835 + <flattenmapper/>
6.836 + <filtermapper>
6.837 + <replacestring from=" " to="%20"/>
6.838 + </filtermapper>
6.839 + <globmapper from="*" to="lib/*"/>
6.840 + </chainedmapper>
6.841 + </pathconvert>
6.842 + <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
6.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}">
6.844 + <fileset dir="${build.classes.dir}"/>
6.845 + <manifest>
6.846 + <attribute name="Class-Path" value="${jar.classpath}"/>
6.847 + <customize/>
6.848 + </manifest>
6.849 + </copylibs>
6.850 + </sequential>
6.851 + </macrodef>
6.852 + </target>
6.853 + <target name="-init-presetdef-jar">
6.854 + <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
6.855 + <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">
6.856 + <j2seproject1:fileset dir="${build.classes.dir}"/>
6.857 + </jar>
6.858 + </presetdef>
6.859 + </target>
6.860 + <target name="-init-ap-cmdline-properties">
6.861 + <property name="annotation.processing.enabled" value="true"/>
6.862 + <property name="annotation.processing.processors.list" value=""/>
6.863 + <property name="annotation.processing.processor.options" value=""/>
6.864 + <property name="annotation.processing.run.all.processors" value="true"/>
6.865 + <property name="javac.processorpath" value="${javac.classpath}"/>
6.866 + <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
6.867 + <condition property="ap.supported.internal" value="true">
6.868 + <not>
6.869 + <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
6.870 + </not>
6.871 + </condition>
6.872 + </target>
6.873 + <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
6.874 + <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
6.875 + <isfalse value="${annotation.processing.run.all.processors}"/>
6.876 + </condition>
6.877 + <condition else="" property="ap.proc.none.internal" value="-proc:none">
6.878 + <isfalse value="${annotation.processing.enabled}"/>
6.879 + </condition>
6.880 + </target>
6.881 + <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
6.882 + <property name="ap.cmd.line.internal" value=""/>
6.883 + </target>
6.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"/>
6.885 + <!--
6.886 + ===================
6.887 + COMPILATION SECTION
6.888 + ===================
6.889 + -->
6.890 + <target name="-deps-jar-init" unless="built-jar.properties">
6.891 + <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>
6.892 + <delete file="${built-jar.properties}" quiet="true"/>
6.893 + </target>
6.894 + <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
6.895 + <echo level="warn" message="Cycle detected: dictionary-generator was already built"/>
6.896 + </target>
6.897 + <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
6.898 + <mkdir dir="${build.dir}"/>
6.899 + <touch file="${built-jar.properties}" verbose="false"/>
6.900 + <property file="${built-jar.properties}" prefix="already.built.jar."/>
6.901 + <antcall target="-warn-already-built-jar"/>
6.902 + <propertyfile file="${built-jar.properties}">
6.903 + <entry key="${basedir}" value=""/>
6.904 + </propertyfile>
6.905 + </target>
6.906 + <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
6.907 + <target depends="init" name="-check-automatic-build">
6.908 + <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
6.909 + </target>
6.910 + <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
6.911 + <antcall target="clean"/>
6.912 + </target>
6.913 + <target depends="init,deps-jar" name="-pre-pre-compile">
6.914 + <mkdir dir="${build.classes.dir}"/>
6.915 + </target>
6.916 + <target name="-pre-compile">
6.917 + <!-- Empty placeholder for easier customization. -->
6.918 + <!-- You can override this target in the ../build.xml file. -->
6.919 + </target>
6.920 + <target if="do.depend.true" name="-compile-depend">
6.921 + <pathconvert property="build.generated.subdirs">
6.922 + <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
6.923 + <include name="*"/>
6.924 + </dirset>
6.925 + </pathconvert>
6.926 + <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>
6.927 + </target>
6.928 + <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">
6.929 + <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
6.930 + <copy todir="${build.classes.dir}">
6.931 + <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
6.932 + </copy>
6.933 + </target>
6.934 + <target if="has.persistence.xml" name="-copy-persistence-xml">
6.935 + <mkdir dir="${build.classes.dir}/META-INF"/>
6.936 + <copy todir="${build.classes.dir}/META-INF">
6.937 + <fileset dir="${meta.inf.dir}" includes="persistence.xml orm.xml"/>
6.938 + </copy>
6.939 + </target>
6.940 + <target name="-post-compile">
6.941 + <!-- Empty placeholder for easier customization. -->
6.942 + <!-- You can override this target in the ../build.xml file. -->
6.943 + </target>
6.944 + <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
6.945 + <target name="-pre-compile-single">
6.946 + <!-- Empty placeholder for easier customization. -->
6.947 + <!-- You can override this target in the ../build.xml file. -->
6.948 + </target>
6.949 + <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
6.950 + <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
6.951 + <j2seproject3:force-recompile/>
6.952 + <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>
6.953 + </target>
6.954 + <target name="-post-compile-single">
6.955 + <!-- Empty placeholder for easier customization. -->
6.956 + <!-- You can override this target in the ../build.xml file. -->
6.957 + </target>
6.958 + <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
6.959 + <!--
6.960 + ====================
6.961 + JAR BUILDING SECTION
6.962 + ====================
6.963 + -->
6.964 + <target depends="init" name="-pre-pre-jar">
6.965 + <dirname file="${dist.jar}" property="dist.jar.dir"/>
6.966 + <mkdir dir="${dist.jar.dir}"/>
6.967 + </target>
6.968 + <target name="-pre-jar">
6.969 + <!-- Empty placeholder for easier customization. -->
6.970 + <!-- You can override this target in the ../build.xml file. -->
6.971 + </target>
6.972 + <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive" name="-do-jar-without-manifest" unless="manifest.available-mkdist.available">
6.973 + <j2seproject1:jar/>
6.974 + </target>
6.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">
6.976 + <j2seproject1:jar manifest="${manifest.file}"/>
6.977 + </target>
6.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">
6.979 + <j2seproject1:jar manifest="${manifest.file}">
6.980 + <j2seproject1:manifest>
6.981 + <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
6.982 + </j2seproject1:manifest>
6.983 + </j2seproject1:jar>
6.984 + <echo level="info">To run this application from the command line without Ant, try:</echo>
6.985 + <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
6.986 + <property location="${dist.jar}" name="dist.jar.resolved"/>
6.987 + <pathconvert property="run.classpath.with.dist.jar">
6.988 + <path path="${run.classpath}"/>
6.989 + <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
6.990 + </pathconvert>
6.991 + <echo level="info">java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
6.992 + </target>
6.993 + <target depends="init" if="do.archive" name="-do-jar-with-libraries-create-manifest" unless="manifest.available">
6.994 + <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
6.995 + <touch file="${tmp.manifest.file}" verbose="false"/>
6.996 + </target>
6.997 + <target depends="init" if="do.archive+manifest.available" name="-do-jar-with-libraries-copy-manifest">
6.998 + <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
6.999 + <copy file="${manifest.file}" tofile="${tmp.manifest.file}"/>
6.1000 + </target>
6.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">
6.1002 + <manifest file="${tmp.manifest.file}" mode="update">
6.1003 + <attribute name="Main-Class" value="${main.class}"/>
6.1004 + </manifest>
6.1005 + </target>
6.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">
6.1007 + <basename file="${application.splash}" property="splashscreen.basename"/>
6.1008 + <mkdir dir="${build.classes.dir}/META-INF"/>
6.1009 + <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
6.1010 + <manifest file="${tmp.manifest.file}" mode="update">
6.1011 + <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
6.1012 + </manifest>
6.1013 + </target>
6.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">
6.1015 + <j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
6.1016 + <echo level="info">To run this application from the command line without Ant, try:</echo>
6.1017 + <property location="${dist.jar}" name="dist.jar.resolved"/>
6.1018 + <echo level="info">java -jar "${dist.jar.resolved}"</echo>
6.1019 + </target>
6.1020 + <target depends="-do-jar-with-libraries-pack" if="do.archive" name="-do-jar-with-libraries-delete-manifest">
6.1021 + <delete>
6.1022 + <fileset file="${tmp.manifest.file}"/>
6.1023 + </delete>
6.1024 + </target>
6.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"/>
6.1026 + <target name="-post-jar">
6.1027 + <!-- Empty placeholder for easier customization. -->
6.1028 + <!-- You can override this target in the ../build.xml file. -->
6.1029 + </target>
6.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"/>
6.1031 + <!--
6.1032 + =================
6.1033 + EXECUTION SECTION
6.1034 + =================
6.1035 + -->
6.1036 + <target depends="init,compile" description="Run a main class." name="run">
6.1037 + <j2seproject1:java>
6.1038 + <customize>
6.1039 + <arg line="${application.args}"/>
6.1040 + </customize>
6.1041 + </j2seproject1:java>
6.1042 + </target>
6.1043 + <target name="-do-not-recompile">
6.1044 + <property name="javac.includes.binary" value=""/>
6.1045 + </target>
6.1046 + <target depends="init,compile-single" name="run-single">
6.1047 + <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
6.1048 + <j2seproject1:java classname="${run.class}"/>
6.1049 + </target>
6.1050 + <target depends="init,compile-test-single" name="run-test-with-main">
6.1051 + <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
6.1052 + <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
6.1053 + </target>
6.1054 + <!--
6.1055 + =================
6.1056 + DEBUGGING SECTION
6.1057 + =================
6.1058 + -->
6.1059 + <target depends="init" if="netbeans.home" name="-debug-start-debugger">
6.1060 + <j2seproject1:nbjpdastart name="${debug.class}"/>
6.1061 + </target>
6.1062 + <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
6.1063 + <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
6.1064 + </target>
6.1065 + <target depends="init,compile" name="-debug-start-debuggee">
6.1066 + <j2seproject3:debug>
6.1067 + <customize>
6.1068 + <arg line="${application.args}"/>
6.1069 + </customize>
6.1070 + </j2seproject3:debug>
6.1071 + </target>
6.1072 + <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
6.1073 + <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
6.1074 + <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
6.1075 + </target>
6.1076 + <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
6.1077 + <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
6.1078 + <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
6.1079 + <j2seproject3:debug classname="${debug.class}"/>
6.1080 + </target>
6.1081 + <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
6.1082 + <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
6.1083 + <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
6.1084 + <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
6.1085 + </target>
6.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"/>
6.1087 + <target depends="init" name="-pre-debug-fix">
6.1088 + <fail unless="fix.includes">Must set fix.includes</fail>
6.1089 + <property name="javac.includes" value="${fix.includes}.java"/>
6.1090 + </target>
6.1091 + <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
6.1092 + <j2seproject1:nbjpdareload/>
6.1093 + </target>
6.1094 + <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
6.1095 + <!--
6.1096 + =================
6.1097 + PROFILING SECTION
6.1098 + =================
6.1099 + -->
6.1100 + <!--
6.1101 + pre NB7.2 profiler integration
6.1102 + -->
6.1103 + <target depends="profile-init,compile" description="Profile a project in the IDE." if="profiler.info.jvmargs.agent" name="-profile-pre72">
6.1104 + <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
6.1105 + <nbprofiledirect>
6.1106 + <classpath>
6.1107 + <path path="${run.classpath}"/>
6.1108 + </classpath>
6.1109 + </nbprofiledirect>
6.1110 + <profile/>
6.1111 + </target>
6.1112 + <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="profiler.info.jvmargs.agent" name="-profile-single-pre72">
6.1113 + <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail>
6.1114 + <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
6.1115 + <nbprofiledirect>
6.1116 + <classpath>
6.1117 + <path path="${run.classpath}"/>
6.1118 + </classpath>
6.1119 + </nbprofiledirect>
6.1120 + <profile classname="${profile.class}"/>
6.1121 + </target>
6.1122 + <target depends="profile-init,compile-single" if="profiler.info.jvmargs.agent" name="-profile-applet-pre72">
6.1123 + <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
6.1124 + <nbprofiledirect>
6.1125 + <classpath>
6.1126 + <path path="${run.classpath}"/>
6.1127 + </classpath>
6.1128 + </nbprofiledirect>
6.1129 + <profile classname="sun.applet.AppletViewer">
6.1130 + <customize>
6.1131 + <arg value="${applet.url}"/>
6.1132 + </customize>
6.1133 + </profile>
6.1134 + </target>
6.1135 + <target depends="profile-init,compile-test-single" if="profiler.info.jvmargs.agent" name="-profile-test-single-pre72">
6.1136 + <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
6.1137 + <nbprofiledirect>
6.1138 + <classpath>
6.1139 + <path path="${run.test.classpath}"/>
6.1140 + </classpath>
6.1141 + </nbprofiledirect>
6.1142 + <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
6.1143 + <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
6.1144 + <jvmarg value="${profiler.info.jvmargs.agent}"/>
6.1145 + <jvmarg line="${profiler.info.jvmargs}"/>
6.1146 + <test name="${profile.class}"/>
6.1147 + <classpath>
6.1148 + <path path="${run.test.classpath}"/>
6.1149 + </classpath>
6.1150 + <syspropertyset>
6.1151 + <propertyref prefix="test-sys-prop."/>
6.1152 + <mapper from="test-sys-prop.*" to="*" type="glob"/>
6.1153 + </syspropertyset>
6.1154 + <formatter type="brief" usefile="false"/>
6.1155 + <formatter type="xml"/>
6.1156 + </junit>
6.1157 + </target>
6.1158 + <!--
6.1159 + end of pre NB72 profiling section
6.1160 + -->
6.1161 + <target if="netbeans.home" name="-profile-check">
6.1162 + <condition property="profiler.configured">
6.1163 + <or>
6.1164 + <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-agentpath:"/>
6.1165 + <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-javaagent:"/>
6.1166 + </or>
6.1167 + </condition>
6.1168 + </target>
6.1169 + <target depends="-profile-check,-profile-pre72" description="Profile a project in the IDE." if="profiler.configured" name="profile" unless="profiler.info.jvmargs.agent">
6.1170 + <startprofiler/>
6.1171 + <antcall target="run"/>
6.1172 + </target>
6.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">
6.1174 + <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
6.1175 + <startprofiler/>
6.1176 + <antcall target="run-single"/>
6.1177 + </target>
6.1178 + <target depends="-profile-test-single-pre72" description="Profile a selected test in the IDE." name="profile-test-single"/>
6.1179 + <target depends="-profile-check" description="Profile a selected test in the IDE." if="profiler.configured" name="profile-test" unless="profiler.info.jvmargs">
6.1180 + <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
6.1181 + <startprofiler/>
6.1182 + <antcall target="test-single"/>
6.1183 + </target>
6.1184 + <target depends="-profile-check" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-test-with-main">
6.1185 + <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
6.1186 + <startprofiler/>
6.1187 + <antcal target="run-test-with-main"/>
6.1188 + </target>
6.1189 + <target depends="-profile-check,-profile-applet-pre72" if="profiler.configured" name="profile-applet" unless="profiler.info.jvmargs.agent">
6.1190 + <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
6.1191 + <startprofiler/>
6.1192 + <antcall target="run-applet"/>
6.1193 + </target>
6.1194 + <!--
6.1195 + ===============
6.1196 + JAVADOC SECTION
6.1197 + ===============
6.1198 + -->
6.1199 + <target depends="init" if="have.sources" name="-javadoc-build">
6.1200 + <mkdir dir="${dist.javadoc.dir}"/>
6.1201 + <condition else="" property="javadoc.endorsed.classpath.cmd.line.arg" value="-J${endorsed.classpath.cmd.line.arg}">
6.1202 + <and>
6.1203 + <isset property="endorsed.classpath.cmd.line.arg"/>
6.1204 + <not>
6.1205 + <equals arg1="${endorsed.classpath.cmd.line.arg}" arg2=""/>
6.1206 + </not>
6.1207 + </and>
6.1208 + </condition>
6.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}">
6.1210 + <classpath>
6.1211 + <path path="${javac.classpath}"/>
6.1212 + </classpath>
6.1213 + <fileset dir="${src.dir}" excludes="*.java,${excludes}" includes="${includes}">
6.1214 + <filename name="**/*.java"/>
6.1215 + </fileset>
6.1216 + <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
6.1217 + <include name="**/*.java"/>
6.1218 + <exclude name="*.java"/>
6.1219 + </fileset>
6.1220 + <arg line="${javadoc.endorsed.classpath.cmd.line.arg}"/>
6.1221 + </javadoc>
6.1222 + <copy todir="${dist.javadoc.dir}">
6.1223 + <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
6.1224 + <filename name="**/doc-files/**"/>
6.1225 + </fileset>
6.1226 + <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
6.1227 + <include name="**/doc-files/**"/>
6.1228 + </fileset>
6.1229 + </copy>
6.1230 + </target>
6.1231 + <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
6.1232 + <nbbrowse file="${dist.javadoc.dir}/index.html"/>
6.1233 + </target>
6.1234 + <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
6.1235 + <!--
6.1236 + =========================
6.1237 + TEST COMPILATION SECTION
6.1238 + =========================
6.1239 + -->
6.1240 + <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
6.1241 + <mkdir dir="${build.test.classes.dir}"/>
6.1242 + </target>
6.1243 + <target name="-pre-compile-test">
6.1244 + <!-- Empty placeholder for easier customization. -->
6.1245 + <!-- You can override this target in the ../build.xml file. -->
6.1246 + </target>
6.1247 + <target if="do.depend.true" name="-compile-test-depend">
6.1248 + <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
6.1249 + </target>
6.1250 + <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
6.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}"/>
6.1252 + <copy todir="${build.test.classes.dir}">
6.1253 + <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
6.1254 + </copy>
6.1255 + </target>
6.1256 + <target name="-post-compile-test">
6.1257 + <!-- Empty placeholder for easier customization. -->
6.1258 + <!-- You can override this target in the ../build.xml file. -->
6.1259 + </target>
6.1260 + <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
6.1261 + <target name="-pre-compile-test-single">
6.1262 + <!-- Empty placeholder for easier customization. -->
6.1263 + <!-- You can override this target in the ../build.xml file. -->
6.1264 + </target>
6.1265 + <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
6.1266 + <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
6.1267 + <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
6.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}"/>
6.1269 + <copy todir="${build.test.classes.dir}">
6.1270 + <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
6.1271 + </copy>
6.1272 + </target>
6.1273 + <target name="-post-compile-test-single">
6.1274 + <!-- Empty placeholder for easier customization. -->
6.1275 + <!-- You can override this target in the ../build.xml file. -->
6.1276 + </target>
6.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"/>
6.1278 + <!--
6.1279 + =======================
6.1280 + TEST EXECUTION SECTION
6.1281 + =======================
6.1282 + -->
6.1283 + <target depends="init" if="have.tests" name="-pre-test-run">
6.1284 + <mkdir dir="${build.test.results.dir}"/>
6.1285 + </target>
6.1286 + <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
6.1287 + <j2seproject3:test testincludes="**/*Test.java"/>
6.1288 + </target>
6.1289 + <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
6.1290 + <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
6.1291 + </target>
6.1292 + <target depends="init" if="have.tests" name="test-report"/>
6.1293 + <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
6.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"/>
6.1295 + <target depends="init" if="have.tests" name="-pre-test-run-single">
6.1296 + <mkdir dir="${build.test.results.dir}"/>
6.1297 + </target>
6.1298 + <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
6.1299 + <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
6.1300 + <j2seproject3:test excludes="" includes="${test.includes}" testincludes="${test.includes}"/>
6.1301 + </target>
6.1302 + <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
6.1303 + <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
6.1304 + </target>
6.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"/>
6.1306 + <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single-method">
6.1307 + <fail unless="test.class">Must select some files in the IDE or set test.class</fail>
6.1308 + <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
6.1309 + <j2seproject3:test excludes="" includes="${javac.includes}" testincludes="${test.class}" testmethods="${test.method}"/>
6.1310 + </target>
6.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">
6.1312 + <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
6.1313 + </target>
6.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"/>
6.1315 + <!--
6.1316 + =======================
6.1317 + TEST DEBUGGING SECTION
6.1318 + =======================
6.1319 + -->
6.1320 + <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test">
6.1321 + <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
6.1322 + <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testincludes="${javac.includes}"/>
6.1323 + </target>
6.1324 + <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test-method">
6.1325 + <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
6.1326 + <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
6.1327 + <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testMethod="${test.method}" testincludes="${test.class}" testmethods="${test.method}"/>
6.1328 + </target>
6.1329 + <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
6.1330 + <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
6.1331 + </target>
6.1332 + <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
6.1333 + <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test-method" name="debug-test-method"/>
6.1334 + <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
6.1335 + <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
6.1336 + </target>
6.1337 + <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
6.1338 + <!--
6.1339 + =========================
6.1340 + APPLET EXECUTION SECTION
6.1341 + =========================
6.1342 + -->
6.1343 + <target depends="init,compile-single" name="run-applet">
6.1344 + <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
6.1345 + <j2seproject1:java classname="sun.applet.AppletViewer">
6.1346 + <customize>
6.1347 + <arg value="${applet.url}"/>
6.1348 + </customize>
6.1349 + </j2seproject1:java>
6.1350 + </target>
6.1351 + <!--
6.1352 + =========================
6.1353 + APPLET DEBUGGING SECTION
6.1354 + =========================
6.1355 + -->
6.1356 + <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
6.1357 + <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
6.1358 + <j2seproject3:debug classname="sun.applet.AppletViewer">
6.1359 + <customize>
6.1360 + <arg value="${applet.url}"/>
6.1361 + </customize>
6.1362 + </j2seproject3:debug>
6.1363 + </target>
6.1364 + <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
6.1365 + <!--
6.1366 + ===============
6.1367 + CLEANUP SECTION
6.1368 + ===============
6.1369 + -->
6.1370 + <target name="-deps-clean-init" unless="built-clean.properties">
6.1371 + <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>
6.1372 + <delete file="${built-clean.properties}" quiet="true"/>
6.1373 + </target>
6.1374 + <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
6.1375 + <echo level="warn" message="Cycle detected: dictionary-generator was already built"/>
6.1376 + </target>
6.1377 + <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
6.1378 + <mkdir dir="${build.dir}"/>
6.1379 + <touch file="${built-clean.properties}" verbose="false"/>
6.1380 + <property file="${built-clean.properties}" prefix="already.built.clean."/>
6.1381 + <antcall target="-warn-already-built-clean"/>
6.1382 + <propertyfile file="${built-clean.properties}">
6.1383 + <entry key="${basedir}" value=""/>
6.1384 + </propertyfile>
6.1385 + </target>
6.1386 + <target depends="init" name="-do-clean">
6.1387 + <delete dir="${build.dir}"/>
6.1388 + <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
6.1389 + </target>
6.1390 + <target name="-post-clean">
6.1391 + <!-- Empty placeholder for easier customization. -->
6.1392 + <!-- You can override this target in the ../build.xml file. -->
6.1393 + </target>
6.1394 + <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
6.1395 + <target name="-check-call-dep">
6.1396 + <property file="${call.built.properties}" prefix="already.built."/>
6.1397 + <condition property="should.call.dep">
6.1398 + <and>
6.1399 + <not>
6.1400 + <isset property="already.built.${call.subproject}"/>
6.1401 + </not>
6.1402 + <available file="${call.script}"/>
6.1403 + </and>
6.1404 + </condition>
6.1405 + </target>
6.1406 + <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
6.1407 + <ant antfile="${call.script}" inheritall="false" target="${call.target}">
6.1408 + <propertyset>
6.1409 + <propertyref prefix="transfer."/>
6.1410 + <mapper from="transfer.*" to="*" type="glob"/>
6.1411 + </propertyset>
6.1412 + </ant>
6.1413 + </target>
6.1414 +</project>
7.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
7.2 +++ b/java/dictionary-generator/nbproject/genfiles.properties Mon Jul 08 23:36:50 2013 +0200
7.3 @@ -0,0 +1,8 @@
7.4 +build.xml.data.CRC32=0fb53d62
7.5 +build.xml.script.CRC32=171efbd0
7.6 +build.xml.stylesheet.CRC32=28e38971@1.56.1.46
7.7 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
7.8 +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
7.9 +nbproject/build-impl.xml.data.CRC32=0fb53d62
7.10 +nbproject/build-impl.xml.script.CRC32=c75bc2a9
7.11 +nbproject/build-impl.xml.stylesheet.CRC32=c6d2a60f@1.56.1.46
8.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
8.2 +++ b/java/dictionary-generator/nbproject/project.properties Mon Jul 08 23:36:50 2013 +0200
8.3 @@ -0,0 +1,71 @@
8.4 +annotation.processing.enabled=true
8.5 +annotation.processing.enabled.in.editor=false
8.6 +annotation.processing.processor.options=
8.7 +annotation.processing.processors.list=
8.8 +annotation.processing.run.all.processors=true
8.9 +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
8.10 +build.classes.dir=${build.dir}/classes
8.11 +build.classes.excludes=**/*.java,**/*.form
8.12 +# This directory is removed when the project is cleaned:
8.13 +build.dir=build
8.14 +build.generated.dir=${build.dir}/generated
8.15 +build.generated.sources.dir=${build.dir}/generated-sources
8.16 +# Only compile against the classpath explicitly listed here:
8.17 +build.sysclasspath=ignore
8.18 +build.test.classes.dir=${build.dir}/test/classes
8.19 +build.test.results.dir=${build.dir}/test/results
8.20 +# Uncomment to specify the preferred debugger connection transport:
8.21 +#debug.transport=dt_socket
8.22 +debug.classpath=\
8.23 + ${run.classpath}
8.24 +debug.test.classpath=\
8.25 + ${run.test.classpath}
8.26 +# This directory is removed when the project is cleaned:
8.27 +dist.dir=dist
8.28 +dist.jar=${dist.dir}/dictionary-generator.jar
8.29 +dist.javadoc.dir=${dist.dir}/javadoc
8.30 +excludes=
8.31 +includes=**
8.32 +jar.compress=false
8.33 +javac.classpath=
8.34 +# Space-separated list of extra javac options
8.35 +javac.compilerargs=
8.36 +javac.deprecation=false
8.37 +javac.processorpath=\
8.38 + ${javac.classpath}
8.39 +javac.source=1.7
8.40 +javac.target=1.7
8.41 +javac.test.classpath=\
8.42 + ${javac.classpath}:\
8.43 + ${build.classes.dir}
8.44 +javac.test.processorpath=\
8.45 + ${javac.test.classpath}
8.46 +javadoc.additionalparam=
8.47 +javadoc.author=false
8.48 +javadoc.encoding=${source.encoding}
8.49 +javadoc.noindex=false
8.50 +javadoc.nonavbar=false
8.51 +javadoc.notree=false
8.52 +javadoc.private=false
8.53 +javadoc.splitindex=true
8.54 +javadoc.use=true
8.55 +javadoc.version=false
8.56 +javadoc.windowtitle=
8.57 +main.class=cz.frantovo.telco.dictionary.Generator
8.58 +manifest.file=manifest.mf
8.59 +meta.inf.dir=${src.dir}/META-INF
8.60 +mkdist.disabled=false
8.61 +platform.active=default_platform
8.62 +run.classpath=\
8.63 + ${javac.classpath}:\
8.64 + ${build.classes.dir}
8.65 +# Space-separated list of JVM arguments used when running the project.
8.66 +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value.
8.67 +# To set system properties for unit tests define test-sys-prop.name=value:
8.68 +run.jvmargs=
8.69 +run.test.classpath=\
8.70 + ${javac.test.classpath}:\
8.71 + ${build.test.classes.dir}
8.72 +source.encoding=UTF-8
8.73 +src.dir=src
8.74 +test.src.dir=test
9.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
9.2 +++ b/java/dictionary-generator/nbproject/project.xml Mon Jul 08 23:36:50 2013 +0200
9.3 @@ -0,0 +1,15 @@
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 + <data xmlns="http://www.netbeans.org/ns/j2se-project/3">
9.9 + <name>dictionary-generator</name>
9.10 + <source-roots>
9.11 + <root id="src.dir"/>
9.12 + </source-roots>
9.13 + <test-roots>
9.14 + <root id="test.src.dir"/>
9.15 + </test-roots>
9.16 + </data>
9.17 + </configuration>
9.18 +</project>
10.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
10.2 +++ b/java/dictionary-generator/src/cz/frantovo/telco/dictionary/Generator.java Mon Jul 08 23:36:50 2013 +0200
10.3 @@ -0,0 +1,29 @@
10.4 +/**
10.5 + * Free Telco Dictionary
10.6 + * Copyright © 2013 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.telco.dictionary;
10.22 +
10.23 +/**
10.24 + *
10.25 + * @author Ing. František Kučera (frantovo.cz)
10.26 + */
10.27 +public class Generator {
10.28 +
10.29 + public static void main(String[] args) {
10.30 +
10.31 + }
10.32 +}