root/java/SuperPostak/nbproject/build-impl.xml @ 3:03d27d3b3f7b

Revision 3:03d27d3b3f7b, 33.1 KB (checked in by František Kučera <franta-hg@…>, 14 years ago)

Drobnosti a Substance LaF

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