1 <?xml version="1.0" encoding="UTF-8"?>
3 *** GENERATED FROM project.xml - DO NOT EDIT ***
4 *** EDIT ../build.xml INSTEAD ***
6 For the purpose of easier reading the script
7 is divided into following sections:
22 <project name="shoot-impl" default="default" basedir=".." xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:j2seproject2="http://www.netbeans.org/ns/j2se-project/2" xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:jaxws="http://www.netbeans.org/ns/jax-ws/1">
23 <target name="default" depends="test,jar,javadoc" description="Build and test whole project."/>
25 ======================
26 INITIALIZATION SECTION
27 ======================
29 <target name="-pre-init">
30 <!-- Empty placeholder for easier customization. -->
31 <!-- You can override this target in the ../build.xml file. -->
33 <target name="-init-private" depends="-pre-init">
34 <property file="nbproject/private/private.properties"/>
36 <target name="-init-user" depends="-pre-init,-init-private">
37 <property file="${user.properties.file}"/>
38 <!-- The two properties below are usually overridden -->
39 <!-- by the active platform. Just a fallback. -->
40 <property name="default.javac.source" value="1.4"/>
41 <property name="default.javac.target" value="1.4"/>
43 <target name="-init-project" depends="-pre-init,-init-private,-init-user">
44 <property file="nbproject/project.properties"/>
46 <target name="-do-init" depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property">
47 <available file="${manifest.file}" property="manifest.available"/>
48 <condition property="manifest.available+main.class">
50 <isset property="manifest.available"/>
51 <isset property="main.class"/>
53 <equals arg1="${main.class}" arg2="" trim="true"/>
57 <condition property="manifest.available+main.class+mkdist.available">
59 <istrue value="${manifest.available+main.class}"/>
60 <isset property="libs.CopyLibs.classpath"/>
63 <condition property="have.tests">
66 <condition property="have.sources">
68 <available file="${src.dir}"/>
71 <condition property="netbeans.home+have.tests">
73 <isset property="netbeans.home"/>
74 <isset property="have.tests"/>
77 <condition property="no.javadoc.preview">
78 <isfalse value="${javadoc.preview}"/>
80 <property name="run.jvmargs" value=""/>
81 <property name="javac.compilerargs" value=""/>
82 <property name="work.dir" value="${basedir}"/>
83 <condition property="no.deps">
85 <istrue value="${no.dependencies}"/>
88 <property name="javac.debug" value="true"/>
89 <property name="javadoc.preview" value="true"/>
91 <target name="-post-init">
92 <!-- Empty placeholder for easier customization. -->
93 <!-- You can override this target in the ../build.xml file. -->
95 <target name="-init-check" depends="-pre-init,-init-private,-init-user,-init-project,-do-init">
96 <fail unless="src.dir">Must set src.dir</fail>
97 <fail unless="build.dir">Must set build.dir</fail>
98 <fail unless="dist.dir">Must set dist.dir</fail>
99 <fail unless="build.classes.dir">Must set build.classes.dir</fail>
100 <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
101 <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
102 <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
103 <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
104 <fail unless="dist.jar">Must set dist.jar</fail>
106 <target name="-init-macrodef-property">
107 <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
108 <attribute name="name"/>
109 <attribute name="value"/>
111 <property name="@{name}" value="${@{value}}"/>
115 <target name="-init-macrodef-javac">
116 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
117 <attribute name="srcdir" default="${src.dir}"/>
118 <attribute name="destdir" default="${build.classes.dir}"/>
119 <attribute name="classpath" default="${javac.classpath}"/>
120 <attribute name="debug" default="${javac.debug}"/>
121 <element name="customize" optional="true"/>
123 <javac srcdir="@{srcdir}" destdir="@{destdir}" debug="@{debug}" deprecation="${javac.deprecation}" source="${javac.source}" target="${javac.target}" includeantruntime="false">
125 <path path="@{classpath}"/>
127 <compilerarg line="${javac.compilerargs}"/>
133 <target name="-init-macrodef-junit">
134 <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
135 <attribute name="includes" default="**/*Test.java"/>
137 <junit showoutput="true" fork="true" dir="${basedir}" failureproperty="tests.failed" errorproperty="tests.failed">
138 <batchtest todir="${build.test.results.dir}"/>
140 <path path="${run.test.classpath}"/>
143 <propertyref prefix="test-sys-prop."/>
144 <mapper type="glob" from="test-sys-prop.*" to="*"/>
146 <formatter type="brief" usefile="false"/>
147 <formatter type="xml"/>
148 <jvmarg line="${run.jvmargs}"/>
153 <target name="-init-macrodef-nbjpda">
154 <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
155 <attribute name="name" default="${main.class}"/>
156 <attribute name="classpath" default="${debug.classpath}"/>
157 <attribute name="stopclassname" default=""/>
159 <nbjpdastart transport="dt_socket" addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}">
161 <path path="@{classpath}"/>
166 <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
167 <attribute name="dir" default="${build.classes.dir}"/>
170 <fileset includes="${fix.includes}*.class" dir="@{dir}"/>
175 <target name="-init-macrodef-debug">
176 <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
177 <attribute name="classname" default="${main.class}"/>
178 <attribute name="classpath" default="${debug.classpath}"/>
179 <element name="customize" optional="true"/>
181 <java fork="true" classname="@{classname}" dir="${work.dir}">
182 <jvmarg value="-Xdebug"/>
183 <jvmarg value="-Xnoagent"/>
184 <jvmarg value="-Djava.compiler=none"/>
185 <jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
186 <jvmarg line="${run.jvmargs}"/>
188 <path path="@{classpath}"/>
191 <propertyref prefix="run-sys-prop."/>
192 <mapper type="glob" from="run-sys-prop.*" to="*"/>
199 <target name="-init-macrodef-java">
200 <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
201 <attribute name="classname" default="${main.class}"/>
202 <element name="customize" optional="true"/>
204 <java fork="true" classname="@{classname}" dir="${work.dir}">
205 <jvmarg line="${run.jvmargs}"/>
207 <path path="${run.classpath}"/>
210 <propertyref prefix="run-sys-prop."/>
211 <mapper type="glob" from="run-sys-prop.*" to="*"/>
218 <target name="-init-presetdef-jar">
219 <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
220 <jar jarfile="${dist.jar}" compress="${jar.compress}">
221 <j2seproject1:fileset dir="${build.classes.dir}"/>
225 <target name="init" depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-junit,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar"/>
231 <target name="deps-jar" depends="init" unless="no.deps"/>
232 <target name="-pre-pre-compile" depends="init,deps-jar">
233 <mkdir dir="${build.classes.dir}"/>
235 <target name="-pre-compile">
236 <!-- Empty placeholder for easier customization. -->
237 <!-- You can override this target in the ../build.xml file. -->
239 <target name="-do-compile" depends="init,deps-jar,-pre-pre-compile,-pre-compile" if="have.sources">
240 <j2seproject3:javac/>
241 <copy todir="${build.classes.dir}">
242 <fileset dir="${src.dir}" excludes="${build.classes.excludes}"/>
245 <target name="-post-compile">
246 <!-- Empty placeholder for easier customization. -->
247 <!-- You can override this target in the ../build.xml file. -->
249 <target name="compile" depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project."/>
250 <target name="-pre-compile-single">
251 <!-- Empty placeholder for easier customization. -->
252 <!-- You can override this target in the ../build.xml file. -->
254 <target name="-do-compile-single" depends="init,deps-jar,-pre-pre-compile">
255 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
258 <patternset includes="${javac.includes}"/>
260 </j2seproject3:javac>
262 <target name="-post-compile-single">
263 <!-- Empty placeholder for easier customization. -->
264 <!-- You can override this target in the ../build.xml file. -->
266 <target name="compile-single" depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single"/>
272 <target name="-pre-pre-jar" depends="init">
273 <dirname property="dist.jar.dir" file="${dist.jar}"/>
274 <mkdir dir="${dist.jar.dir}"/>
276 <target name="-pre-jar">
277 <!-- Empty placeholder for easier customization. -->
278 <!-- You can override this target in the ../build.xml file. -->
280 <target name="-do-jar-without-manifest" depends="init,compile,-pre-pre-jar,-pre-jar" unless="manifest.available">
283 <target name="-do-jar-with-manifest" depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available" unless="manifest.available+main.class">
284 <j2seproject1:jar manifest="${manifest.file}"/>
286 <target name="-do-jar-with-mainclass" depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class" unless="manifest.available+main.class+mkdist.available">
287 <j2seproject1:jar manifest="${manifest.file}">
288 <j2seproject1:manifest>
289 <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
290 </j2seproject1:manifest>
292 <echo>To run this application from the command line without Ant, try:</echo>
293 <property name="build.classes.dir.resolved" location="${build.classes.dir}"/>
294 <property name="dist.jar.resolved" location="${dist.jar}"/>
295 <pathconvert property="run.classpath.with.dist.jar">
296 <path path="${run.classpath}"/>
297 <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
299 <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
301 <target name="-do-jar-with-libraries" depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class+mkdist.available">
302 <property name="build.classes.dir.resolved" location="${build.classes.dir}"/>
303 <pathconvert property="run.classpath.without.build.classes.dir">
304 <path path="${run.classpath}"/>
305 <map from="${build.classes.dir.resolved}" to=""/>
307 <pathconvert property="jar.classpath" pathsep=" ">
308 <path path="${run.classpath.without.build.classes.dir}"/>
311 <globmapper from="*" to="lib/*"/>
314 <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" name="copylibs" classpath="${libs.CopyLibs.classpath}"/>
315 <copylibs manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}" jarfile="${dist.jar}" compress="${jar.compress}">
316 <fileset dir="${build.classes.dir}"/>
318 <attribute name="Main-Class" value="${main.class}"/>
319 <attribute name="Class-Path" value="${jar.classpath}"/>
322 <echo>To run this application from the command line without Ant, try:</echo>
323 <property name="dist.jar.resolved" location="${dist.jar}"/>
324 <echo>java -jar "${dist.jar.resolved}"</echo>
326 <target name="-post-jar">
327 <!-- Empty placeholder for easier customization. -->
328 <!-- You can override this target in the ../build.xml file. -->
330 <target name="jar" 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."/>
336 <target name="run" depends="init,compile" description="Run a main class.">
339 <arg line="${application.args}"/>
343 <target name="run-single" depends="init,compile-single">
344 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
345 <j2seproject1:java classname="${run.class}"/>
352 <target name="-debug-start-debugger" if="netbeans.home" depends="init">
353 <j2seproject1:nbjpdastart name="${debug.class}"/>
355 <target name="-debug-start-debuggee" depends="init,compile">
358 <arg line="${application.args}"/>
360 </j2seproject3:debug>
362 <target name="debug" if="netbeans.home" depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE."/>
363 <target name="-debug-start-debugger-stepinto" if="netbeans.home" depends="init">
364 <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
366 <target name="debug-stepinto" if="netbeans.home" depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee"/>
367 <target name="-debug-start-debuggee-single" if="netbeans.home" depends="init,compile-single">
368 <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
369 <j2seproject3:debug classname="${debug.class}"/>
371 <target name="debug-single" if="netbeans.home" depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single"/>
372 <target name="-pre-debug-fix" depends="init">
373 <fail unless="fix.includes">Must set fix.includes</fail>
374 <property name="javac.includes" value="${fix.includes}.java"/>
376 <target name="-do-debug-fix" if="netbeans.home" depends="init,-pre-debug-fix,compile-single">
377 <j2seproject1:nbjpdareload/>
379 <target name="debug-fix" if="netbeans.home" depends="init,-pre-debug-fix,-do-debug-fix"/>
385 <target name="-javadoc-build" depends="init">
386 <mkdir dir="${dist.javadoc.dir}"/>
387 <javadoc destdir="${dist.javadoc.dir}" source="${javac.source}" notree="${javadoc.notree}" use="${javadoc.use}" nonavbar="${javadoc.nonavbar}" noindex="${javadoc.noindex}" splitindex="${javadoc.splitindex}" author="${javadoc.author}" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}" private="${javadoc.private}" additionalparam="${javadoc.additionalparam}" failonerror="true" useexternalfile="true">
389 <path path="${javac.classpath}"/>
392 <pathelement location="${src.dir}"/>
394 <packageset dir="${src.dir}" includes="*/**"/>
395 <fileset dir="${src.dir}" includes="*.java"/>
398 <target name="-javadoc-browse" if="netbeans.home" unless="no.javadoc.preview" depends="init,-javadoc-build">
399 <nbbrowse file="${dist.javadoc.dir}/index.html"/>
401 <target name="javadoc" depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc."/>
403 =========================
404 JUNIT COMPILATION SECTION
405 =========================
407 <target name="-pre-pre-compile-test" if="have.tests" depends="init,compile">
408 <mkdir dir="${build.test.classes.dir}"/>
410 <target name="-pre-compile-test">
411 <!-- Empty placeholder for easier customization. -->
412 <!-- You can override this target in the ../build.xml file. -->
414 <target name="-do-compile-test" if="have.tests" depends="init,compile,-pre-pre-compile-test,-pre-compile-test">
415 <j2seproject3:javac srcdir="" destdir="${build.test.classes.dir}" debug="true" classpath="${javac.test.classpath}"/>
416 <copy todir="${build.test.classes.dir}"/>
418 <target name="-post-compile-test">
419 <!-- Empty placeholder for easier customization. -->
420 <!-- You can override this target in the ../build.xml file. -->
422 <target name="compile-test" depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test"/>
423 <target name="-pre-compile-test-single">
424 <!-- Empty placeholder for easier customization. -->
425 <!-- You can override this target in the ../build.xml file. -->
427 <target name="-do-compile-test-single" if="have.tests" depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single">
428 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
429 <j2seproject3:javac srcdir="" destdir="${build.test.classes.dir}" debug="true" classpath="${javac.test.classpath}">
431 <patternset includes="${javac.includes}"/>
433 </j2seproject3:javac>
434 <copy todir="${build.test.classes.dir}"/>
436 <target name="-post-compile-test-single">
437 <!-- Empty placeholder for easier customization. -->
438 <!-- You can override this target in the ../build.xml file. -->
440 <target name="compile-test-single" depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single"/>
442 =======================
443 JUNIT EXECUTION SECTION
444 =======================
446 <target name="-pre-test-run" if="have.tests" depends="init">
447 <mkdir dir="${build.test.results.dir}"/>
449 <target name="-do-test-run" if="have.tests" depends="init,compile-test,-pre-test-run">
450 <j2seproject3:junit/>
452 <target name="-post-test-run" if="have.tests" depends="init,compile-test,-pre-test-run,-do-test-run">
453 <fail if="tests.failed">Some tests failed; see details above.</fail>
455 <target name="test-report" if="have.tests" depends="init"/>
456 <target name="-test-browse" if="netbeans.home+have.tests" depends="init"/>
457 <target name="test" depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests."/>
458 <target name="-pre-test-run-single" if="have.tests" depends="init">
459 <mkdir dir="${build.test.results.dir}"/>
461 <target name="-do-test-run-single" if="have.tests" depends="init,compile-test-single,-pre-test-run-single">
462 <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
463 <j2seproject3:junit includes="${test.includes}"/>
465 <target name="-post-test-run-single" if="have.tests" depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single">
466 <fail if="tests.failed">Some tests failed; see details above.</fail>
468 <target name="test-single" depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test."/>
470 =======================
471 JUNIT DEBUGGING SECTION
472 =======================
474 <target name="-debug-start-debuggee-test" if="have.tests" depends="init,compile-test">
475 <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
476 <j2seproject3:debug classname="junit.textui.TestRunner" classpath="${debug.test.classpath}">
478 <arg line="${test.class}"/>
480 </j2seproject3:debug>
482 <target name="-debug-start-debugger-test" if="netbeans.home+have.tests" depends="init,compile-test">
483 <j2seproject1:nbjpdastart name="${test.class}" classpath="${debug.test.classpath}"/>
485 <target name="debug-test" depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test"/>
486 <target name="-do-debug-fix-test" if="netbeans.home" depends="init,-pre-debug-fix,compile-test-single">
487 <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
489 <target name="debug-fix-test" if="netbeans.home" depends="init,-pre-debug-fix,-do-debug-fix-test"/>
491 =========================
492 APPLET EXECUTION SECTION
493 =========================
495 <target name="run-applet" depends="init,compile-single">
496 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
497 <j2seproject1:java classname="sun.applet.AppletViewer">
499 <arg value="${applet.url}"/>
504 =========================
505 APPLET DEBUGGING SECTION
506 =========================
508 <target name="-debug-start-debuggee-applet" if="netbeans.home" depends="init,compile-single">
509 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
510 <j2seproject3:debug classname="sun.applet.AppletViewer">
512 <arg value="${applet.url}"/>
514 </j2seproject3:debug>
516 <target name="debug-applet" if="netbeans.home" depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet"/>
522 <target name="deps-clean" depends="init" unless="no.deps"/>
523 <target name="-do-clean" depends="init">
524 <delete dir="${build.dir}"/>
525 <delete dir="${dist.dir}"/>
527 <target name="-post-clean">
528 <!-- Empty placeholder for easier customization. -->
529 <!-- You can override this target in the ../build.xml file. -->
531 <target name="clean" depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products."/>