source: trunk/PortForwarder/nbproject/build-impl.xml @ 13

Last change on this file since 13 was 8, checked in by fmguler, 16 years ago

Port yönlendirme uygulaması - ilk import

File size: 34.4 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3*** GENERATED FROM project.xml - DO NOT EDIT  ***
4***         EDIT ../build.xml INSTEAD         ***
5
6For the purpose of easier reading the script
7is divided into following sections:
8
9  - initialization
10  - compilation
11  - jar
12  - execution
13  - debugging
14  - javadoc
15  - junit compilation
16  - junit execution
17  - junit debugging
18  - applet
19  - cleanup
20
21        -->
22<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="PortForwarder-impl">
23    <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
24    <!--
25                ======================
26                INITIALIZATION SECTION
27                ======================
28            -->
29    <target name="-pre-init">
30        <!-- Empty placeholder for easier customization. -->
31        <!-- You can override this target in the ../build.xml file. -->
32    </target>
33    <target depends="-pre-init" name="-init-private">
34        <property file="nbproject/private/config.properties"/>
35        <property file="nbproject/private/configs/${config}.properties"/>
36        <property file="nbproject/private/private.properties"/>
37    </target>
38    <target depends="-pre-init,-init-private" name="-init-libraries">
39        <property location=".\lib\nblibraries.properties" name="libraries.1.path"/>
40        <dirname file="${libraries.1.path}" property="libraries.1.dir.nativedirsep"/>
41        <pathconvert dirsep="/" property="libraries.1.dir">
42            <path path="${libraries.1.dir.nativedirsep}"/>
43        </pathconvert>
44        <basename file="${libraries.1.path}" property="libraries.1.basename" suffix=".properties"/>
45        <touch file="${libraries.1.dir}/${libraries.1.basename}-private.properties"/>
46        <loadproperties srcfile="${libraries.1.dir}/${libraries.1.basename}-private.properties">
47            <filterchain>
48                <replacestring from="$${base}" to="${libraries.1.dir}"/>
49            </filterchain>
50        </loadproperties>
51        <loadproperties srcfile="${libraries.1.path}">
52            <filterchain>
53                <replacestring from="$${base}" to="${libraries.1.dir}"/>
54            </filterchain>
55        </loadproperties>
56    </target>
57    <target depends="-pre-init,-init-private,-init-libraries" name="-init-user">
58        <property file="${user.properties.file}"/>
59        <!-- The two properties below are usually overridden -->
60        <!-- by the active platform. Just a fallback. -->
61        <property name="default.javac.source" value="1.4"/>
62        <property name="default.javac.target" value="1.4"/>
63    </target>
64    <target depends="-pre-init,-init-private,-init-libraries,-init-user" name="-init-project">
65        <property file="nbproject/configs/${config}.properties"/>
66        <property file="nbproject/project.properties"/>
67    </target>
68    <target depends="-pre-init,-init-private,-init-libraries,-init-user,-init-project,-init-macrodef-property" name="-do-init">
69        <available file="${manifest.file}" property="manifest.available"/>
70        <condition property="manifest.available+main.class">
71            <and>
72                <isset property="manifest.available"/>
73                <isset property="main.class"/>
74                <not>
75                    <equals arg1="${main.class}" arg2="" trim="true"/>
76                </not>
77            </and>
78        </condition>
79        <condition property="manifest.available+main.class+mkdist.available">
80            <and>
81                <istrue value="${manifest.available+main.class}"/>
82                <isset property="libs.CopyLibs.classpath"/>
83            </and>
84        </condition>
85        <condition property="have.tests">
86            <or>
87                <available file="${test.src.dir}"/>
88            </or>
89        </condition>
90        <condition property="have.sources">
91            <or>
92                <available file="${src.dir}"/>
93            </or>
94        </condition>
95        <condition property="netbeans.home+have.tests">
96            <and>
97                <isset property="netbeans.home"/>
98                <isset property="have.tests"/>
99            </and>
100        </condition>
101        <condition property="no.javadoc.preview">
102            <and>
103                <isset property="javadoc.preview"/>
104                <isfalse value="${javadoc.preview}"/>
105            </and>
106        </condition>
107        <property name="run.jvmargs" value=""/>
108        <property name="javac.compilerargs" value=""/>
109        <property name="work.dir" value="${basedir}"/>
110        <condition property="no.deps">
111            <and>
112                <istrue value="${no.dependencies}"/>
113            </and>
114        </condition>
115        <property name="javac.debug" value="true"/>
116        <property name="javadoc.preview" value="true"/>
117        <property name="application.args" value=""/>
118        <property name="source.encoding" value="${file.encoding}"/>
119        <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
120            <and>
121                <isset property="javadoc.encoding"/>
122                <not>
123                    <equals arg1="${javadoc.encoding}" arg2=""/>
124                </not>
125            </and>
126        </condition>
127        <property name="javadoc.encoding.used" value="${source.encoding}"/>
128        <property name="includes" value="**"/>
129        <property name="excludes" value=""/>
130        <property name="do.depend" value="false"/>
131        <condition property="do.depend.true">
132            <istrue value="${do.depend}"/>
133        </condition>
134        <condition else="" property="javac.compilerargs.jaxws" value="-Djava.endorsed.dirs='${jaxws.endorsed.dir}'">
135            <and>
136                <isset property="jaxws.endorsed.dir"/>
137                <available file="nbproject/jaxws-build.xml"/>
138            </and>
139        </condition>
140    </target>
141    <target name="-post-init">
142        <!-- Empty placeholder for easier customization. -->
143        <!-- You can override this target in the ../build.xml file. -->
144    </target>
145    <target depends="-pre-init,-init-private,-init-libraries,-init-user,-init-project,-do-init" name="-init-check">
146        <fail unless="src.dir">Must set src.dir</fail>
147        <fail unless="test.src.dir">Must set test.src.dir</fail>
148        <fail unless="build.dir">Must set build.dir</fail>
149        <fail unless="dist.dir">Must set dist.dir</fail>
150        <fail unless="build.classes.dir">Must set build.classes.dir</fail>
151        <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
152        <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
153        <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
154        <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
155        <fail unless="dist.jar">Must set dist.jar</fail>
156    </target>
157    <target name="-init-macrodef-property">
158        <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
159            <attribute name="name"/>
160            <attribute name="value"/>
161            <sequential>
162                <property name="@{name}" value="${@{value}}"/>
163            </sequential>
164        </macrodef>
165    </target>
166    <target name="-init-macrodef-javac">
167        <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
168            <attribute default="${src.dir}" name="srcdir"/>
169            <attribute default="${build.classes.dir}" name="destdir"/>
170            <attribute default="${javac.classpath}" name="classpath"/>
171            <attribute default="${includes}" name="includes"/>
172            <attribute default="${excludes}" name="excludes"/>
173            <attribute default="${javac.debug}" name="debug"/>
174            <attribute default="" name="sourcepath"/>
175            <element name="customize" optional="true"/>
176            <sequential>
177                <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}">
178                    <classpath>
179                        <path path="@{classpath}"/>
180                    </classpath>
181                    <compilerarg line="${javac.compilerargs} ${javac.compilerargs.jaxws}"/>
182                    <customize/>
183                </javac>
184            </sequential>
185        </macrodef>
186        <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
187            <attribute default="${src.dir}" name="srcdir"/>
188            <attribute default="${build.classes.dir}" name="destdir"/>
189            <attribute default="${javac.classpath}" name="classpath"/>
190            <sequential>
191                <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
192                    <classpath>
193                        <path path="@{classpath}"/>
194                    </classpath>
195                </depend>
196            </sequential>
197        </macrodef>
198        <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
199            <attribute default="${build.classes.dir}" name="destdir"/>
200            <sequential>
201                <fail unless="javac.includes">Must set javac.includes</fail>
202                <pathconvert pathsep="," property="javac.includes.binary">
203                    <path>
204                        <filelist dir="@{destdir}" files="${javac.includes}"/>
205                    </path>
206                    <globmapper from="*.java" to="*.class"/>
207                </pathconvert>
208                <delete>
209                    <files includes="${javac.includes.binary}"/>
210                </delete>
211            </sequential>
212        </macrodef>
213    </target>
214    <target name="-init-macrodef-junit">
215        <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
216            <attribute default="${includes}" name="includes"/>
217            <attribute default="${excludes}" name="excludes"/>
218            <attribute default="**" name="testincludes"/>
219            <sequential>
220                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true">
221                    <batchtest todir="${build.test.results.dir}">
222                        <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
223                            <filename name="@{testincludes}"/>
224                        </fileset>
225                    </batchtest>
226                    <classpath>
227                        <path path="${run.test.classpath}"/>
228                    </classpath>
229                    <syspropertyset>
230                        <propertyref prefix="test-sys-prop."/>
231                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
232                    </syspropertyset>
233                    <formatter type="brief" usefile="false"/>
234                    <formatter type="xml"/>
235                    <jvmarg line="${run.jvmargs}"/>
236                </junit>
237            </sequential>
238        </macrodef>
239    </target>
240    <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
241        <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
242            <attribute default="${main.class}" name="name"/>
243            <attribute default="${debug.classpath}" name="classpath"/>
244            <attribute default="" name="stopclassname"/>
245            <sequential>
246                <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
247                    <classpath>
248                        <path path="@{classpath}"/>
249                    </classpath>
250                </nbjpdastart>
251            </sequential>
252        </macrodef>
253        <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
254            <attribute default="${build.classes.dir}" name="dir"/>
255            <sequential>
256                <nbjpdareload>
257                    <fileset dir="@{dir}" includes="${fix.classes}">
258                        <include name="${fix.includes}*.class"/>
259                    </fileset>
260                </nbjpdareload>
261            </sequential>
262        </macrodef>
263    </target>
264    <target name="-init-debug-args">
265        <property name="version-output" value="java version &quot;${ant.java.version}"/>
266        <condition property="have-jdk-older-than-1.4">
267            <or>
268                <contains string="${version-output}" substring="java version &quot;1.0"/>
269                <contains string="${version-output}" substring="java version &quot;1.1"/>
270                <contains string="${version-output}" substring="java version &quot;1.2"/>
271                <contains string="${version-output}" substring="java version &quot;1.3"/>
272            </or>
273        </condition>
274        <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
275            <istrue value="${have-jdk-older-than-1.4}"/>
276        </condition>
277        <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
278            <os family="windows"/>
279        </condition>
280        <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
281            <isset property="debug.transport"/>
282        </condition>
283    </target>
284    <target depends="-init-debug-args" name="-init-macrodef-debug">
285        <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
286            <attribute default="${main.class}" name="classname"/>
287            <attribute default="${debug.classpath}" name="classpath"/>
288            <element name="customize" optional="true"/>
289            <sequential>
290                <java classname="@{classname}" dir="${work.dir}" fork="true">
291                    <jvmarg line="${debug-args-line}"/>
292                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
293                    <jvmarg line="${run.jvmargs}"/>
294                    <classpath>
295                        <path path="@{classpath}"/>
296                    </classpath>
297                    <syspropertyset>
298                        <propertyref prefix="run-sys-prop."/>
299                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
300                    </syspropertyset>
301                    <customize/>
302                </java>
303            </sequential>
304        </macrodef>
305    </target>
306    <target name="-init-macrodef-java">
307        <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
308            <attribute default="${main.class}" name="classname"/>
309            <element name="customize" optional="true"/>
310            <sequential>
311                <java classname="@{classname}" dir="${work.dir}" fork="true">
312                    <jvmarg line="${run.jvmargs}"/>
313                    <classpath>
314                        <path path="${run.classpath}"/>
315                    </classpath>
316                    <syspropertyset>
317                        <propertyref prefix="run-sys-prop."/>
318                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
319                    </syspropertyset>
320                    <customize/>
321                </java>
322            </sequential>
323        </macrodef>
324    </target>
325    <target name="-init-presetdef-jar">
326        <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
327            <jar compress="${jar.compress}" jarfile="${dist.jar}">
328                <j2seproject1:fileset dir="${build.classes.dir}"/>
329            </jar>
330        </presetdef>
331    </target>
332    <target depends="-pre-init,-init-private,-init-libraries,-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" name="init"/>
333    <!--
334                ===================
335                COMPILATION SECTION
336                ===================
337            -->
338    <target depends="init" name="deps-jar" unless="no.deps"/>
339    <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
340    <target depends="init" name="-check-automatic-build">
341        <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
342    </target>
343    <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
344        <antcall target="clean"/>
345    </target>
346    <target depends="init,deps-jar" name="-pre-pre-compile">
347        <mkdir dir="${build.classes.dir}"/>
348    </target>
349    <target name="-pre-compile">
350        <!-- Empty placeholder for easier customization. -->
351        <!-- You can override this target in the ../build.xml file. -->
352    </target>
353    <target if="do.depend.true" name="-compile-depend">
354        <j2seproject3:depend/>
355    </target>
356    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-compile-depend" if="have.sources" name="-do-compile">
357        <j2seproject3:javac/>
358        <copy todir="${build.classes.dir}">
359            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
360        </copy>
361    </target>
362    <target name="-post-compile">
363        <!-- Empty placeholder for easier customization. -->
364        <!-- You can override this target in the ../build.xml file. -->
365    </target>
366    <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
367    <target name="-pre-compile-single">
368        <!-- Empty placeholder for easier customization. -->
369        <!-- You can override this target in the ../build.xml file. -->
370    </target>
371    <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
372        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
373        <j2seproject3:force-recompile/>
374        <j2seproject3:javac excludes="" includes="${javac.includes}" sourcepath="${src.dir}"/>
375    </target>
376    <target name="-post-compile-single">
377        <!-- Empty placeholder for easier customization. -->
378        <!-- You can override this target in the ../build.xml file. -->
379    </target>
380    <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
381    <!--
382                ====================
383                JAR BUILDING SECTION
384                ====================
385            -->
386    <target depends="init" name="-pre-pre-jar">
387        <dirname file="${dist.jar}" property="dist.jar.dir"/>
388        <mkdir dir="${dist.jar.dir}"/>
389    </target>
390    <target name="-pre-jar">
391        <!-- Empty placeholder for easier customization. -->
392        <!-- You can override this target in the ../build.xml file. -->
393    </target>
394    <target depends="init,compile,-pre-pre-jar,-pre-jar" name="-do-jar-without-manifest" unless="manifest.available">
395        <j2seproject1:jar/>
396    </target>
397    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class">
398        <j2seproject1:jar manifest="${manifest.file}"/>
399    </target>
400    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available">
401        <j2seproject1:jar manifest="${manifest.file}">
402            <j2seproject1:manifest>
403                <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
404            </j2seproject1:manifest>
405        </j2seproject1:jar>
406        <echo>To run this application from the command line without Ant, try:</echo>
407        <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
408        <property location="${dist.jar}" name="dist.jar.resolved"/>
409        <pathconvert property="run.classpath.with.dist.jar">
410            <path path="${run.classpath}"/>
411            <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
412        </pathconvert>
413        <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
414    </target>
415    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries">
416        <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
417        <pathconvert property="run.classpath.without.build.classes.dir">
418            <path path="${run.classpath}"/>
419            <map from="${build.classes.dir.resolved}" to=""/>
420        </pathconvert>
421        <pathconvert pathsep=" " property="jar.classpath">
422            <path path="${run.classpath.without.build.classes.dir}"/>
423            <chainedmapper>
424                <flattenmapper/>
425                <globmapper from="*" to="lib/*"/>
426            </chainedmapper>
427        </pathconvert>
428        <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
429        <copylibs compress="${jar.compress}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
430            <fileset dir="${build.classes.dir}"/>
431            <manifest>
432                <attribute name="Main-Class" value="${main.class}"/>
433                <attribute name="Class-Path" value="${jar.classpath}"/>
434            </manifest>
435        </copylibs>
436        <echo>To run this application from the command line without Ant, try:</echo>
437        <property location="${dist.jar}" name="dist.jar.resolved"/>
438        <echo>java -jar "${dist.jar.resolved}"</echo>
439    </target>
440    <target name="-post-jar">
441        <!-- Empty placeholder for easier customization. -->
442        <!-- You can override this target in the ../build.xml file. -->
443    </target>
444    <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-post-jar" description="Build JAR." name="jar"/>
445    <!--
446                =================
447                EXECUTION SECTION
448                =================
449            -->
450    <target depends="init,compile" description="Run a main class." name="run">
451        <j2seproject1:java>
452            <customize>
453                <arg line="${application.args}"/>
454            </customize>
455        </j2seproject1:java>
456    </target>
457    <target name="-do-not-recompile">
458        <property name="javac.includes.binary" value=""/>
459    </target>
460    <target depends="init,-do-not-recompile,compile-single" name="run-single">
461        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
462        <j2seproject1:java classname="${run.class}"/>
463    </target>
464    <!--
465                =================
466                DEBUGGING SECTION
467                =================
468            -->
469    <target depends="init" if="netbeans.home" name="-debug-start-debugger">
470        <j2seproject1:nbjpdastart name="${debug.class}"/>
471    </target>
472    <target depends="init,compile" name="-debug-start-debuggee">
473        <j2seproject3:debug>
474            <customize>
475                <arg line="${application.args}"/>
476            </customize>
477        </j2seproject3:debug>
478    </target>
479    <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
480    <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
481        <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
482    </target>
483    <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
484    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
485        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
486        <j2seproject3:debug classname="${debug.class}"/>
487    </target>
488    <target depends="init,-do-not-recompile,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
489    <target depends="init" name="-pre-debug-fix">
490        <fail unless="fix.includes">Must set fix.includes</fail>
491        <property name="javac.includes" value="${fix.includes}.java"/>
492    </target>
493    <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
494        <j2seproject1:nbjpdareload/>
495    </target>
496    <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
497    <!--
498                ===============
499                JAVADOC SECTION
500                ===============
501            -->
502    <target depends="init" name="-javadoc-build">
503        <mkdir dir="${dist.javadoc.dir}"/>
504        <javadoc additionalparam="${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}">
505            <classpath>
506                <path path="${javac.classpath}"/>
507            </classpath>
508            <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
509                <filename name="**/*.java"/>
510            </fileset>
511        </javadoc>
512    </target>
513    <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
514        <nbbrowse file="${dist.javadoc.dir}/index.html"/>
515    </target>
516    <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
517    <!--
518                =========================
519                JUNIT COMPILATION SECTION
520                =========================
521            -->
522    <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
523        <mkdir dir="${build.test.classes.dir}"/>
524    </target>
525    <target name="-pre-compile-test">
526        <!-- Empty placeholder for easier customization. -->
527        <!-- You can override this target in the ../build.xml file. -->
528    </target>
529    <target if="do.depend.true" name="-compile-test-depend">
530        <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
531    </target>
532    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
533        <j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
534        <copy todir="${build.test.classes.dir}">
535            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
536        </copy>
537    </target>
538    <target name="-post-compile-test">
539        <!-- Empty placeholder for easier customization. -->
540        <!-- You can override this target in the ../build.xml file. -->
541    </target>
542    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
543    <target name="-pre-compile-test-single">
544        <!-- Empty placeholder for easier customization. -->
545        <!-- You can override this target in the ../build.xml file. -->
546    </target>
547    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
548        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
549        <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
550        <j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}"/>
551        <copy todir="${build.test.classes.dir}">
552            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
553        </copy>
554    </target>
555    <target name="-post-compile-test-single">
556        <!-- Empty placeholder for easier customization. -->
557        <!-- You can override this target in the ../build.xml file. -->
558    </target>
559    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
560    <!--
561                =======================
562                JUNIT EXECUTION SECTION
563                =======================
564            -->
565    <target depends="init" if="have.tests" name="-pre-test-run">
566        <mkdir dir="${build.test.results.dir}"/>
567    </target>
568    <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
569        <j2seproject3:junit testincludes="**/*Test.java"/>
570    </target>
571    <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
572        <fail if="tests.failed">Some tests failed; see details above.</fail>
573    </target>
574    <target depends="init" if="have.tests" name="test-report"/>
575    <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
576    <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
577    <target depends="init" if="have.tests" name="-pre-test-run-single">
578        <mkdir dir="${build.test.results.dir}"/>
579    </target>
580    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
581        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
582        <j2seproject3:junit excludes="" includes="${test.includes}"/>
583    </target>
584    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
585        <fail if="tests.failed">Some tests failed; see details above.</fail>
586    </target>
587    <target depends="init,-do-not-recompile,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>
588    <!--
589                =======================
590                JUNIT DEBUGGING SECTION
591                =======================
592            -->
593    <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
594        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
595        <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
596        <delete file="${test.report.file}"/>
597        <mkdir dir="${build.test.results.dir}"/>
598        <j2seproject3:debug classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner" classpath="${ant.home}/lib/ant.jar:${ant.home}/lib/ant-junit.jar:${debug.test.classpath}">
599            <customize>
600                <syspropertyset>
601                    <propertyref prefix="test-sys-prop."/>
602                    <mapper from="test-sys-prop.*" to="*" type="glob"/>
603                </syspropertyset>
604                <arg value="${test.class}"/>
605                <arg value="showoutput=true"/>
606                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
607                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
608            </customize>
609        </j2seproject3:debug>
610    </target>
611    <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
612        <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
613    </target>
614    <target depends="init,-do-not-recompile,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
615    <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
616        <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
617    </target>
618    <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
619    <!--
620                =========================
621                APPLET EXECUTION SECTION
622                =========================
623            -->
624    <target depends="init,compile-single" name="run-applet">
625        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
626        <j2seproject1:java classname="sun.applet.AppletViewer">
627            <customize>
628                <arg value="${applet.url}"/>
629            </customize>
630        </j2seproject1:java>
631    </target>
632    <!--
633                =========================
634                APPLET DEBUGGING  SECTION
635                =========================
636            -->
637    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
638        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
639        <j2seproject3:debug classname="sun.applet.AppletViewer">
640            <customize>
641                <arg value="${applet.url}"/>
642            </customize>
643        </j2seproject3:debug>
644    </target>
645    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
646    <!--
647                ===============
648                CLEANUP SECTION
649                ===============
650            -->
651    <target depends="init" name="deps-clean" unless="no.deps"/>
652    <target depends="init" name="-do-clean">
653        <delete dir="${build.dir}"/>
654        <delete dir="${dist.dir}"/>
655    </target>
656    <target name="-post-clean">
657        <!-- Empty placeholder for easier customization. -->
658        <!-- You can override this target in the ../build.xml file. -->
659    </target>
660    <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
661</project>
Note: See TracBrowser for help on using the repository browser.