root/java/SuperPostak/nbproject/build-impl.xml @ 0:e76872ad5226

Revision 0:e76872ad5226, 32.2 KB (checked in by František Kučera <franta-hg@…>, 15 years ago)

Přidání SuperPošťáka? do Mercurialu (původně byl v Subversionu)
Postak – základ, knihovna
SuperPostak? – GUI nadstavba
SuperPostak?2 – pokus o implementaci aplikace jako modulu pro Netbeans, POZOR: není přidán do Mercurialu, možná později (pravděpodobně se ale nebude používat)

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="" 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 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="dt_socket">
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    </target>
260    <target depends="-init-debug-args" name="-init-macrodef-debug">
261        <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
262            <attribute default="${main.class}" name="classname"/>
263            <attribute default="${debug.classpath}" name="classpath"/>
264            <element name="customize" optional="true"/>
265            <sequential>
266                <java classname="@{classname}" dir="${work.dir}" fork="true">
267                    <jvmarg line="${debug-args-line}"/>
268                    <jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
269                    <jvmarg line="${run.jvmargs}"/>
270                    <classpath>
271                        <path path="@{classpath}"/>
272                    </classpath>
273                    <syspropertyset>
274                        <propertyref prefix="run-sys-prop."/>
275                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
276                    </syspropertyset>
277                    <customize/>
278                </java>
279            </sequential>
280        </macrodef>
281    </target>
282    <target name="-init-macrodef-java">
283        <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
284            <attribute default="${main.class}" name="classname"/>
285            <element name="customize" optional="true"/>
286            <sequential>
287                <java classname="@{classname}" dir="${work.dir}" fork="true">
288                    <jvmarg line="${run.jvmargs}"/>
289                    <classpath>
290                        <path path="${run.classpath}"/>
291                    </classpath>
292                    <syspropertyset>
293                        <propertyref prefix="run-sys-prop."/>
294                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
295                    </syspropertyset>
296                    <customize/>
297                </java>
298            </sequential>
299        </macrodef>
300    </target>
301    <target name="-init-presetdef-jar">
302        <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
303            <jar compress="${jar.compress}" jarfile="${dist.jar}">
304                <j2seproject1:fileset dir="${build.classes.dir}"/>
305            </jar>
306        </presetdef>
307    </target>
308    <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"/>
309    <!--
310                ===================
311                COMPILATION SECTION
312                ===================
313            -->
314    <target depends="init" name="deps-jar" unless="no.deps">
315        <ant antfile="${project.JFTable}/build.xml" inheritall="false" target="jar"/>
316        <ant antfile="${project.Postak}/build.xml" inheritall="false" target="jar"/>
317    </target>
318    <target depends="init,deps-jar" name="-pre-pre-compile">
319        <mkdir dir="${build.classes.dir}"/>
320    </target>
321    <target name="-pre-compile">
322        <!-- Empty placeholder for easier customization. -->
323        <!-- You can override this target in the ../build.xml file. -->
324    </target>
325    <target if="do.depend.true" name="-compile-depend">
326        <j2seproject3:depend/>
327    </target>
328    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-compile-depend" if="have.sources" name="-do-compile">
329        <j2seproject3:javac/>
330        <copy todir="${build.classes.dir}">
331            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
332        </copy>
333    </target>
334    <target name="-post-compile">
335        <!-- Empty placeholder for easier customization. -->
336        <!-- You can override this target in the ../build.xml file. -->
337    </target>
338    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
339    <target name="-pre-compile-single">
340        <!-- Empty placeholder for easier customization. -->
341        <!-- You can override this target in the ../build.xml file. -->
342    </target>
343    <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
344        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
345        <j2seproject3:force-recompile/>
346        <j2seproject3:javac excludes="" includes="${javac.includes}" sourcepath="${src.dir}"/>
347    </target>
348    <target name="-post-compile-single">
349        <!-- Empty placeholder for easier customization. -->
350        <!-- You can override this target in the ../build.xml file. -->
351    </target>
352    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
353    <!--
354                ====================
355                JAR BUILDING SECTION
356                ====================
357            -->
358    <target depends="init" name="-pre-pre-jar">
359        <dirname file="${dist.jar}" property="dist.jar.dir"/>
360        <mkdir dir="${dist.jar.dir}"/>
361    </target>
362    <target name="-pre-jar">
363        <!-- Empty placeholder for easier customization. -->
364        <!-- You can override this target in the ../build.xml file. -->
365    </target>
366    <target depends="init,compile,-pre-pre-jar,-pre-jar" name="-do-jar-without-manifest" unless="manifest.available">
367        <j2seproject1:jar/>
368    </target>
369    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class">
370        <j2seproject1:jar manifest="${manifest.file}"/>
371    </target>
372    <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">
373        <j2seproject1:jar manifest="${manifest.file}">
374            <j2seproject1:manifest>
375                <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
376            </j2seproject1:manifest>
377        </j2seproject1:jar>
378        <echo>To run this application from the command line without Ant, try:</echo>
379        <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
380        <property location="${dist.jar}" name="dist.jar.resolved"/>
381        <pathconvert property="run.classpath.with.dist.jar">
382            <path path="${run.classpath}"/>
383            <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
384        </pathconvert>
385        <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
386    </target>
387    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries">
388        <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
389        <pathconvert property="run.classpath.without.build.classes.dir">
390            <path path="${run.classpath}"/>
391            <map from="${build.classes.dir.resolved}" to=""/>
392        </pathconvert>
393        <pathconvert pathsep=" " property="jar.classpath">
394            <path path="${run.classpath.without.build.classes.dir}"/>
395            <chainedmapper>
396                <flattenmapper/>
397                <globmapper from="*" to="lib/*"/>
398            </chainedmapper>
399        </pathconvert>
400        <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
401        <copylibs compress="${jar.compress}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
402            <fileset dir="${build.classes.dir}"/>
403            <manifest>
404                <attribute name="Main-Class" value="${main.class}"/>
405                <attribute name="Class-Path" value="${jar.classpath}"/>
406            </manifest>
407        </copylibs>
408        <echo>To run this application from the command line without Ant, try:</echo>
409        <property location="${dist.jar}" name="dist.jar.resolved"/>
410        <echo>java -jar "${dist.jar.resolved}"</echo>
411    </target>
412    <target name="-post-jar">
413        <!-- Empty placeholder for easier customization. -->
414        <!-- You can override this target in the ../build.xml file. -->
415    </target>
416    <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"/>
417    <!--
418                =================
419                EXECUTION SECTION
420                =================
421            -->
422    <target depends="init,compile" description="Run a main class." name="run">
423        <j2seproject1:java>
424            <customize>
425                <arg line="${application.args}"/>
426            </customize>
427        </j2seproject1:java>
428    </target>
429    <target name="-do-not-recompile">
430        <property name="javac.includes.binary" value=""/>
431    </target>
432    <target depends="init,-do-not-recompile,compile-single" name="run-single">
433        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
434        <j2seproject1:java classname="${run.class}"/>
435    </target>
436    <!--
437                =================
438                DEBUGGING SECTION
439                =================
440            -->
441    <target depends="init" if="netbeans.home" name="-debug-start-debugger">
442        <j2seproject1:nbjpdastart name="${debug.class}"/>
443    </target>
444    <target depends="init,compile" name="-debug-start-debuggee">
445        <j2seproject3:debug>
446            <customize>
447                <arg line="${application.args}"/>
448            </customize>
449        </j2seproject3:debug>
450    </target>
451    <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
452    <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
453        <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
454    </target>
455    <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
456    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
457        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
458        <j2seproject3:debug classname="${debug.class}"/>
459    </target>
460    <target depends="init,-do-not-recompile,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
461    <target depends="init" name="-pre-debug-fix">
462        <fail unless="fix.includes">Must set fix.includes</fail>
463        <property name="javac.includes" value="${fix.includes}.java"/>
464    </target>
465    <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
466        <j2seproject1:nbjpdareload/>
467    </target>
468    <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
469    <!--
470                ===============
471                JAVADOC SECTION
472                ===============
473            -->
474    <target depends="init" name="-javadoc-build">
475        <mkdir dir="${dist.javadoc.dir}"/>
476        <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}">
477            <classpath>
478                <path path="${javac.classpath}"/>
479            </classpath>
480            <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
481                <filename name="**/*.java"/>
482            </fileset>
483        </javadoc>
484    </target>
485    <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
486        <nbbrowse file="${dist.javadoc.dir}/index.html"/>
487    </target>
488    <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
489    <!--
490                =========================
491                JUNIT COMPILATION SECTION
492                =========================
493            -->
494    <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
495        <mkdir dir="${build.test.classes.dir}"/>
496    </target>
497    <target name="-pre-compile-test">
498        <!-- Empty placeholder for easier customization. -->
499        <!-- You can override this target in the ../build.xml file. -->
500    </target>
501    <target if="do.depend.true" name="-compile-test-depend">
502        <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
503    </target>
504    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
505        <j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
506        <copy todir="${build.test.classes.dir}">
507            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
508        </copy>
509    </target>
510    <target name="-post-compile-test">
511        <!-- Empty placeholder for easier customization. -->
512        <!-- You can override this target in the ../build.xml file. -->
513    </target>
514    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
515    <target name="-pre-compile-test-single">
516        <!-- Empty placeholder for easier customization. -->
517        <!-- You can override this target in the ../build.xml file. -->
518    </target>
519    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
520        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
521        <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
522        <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}"/>
523        <copy todir="${build.test.classes.dir}">
524            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
525        </copy>
526    </target>
527    <target name="-post-compile-test-single">
528        <!-- Empty placeholder for easier customization. -->
529        <!-- You can override this target in the ../build.xml file. -->
530    </target>
531    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
532    <!--
533                =======================
534                JUNIT EXECUTION SECTION
535                =======================
536            -->
537    <target depends="init" if="have.tests" name="-pre-test-run">
538        <mkdir dir="${build.test.results.dir}"/>
539    </target>
540    <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
541        <j2seproject3:junit testincludes="**/*Test.java"/>
542    </target>
543    <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
544        <fail if="tests.failed">Some tests failed; see details above.</fail>
545    </target>
546    <target depends="init" if="have.tests" name="test-report"/>
547    <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
548    <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
549    <target depends="init" if="have.tests" name="-pre-test-run-single">
550        <mkdir dir="${build.test.results.dir}"/>
551    </target>
552    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
553        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
554        <j2seproject3:junit excludes="" includes="${test.includes}"/>
555    </target>
556    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
557        <fail if="tests.failed">Some tests failed; see details above.</fail>
558    </target>
559    <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"/>
560    <!--
561                =======================
562                JUNIT DEBUGGING SECTION
563                =======================
564            -->
565    <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
566        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
567        <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
568        <delete file="${test.report.file}"/>
569        <mkdir dir="${build.test.results.dir}"/>
570        <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}">
571            <customize>
572                <syspropertyset>
573                    <propertyref prefix="test-sys-prop."/>
574                    <mapper from="test-sys-prop.*" to="*" type="glob"/>
575                </syspropertyset>
576                <arg value="${test.class}"/>
577                <arg value="showoutput=true"/>
578                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
579                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
580            </customize>
581        </j2seproject3:debug>
582    </target>
583    <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
584        <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
585    </target>
586    <target depends="init,-do-not-recompile,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
587    <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
588        <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
589    </target>
590    <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
591    <!--
592                =========================
593                APPLET EXECUTION SECTION
594                =========================
595            -->
596    <target depends="init,compile-single" name="run-applet">
597        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
598        <j2seproject1:java classname="sun.applet.AppletViewer">
599            <customize>
600                <arg value="${applet.url}"/>
601            </customize>
602        </j2seproject1:java>
603    </target>
604    <!--
605                =========================
606                APPLET DEBUGGING  SECTION
607                =========================
608            -->
609    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
610        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
611        <j2seproject3:debug classname="sun.applet.AppletViewer">
612            <customize>
613                <arg value="${applet.url}"/>
614            </customize>
615        </j2seproject3:debug>
616    </target>
617    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
618    <!--
619                ===============
620                CLEANUP SECTION
621                ===============
622            -->
623    <target depends="init" name="deps-clean" unless="no.deps">
624        <ant antfile="${project.JFTable}/build.xml" inheritall="false" target="clean"/>
625        <ant antfile="${project.Postak}/build.xml" inheritall="false" target="clean"/>
626    </target>
627    <target depends="init" name="-do-clean">
628        <delete dir="${build.dir}"/>
629        <delete dir="${dist.dir}"/>
630    </target>
631    <target name="-post-clean">
632        <!-- Empty placeholder for easier customization. -->
633        <!-- You can override this target in the ../build.xml file. -->
634    </target>
635    <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
636</project>
Note: See TracBrowser for help on using the browser.