1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/.hgignore Sun Nov 16 19:41:41 2014 +0100
1.3 @@ -0,0 +1,7 @@
1.4 +syntax: glob
1.5 +
1.6 +*~
1.7 +
1.8 +syntax: regexp
1.9 +
1.10 +^java/copy-image-resizer/(dist|build|private)/
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2.2 +++ b/java/copy-image-resizer/build.xml Sun Nov 16 19:41:41 2014 +0100
2.3 @@ -0,0 +1,73 @@
2.4 +<?xml version="1.0" encoding="UTF-8"?>
2.5 +<!-- You may freely edit this file. See commented blocks below for -->
2.6 +<!-- some examples of how to customize the build. -->
2.7 +<!-- (If you delete it and reopen the project it will be recreated.) -->
2.8 +<!-- By default, only the Clean and Build commands use this build script. -->
2.9 +<!-- Commands such as Run, Debug, and Test only use this build script if -->
2.10 +<!-- the Compile on Save feature is turned off for the project. -->
2.11 +<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
2.12 +<!-- in the project's Project Properties dialog box.-->
2.13 +<project name="copy-image-resizer" default="default" basedir=".">
2.14 + <description>Builds, tests, and runs the project copy-image-resizer.</description>
2.15 + <import file="nbproject/build-impl.xml"/>
2.16 + <!--
2.17 +
2.18 + There exist several targets which are by default empty and which can be
2.19 + used for execution of your tasks. These targets are usually executed
2.20 + before and after some main targets. They are:
2.21 +
2.22 + -pre-init: called before initialization of project properties
2.23 + -post-init: called after initialization of project properties
2.24 + -pre-compile: called before javac compilation
2.25 + -post-compile: called after javac compilation
2.26 + -pre-compile-single: called before javac compilation of single file
2.27 + -post-compile-single: called after javac compilation of single file
2.28 + -pre-compile-test: called before javac compilation of JUnit tests
2.29 + -post-compile-test: called after javac compilation of JUnit tests
2.30 + -pre-compile-test-single: called before javac compilation of single JUnit test
2.31 + -post-compile-test-single: called after javac compilation of single JUunit test
2.32 + -pre-jar: called before JAR building
2.33 + -post-jar: called after JAR building
2.34 + -post-clean: called after cleaning build products
2.35 +
2.36 + (Targets beginning with '-' are not intended to be called on their own.)
2.37 +
2.38 + Example of inserting an obfuscator after compilation could look like this:
2.39 +
2.40 + <target name="-post-compile">
2.41 + <obfuscate>
2.42 + <fileset dir="${build.classes.dir}"/>
2.43 + </obfuscate>
2.44 + </target>
2.45 +
2.46 + For list of available properties check the imported
2.47 + nbproject/build-impl.xml file.
2.48 +
2.49 +
2.50 + Another way to customize the build is by overriding existing main targets.
2.51 + The targets of interest are:
2.52 +
2.53 + -init-macrodef-javac: defines macro for javac compilation
2.54 + -init-macrodef-junit: defines macro for junit execution
2.55 + -init-macrodef-debug: defines macro for class debugging
2.56 + -init-macrodef-java: defines macro for class execution
2.57 + -do-jar: JAR building
2.58 + run: execution of project
2.59 + -javadoc-build: Javadoc generation
2.60 + test-report: JUnit report generation
2.61 +
2.62 + An example of overriding the target for project execution could look like this:
2.63 +
2.64 + <target name="run" depends="copy-image-resizer-impl.jar">
2.65 + <exec dir="bin" executable="launcher.exe">
2.66 + <arg file="${dist.jar}"/>
2.67 + </exec>
2.68 + </target>
2.69 +
2.70 + Notice that the overridden target depends on the jar target and not only on
2.71 + the compile target as the regular run target does. Again, for a list of available
2.72 + properties which you can use, check the target you are overriding in the
2.73 + nbproject/build-impl.xml file.
2.74 +
2.75 + -->
2.76 +</project>
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
3.2 +++ b/java/copy-image-resizer/manifest.mf Sun Nov 16 19:41:41 2014 +0100
3.3 @@ -0,0 +1,3 @@
3.4 +Manifest-Version: 1.0
3.5 +X-COMMENT: Main-Class will be added automatically by build
3.6 +
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
4.2 +++ b/java/copy-image-resizer/nbproject/build-impl.xml Sun Nov 16 19:41:41 2014 +0100
4.3 @@ -0,0 +1,1413 @@
4.4 +<?xml version="1.0" encoding="UTF-8"?>
4.5 +<!--
4.6 +*** GENERATED FROM project.xml - DO NOT EDIT ***
4.7 +*** EDIT ../build.xml INSTEAD ***
4.8 +
4.9 +For the purpose of easier reading the script
4.10 +is divided into following sections:
4.11 +
4.12 + - initialization
4.13 + - compilation
4.14 + - jar
4.15 + - execution
4.16 + - debugging
4.17 + - javadoc
4.18 + - test compilation
4.19 + - test execution
4.20 + - test debugging
4.21 + - applet
4.22 + - cleanup
4.23 +
4.24 + -->
4.25 +<project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="copy-image-resizer-impl">
4.26 + <fail message="Please build using Ant 1.8.0 or higher.">
4.27 + <condition>
4.28 + <not>
4.29 + <antversion atleast="1.8.0"/>
4.30 + </not>
4.31 + </condition>
4.32 + </fail>
4.33 + <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
4.34 + <!--
4.35 + ======================
4.36 + INITIALIZATION SECTION
4.37 + ======================
4.38 + -->
4.39 + <target name="-pre-init">
4.40 + <!-- Empty placeholder for easier customization. -->
4.41 + <!-- You can override this target in the ../build.xml file. -->
4.42 + </target>
4.43 + <target depends="-pre-init" name="-init-private">
4.44 + <property file="nbproject/private/config.properties"/>
4.45 + <property file="nbproject/private/configs/${config}.properties"/>
4.46 + <property file="nbproject/private/private.properties"/>
4.47 + </target>
4.48 + <target depends="-pre-init,-init-private" name="-init-user">
4.49 + <property file="${user.properties.file}"/>
4.50 + <!-- The two properties below are usually overridden -->
4.51 + <!-- by the active platform. Just a fallback. -->
4.52 + <property name="default.javac.source" value="1.4"/>
4.53 + <property name="default.javac.target" value="1.4"/>
4.54 + </target>
4.55 + <target depends="-pre-init,-init-private,-init-user" name="-init-project">
4.56 + <property file="nbproject/configs/${config}.properties"/>
4.57 + <property file="nbproject/project.properties"/>
4.58 + </target>
4.59 + <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
4.60 + <property name="platform.java" value="${java.home}/bin/java"/>
4.61 + <available file="${manifest.file}" property="manifest.available"/>
4.62 + <condition property="splashscreen.available">
4.63 + <and>
4.64 + <not>
4.65 + <equals arg1="${application.splash}" arg2="" trim="true"/>
4.66 + </not>
4.67 + <available file="${application.splash}"/>
4.68 + </and>
4.69 + </condition>
4.70 + <condition property="main.class.available">
4.71 + <and>
4.72 + <isset property="main.class"/>
4.73 + <not>
4.74 + <equals arg1="${main.class}" arg2="" trim="true"/>
4.75 + </not>
4.76 + </and>
4.77 + </condition>
4.78 + <condition property="profile.available">
4.79 + <and>
4.80 + <isset property="javac.profile"/>
4.81 + <length length="0" string="${javac.profile}" when="greater"/>
4.82 + <matches pattern="1\.[89](\..*)?" string="${javac.source}"/>
4.83 + </and>
4.84 + </condition>
4.85 + <condition property="do.archive">
4.86 + <or>
4.87 + <not>
4.88 + <istrue value="${jar.archive.disabled}"/>
4.89 + </not>
4.90 + <istrue value="${not.archive.disabled}"/>
4.91 + </or>
4.92 + </condition>
4.93 + <condition property="do.mkdist">
4.94 + <and>
4.95 + <isset property="do.archive"/>
4.96 + <isset property="libs.CopyLibs.classpath"/>
4.97 + <not>
4.98 + <istrue value="${mkdist.disabled}"/>
4.99 + </not>
4.100 + </and>
4.101 + </condition>
4.102 + <condition property="do.archive+manifest.available">
4.103 + <and>
4.104 + <isset property="manifest.available"/>
4.105 + <istrue value="${do.archive}"/>
4.106 + </and>
4.107 + </condition>
4.108 + <condition property="do.archive+main.class.available">
4.109 + <and>
4.110 + <isset property="main.class.available"/>
4.111 + <istrue value="${do.archive}"/>
4.112 + </and>
4.113 + </condition>
4.114 + <condition property="do.archive+splashscreen.available">
4.115 + <and>
4.116 + <isset property="splashscreen.available"/>
4.117 + <istrue value="${do.archive}"/>
4.118 + </and>
4.119 + </condition>
4.120 + <condition property="do.archive+profile.available">
4.121 + <and>
4.122 + <isset property="profile.available"/>
4.123 + <istrue value="${do.archive}"/>
4.124 + </and>
4.125 + </condition>
4.126 + <condition property="have.tests">
4.127 + <or>
4.128 + <available file="${test.src.dir}"/>
4.129 + </or>
4.130 + </condition>
4.131 + <condition property="have.sources">
4.132 + <or>
4.133 + <available file="${src.dir}"/>
4.134 + </or>
4.135 + </condition>
4.136 + <condition property="netbeans.home+have.tests">
4.137 + <and>
4.138 + <isset property="netbeans.home"/>
4.139 + <isset property="have.tests"/>
4.140 + </and>
4.141 + </condition>
4.142 + <condition property="no.javadoc.preview">
4.143 + <and>
4.144 + <isset property="javadoc.preview"/>
4.145 + <isfalse value="${javadoc.preview}"/>
4.146 + </and>
4.147 + </condition>
4.148 + <property name="run.jvmargs" value=""/>
4.149 + <property name="run.jvmargs.ide" value=""/>
4.150 + <property name="javac.compilerargs" value=""/>
4.151 + <property name="work.dir" value="${basedir}"/>
4.152 + <condition property="no.deps">
4.153 + <and>
4.154 + <istrue value="${no.dependencies}"/>
4.155 + </and>
4.156 + </condition>
4.157 + <property name="javac.debug" value="true"/>
4.158 + <property name="javadoc.preview" value="true"/>
4.159 + <property name="application.args" value=""/>
4.160 + <property name="source.encoding" value="${file.encoding}"/>
4.161 + <property name="runtime.encoding" value="${source.encoding}"/>
4.162 + <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
4.163 + <and>
4.164 + <isset property="javadoc.encoding"/>
4.165 + <not>
4.166 + <equals arg1="${javadoc.encoding}" arg2=""/>
4.167 + </not>
4.168 + </and>
4.169 + </condition>
4.170 + <property name="javadoc.encoding.used" value="${source.encoding}"/>
4.171 + <property name="includes" value="**"/>
4.172 + <property name="excludes" value=""/>
4.173 + <property name="do.depend" value="false"/>
4.174 + <condition property="do.depend.true">
4.175 + <istrue value="${do.depend}"/>
4.176 + </condition>
4.177 + <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
4.178 + <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
4.179 + <and>
4.180 + <isset property="endorsed.classpath"/>
4.181 + <not>
4.182 + <equals arg1="${endorsed.classpath}" arg2="" trim="true"/>
4.183 + </not>
4.184 + </and>
4.185 + </condition>
4.186 + <condition else="" property="javac.profile.cmd.line.arg" value="-profile ${javac.profile}">
4.187 + <isset property="profile.available"/>
4.188 + </condition>
4.189 + <condition else="false" property="jdkBug6558476">
4.190 + <and>
4.191 + <matches pattern="1\.[56]" string="${java.specification.version}"/>
4.192 + <not>
4.193 + <os family="unix"/>
4.194 + </not>
4.195 + </and>
4.196 + </condition>
4.197 + <property name="javac.fork" value="${jdkBug6558476}"/>
4.198 + <property name="jar.index" value="false"/>
4.199 + <property name="jar.index.metainf" value="${jar.index}"/>
4.200 + <property name="copylibs.rebase" value="true"/>
4.201 + <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
4.202 + <condition property="junit.available">
4.203 + <or>
4.204 + <available classname="org.junit.Test" classpath="${run.test.classpath}"/>
4.205 + <available classname="junit.framework.Test" classpath="${run.test.classpath}"/>
4.206 + </or>
4.207 + </condition>
4.208 + <condition property="testng.available">
4.209 + <available classname="org.testng.annotations.Test" classpath="${run.test.classpath}"/>
4.210 + </condition>
4.211 + <condition property="junit+testng.available">
4.212 + <and>
4.213 + <istrue value="${junit.available}"/>
4.214 + <istrue value="${testng.available}"/>
4.215 + </and>
4.216 + </condition>
4.217 + <condition else="testng" property="testng.mode" value="mixed">
4.218 + <istrue value="${junit+testng.available}"/>
4.219 + </condition>
4.220 + <condition else="" property="testng.debug.mode" value="-mixed">
4.221 + <istrue value="${junit+testng.available}"/>
4.222 + </condition>
4.223 + </target>
4.224 + <target name="-post-init">
4.225 + <!-- Empty placeholder for easier customization. -->
4.226 + <!-- You can override this target in the ../build.xml file. -->
4.227 + </target>
4.228 + <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
4.229 + <fail unless="src.dir">Must set src.dir</fail>
4.230 + <fail unless="test.src.dir">Must set test.src.dir</fail>
4.231 + <fail unless="build.dir">Must set build.dir</fail>
4.232 + <fail unless="dist.dir">Must set dist.dir</fail>
4.233 + <fail unless="build.classes.dir">Must set build.classes.dir</fail>
4.234 + <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
4.235 + <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
4.236 + <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
4.237 + <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
4.238 + <fail unless="dist.jar">Must set dist.jar</fail>
4.239 + </target>
4.240 + <target name="-init-macrodef-property">
4.241 + <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
4.242 + <attribute name="name"/>
4.243 + <attribute name="value"/>
4.244 + <sequential>
4.245 + <property name="@{name}" value="${@{value}}"/>
4.246 + </sequential>
4.247 + </macrodef>
4.248 + </target>
4.249 + <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
4.250 + <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
4.251 + <attribute default="${src.dir}" name="srcdir"/>
4.252 + <attribute default="${build.classes.dir}" name="destdir"/>
4.253 + <attribute default="${javac.classpath}" name="classpath"/>
4.254 + <attribute default="${javac.processorpath}" name="processorpath"/>
4.255 + <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
4.256 + <attribute default="${includes}" name="includes"/>
4.257 + <attribute default="${excludes}" name="excludes"/>
4.258 + <attribute default="${javac.debug}" name="debug"/>
4.259 + <attribute default="${empty.dir}" name="sourcepath"/>
4.260 + <attribute default="${empty.dir}" name="gensrcdir"/>
4.261 + <element name="customize" optional="true"/>
4.262 + <sequential>
4.263 + <property location="${build.dir}/empty" name="empty.dir"/>
4.264 + <mkdir dir="${empty.dir}"/>
4.265 + <mkdir dir="@{apgeneratedsrcdir}"/>
4.266 + <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
4.267 + <src>
4.268 + <dirset dir="@{gensrcdir}" erroronmissingdir="false">
4.269 + <include name="*"/>
4.270 + </dirset>
4.271 + </src>
4.272 + <classpath>
4.273 + <path path="@{classpath}"/>
4.274 + </classpath>
4.275 + <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
4.276 + <compilerarg line="${javac.profile.cmd.line.arg}"/>
4.277 + <compilerarg line="${javac.compilerargs}"/>
4.278 + <compilerarg value="-processorpath"/>
4.279 + <compilerarg path="@{processorpath}:${empty.dir}"/>
4.280 + <compilerarg line="${ap.processors.internal}"/>
4.281 + <compilerarg line="${annotation.processing.processor.options}"/>
4.282 + <compilerarg value="-s"/>
4.283 + <compilerarg path="@{apgeneratedsrcdir}"/>
4.284 + <compilerarg line="${ap.proc.none.internal}"/>
4.285 + <customize/>
4.286 + </javac>
4.287 + </sequential>
4.288 + </macrodef>
4.289 + </target>
4.290 + <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
4.291 + <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
4.292 + <attribute default="${src.dir}" name="srcdir"/>
4.293 + <attribute default="${build.classes.dir}" name="destdir"/>
4.294 + <attribute default="${javac.classpath}" name="classpath"/>
4.295 + <attribute default="${javac.processorpath}" name="processorpath"/>
4.296 + <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
4.297 + <attribute default="${includes}" name="includes"/>
4.298 + <attribute default="${excludes}" name="excludes"/>
4.299 + <attribute default="${javac.debug}" name="debug"/>
4.300 + <attribute default="${empty.dir}" name="sourcepath"/>
4.301 + <attribute default="${empty.dir}" name="gensrcdir"/>
4.302 + <element name="customize" optional="true"/>
4.303 + <sequential>
4.304 + <property location="${build.dir}/empty" name="empty.dir"/>
4.305 + <mkdir dir="${empty.dir}"/>
4.306 + <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
4.307 + <src>
4.308 + <dirset dir="@{gensrcdir}" erroronmissingdir="false">
4.309 + <include name="*"/>
4.310 + </dirset>
4.311 + </src>
4.312 + <classpath>
4.313 + <path path="@{classpath}"/>
4.314 + </classpath>
4.315 + <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
4.316 + <compilerarg line="${javac.profile.cmd.line.arg}"/>
4.317 + <compilerarg line="${javac.compilerargs}"/>
4.318 + <customize/>
4.319 + </javac>
4.320 + </sequential>
4.321 + </macrodef>
4.322 + </target>
4.323 + <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
4.324 + <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
4.325 + <attribute default="${src.dir}" name="srcdir"/>
4.326 + <attribute default="${build.classes.dir}" name="destdir"/>
4.327 + <attribute default="${javac.classpath}" name="classpath"/>
4.328 + <sequential>
4.329 + <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
4.330 + <classpath>
4.331 + <path path="@{classpath}"/>
4.332 + </classpath>
4.333 + </depend>
4.334 + </sequential>
4.335 + </macrodef>
4.336 + <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
4.337 + <attribute default="${build.classes.dir}" name="destdir"/>
4.338 + <sequential>
4.339 + <fail unless="javac.includes">Must set javac.includes</fail>
4.340 + <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
4.341 + <path>
4.342 + <filelist dir="@{destdir}" files="${javac.includes}"/>
4.343 + </path>
4.344 + <globmapper from="*.java" to="*.class"/>
4.345 + </pathconvert>
4.346 + <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
4.347 + <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
4.348 + <delete>
4.349 + <files includesfile="${javac.includesfile.binary}"/>
4.350 + </delete>
4.351 + <delete>
4.352 + <fileset file="${javac.includesfile.binary}"/>
4.353 + </delete>
4.354 + </sequential>
4.355 + </macrodef>
4.356 + </target>
4.357 + <target if="${junit.available}" name="-init-macrodef-junit-init">
4.358 + <condition else="false" property="nb.junit.batch" value="true">
4.359 + <and>
4.360 + <istrue value="${junit.available}"/>
4.361 + <not>
4.362 + <isset property="test.method"/>
4.363 + </not>
4.364 + </and>
4.365 + </condition>
4.366 + <condition else="false" property="nb.junit.single" value="true">
4.367 + <and>
4.368 + <istrue value="${junit.available}"/>
4.369 + <isset property="test.method"/>
4.370 + </and>
4.371 + </condition>
4.372 + </target>
4.373 + <target name="-init-test-properties">
4.374 + <property name="test.binaryincludes" value="<nothing>"/>
4.375 + <property name="test.binarytestincludes" value=""/>
4.376 + <property name="test.binaryexcludes" value=""/>
4.377 + </target>
4.378 + <target if="${nb.junit.single}" name="-init-macrodef-junit-single" unless="${nb.junit.batch}">
4.379 + <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
4.380 + <attribute default="${includes}" name="includes"/>
4.381 + <attribute default="${excludes}" name="excludes"/>
4.382 + <attribute default="**" name="testincludes"/>
4.383 + <attribute default="" name="testmethods"/>
4.384 + <element name="customize" optional="true"/>
4.385 + <sequential>
4.386 + <property name="junit.forkmode" value="perTest"/>
4.387 + <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
4.388 + <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
4.389 + <syspropertyset>
4.390 + <propertyref prefix="test-sys-prop."/>
4.391 + <mapper from="test-sys-prop.*" to="*" type="glob"/>
4.392 + </syspropertyset>
4.393 + <formatter type="brief" usefile="false"/>
4.394 + <formatter type="xml"/>
4.395 + <jvmarg value="-ea"/>
4.396 + <customize/>
4.397 + </junit>
4.398 + </sequential>
4.399 + </macrodef>
4.400 + </target>
4.401 + <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-batch" unless="${nb.junit.single}">
4.402 + <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
4.403 + <attribute default="${includes}" name="includes"/>
4.404 + <attribute default="${excludes}" name="excludes"/>
4.405 + <attribute default="**" name="testincludes"/>
4.406 + <attribute default="" name="testmethods"/>
4.407 + <element name="customize" optional="true"/>
4.408 + <sequential>
4.409 + <property name="junit.forkmode" value="perTest"/>
4.410 + <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
4.411 + <batchtest todir="${build.test.results.dir}">
4.412 + <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
4.413 + <filename name="@{testincludes}"/>
4.414 + </fileset>
4.415 + <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
4.416 + <filename name="${test.binarytestincludes}"/>
4.417 + </fileset>
4.418 + </batchtest>
4.419 + <syspropertyset>
4.420 + <propertyref prefix="test-sys-prop."/>
4.421 + <mapper from="test-sys-prop.*" to="*" type="glob"/>
4.422 + </syspropertyset>
4.423 + <formatter type="brief" usefile="false"/>
4.424 + <formatter type="xml"/>
4.425 + <jvmarg value="-ea"/>
4.426 + <customize/>
4.427 + </junit>
4.428 + </sequential>
4.429 + </macrodef>
4.430 + </target>
4.431 + <target depends="-init-macrodef-junit-init,-init-macrodef-junit-single, -init-macrodef-junit-batch" if="${junit.available}" name="-init-macrodef-junit"/>
4.432 + <target if="${testng.available}" name="-init-macrodef-testng">
4.433 + <macrodef name="testng" uri="http://www.netbeans.org/ns/j2se-project/3">
4.434 + <attribute default="${includes}" name="includes"/>
4.435 + <attribute default="${excludes}" name="excludes"/>
4.436 + <attribute default="**" name="testincludes"/>
4.437 + <attribute default="" name="testmethods"/>
4.438 + <element name="customize" optional="true"/>
4.439 + <sequential>
4.440 + <condition else="" property="testng.methods.arg" value="@{testincludes}.@{testmethods}">
4.441 + <isset property="test.method"/>
4.442 + </condition>
4.443 + <union id="test.set">
4.444 + <fileset dir="${test.src.dir}" excludes="@{excludes},**/*.xml,${excludes}" includes="@{includes}">
4.445 + <filename name="@{testincludes}"/>
4.446 + </fileset>
4.447 + </union>
4.448 + <taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
4.449 + <testng classfilesetref="test.set" failureProperty="tests.failed" listeners="org.testng.reporters.VerboseReporter" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="copy-image-resizer" testname="TestNG tests" workingDir="${work.dir}">
4.450 + <xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
4.451 + <propertyset>
4.452 + <propertyref prefix="test-sys-prop."/>
4.453 + <mapper from="test-sys-prop.*" to="*" type="glob"/>
4.454 + </propertyset>
4.455 + <customize/>
4.456 + </testng>
4.457 + </sequential>
4.458 + </macrodef>
4.459 + </target>
4.460 + <target name="-init-macrodef-test-impl">
4.461 + <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
4.462 + <attribute default="${includes}" name="includes"/>
4.463 + <attribute default="${excludes}" name="excludes"/>
4.464 + <attribute default="**" name="testincludes"/>
4.465 + <attribute default="" name="testmethods"/>
4.466 + <element implicit="true" name="customize" optional="true"/>
4.467 + <sequential>
4.468 + <echo>No tests executed.</echo>
4.469 + </sequential>
4.470 + </macrodef>
4.471 + </target>
4.472 + <target depends="-init-macrodef-junit" if="${junit.available}" name="-init-macrodef-junit-impl">
4.473 + <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
4.474 + <attribute default="${includes}" name="includes"/>
4.475 + <attribute default="${excludes}" name="excludes"/>
4.476 + <attribute default="**" name="testincludes"/>
4.477 + <attribute default="" name="testmethods"/>
4.478 + <element implicit="true" name="customize" optional="true"/>
4.479 + <sequential>
4.480 + <j2seproject3:junit excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
4.481 + <customize/>
4.482 + </j2seproject3:junit>
4.483 + </sequential>
4.484 + </macrodef>
4.485 + </target>
4.486 + <target depends="-init-macrodef-testng" if="${testng.available}" name="-init-macrodef-testng-impl">
4.487 + <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
4.488 + <attribute default="${includes}" name="includes"/>
4.489 + <attribute default="${excludes}" name="excludes"/>
4.490 + <attribute default="**" name="testincludes"/>
4.491 + <attribute default="" name="testmethods"/>
4.492 + <element implicit="true" name="customize" optional="true"/>
4.493 + <sequential>
4.494 + <j2seproject3:testng excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
4.495 + <customize/>
4.496 + </j2seproject3:testng>
4.497 + </sequential>
4.498 + </macrodef>
4.499 + </target>
4.500 + <target depends="-init-macrodef-test-impl,-init-macrodef-junit-impl,-init-macrodef-testng-impl" name="-init-macrodef-test">
4.501 + <macrodef name="test" uri="http://www.netbeans.org/ns/j2se-project/3">
4.502 + <attribute default="${includes}" name="includes"/>
4.503 + <attribute default="${excludes}" name="excludes"/>
4.504 + <attribute default="**" name="testincludes"/>
4.505 + <attribute default="" name="testmethods"/>
4.506 + <sequential>
4.507 + <j2seproject3:test-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
4.508 + <customize>
4.509 + <classpath>
4.510 + <path path="${run.test.classpath}"/>
4.511 + </classpath>
4.512 + <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
4.513 + <jvmarg line="${run.jvmargs}"/>
4.514 + <jvmarg line="${run.jvmargs.ide}"/>
4.515 + </customize>
4.516 + </j2seproject3:test-impl>
4.517 + </sequential>
4.518 + </macrodef>
4.519 + </target>
4.520 + <target if="${junit.available}" name="-init-macrodef-junit-debug" unless="${nb.junit.batch}">
4.521 + <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
4.522 + <attribute default="${includes}" name="includes"/>
4.523 + <attribute default="${excludes}" name="excludes"/>
4.524 + <attribute default="**" name="testincludes"/>
4.525 + <attribute default="" name="testmethods"/>
4.526 + <element name="customize" optional="true"/>
4.527 + <sequential>
4.528 + <property name="junit.forkmode" value="perTest"/>
4.529 + <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
4.530 + <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
4.531 + <syspropertyset>
4.532 + <propertyref prefix="test-sys-prop."/>
4.533 + <mapper from="test-sys-prop.*" to="*" type="glob"/>
4.534 + </syspropertyset>
4.535 + <formatter type="brief" usefile="false"/>
4.536 + <formatter type="xml"/>
4.537 + <jvmarg value="-ea"/>
4.538 + <jvmarg line="${debug-args-line}"/>
4.539 + <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
4.540 + <customize/>
4.541 + </junit>
4.542 + </sequential>
4.543 + </macrodef>
4.544 + </target>
4.545 + <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-debug-batch">
4.546 + <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
4.547 + <attribute default="${includes}" name="includes"/>
4.548 + <attribute default="${excludes}" name="excludes"/>
4.549 + <attribute default="**" name="testincludes"/>
4.550 + <attribute default="" name="testmethods"/>
4.551 + <element name="customize" optional="true"/>
4.552 + <sequential>
4.553 + <property name="junit.forkmode" value="perTest"/>
4.554 + <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
4.555 + <batchtest todir="${build.test.results.dir}">
4.556 + <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
4.557 + <filename name="@{testincludes}"/>
4.558 + </fileset>
4.559 + <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
4.560 + <filename name="${test.binarytestincludes}"/>
4.561 + </fileset>
4.562 + </batchtest>
4.563 + <syspropertyset>
4.564 + <propertyref prefix="test-sys-prop."/>
4.565 + <mapper from="test-sys-prop.*" to="*" type="glob"/>
4.566 + </syspropertyset>
4.567 + <formatter type="brief" usefile="false"/>
4.568 + <formatter type="xml"/>
4.569 + <jvmarg value="-ea"/>
4.570 + <jvmarg line="${debug-args-line}"/>
4.571 + <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
4.572 + <customize/>
4.573 + </junit>
4.574 + </sequential>
4.575 + </macrodef>
4.576 + </target>
4.577 + <target depends="-init-macrodef-junit-debug,-init-macrodef-junit-debug-batch" if="${junit.available}" name="-init-macrodef-junit-debug-impl">
4.578 + <macrodef name="test-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
4.579 + <attribute default="${includes}" name="includes"/>
4.580 + <attribute default="${excludes}" name="excludes"/>
4.581 + <attribute default="**" name="testincludes"/>
4.582 + <attribute default="" name="testmethods"/>
4.583 + <element implicit="true" name="customize" optional="true"/>
4.584 + <sequential>
4.585 + <j2seproject3:junit-debug excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
4.586 + <customize/>
4.587 + </j2seproject3:junit-debug>
4.588 + </sequential>
4.589 + </macrodef>
4.590 + </target>
4.591 + <target if="${testng.available}" name="-init-macrodef-testng-debug">
4.592 + <macrodef name="testng-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
4.593 + <attribute default="${main.class}" name="testClass"/>
4.594 + <attribute default="" name="testMethod"/>
4.595 + <element name="customize2" optional="true"/>
4.596 + <sequential>
4.597 + <condition else="-testclass @{testClass}" property="test.class.or.method" value="-methods @{testClass}.@{testMethod}">
4.598 + <isset property="test.method"/>
4.599 + </condition>
4.600 + <condition else="-suitename copy-image-resizer -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}">
4.601 + <matches pattern=".*\.xml" string="@{testClass}"/>
4.602 + </condition>
4.603 + <delete dir="${build.test.results.dir}" quiet="true"/>
4.604 + <mkdir dir="${build.test.results.dir}"/>
4.605 + <j2seproject3:debug classname="org.testng.TestNG" classpath="${debug.test.classpath}">
4.606 + <customize>
4.607 + <customize2/>
4.608 + <jvmarg value="-ea"/>
4.609 + <arg line="${testng.debug.mode}"/>
4.610 + <arg line="-d ${build.test.results.dir}"/>
4.611 + <arg line="-listener org.testng.reporters.VerboseReporter"/>
4.612 + <arg line="${testng.cmd.args}"/>
4.613 + </customize>
4.614 + </j2seproject3:debug>
4.615 + </sequential>
4.616 + </macrodef>
4.617 + </target>
4.618 + <target depends="-init-macrodef-testng-debug" if="${testng.available}" name="-init-macrodef-testng-debug-impl">
4.619 + <macrodef name="testng-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
4.620 + <attribute default="${main.class}" name="testClass"/>
4.621 + <attribute default="" name="testMethod"/>
4.622 + <element implicit="true" name="customize2" optional="true"/>
4.623 + <sequential>
4.624 + <j2seproject3:testng-debug testClass="@{testClass}" testMethod="@{testMethod}">
4.625 + <customize2/>
4.626 + </j2seproject3:testng-debug>
4.627 + </sequential>
4.628 + </macrodef>
4.629 + </target>
4.630 + <target depends="-init-macrodef-junit-debug-impl" if="${junit.available}" name="-init-macrodef-test-debug-junit">
4.631 + <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
4.632 + <attribute default="${includes}" name="includes"/>
4.633 + <attribute default="${excludes}" name="excludes"/>
4.634 + <attribute default="**" name="testincludes"/>
4.635 + <attribute default="" name="testmethods"/>
4.636 + <attribute default="${main.class}" name="testClass"/>
4.637 + <attribute default="" name="testMethod"/>
4.638 + <sequential>
4.639 + <j2seproject3:test-debug-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
4.640 + <customize>
4.641 + <classpath>
4.642 + <path path="${run.test.classpath}"/>
4.643 + </classpath>
4.644 + <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
4.645 + <jvmarg line="${run.jvmargs}"/>
4.646 + <jvmarg line="${run.jvmargs.ide}"/>
4.647 + </customize>
4.648 + </j2seproject3:test-debug-impl>
4.649 + </sequential>
4.650 + </macrodef>
4.651 + </target>
4.652 + <target depends="-init-macrodef-testng-debug-impl" if="${testng.available}" name="-init-macrodef-test-debug-testng">
4.653 + <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
4.654 + <attribute default="${includes}" name="includes"/>
4.655 + <attribute default="${excludes}" name="excludes"/>
4.656 + <attribute default="**" name="testincludes"/>
4.657 + <attribute default="" name="testmethods"/>
4.658 + <attribute default="${main.class}" name="testClass"/>
4.659 + <attribute default="" name="testMethod"/>
4.660 + <sequential>
4.661 + <j2seproject3:testng-debug-impl testClass="@{testClass}" testMethod="@{testMethod}">
4.662 + <customize2>
4.663 + <syspropertyset>
4.664 + <propertyref prefix="test-sys-prop."/>
4.665 + <mapper from="test-sys-prop.*" to="*" type="glob"/>
4.666 + </syspropertyset>
4.667 + </customize2>
4.668 + </j2seproject3:testng-debug-impl>
4.669 + </sequential>
4.670 + </macrodef>
4.671 + </target>
4.672 + <target depends="-init-macrodef-test-debug-junit,-init-macrodef-test-debug-testng" name="-init-macrodef-test-debug"/>
4.673 + <!--
4.674 + pre NB7.2 profiling section; consider it deprecated
4.675 + -->
4.676 + <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" if="profiler.info.jvmargs.agent" name="profile-init"/>
4.677 + <target if="profiler.info.jvmargs.agent" name="-profile-pre-init">
4.678 + <!-- Empty placeholder for easier customization. -->
4.679 + <!-- You can override this target in the ../build.xml file. -->
4.680 + </target>
4.681 + <target if="profiler.info.jvmargs.agent" name="-profile-post-init">
4.682 + <!-- Empty placeholder for easier customization. -->
4.683 + <!-- You can override this target in the ../build.xml file. -->
4.684 + </target>
4.685 + <target if="profiler.info.jvmargs.agent" name="-profile-init-macrodef-profile">
4.686 + <macrodef name="resolve">
4.687 + <attribute name="name"/>
4.688 + <attribute name="value"/>
4.689 + <sequential>
4.690 + <property name="@{name}" value="${env.@{value}}"/>
4.691 + </sequential>
4.692 + </macrodef>
4.693 + <macrodef name="profile">
4.694 + <attribute default="${main.class}" name="classname"/>
4.695 + <element name="customize" optional="true"/>
4.696 + <sequential>
4.697 + <property environment="env"/>
4.698 + <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
4.699 + <java classname="@{classname}" dir="${profiler.info.dir}" fork="true" jvm="${profiler.info.jvm}">
4.700 + <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
4.701 + <jvmarg value="${profiler.info.jvmargs.agent}"/>
4.702 + <jvmarg line="${profiler.info.jvmargs}"/>
4.703 + <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
4.704 + <arg line="${application.args}"/>
4.705 + <classpath>
4.706 + <path path="${run.classpath}"/>
4.707 + </classpath>
4.708 + <syspropertyset>
4.709 + <propertyref prefix="run-sys-prop."/>
4.710 + <mapper from="run-sys-prop.*" to="*" type="glob"/>
4.711 + </syspropertyset>
4.712 + <customize/>
4.713 + </java>
4.714 + </sequential>
4.715 + </macrodef>
4.716 + </target>
4.717 + <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" if="profiler.info.jvmargs.agent" name="-profile-init-check">
4.718 + <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
4.719 + <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
4.720 + </target>
4.721 + <!--
4.722 + end of pre NB7.2 profiling section
4.723 + -->
4.724 + <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
4.725 + <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
4.726 + <attribute default="${main.class}" name="name"/>
4.727 + <attribute default="${debug.classpath}" name="classpath"/>
4.728 + <attribute default="" name="stopclassname"/>
4.729 + <sequential>
4.730 + <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
4.731 + <classpath>
4.732 + <path path="@{classpath}"/>
4.733 + </classpath>
4.734 + </nbjpdastart>
4.735 + </sequential>
4.736 + </macrodef>
4.737 + <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
4.738 + <attribute default="${build.classes.dir}" name="dir"/>
4.739 + <sequential>
4.740 + <nbjpdareload>
4.741 + <fileset dir="@{dir}" includes="${fix.classes}">
4.742 + <include name="${fix.includes}*.class"/>
4.743 + </fileset>
4.744 + </nbjpdareload>
4.745 + </sequential>
4.746 + </macrodef>
4.747 + </target>
4.748 + <target name="-init-debug-args">
4.749 + <property name="version-output" value="java version "${ant.java.version}"/>
4.750 + <condition property="have-jdk-older-than-1.4">
4.751 + <or>
4.752 + <contains string="${version-output}" substring="java version "1.0"/>
4.753 + <contains string="${version-output}" substring="java version "1.1"/>
4.754 + <contains string="${version-output}" substring="java version "1.2"/>
4.755 + <contains string="${version-output}" substring="java version "1.3"/>
4.756 + </or>
4.757 + </condition>
4.758 + <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
4.759 + <istrue value="${have-jdk-older-than-1.4}"/>
4.760 + </condition>
4.761 + <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
4.762 + <os family="windows"/>
4.763 + </condition>
4.764 + <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
4.765 + <isset property="debug.transport"/>
4.766 + </condition>
4.767 + </target>
4.768 + <target depends="-init-debug-args" name="-init-macrodef-debug">
4.769 + <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
4.770 + <attribute default="${main.class}" name="classname"/>
4.771 + <attribute default="${debug.classpath}" name="classpath"/>
4.772 + <element name="customize" optional="true"/>
4.773 + <sequential>
4.774 + <java classname="@{classname}" dir="${work.dir}" fork="true">
4.775 + <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
4.776 + <jvmarg line="${debug-args-line}"/>
4.777 + <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
4.778 + <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
4.779 + <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
4.780 + <jvmarg line="${run.jvmargs}"/>
4.781 + <jvmarg line="${run.jvmargs.ide}"/>
4.782 + <classpath>
4.783 + <path path="@{classpath}"/>
4.784 + </classpath>
4.785 + <syspropertyset>
4.786 + <propertyref prefix="run-sys-prop."/>
4.787 + <mapper from="run-sys-prop.*" to="*" type="glob"/>
4.788 + </syspropertyset>
4.789 + <customize/>
4.790 + </java>
4.791 + </sequential>
4.792 + </macrodef>
4.793 + </target>
4.794 + <target name="-init-macrodef-java">
4.795 + <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
4.796 + <attribute default="${main.class}" name="classname"/>
4.797 + <attribute default="${run.classpath}" name="classpath"/>
4.798 + <attribute default="jvm" name="jvm"/>
4.799 + <element name="customize" optional="true"/>
4.800 + <sequential>
4.801 + <java classname="@{classname}" dir="${work.dir}" fork="true">
4.802 + <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
4.803 + <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
4.804 + <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
4.805 + <jvmarg line="${run.jvmargs}"/>
4.806 + <jvmarg line="${run.jvmargs.ide}"/>
4.807 + <classpath>
4.808 + <path path="@{classpath}"/>
4.809 + </classpath>
4.810 + <syspropertyset>
4.811 + <propertyref prefix="run-sys-prop."/>
4.812 + <mapper from="run-sys-prop.*" to="*" type="glob"/>
4.813 + </syspropertyset>
4.814 + <customize/>
4.815 + </java>
4.816 + </sequential>
4.817 + </macrodef>
4.818 + </target>
4.819 + <target name="-init-macrodef-copylibs">
4.820 + <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">
4.821 + <attribute default="${manifest.file}" name="manifest"/>
4.822 + <element name="customize" optional="true"/>
4.823 + <sequential>
4.824 + <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
4.825 + <pathconvert property="run.classpath.without.build.classes.dir">
4.826 + <path path="${run.classpath}"/>
4.827 + <map from="${build.classes.dir.resolved}" to=""/>
4.828 + </pathconvert>
4.829 + <pathconvert pathsep=" " property="jar.classpath">
4.830 + <path path="${run.classpath.without.build.classes.dir}"/>
4.831 + <chainedmapper>
4.832 + <flattenmapper/>
4.833 + <filtermapper>
4.834 + <replacestring from=" " to="%20"/>
4.835 + </filtermapper>
4.836 + <globmapper from="*" to="lib/*"/>
4.837 + </chainedmapper>
4.838 + </pathconvert>
4.839 + <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
4.840 + <copylibs compress="${jar.compress}" excludeFromCopy="${copylibs.excludes}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
4.841 + <fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
4.842 + <manifest>
4.843 + <attribute name="Class-Path" value="${jar.classpath}"/>
4.844 + <customize/>
4.845 + </manifest>
4.846 + </copylibs>
4.847 + </sequential>
4.848 + </macrodef>
4.849 + </target>
4.850 + <target name="-init-presetdef-jar">
4.851 + <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
4.852 + <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">
4.853 + <j2seproject1:fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
4.854 + </jar>
4.855 + </presetdef>
4.856 + </target>
4.857 + <target name="-init-ap-cmdline-properties">
4.858 + <property name="annotation.processing.enabled" value="true"/>
4.859 + <property name="annotation.processing.processors.list" value=""/>
4.860 + <property name="annotation.processing.processor.options" value=""/>
4.861 + <property name="annotation.processing.run.all.processors" value="true"/>
4.862 + <property name="javac.processorpath" value="${javac.classpath}"/>
4.863 + <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
4.864 + <condition property="ap.supported.internal" value="true">
4.865 + <not>
4.866 + <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
4.867 + </not>
4.868 + </condition>
4.869 + </target>
4.870 + <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
4.871 + <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
4.872 + <isfalse value="${annotation.processing.run.all.processors}"/>
4.873 + </condition>
4.874 + <condition else="" property="ap.proc.none.internal" value="-proc:none">
4.875 + <isfalse value="${annotation.processing.enabled}"/>
4.876 + </condition>
4.877 + </target>
4.878 + <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
4.879 + <property name="ap.cmd.line.internal" value=""/>
4.880 + </target>
4.881 + <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-test,-init-macrodef-test-debug,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar,-init-ap-cmdline" name="init"/>
4.882 + <!--
4.883 + ===================
4.884 + COMPILATION SECTION
4.885 + ===================
4.886 + -->
4.887 + <target name="-deps-jar-init" unless="built-jar.properties">
4.888 + <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>
4.889 + <delete file="${built-jar.properties}" quiet="true"/>
4.890 + </target>
4.891 + <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
4.892 + <echo level="warn" message="Cycle detected: copy-image-resizer was already built"/>
4.893 + </target>
4.894 + <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
4.895 + <mkdir dir="${build.dir}"/>
4.896 + <touch file="${built-jar.properties}" verbose="false"/>
4.897 + <property file="${built-jar.properties}" prefix="already.built.jar."/>
4.898 + <antcall target="-warn-already-built-jar"/>
4.899 + <propertyfile file="${built-jar.properties}">
4.900 + <entry key="${basedir}" value=""/>
4.901 + </propertyfile>
4.902 + </target>
4.903 + <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
4.904 + <target depends="init" name="-check-automatic-build">
4.905 + <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
4.906 + </target>
4.907 + <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
4.908 + <antcall target="clean"/>
4.909 + </target>
4.910 + <target depends="init,deps-jar" name="-pre-pre-compile">
4.911 + <mkdir dir="${build.classes.dir}"/>
4.912 + </target>
4.913 + <target name="-pre-compile">
4.914 + <!-- Empty placeholder for easier customization. -->
4.915 + <!-- You can override this target in the ../build.xml file. -->
4.916 + </target>
4.917 + <target if="do.depend.true" name="-compile-depend">
4.918 + <pathconvert property="build.generated.subdirs">
4.919 + <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
4.920 + <include name="*"/>
4.921 + </dirset>
4.922 + </pathconvert>
4.923 + <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>
4.924 + </target>
4.925 + <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">
4.926 + <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
4.927 + <copy todir="${build.classes.dir}">
4.928 + <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
4.929 + </copy>
4.930 + </target>
4.931 + <target if="has.persistence.xml" name="-copy-persistence-xml">
4.932 + <mkdir dir="${build.classes.dir}/META-INF"/>
4.933 + <copy todir="${build.classes.dir}/META-INF">
4.934 + <fileset dir="${meta.inf.dir}" includes="persistence.xml orm.xml"/>
4.935 + </copy>
4.936 + </target>
4.937 + <target name="-post-compile">
4.938 + <!-- Empty placeholder for easier customization. -->
4.939 + <!-- You can override this target in the ../build.xml file. -->
4.940 + </target>
4.941 + <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
4.942 + <target name="-pre-compile-single">
4.943 + <!-- Empty placeholder for easier customization. -->
4.944 + <!-- You can override this target in the ../build.xml file. -->
4.945 + </target>
4.946 + <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
4.947 + <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
4.948 + <j2seproject3:force-recompile/>
4.949 + <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>
4.950 + </target>
4.951 + <target name="-post-compile-single">
4.952 + <!-- Empty placeholder for easier customization. -->
4.953 + <!-- You can override this target in the ../build.xml file. -->
4.954 + </target>
4.955 + <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
4.956 + <!--
4.957 + ====================
4.958 + JAR BUILDING SECTION
4.959 + ====================
4.960 + -->
4.961 + <target depends="init" name="-pre-pre-jar">
4.962 + <dirname file="${dist.jar}" property="dist.jar.dir"/>
4.963 + <mkdir dir="${dist.jar.dir}"/>
4.964 + </target>
4.965 + <target name="-pre-jar">
4.966 + <!-- Empty placeholder for easier customization. -->
4.967 + <!-- You can override this target in the ../build.xml file. -->
4.968 + </target>
4.969 + <target depends="init" if="do.archive" name="-do-jar-create-manifest" unless="manifest.available">
4.970 + <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
4.971 + <touch file="${tmp.manifest.file}" verbose="false"/>
4.972 + </target>
4.973 + <target depends="init" if="do.archive+manifest.available" name="-do-jar-copy-manifest">
4.974 + <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
4.975 + <copy file="${manifest.file}" tofile="${tmp.manifest.file}"/>
4.976 + </target>
4.977 + <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+main.class.available" name="-do-jar-set-mainclass">
4.978 + <manifest file="${tmp.manifest.file}" mode="update">
4.979 + <attribute name="Main-Class" value="${main.class}"/>
4.980 + </manifest>
4.981 + </target>
4.982 + <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+profile.available" name="-do-jar-set-profile">
4.983 + <manifest file="${tmp.manifest.file}" mode="update">
4.984 + <attribute name="Profile" value="${javac.profile}"/>
4.985 + </manifest>
4.986 + </target>
4.987 + <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-set-splashscreen">
4.988 + <basename file="${application.splash}" property="splashscreen.basename"/>
4.989 + <mkdir dir="${build.classes.dir}/META-INF"/>
4.990 + <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
4.991 + <manifest file="${tmp.manifest.file}" mode="update">
4.992 + <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
4.993 + </manifest>
4.994 + </target>
4.995 + <target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen" if="do.mkdist" name="-do-jar-copylibs">
4.996 + <j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
4.997 + <echo level="info">To run this application from the command line without Ant, try:</echo>
4.998 + <property location="${dist.jar}" name="dist.jar.resolved"/>
4.999 + <echo level="info">java -jar "${dist.jar.resolved}"</echo>
4.1000 + </target>
4.1001 + <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen" if="do.archive" name="-do-jar-jar" unless="do.mkdist">
4.1002 + <j2seproject1:jar manifest="${tmp.manifest.file}"/>
4.1003 + <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
4.1004 + <property location="${dist.jar}" name="dist.jar.resolved"/>
4.1005 + <pathconvert property="run.classpath.with.dist.jar">
4.1006 + <path path="${run.classpath}"/>
4.1007 + <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
4.1008 + </pathconvert>
4.1009 + <condition else="" property="jar.usage.message" value="To run this application from the command line without Ant, try:${line.separator}${platform.java} -cp ${run.classpath.with.dist.jar} ${main.class}">
4.1010 + <isset property="main.class.available"/>
4.1011 + </condition>
4.1012 + <condition else="debug" property="jar.usage.level" value="info">
4.1013 + <isset property="main.class.available"/>
4.1014 + </condition>
4.1015 + <echo level="${jar.usage.level}" message="${jar.usage.message}"/>
4.1016 + </target>
4.1017 + <target depends="-do-jar-copylibs" if="do.archive" name="-do-jar-delete-manifest">
4.1018 + <delete>
4.1019 + <fileset file="${tmp.manifest.file}"/>
4.1020 + </delete>
4.1021 + </target>
4.1022 + <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-do-jar-jar,-do-jar-delete-manifest" name="-do-jar-without-libraries"/>
4.1023 + <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-do-jar-copylibs,-do-jar-delete-manifest" name="-do-jar-with-libraries"/>
4.1024 + <target name="-post-jar">
4.1025 + <!-- Empty placeholder for easier customization. -->
4.1026 + <!-- You can override this target in the ../build.xml file. -->
4.1027 + </target>
4.1028 + <target depends="init,compile,-pre-jar,-do-jar-without-libraries,-do-jar-with-libraries,-post-jar" name="-do-jar"/>
4.1029 + <target depends="init,compile,-pre-jar,-do-jar,-post-jar" description="Build JAR." name="jar"/>
4.1030 + <!--
4.1031 + =================
4.1032 + EXECUTION SECTION
4.1033 + =================
4.1034 + -->
4.1035 + <target depends="init,compile" description="Run a main class." name="run">
4.1036 + <j2seproject1:java>
4.1037 + <customize>
4.1038 + <arg line="${application.args}"/>
4.1039 + </customize>
4.1040 + </j2seproject1:java>
4.1041 + </target>
4.1042 + <target name="-do-not-recompile">
4.1043 + <property name="javac.includes.binary" value=""/>
4.1044 + </target>
4.1045 + <target depends="init,compile-single" name="run-single">
4.1046 + <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
4.1047 + <j2seproject1:java classname="${run.class}"/>
4.1048 + </target>
4.1049 + <target depends="init,compile-test-single" name="run-test-with-main">
4.1050 + <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
4.1051 + <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
4.1052 + </target>
4.1053 + <!--
4.1054 + =================
4.1055 + DEBUGGING SECTION
4.1056 + =================
4.1057 + -->
4.1058 + <target depends="init" if="netbeans.home" name="-debug-start-debugger">
4.1059 + <j2seproject1:nbjpdastart name="${debug.class}"/>
4.1060 + </target>
4.1061 + <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
4.1062 + <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
4.1063 + </target>
4.1064 + <target depends="init,compile" name="-debug-start-debuggee">
4.1065 + <j2seproject3:debug>
4.1066 + <customize>
4.1067 + <arg line="${application.args}"/>
4.1068 + </customize>
4.1069 + </j2seproject3:debug>
4.1070 + </target>
4.1071 + <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
4.1072 + <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
4.1073 + <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
4.1074 + </target>
4.1075 + <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
4.1076 + <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
4.1077 + <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
4.1078 + <j2seproject3:debug classname="${debug.class}"/>
4.1079 + </target>
4.1080 + <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
4.1081 + <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
4.1082 + <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
4.1083 + <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
4.1084 + </target>
4.1085 + <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
4.1086 + <target depends="init" name="-pre-debug-fix">
4.1087 + <fail unless="fix.includes">Must set fix.includes</fail>
4.1088 + <property name="javac.includes" value="${fix.includes}.java"/>
4.1089 + </target>
4.1090 + <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
4.1091 + <j2seproject1:nbjpdareload/>
4.1092 + </target>
4.1093 + <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
4.1094 + <!--
4.1095 + =================
4.1096 + PROFILING SECTION
4.1097 + =================
4.1098 + -->
4.1099 + <!--
4.1100 + pre NB7.2 profiler integration
4.1101 + -->
4.1102 + <target depends="profile-init,compile" description="Profile a project in the IDE." if="profiler.info.jvmargs.agent" name="-profile-pre72">
4.1103 + <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
4.1104 + <nbprofiledirect>
4.1105 + <classpath>
4.1106 + <path path="${run.classpath}"/>
4.1107 + </classpath>
4.1108 + </nbprofiledirect>
4.1109 + <profile/>
4.1110 + </target>
4.1111 + <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="profiler.info.jvmargs.agent" name="-profile-single-pre72">
4.1112 + <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail>
4.1113 + <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
4.1114 + <nbprofiledirect>
4.1115 + <classpath>
4.1116 + <path path="${run.classpath}"/>
4.1117 + </classpath>
4.1118 + </nbprofiledirect>
4.1119 + <profile classname="${profile.class}"/>
4.1120 + </target>
4.1121 + <target depends="profile-init,compile-single" if="profiler.info.jvmargs.agent" name="-profile-applet-pre72">
4.1122 + <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
4.1123 + <nbprofiledirect>
4.1124 + <classpath>
4.1125 + <path path="${run.classpath}"/>
4.1126 + </classpath>
4.1127 + </nbprofiledirect>
4.1128 + <profile classname="sun.applet.AppletViewer">
4.1129 + <customize>
4.1130 + <arg value="${applet.url}"/>
4.1131 + </customize>
4.1132 + </profile>
4.1133 + </target>
4.1134 + <target depends="profile-init,compile-test-single" if="profiler.info.jvmargs.agent" name="-profile-test-single-pre72">
4.1135 + <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
4.1136 + <nbprofiledirect>
4.1137 + <classpath>
4.1138 + <path path="${run.test.classpath}"/>
4.1139 + </classpath>
4.1140 + </nbprofiledirect>
4.1141 + <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
4.1142 + <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
4.1143 + <jvmarg value="${profiler.info.jvmargs.agent}"/>
4.1144 + <jvmarg line="${profiler.info.jvmargs}"/>
4.1145 + <test name="${profile.class}"/>
4.1146 + <classpath>
4.1147 + <path path="${run.test.classpath}"/>
4.1148 + </classpath>
4.1149 + <syspropertyset>
4.1150 + <propertyref prefix="test-sys-prop."/>
4.1151 + <mapper from="test-sys-prop.*" to="*" type="glob"/>
4.1152 + </syspropertyset>
4.1153 + <formatter type="brief" usefile="false"/>
4.1154 + <formatter type="xml"/>
4.1155 + </junit>
4.1156 + </target>
4.1157 + <!--
4.1158 + end of pre NB72 profiling section
4.1159 + -->
4.1160 + <target if="netbeans.home" name="-profile-check">
4.1161 + <condition property="profiler.configured">
4.1162 + <or>
4.1163 + <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-agentpath:"/>
4.1164 + <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-javaagent:"/>
4.1165 + </or>
4.1166 + </condition>
4.1167 + </target>
4.1168 + <target depends="-profile-check,-profile-pre72" description="Profile a project in the IDE." if="profiler.configured" name="profile" unless="profiler.info.jvmargs.agent">
4.1169 + <startprofiler/>
4.1170 + <antcall target="run"/>
4.1171 + </target>
4.1172 + <target depends="-profile-check,-profile-single-pre72" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-single" unless="profiler.info.jvmargs.agent">
4.1173 + <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
4.1174 + <startprofiler/>
4.1175 + <antcall target="run-single"/>
4.1176 + </target>
4.1177 + <target depends="-profile-test-single-pre72" description="Profile a selected test in the IDE." name="profile-test-single"/>
4.1178 + <target depends="-profile-check" description="Profile a selected test in the IDE." if="profiler.configured" name="profile-test" unless="profiler.info.jvmargs">
4.1179 + <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
4.1180 + <startprofiler/>
4.1181 + <antcall target="test-single"/>
4.1182 + </target>
4.1183 + <target depends="-profile-check" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-test-with-main">
4.1184 + <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
4.1185 + <startprofiler/>
4.1186 + <antcal target="run-test-with-main"/>
4.1187 + </target>
4.1188 + <target depends="-profile-check,-profile-applet-pre72" if="profiler.configured" name="profile-applet" unless="profiler.info.jvmargs.agent">
4.1189 + <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
4.1190 + <startprofiler/>
4.1191 + <antcall target="run-applet"/>
4.1192 + </target>
4.1193 + <!--
4.1194 + ===============
4.1195 + JAVADOC SECTION
4.1196 + ===============
4.1197 + -->
4.1198 + <target depends="init" if="have.sources" name="-javadoc-build">
4.1199 + <mkdir dir="${dist.javadoc.dir}"/>
4.1200 + <condition else="" property="javadoc.endorsed.classpath.cmd.line.arg" value="-J${endorsed.classpath.cmd.line.arg}">
4.1201 + <and>
4.1202 + <isset property="endorsed.classpath.cmd.line.arg"/>
4.1203 + <not>
4.1204 + <equals arg1="${endorsed.classpath.cmd.line.arg}" arg2=""/>
4.1205 + </not>
4.1206 + </and>
4.1207 + </condition>
4.1208 + <condition else="" property="bug5101868workaround" value="*.java">
4.1209 + <matches pattern="1\.[56](\..*)?" string="${java.version}"/>
4.1210 + </condition>
4.1211 + <javadoc additionalparam="-J-Dfile.encoding=${file.encoding} ${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}">
4.1212 + <classpath>
4.1213 + <path path="${javac.classpath}"/>
4.1214 + </classpath>
4.1215 + <fileset dir="${src.dir}" excludes="${bug5101868workaround},${excludes}" includes="${includes}">
4.1216 + <filename name="**/*.java"/>
4.1217 + </fileset>
4.1218 + <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
4.1219 + <include name="**/*.java"/>
4.1220 + <exclude name="*.java"/>
4.1221 + </fileset>
4.1222 + <arg line="${javadoc.endorsed.classpath.cmd.line.arg}"/>
4.1223 + </javadoc>
4.1224 + <copy todir="${dist.javadoc.dir}">
4.1225 + <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
4.1226 + <filename name="**/doc-files/**"/>
4.1227 + </fileset>
4.1228 + <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
4.1229 + <include name="**/doc-files/**"/>
4.1230 + </fileset>
4.1231 + </copy>
4.1232 + </target>
4.1233 + <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
4.1234 + <nbbrowse file="${dist.javadoc.dir}/index.html"/>
4.1235 + </target>
4.1236 + <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
4.1237 + <!--
4.1238 + =========================
4.1239 + TEST COMPILATION SECTION
4.1240 + =========================
4.1241 + -->
4.1242 + <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
4.1243 + <mkdir dir="${build.test.classes.dir}"/>
4.1244 + </target>
4.1245 + <target name="-pre-compile-test">
4.1246 + <!-- Empty placeholder for easier customization. -->
4.1247 + <!-- You can override this target in the ../build.xml file. -->
4.1248 + </target>
4.1249 + <target if="do.depend.true" name="-compile-test-depend">
4.1250 + <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
4.1251 + </target>
4.1252 + <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
4.1253 + <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" processorpath="${javac.test.processorpath}" srcdir="${test.src.dir}"/>
4.1254 + <copy todir="${build.test.classes.dir}">
4.1255 + <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
4.1256 + </copy>
4.1257 + </target>
4.1258 + <target name="-post-compile-test">
4.1259 + <!-- Empty placeholder for easier customization. -->
4.1260 + <!-- You can override this target in the ../build.xml file. -->
4.1261 + </target>
4.1262 + <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
4.1263 + <target name="-pre-compile-test-single">
4.1264 + <!-- Empty placeholder for easier customization. -->
4.1265 + <!-- You can override this target in the ../build.xml file. -->
4.1266 + </target>
4.1267 + <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
4.1268 + <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
4.1269 + <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
4.1270 + <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" processorpath="${javac.test.processorpath}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}"/>
4.1271 + <copy todir="${build.test.classes.dir}">
4.1272 + <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
4.1273 + </copy>
4.1274 + </target>
4.1275 + <target name="-post-compile-test-single">
4.1276 + <!-- Empty placeholder for easier customization. -->
4.1277 + <!-- You can override this target in the ../build.xml file. -->
4.1278 + </target>
4.1279 + <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
4.1280 + <!--
4.1281 + =======================
4.1282 + TEST EXECUTION SECTION
4.1283 + =======================
4.1284 + -->
4.1285 + <target depends="init" if="have.tests" name="-pre-test-run">
4.1286 + <mkdir dir="${build.test.results.dir}"/>
4.1287 + </target>
4.1288 + <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
4.1289 + <j2seproject3:test includes="${includes}" testincludes="**/*Test.java"/>
4.1290 + </target>
4.1291 + <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
4.1292 + <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
4.1293 + </target>
4.1294 + <target depends="init" if="have.tests" name="test-report"/>
4.1295 + <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
4.1296 + <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
4.1297 + <target depends="init" if="have.tests" name="-pre-test-run-single">
4.1298 + <mkdir dir="${build.test.results.dir}"/>
4.1299 + </target>
4.1300 + <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
4.1301 + <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
4.1302 + <j2seproject3:test excludes="" includes="${test.includes}" testincludes="${test.includes}"/>
4.1303 + </target>
4.1304 + <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
4.1305 + <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
4.1306 + </target>
4.1307 + <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>
4.1308 + <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single-method">
4.1309 + <fail unless="test.class">Must select some files in the IDE or set test.class</fail>
4.1310 + <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
4.1311 + <j2seproject3:test excludes="" includes="${javac.includes}" testincludes="${test.class}" testmethods="${test.method}"/>
4.1312 + </target>
4.1313 + <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method" if="have.tests" name="-post-test-run-single-method">
4.1314 + <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
4.1315 + </target>
4.1316 + <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method,-post-test-run-single-method" description="Run single unit test." name="test-single-method"/>
4.1317 + <!--
4.1318 + =======================
4.1319 + TEST DEBUGGING SECTION
4.1320 + =======================
4.1321 + -->
4.1322 + <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test">
4.1323 + <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
4.1324 + <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testincludes="${javac.includes}"/>
4.1325 + </target>
4.1326 + <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test-method">
4.1327 + <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
4.1328 + <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
4.1329 + <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testMethod="${test.method}" testincludes="${test.class}" testmethods="${test.method}"/>
4.1330 + </target>
4.1331 + <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
4.1332 + <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
4.1333 + </target>
4.1334 + <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
4.1335 + <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test-method" name="debug-test-method"/>
4.1336 + <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
4.1337 + <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
4.1338 + </target>
4.1339 + <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
4.1340 + <!--
4.1341 + =========================
4.1342 + APPLET EXECUTION SECTION
4.1343 + =========================
4.1344 + -->
4.1345 + <target depends="init,compile-single" name="run-applet">
4.1346 + <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
4.1347 + <j2seproject1:java classname="sun.applet.AppletViewer">
4.1348 + <customize>
4.1349 + <arg value="${applet.url}"/>
4.1350 + </customize>
4.1351 + </j2seproject1:java>
4.1352 + </target>
4.1353 + <!--
4.1354 + =========================
4.1355 + APPLET DEBUGGING SECTION
4.1356 + =========================
4.1357 + -->
4.1358 + <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
4.1359 + <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
4.1360 + <j2seproject3:debug classname="sun.applet.AppletViewer">
4.1361 + <customize>
4.1362 + <arg value="${applet.url}"/>
4.1363 + </customize>
4.1364 + </j2seproject3:debug>
4.1365 + </target>
4.1366 + <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
4.1367 + <!--
4.1368 + ===============
4.1369 + CLEANUP SECTION
4.1370 + ===============
4.1371 + -->
4.1372 + <target name="-deps-clean-init" unless="built-clean.properties">
4.1373 + <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>
4.1374 + <delete file="${built-clean.properties}" quiet="true"/>
4.1375 + </target>
4.1376 + <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
4.1377 + <echo level="warn" message="Cycle detected: copy-image-resizer was already built"/>
4.1378 + </target>
4.1379 + <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
4.1380 + <mkdir dir="${build.dir}"/>
4.1381 + <touch file="${built-clean.properties}" verbose="false"/>
4.1382 + <property file="${built-clean.properties}" prefix="already.built.clean."/>
4.1383 + <antcall target="-warn-already-built-clean"/>
4.1384 + <propertyfile file="${built-clean.properties}">
4.1385 + <entry key="${basedir}" value=""/>
4.1386 + </propertyfile>
4.1387 + </target>
4.1388 + <target depends="init" name="-do-clean">
4.1389 + <delete dir="${build.dir}"/>
4.1390 + <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
4.1391 + </target>
4.1392 + <target name="-post-clean">
4.1393 + <!-- Empty placeholder for easier customization. -->
4.1394 + <!-- You can override this target in the ../build.xml file. -->
4.1395 + </target>
4.1396 + <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
4.1397 + <target name="-check-call-dep">
4.1398 + <property file="${call.built.properties}" prefix="already.built."/>
4.1399 + <condition property="should.call.dep">
4.1400 + <and>
4.1401 + <not>
4.1402 + <isset property="already.built.${call.subproject}"/>
4.1403 + </not>
4.1404 + <available file="${call.script}"/>
4.1405 + </and>
4.1406 + </condition>
4.1407 + </target>
4.1408 + <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
4.1409 + <ant antfile="${call.script}" inheritall="false" target="${call.target}">
4.1410 + <propertyset>
4.1411 + <propertyref prefix="transfer."/>
4.1412 + <mapper from="transfer.*" to="*" type="glob"/>
4.1413 + </propertyset>
4.1414 + </ant>
4.1415 + </target>
4.1416 +</project>
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
5.2 +++ b/java/copy-image-resizer/nbproject/genfiles.properties Sun Nov 16 19:41:41 2014 +0100
5.3 @@ -0,0 +1,8 @@
5.4 +build.xml.data.CRC32=eeb02903
5.5 +build.xml.script.CRC32=cd1aed7e
5.6 +build.xml.stylesheet.CRC32=8064a381@1.75.2.48
5.7 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
5.8 +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
5.9 +nbproject/build-impl.xml.data.CRC32=eeb02903
5.10 +nbproject/build-impl.xml.script.CRC32=1b8ee374
5.11 +nbproject/build-impl.xml.stylesheet.CRC32=876e7a8f@1.75.2.48
6.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
6.2 +++ b/java/copy-image-resizer/nbproject/private/private.properties Sun Nov 16 19:41:41 2014 +0100
6.3 @@ -0,0 +1,2 @@
6.4 +compile.on.save=true
6.5 +user.properties.file=/home/fiki/.netbeans/8.0/build.properties
7.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
7.2 +++ b/java/copy-image-resizer/nbproject/private/private.xml Sun Nov 16 19:41:41 2014 +0100
7.3 @@ -0,0 +1,9 @@
7.4 +<?xml version="1.0" encoding="UTF-8"?>
7.5 +<project-private xmlns="http://www.netbeans.org/ns/project-private/1">
7.6 + <editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/>
7.7 + <open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
7.8 + <group name="arbes">
7.9 + <file>file:/home/fiki/projekty/copy-image-resizer/copy-image-resizer/java/copy-image-resizer/src/cz/frantovo/copyImageResizer/CLIResizer.java</file>
7.10 + </group>
7.11 + </open-files>
7.12 +</project-private>
8.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
8.2 +++ b/java/copy-image-resizer/nbproject/project.properties Sun Nov 16 19:41:41 2014 +0100
8.3 @@ -0,0 +1,73 @@
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 +# Files in build.classes.dir which should be excluded from distribution jar
8.27 +dist.archive.excludes=
8.28 +# This directory is removed when the project is cleaned:
8.29 +dist.dir=dist
8.30 +dist.jar=${dist.dir}/copy-image-resizer.jar
8.31 +dist.javadoc.dir=${dist.dir}/javadoc
8.32 +excludes=
8.33 +includes=**
8.34 +jar.compress=false
8.35 +javac.classpath=
8.36 +# Space-separated list of extra javac options
8.37 +javac.compilerargs=
8.38 +javac.deprecation=false
8.39 +javac.processorpath=\
8.40 + ${javac.classpath}
8.41 +javac.source=1.7
8.42 +javac.target=1.7
8.43 +javac.test.classpath=\
8.44 + ${javac.classpath}:\
8.45 + ${build.classes.dir}
8.46 +javac.test.processorpath=\
8.47 + ${javac.test.classpath}
8.48 +javadoc.additionalparam=
8.49 +javadoc.author=false
8.50 +javadoc.encoding=${source.encoding}
8.51 +javadoc.noindex=false
8.52 +javadoc.nonavbar=false
8.53 +javadoc.notree=false
8.54 +javadoc.private=false
8.55 +javadoc.splitindex=true
8.56 +javadoc.use=true
8.57 +javadoc.version=false
8.58 +javadoc.windowtitle=
8.59 +main.class=cz.frantovo.copyImageResizer.CLIResizer
8.60 +manifest.file=manifest.mf
8.61 +meta.inf.dir=${src.dir}/META-INF
8.62 +mkdist.disabled=false
8.63 +platform.active=default_platform
8.64 +run.classpath=\
8.65 + ${javac.classpath}:\
8.66 + ${build.classes.dir}
8.67 +# Space-separated list of JVM arguments used when running the project.
8.68 +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value.
8.69 +# To set system properties for unit tests define test-sys-prop.name=value:
8.70 +run.jvmargs=
8.71 +run.test.classpath=\
8.72 + ${javac.test.classpath}:\
8.73 + ${build.test.classes.dir}
8.74 +source.encoding=UTF-8
8.75 +src.dir=src
8.76 +test.src.dir=test
9.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
9.2 +++ b/java/copy-image-resizer/nbproject/project.xml Sun Nov 16 19:41:41 2014 +0100
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>copy-image-resizer</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/copy-image-resizer/src/cz/frantovo/copyImageResizer/CLIResizer.java Sun Nov 16 19:41:41 2014 +0100
10.3 @@ -0,0 +1,34 @@
10.4 +/**
10.5 + * copy-image-resizer
10.6 + * Copyright © 2014 František Kučera (frantovo.cz)
10.7 + *
10.8 + * This program is free software: you can redistribute it and/or modify
10.9 + * it under the terms of the GNU General Public License as published by
10.10 + * the Free Software Foundation, either version 3 of the License, or
10.11 + * (at your option) any later version.
10.12 + *
10.13 + * This program is distributed in the hope that it will be useful,
10.14 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
10.15 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10.16 + * GNU General Public License for more details.
10.17 + *
10.18 + * You should have received a copy of the GNU General Public License
10.19 + * along with this program. If not, see <http://www.gnu.org/licenses/>.
10.20 + */
10.21 +package cz.frantovo.copyImageResizer;
10.22 +
10.23 +/**
10.24 + *
10.25 + * @author Ing. František Kučera (frantovo.cz)
10.26 + */
10.27 +public class CLIResizer {
10.28 +
10.29 + /**
10.30 + * @param args the command line arguments
10.31 + */
10.32 + public static void main(String[] args) {
10.33 + // TODO code application logic here
10.34 + System.out.println("TODO");
10.35 + }
10.36 +
10.37 +}