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="JGroupDAV-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/config.properties"/>
35 <property file="nbproject/private/configs/${config}.properties"/>
36 <property file="nbproject/private/private.properties"/>
38 <target name="-init-user" depends="-pre-init,-init-private">
39 <property file="${user.properties.file}"/>
40 <!-- The two properties below are usually overridden -->
41 <!-- by the active platform. Just a fallback. -->
42 <property name="default.javac.source" value="1.4"/>
43 <property name="default.javac.target" value="1.4"/>
45 <target name="-init-project" depends="-pre-init,-init-private,-init-user">
46 <property file="nbproject/configs/${config}.properties"/>
47 <property file="nbproject/project.properties"/>
49 <target name="-do-init" depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property">
50 <available file="${manifest.file}" property="manifest.available"/>
51 <condition property="manifest.available+main.class">
53 <isset property="manifest.available"/>
54 <isset property="main.class"/>
56 <equals arg1="${main.class}" arg2="" trim="true"/>
60 <condition property="manifest.available+main.class+mkdist.available">
62 <istrue value="${manifest.available+main.class}"/>
63 <isset property="libs.CopyLibs.classpath"/>
66 <condition property="have.tests">
68 <available file="${test.src.dir}"/>
71 <condition property="have.sources">
73 <available file="${src.dir}"/>
76 <condition property="netbeans.home+have.tests">
78 <isset property="netbeans.home"/>
79 <isset property="have.tests"/>
82 <condition property="no.javadoc.preview">
83 <isfalse value="${javadoc.preview}"/>
85 <property name="run.jvmargs" value=""/>
86 <property name="javac.compilerargs" value=""/>
87 <property name="work.dir" value="${basedir}"/>
88 <condition property="no.deps">
90 <istrue value="${no.dependencies}"/>
93 <property name="javac.debug" value="true"/>
94 <property name="javadoc.preview" value="true"/>
95 <property name="application.args" value=""/>
97 <target name="-post-init">
98 <!-- Empty placeholder for easier customization. -->
99 <!-- You can override this target in the ../build.xml file. -->
101 <target name="-init-check" depends="-pre-init,-init-private,-init-user,-init-project,-do-init">
102 <fail unless="src.dir">Must set src.dir</fail>
103 <fail unless="test.src.dir">Must set test.src.dir</fail>
104 <fail unless="build.dir">Must set build.dir</fail>
105 <fail unless="dist.dir">Must set dist.dir</fail>
106 <fail unless="build.classes.dir">Must set build.classes.dir</fail>
107 <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
108 <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
109 <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
110 <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
111 <fail unless="dist.jar">Must set dist.jar</fail>
113 <target name="-init-macrodef-property">
114 <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
115 <attribute name="name"/>
116 <attribute name="value"/>
118 <property name="@{name}" value="${@{value}}"/>
122 <target name="-init-macrodef-javac">
123 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
124 <attribute name="srcdir" default="${src.dir}"/>
125 <attribute name="destdir" default="${build.classes.dir}"/>
126 <attribute name="classpath" default="${javac.classpath}"/>
127 <attribute name="debug" default="${javac.debug}"/>
128 <element name="customize" optional="true"/>
130 <depend srcdir="@{srcdir}" destdir="@{destdir}" cache="${build.dir}/depcache">
132 <path path="@{classpath}"/>
135 <javac srcdir="@{srcdir}" destdir="@{destdir}" debug="@{debug}" deprecation="${javac.deprecation}" source="${javac.source}" target="${javac.target}" includeantruntime="false">
137 <path path="@{classpath}"/>
139 <compilerarg line="${javac.compilerargs}"/>
145 <target name="-init-macrodef-junit">
146 <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
147 <attribute name="includes" default="**/*Test.java"/>
149 <junit showoutput="true" fork="true" dir="${basedir}" failureproperty="tests.failed" errorproperty="tests.failed">
150 <batchtest todir="${build.test.results.dir}">
151 <fileset dir="${test.src.dir}" includes="@{includes}"/>
154 <path path="${run.test.classpath}"/>
157 <propertyref prefix="test-sys-prop."/>
158 <mapper type="glob" from="test-sys-prop.*" to="*"/>
160 <formatter type="brief" usefile="false"/>
161 <formatter type="xml"/>
162 <jvmarg line="${run.jvmargs}"/>
167 <target name="-init-macrodef-nbjpda">
168 <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
169 <attribute name="name" default="${main.class}"/>
170 <attribute name="classpath" default="${debug.classpath}"/>
171 <attribute name="stopclassname" default=""/>
173 <nbjpdastart transport="dt_socket" addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}">
175 <path path="@{classpath}"/>
180 <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
181 <attribute name="dir" default="${build.classes.dir}"/>
184 <fileset includes="${fix.includes}*.class" dir="@{dir}"/>
189 <target name="-init-macrodef-debug">
190 <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
191 <attribute name="classname" default="${main.class}"/>
192 <attribute name="classpath" default="${debug.classpath}"/>
193 <element name="customize" optional="true"/>
195 <java fork="true" classname="@{classname}" dir="${work.dir}">
196 <jvmarg value="-Xdebug"/>
197 <jvmarg value="-Xnoagent"/>
198 <jvmarg value="-Djava.compiler=none"/>
199 <jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
200 <jvmarg line="${run.jvmargs}"/>
202 <path path="@{classpath}"/>
205 <propertyref prefix="run-sys-prop."/>
206 <mapper type="glob" from="run-sys-prop.*" to="*"/>
213 <target name="-init-macrodef-java">
214 <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
215 <attribute name="classname" default="${main.class}"/>
216 <element name="customize" optional="true"/>
218 <java fork="true" classname="@{classname}" dir="${work.dir}">
219 <jvmarg line="${run.jvmargs}"/>
221 <path path="${run.classpath}"/>
224 <propertyref prefix="run-sys-prop."/>
225 <mapper type="glob" from="run-sys-prop.*" to="*"/>
232 <target name="-init-presetdef-jar">
233 <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
234 <jar jarfile="${dist.jar}" compress="${jar.compress}">
235 <j2seproject1:fileset dir="${build.classes.dir}"/>
239 <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"/>
245 <target name="deps-jar" depends="init" unless="no.deps"/>
246 <target name="-pre-pre-compile" depends="init,deps-jar">
247 <mkdir dir="${build.classes.dir}"/>
249 <target name="-pre-compile">
250 <!-- Empty placeholder for easier customization. -->
251 <!-- You can override this target in the ../build.xml file. -->
253 <target name="-do-compile" depends="init,deps-jar,-pre-pre-compile,-pre-compile" if="have.sources">
254 <j2seproject3:javac/>
255 <copy todir="${build.classes.dir}">
256 <fileset dir="${src.dir}" excludes="${build.classes.excludes}"/>
259 <target name="-post-compile">
260 <!-- Empty placeholder for easier customization. -->
261 <!-- You can override this target in the ../build.xml file. -->
263 <target name="compile" depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project."/>
264 <target name="-pre-compile-single">
265 <!-- Empty placeholder for easier customization. -->
266 <!-- You can override this target in the ../build.xml file. -->
268 <target name="-do-compile-single" depends="init,deps-jar,-pre-pre-compile">
269 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
272 <patternset includes="${javac.includes}"/>
274 </j2seproject3:javac>
276 <target name="-post-compile-single">
277 <!-- Empty placeholder for easier customization. -->
278 <!-- You can override this target in the ../build.xml file. -->
280 <target name="compile-single" depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single"/>
286 <target name="-pre-pre-jar" depends="init">
287 <dirname property="dist.jar.dir" file="${dist.jar}"/>
288 <mkdir dir="${dist.jar.dir}"/>
290 <target name="-pre-jar">
291 <!-- Empty placeholder for easier customization. -->
292 <!-- You can override this target in the ../build.xml file. -->
294 <target name="-do-jar-without-manifest" depends="init,compile,-pre-pre-jar,-pre-jar" unless="manifest.available">
297 <target name="-do-jar-with-manifest" depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available" unless="manifest.available+main.class">
298 <j2seproject1:jar manifest="${manifest.file}"/>
300 <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">
301 <j2seproject1:jar manifest="${manifest.file}">
302 <j2seproject1:manifest>
303 <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
304 </j2seproject1:manifest>
306 <echo>To run this application from the command line without Ant, try:</echo>
307 <property name="build.classes.dir.resolved" location="${build.classes.dir}"/>
308 <property name="dist.jar.resolved" location="${dist.jar}"/>
309 <pathconvert property="run.classpath.with.dist.jar">
310 <path path="${run.classpath}"/>
311 <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
313 <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
315 <target name="-do-jar-with-libraries" depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class+mkdist.available">
316 <property name="build.classes.dir.resolved" location="${build.classes.dir}"/>
317 <pathconvert property="run.classpath.without.build.classes.dir">
318 <path path="${run.classpath}"/>
319 <map from="${build.classes.dir.resolved}" to=""/>
321 <pathconvert property="jar.classpath" pathsep=" ">
322 <path path="${run.classpath.without.build.classes.dir}"/>
325 <globmapper from="*" to="lib/*"/>
328 <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" name="copylibs" classpath="${libs.CopyLibs.classpath}"/>
329 <copylibs manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}" jarfile="${dist.jar}" compress="${jar.compress}">
330 <fileset dir="${build.classes.dir}"/>
332 <attribute name="Main-Class" value="${main.class}"/>
333 <attribute name="Class-Path" value="${jar.classpath}"/>
336 <echo>To run this application from the command line without Ant, try:</echo>
337 <property name="dist.jar.resolved" location="${dist.jar}"/>
338 <echo>java -jar "${dist.jar.resolved}"</echo>
340 <target name="-post-jar">
341 <!-- Empty placeholder for easier customization. -->
342 <!-- You can override this target in the ../build.xml file. -->
344 <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."/>
350 <target name="run" depends="init,compile" description="Run a main class.">
353 <arg line="${application.args}"/>
357 <target name="run-single" depends="init,compile-single">
358 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
359 <j2seproject1:java classname="${run.class}"/>
366 <target name="-debug-start-debugger" if="netbeans.home" depends="init">
367 <j2seproject1:nbjpdastart name="${debug.class}"/>
369 <target name="-debug-start-debuggee" depends="init,compile">
372 <arg line="${application.args}"/>
374 </j2seproject3:debug>
376 <target name="debug" if="netbeans.home" depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE."/>
377 <target name="-debug-start-debugger-stepinto" if="netbeans.home" depends="init">
378 <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
380 <target name="debug-stepinto" if="netbeans.home" depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee"/>
381 <target name="-debug-start-debuggee-single" if="netbeans.home" depends="init,compile-single">
382 <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
383 <j2seproject3:debug classname="${debug.class}"/>
385 <target name="debug-single" if="netbeans.home" depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single"/>
386 <target name="-pre-debug-fix" depends="init">
387 <fail unless="fix.includes">Must set fix.includes</fail>
388 <property name="javac.includes" value="${fix.includes}.java"/>
390 <target name="-do-debug-fix" if="netbeans.home" depends="init,-pre-debug-fix,compile-single">
391 <j2seproject1:nbjpdareload/>
393 <target name="debug-fix" if="netbeans.home" depends="init,-pre-debug-fix,-do-debug-fix"/>
399 <target name="-javadoc-build" depends="init">
400 <mkdir dir="${dist.javadoc.dir}"/>
401 <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">
403 <path path="${javac.classpath}"/>
406 <pathelement location="${src.dir}"/>
408 <packageset dir="${src.dir}" includes="*/**"/>
409 <fileset dir="${src.dir}" includes="*.java"/>
412 <target name="-javadoc-browse" if="netbeans.home" unless="no.javadoc.preview" depends="init,-javadoc-build">
413 <nbbrowse file="${dist.javadoc.dir}/index.html"/>
415 <target name="javadoc" depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc."/>
417 =========================
418 JUNIT COMPILATION SECTION
419 =========================
421 <target name="-pre-pre-compile-test" if="have.tests" depends="init,compile">
422 <mkdir dir="${build.test.classes.dir}"/>
424 <target name="-pre-compile-test">
425 <!-- Empty placeholder for easier customization. -->
426 <!-- You can override this target in the ../build.xml file. -->
428 <target name="-do-compile-test" if="have.tests" depends="init,compile,-pre-pre-compile-test,-pre-compile-test">
429 <j2seproject3:javac srcdir="${test.src.dir}" destdir="${build.test.classes.dir}" debug="true" classpath="${javac.test.classpath}"/>
430 <copy todir="${build.test.classes.dir}">
431 <fileset dir="${test.src.dir}" excludes="**/*.java"/>
434 <target name="-post-compile-test">
435 <!-- Empty placeholder for easier customization. -->
436 <!-- You can override this target in the ../build.xml file. -->
438 <target name="compile-test" depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test"/>
439 <target name="-pre-compile-test-single">
440 <!-- Empty placeholder for easier customization. -->
441 <!-- You can override this target in the ../build.xml file. -->
443 <target name="-do-compile-test-single" if="have.tests" depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single">
444 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
445 <j2seproject3:javac srcdir="${test.src.dir}" destdir="${build.test.classes.dir}" debug="true" classpath="${javac.test.classpath}">
447 <patternset includes="${javac.includes}"/>
449 </j2seproject3:javac>
450 <copy todir="${build.test.classes.dir}">
451 <fileset dir="${test.src.dir}" excludes="**/*.java"/>
454 <target name="-post-compile-test-single">
455 <!-- Empty placeholder for easier customization. -->
456 <!-- You can override this target in the ../build.xml file. -->
458 <target name="compile-test-single" depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single"/>
460 =======================
461 JUNIT EXECUTION SECTION
462 =======================
464 <target name="-pre-test-run" if="have.tests" depends="init">
465 <mkdir dir="${build.test.results.dir}"/>
467 <target name="-do-test-run" if="have.tests" depends="init,compile-test,-pre-test-run">
468 <j2seproject3:junit/>
470 <target name="-post-test-run" if="have.tests" depends="init,compile-test,-pre-test-run,-do-test-run">
471 <fail if="tests.failed">Some tests failed; see details above.</fail>
473 <target name="test-report" if="have.tests" depends="init"/>
474 <target name="-test-browse" if="netbeans.home+have.tests" depends="init"/>
475 <target name="test" depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests."/>
476 <target name="-pre-test-run-single" if="have.tests" depends="init">
477 <mkdir dir="${build.test.results.dir}"/>
479 <target name="-do-test-run-single" if="have.tests" depends="init,compile-test-single,-pre-test-run-single">
480 <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
481 <j2seproject3:junit includes="${test.includes}"/>
483 <target name="-post-test-run-single" if="have.tests" depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single">
484 <fail if="tests.failed">Some tests failed; see details above.</fail>
486 <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."/>
488 =======================
489 JUNIT DEBUGGING SECTION
490 =======================
492 <target name="-debug-start-debuggee-test" if="have.tests" depends="init,compile-test">
493 <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
494 <j2seproject3:debug classname="junit.textui.TestRunner" classpath="${debug.test.classpath}">
497 <propertyref prefix="test-sys-prop."/>
498 <mapper type="glob" from="test-sys-prop.*" to="*"/>
500 <arg line="${test.class}"/>
502 </j2seproject3:debug>
504 <target name="-debug-start-debugger-test" if="netbeans.home+have.tests" depends="init,compile-test">
505 <j2seproject1:nbjpdastart name="${test.class}" classpath="${debug.test.classpath}"/>
507 <target name="debug-test" depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test"/>
508 <target name="-do-debug-fix-test" if="netbeans.home" depends="init,-pre-debug-fix,compile-test-single">
509 <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
511 <target name="debug-fix-test" if="netbeans.home" depends="init,-pre-debug-fix,-do-debug-fix-test"/>
513 =========================
514 APPLET EXECUTION SECTION
515 =========================
517 <target name="run-applet" depends="init,compile-single">
518 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
519 <j2seproject1:java classname="sun.applet.AppletViewer">
521 <arg value="${applet.url}"/>
526 =========================
527 APPLET DEBUGGING SECTION
528 =========================
530 <target name="-debug-start-debuggee-applet" if="netbeans.home" depends="init,compile-single">
531 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
532 <j2seproject3:debug classname="sun.applet.AppletViewer">
534 <arg value="${applet.url}"/>
536 </j2seproject3:debug>
538 <target name="debug-applet" if="netbeans.home" depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet"/>
544 <target name="deps-clean" depends="init" unless="no.deps"/>
545 <target name="-do-clean" depends="init">
546 <delete dir="${build.dir}"/>
547 <delete dir="${dist.dir}"/>
549 <target name="-post-clean">
550 <!-- Empty placeholder for easier customization. -->
551 <!-- You can override this target in the ../build.xml file. -->
553 <target name="clean" depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products."/>