source: tol/TolJava/TOLJava-Ejemplos/nbproject/build-impl.xml @ e95dfdb

1941-docker-image-to-testdevel
Last change on this file since e95dfdb was 9887b93, checked in by Humberto Carralero <hacarralero@…>, 15 years ago

Importing TolJava

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@3900 be4846ae-f051-483a-831f-b64e7d08527f

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