root/java/SuperPostak/nbproject/build-impl.xml @ 16:290074b53aca

Revision 16:290074b53aca, 56.4 KB (checked in by František Kučera <franta-hg@…>, 12 years ago)

netbeans, ant

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    <fail message="Please build using Ant 1.8.0 or higher.">
25        <condition>
26            <not>
27                <antversion atleast="1.8.0"/>
28            </not>
29        </condition>
30    </fail>
31    <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
32    <!--
33                ======================
34                INITIALIZATION SECTION
35                ======================
36            -->
37    <target name="-pre-init">
38        <!-- Empty placeholder for easier customization. -->
39        <!-- You can override this target in the ../build.xml file. -->
40    </target>
41    <target depends="-pre-init" name="-init-private">
42        <property file="nbproject/private/config.properties"/>
43        <property file="nbproject/private/configs/${config}.properties"/>
44        <property file="nbproject/private/private.properties"/>
45    </target>
46    <target depends="-pre-init,-init-private" name="-init-user">
47        <property file="${user.properties.file}"/>
48        <!-- The two properties below are usually overridden -->
49        <!-- by the active platform. Just a fallback. -->
50        <property name="default.javac.source" value="1.4"/>
51        <property name="default.javac.target" value="1.4"/>
52    </target>
53    <target depends="-pre-init,-init-private,-init-user" name="-init-project">
54        <property file="nbproject/configs/${config}.properties"/>
55        <property file="nbproject/project.properties"/>
56    </target>
57    <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
58        <available file="${manifest.file}" property="manifest.available"/>
59        <condition property="splashscreen.available">
60            <and>
61                <not>
62                    <equals arg1="${application.splash}" arg2="" trim="true"/>
63                </not>
64                <available file="${application.splash}"/>
65            </and>
66        </condition>
67        <condition property="main.class.available">
68            <and>
69                <isset property="main.class"/>
70                <not>
71                    <equals arg1="${main.class}" arg2="" trim="true"/>
72                </not>
73            </and>
74        </condition>
75        <condition property="manifest.available+main.class">
76            <and>
77                <isset property="manifest.available"/>
78                <isset property="main.class.available"/>
79            </and>
80        </condition>
81        <condition property="do.archive">
82            <not>
83                <istrue value="${jar.archive.disabled}"/>
84            </not>
85        </condition>
86        <condition property="do.mkdist">
87            <and>
88                <isset property="do.archive"/>
89                <isset property="libs.CopyLibs.classpath"/>
90                <not>
91                    <istrue value="${mkdist.disabled}"/>
92                </not>
93            </and>
94        </condition>
95        <condition property="manifest.available+main.class+mkdist.available">
96            <and>
97                <istrue value="${manifest.available+main.class}"/>
98                <isset property="do.mkdist"/>
99            </and>
100        </condition>
101        <condition property="do.archive+manifest.available">
102            <and>
103                <isset property="manifest.available"/>
104                <istrue value="${do.archive}"/>
105            </and>
106        </condition>
107        <condition property="do.archive+main.class.available">
108            <and>
109                <isset property="main.class.available"/>
110                <istrue value="${do.archive}"/>
111            </and>
112        </condition>
113        <condition property="do.archive+splashscreen.available">
114            <and>
115                <isset property="splashscreen.available"/>
116                <istrue value="${do.archive}"/>
117            </and>
118        </condition>
119        <condition property="do.archive+manifest.available+main.class">
120            <and>
121                <istrue value="${manifest.available+main.class}"/>
122                <istrue value="${do.archive}"/>
123            </and>
124        </condition>
125        <condition property="manifest.available-mkdist.available">
126            <or>
127                <istrue value="${manifest.available}"/>
128                <isset property="do.mkdist"/>
129            </or>
130        </condition>
131        <condition property="manifest.available+main.class-mkdist.available">
132            <or>
133                <istrue value="${manifest.available+main.class}"/>
134                <isset property="do.mkdist"/>
135            </or>
136        </condition>
137        <condition property="have.tests">
138            <or>
139                <available file="${test.src.dir}"/>
140            </or>
141        </condition>
142        <condition property="have.sources">
143            <or>
144                <available file="${src.dir}"/>
145            </or>
146        </condition>
147        <condition property="netbeans.home+have.tests">
148            <and>
149                <isset property="netbeans.home"/>
150                <isset property="have.tests"/>
151            </and>
152        </condition>
153        <condition property="no.javadoc.preview">
154            <and>
155                <isset property="javadoc.preview"/>
156                <isfalse value="${javadoc.preview}"/>
157            </and>
158        </condition>
159        <property name="run.jvmargs" value=""/>
160        <property name="javac.compilerargs" value=""/>
161        <property name="work.dir" value="${basedir}"/>
162        <condition property="no.deps">
163            <and>
164                <istrue value="${no.dependencies}"/>
165            </and>
166        </condition>
167        <property name="javac.debug" value="true"/>
168        <property name="javadoc.preview" value="true"/>
169        <property name="application.args" value=""/>
170        <property name="source.encoding" value="${file.encoding}"/>
171        <property name="runtime.encoding" value="${source.encoding}"/>
172        <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
173            <and>
174                <isset property="javadoc.encoding"/>
175                <not>
176                    <equals arg1="${javadoc.encoding}" arg2=""/>
177                </not>
178            </and>
179        </condition>
180        <property name="javadoc.encoding.used" value="${source.encoding}"/>
181        <property name="includes" value="**"/>
182        <property name="excludes" value=""/>
183        <property name="do.depend" value="false"/>
184        <condition property="do.depend.true">
185            <istrue value="${do.depend}"/>
186        </condition>
187        <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
188        <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
189            <length length="0" string="${endorsed.classpath}" when="greater"/>
190        </condition>
191        <condition else="false" property="jdkBug6558476">
192            <and>
193                <matches pattern="1\.[56]" string="${java.specification.version}"/>
194                <not>
195                    <os family="unix"/>
196                </not>
197            </and>
198        </condition>
199        <property name="javac.fork" value="${jdkBug6558476}"/>
200        <property name="jar.index" value="false"/>
201        <property name="jar.index.metainf" value="${jar.index}"/>
202        <property name="copylibs.rebase" value="true"/>
203        <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
204    </target>
205    <target name="-post-init">
206        <!-- Empty placeholder for easier customization. -->
207        <!-- You can override this target in the ../build.xml file. -->
208    </target>
209    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
210        <fail unless="src.dir">Must set src.dir</fail>
211        <fail unless="test.src.dir">Must set test.src.dir</fail>
212        <fail unless="build.dir">Must set build.dir</fail>
213        <fail unless="dist.dir">Must set dist.dir</fail>
214        <fail unless="build.classes.dir">Must set build.classes.dir</fail>
215        <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
216        <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
217        <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
218        <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
219        <fail unless="dist.jar">Must set dist.jar</fail>
220    </target>
221    <target name="-init-macrodef-property">
222        <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
223            <attribute name="name"/>
224            <attribute name="value"/>
225            <sequential>
226                <property name="@{name}" value="${@{value}}"/>
227            </sequential>
228        </macrodef>
229    </target>
230    <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
231        <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
232            <attribute default="${src.dir}" name="srcdir"/>
233            <attribute default="${build.classes.dir}" name="destdir"/>
234            <attribute default="${javac.classpath}" name="classpath"/>
235            <attribute default="${javac.processorpath}" name="processorpath"/>
236            <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
237            <attribute default="${includes}" name="includes"/>
238            <attribute default="${excludes}" name="excludes"/>
239            <attribute default="${javac.debug}" name="debug"/>
240            <attribute default="${empty.dir}" name="sourcepath"/>
241            <attribute default="${empty.dir}" name="gensrcdir"/>
242            <element name="customize" optional="true"/>
243            <sequential>
244                <property location="${build.dir}/empty" name="empty.dir"/>
245                <mkdir dir="${empty.dir}"/>
246                <mkdir dir="@{apgeneratedsrcdir}"/>
247                <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
248                    <src>
249                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
250                            <include name="*"/>
251                        </dirset>
252                    </src>
253                    <classpath>
254                        <path path="@{classpath}"/>
255                    </classpath>
256                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
257                    <compilerarg line="${javac.compilerargs}"/>
258                    <compilerarg value="-processorpath"/>
259                    <compilerarg path="@{processorpath}:${empty.dir}"/>
260                    <compilerarg line="${ap.processors.internal}"/>
261                    <compilerarg line="${annotation.processing.processor.options}"/>
262                    <compilerarg value="-s"/>
263                    <compilerarg path="@{apgeneratedsrcdir}"/>
264                    <compilerarg line="${ap.proc.none.internal}"/>
265                    <customize/>
266                </javac>
267            </sequential>
268        </macrodef>
269    </target>
270    <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
271        <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
272            <attribute default="${src.dir}" name="srcdir"/>
273            <attribute default="${build.classes.dir}" name="destdir"/>
274            <attribute default="${javac.classpath}" name="classpath"/>
275            <attribute default="${javac.processorpath}" name="processorpath"/>
276            <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
277            <attribute default="${includes}" name="includes"/>
278            <attribute default="${excludes}" name="excludes"/>
279            <attribute default="${javac.debug}" name="debug"/>
280            <attribute default="${empty.dir}" name="sourcepath"/>
281            <attribute default="${empty.dir}" name="gensrcdir"/>
282            <element name="customize" optional="true"/>
283            <sequential>
284                <property location="${build.dir}/empty" name="empty.dir"/>
285                <mkdir dir="${empty.dir}"/>
286                <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
287                    <src>
288                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
289                            <include name="*"/>
290                        </dirset>
291                    </src>
292                    <classpath>
293                        <path path="@{classpath}"/>
294                    </classpath>
295                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
296                    <compilerarg line="${javac.compilerargs}"/>
297                    <customize/>
298                </javac>
299            </sequential>
300        </macrodef>
301    </target>
302    <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
303        <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
304            <attribute default="${src.dir}" name="srcdir"/>
305            <attribute default="${build.classes.dir}" name="destdir"/>
306            <attribute default="${javac.classpath}" name="classpath"/>
307            <sequential>
308                <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
309                    <classpath>
310                        <path path="@{classpath}"/>
311                    </classpath>
312                </depend>
313            </sequential>
314        </macrodef>
315        <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
316            <attribute default="${build.classes.dir}" name="destdir"/>
317            <sequential>
318                <fail unless="javac.includes">Must set javac.includes</fail>
319                <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
320                    <path>
321                        <filelist dir="@{destdir}" files="${javac.includes}"/>
322                    </path>
323                    <globmapper from="*.java" to="*.class"/>
324                </pathconvert>
325                <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
326                <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
327                <delete>
328                    <files includesfile="${javac.includesfile.binary}"/>
329                </delete>
330                <delete>
331                    <fileset file="${javac.includesfile.binary}"/>
332                </delete>
333            </sequential>
334        </macrodef>
335    </target>
336    <target name="-init-macrodef-junit">
337        <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
338            <attribute default="${includes}" name="includes"/>
339            <attribute default="${excludes}" name="excludes"/>
340            <attribute default="**" name="testincludes"/>
341            <sequential>
342                <property name="junit.forkmode" value="perTest"/>
343                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
344                    <batchtest todir="${build.test.results.dir}">
345                        <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
346                            <filename name="@{testincludes}"/>
347                        </fileset>
348                    </batchtest>
349                    <classpath>
350                        <path path="${run.test.classpath}"/>
351                    </classpath>
352                    <syspropertyset>
353                        <propertyref prefix="test-sys-prop."/>
354                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
355                    </syspropertyset>
356                    <formatter type="brief" usefile="false"/>
357                    <formatter type="xml"/>
358                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
359                    <jvmarg value="-ea"/>
360                    <jvmarg line="${run.jvmargs}"/>
361                </junit>
362            </sequential>
363        </macrodef>
364    </target>
365    <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" name="profile-init"/>
366    <target name="-profile-pre-init">
367        <!-- Empty placeholder for easier customization. -->
368        <!-- You can override this target in the ../build.xml file. -->
369    </target>
370    <target name="-profile-post-init">
371        <!-- Empty placeholder for easier customization. -->
372        <!-- You can override this target in the ../build.xml file. -->
373    </target>
374    <target name="-profile-init-macrodef-profile">
375        <macrodef name="resolve">
376            <attribute name="name"/>
377            <attribute name="value"/>
378            <sequential>
379                <property name="@{name}" value="${env.@{value}}"/>
380            </sequential>
381        </macrodef>
382        <macrodef name="profile">
383            <attribute default="${main.class}" name="classname"/>
384            <element name="customize" optional="true"/>
385            <sequential>
386                <property environment="env"/>
387                <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
388                <java classname="@{classname}" dir="${profiler.info.dir}" fork="true" jvm="${profiler.info.jvm}">
389                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
390                    <jvmarg value="${profiler.info.jvmargs.agent}"/>
391                    <jvmarg line="${profiler.info.jvmargs}"/>
392                    <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
393                    <arg line="${application.args}"/>
394                    <classpath>
395                        <path path="${run.classpath}"/>
396                    </classpath>
397                    <syspropertyset>
398                        <propertyref prefix="run-sys-prop."/>
399                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
400                    </syspropertyset>
401                    <customize/>
402                </java>
403            </sequential>
404        </macrodef>
405    </target>
406    <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" name="-profile-init-check">
407        <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
408        <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
409    </target>
410    <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
411        <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
412            <attribute default="${main.class}" name="name"/>
413            <attribute default="${debug.classpath}" name="classpath"/>
414            <attribute default="" name="stopclassname"/>
415            <sequential>
416                <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
417                    <classpath>
418                        <path path="@{classpath}"/>
419                    </classpath>
420                </nbjpdastart>
421            </sequential>
422        </macrodef>
423        <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
424            <attribute default="${build.classes.dir}" name="dir"/>
425            <sequential>
426                <nbjpdareload>
427                    <fileset dir="@{dir}" includes="${fix.classes}">
428                        <include name="${fix.includes}*.class"/>
429                    </fileset>
430                </nbjpdareload>
431            </sequential>
432        </macrodef>
433    </target>
434    <target name="-init-debug-args">
435        <property name="version-output" value="java version &quot;${ant.java.version}"/>
436        <condition property="have-jdk-older-than-1.4">
437            <or>
438                <contains string="${version-output}" substring="java version &quot;1.0"/>
439                <contains string="${version-output}" substring="java version &quot;1.1"/>
440                <contains string="${version-output}" substring="java version &quot;1.2"/>
441                <contains string="${version-output}" substring="java version &quot;1.3"/>
442            </or>
443        </condition>
444        <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
445            <istrue value="${have-jdk-older-than-1.4}"/>
446        </condition>
447        <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
448            <os family="windows"/>
449        </condition>
450        <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
451            <isset property="debug.transport"/>
452        </condition>
453    </target>
454    <target depends="-init-debug-args" name="-init-macrodef-debug">
455        <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
456            <attribute default="${main.class}" name="classname"/>
457            <attribute default="${debug.classpath}" name="classpath"/>
458            <element name="customize" optional="true"/>
459            <sequential>
460                <java classname="@{classname}" dir="${work.dir}" fork="true">
461                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
462                    <jvmarg line="${debug-args-line}"/>
463                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
464                    <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
465                    <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
466                    <jvmarg line="${run.jvmargs}"/>
467                    <classpath>
468                        <path path="@{classpath}"/>
469                    </classpath>
470                    <syspropertyset>
471                        <propertyref prefix="run-sys-prop."/>
472                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
473                    </syspropertyset>
474                    <customize/>
475                </java>
476            </sequential>
477        </macrodef>
478    </target>
479    <target name="-init-macrodef-java">
480        <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
481            <attribute default="${main.class}" name="classname"/>
482            <attribute default="${run.classpath}" name="classpath"/>
483            <element name="customize" optional="true"/>
484            <sequential>
485                <java classname="@{classname}" dir="${work.dir}" fork="true">
486                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
487                    <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
488                    <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
489                    <jvmarg line="${run.jvmargs}"/>
490                    <classpath>
491                        <path path="@{classpath}"/>
492                    </classpath>
493                    <syspropertyset>
494                        <propertyref prefix="run-sys-prop."/>
495                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
496                    </syspropertyset>
497                    <customize/>
498                </java>
499            </sequential>
500        </macrodef>
501    </target>
502    <target name="-init-macrodef-copylibs">
503        <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">
504            <attribute default="${manifest.file}" name="manifest"/>
505            <element name="customize" optional="true"/>
506            <sequential>
507                <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
508                <pathconvert property="run.classpath.without.build.classes.dir">
509                    <path path="${run.classpath}"/>
510                    <map from="${build.classes.dir.resolved}" to=""/>
511                </pathconvert>
512                <pathconvert pathsep=" " property="jar.classpath">
513                    <path path="${run.classpath.without.build.classes.dir}"/>
514                    <chainedmapper>
515                        <flattenmapper/>
516                        <globmapper from="*" to="lib/*"/>
517                    </chainedmapper>
518                </pathconvert>
519                <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
520                <copylibs compress="${jar.compress}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
521                    <fileset dir="${build.classes.dir}"/>
522                    <manifest>
523                        <attribute name="Class-Path" value="${jar.classpath}"/>
524                        <customize/>
525                    </manifest>
526                </copylibs>
527            </sequential>
528        </macrodef>
529    </target>
530    <target name="-init-presetdef-jar">
531        <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
532            <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">
533                <j2seproject1:fileset dir="${build.classes.dir}"/>
534            </jar>
535        </presetdef>
536    </target>
537    <target name="-init-ap-cmdline-properties">
538        <property name="annotation.processing.enabled" value="true"/>
539        <property name="annotation.processing.processors.list" value=""/>
540        <property name="annotation.processing.processor.options" value=""/>
541        <property name="annotation.processing.run.all.processors" value="true"/>
542        <property name="javac.processorpath" value="${javac.classpath}"/>
543        <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
544        <condition property="ap.supported.internal" value="true">
545            <not>
546                <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
547            </not>
548        </condition>
549    </target>
550    <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
551        <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
552            <isfalse value="${annotation.processing.run.all.processors}"/>
553        </condition>
554        <condition else="" property="ap.proc.none.internal" value="-proc:none">
555            <isfalse value="${annotation.processing.enabled}"/>
556        </condition>
557    </target>
558    <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
559        <property name="ap.cmd.line.internal" value=""/>
560    </target>
561    <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,-init-ap-cmdline" name="init"/>
562    <!--
563                ===================
564                COMPILATION SECTION
565                ===================
566            -->
567    <target name="-deps-jar-init" unless="built-jar.properties">
568        <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>
569        <delete file="${built-jar.properties}" quiet="true"/>
570    </target>
571    <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
572        <echo level="warn" message="Cycle detected: SuperPostak was already built"/>
573    </target>
574    <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
575        <mkdir dir="${build.dir}"/>
576        <touch file="${built-jar.properties}" verbose="false"/>
577        <property file="${built-jar.properties}" prefix="already.built.jar."/>
578        <antcall target="-warn-already-built-jar"/>
579        <propertyfile file="${built-jar.properties}">
580            <entry key="${basedir}" value=""/>
581        </propertyfile>
582        <antcall target="-maybe-call-dep">
583            <param name="call.built.properties" value="${built-jar.properties}"/>
584            <param location="${project.JFTable}" name="call.subproject"/>
585            <param location="${project.JFTable}/build.xml" name="call.script"/>
586            <param name="call.target" value="jar"/>
587            <param name="transfer.built-jar.properties" value="${built-jar.properties}"/>
588        </antcall>
589        <antcall target="-maybe-call-dep">
590            <param name="call.built.properties" value="${built-jar.properties}"/>
591            <param location="${project.Postak}" name="call.subproject"/>
592            <param location="${project.Postak}/build.xml" name="call.script"/>
593            <param name="call.target" value="jar"/>
594            <param name="transfer.built-jar.properties" value="${built-jar.properties}"/>
595        </antcall>
596    </target>
597    <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
598    <target depends="init" name="-check-automatic-build">
599        <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
600    </target>
601    <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
602        <antcall target="clean"/>
603    </target>
604    <target depends="init,deps-jar" name="-pre-pre-compile">
605        <mkdir dir="${build.classes.dir}"/>
606    </target>
607    <target name="-pre-compile">
608        <!-- Empty placeholder for easier customization. -->
609        <!-- You can override this target in the ../build.xml file. -->
610    </target>
611    <target if="do.depend.true" name="-compile-depend">
612        <pathconvert property="build.generated.subdirs">
613            <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
614                <include name="*"/>
615            </dirset>
616        </pathconvert>
617        <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>
618    </target>
619    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">
620        <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
621        <copy todir="${build.classes.dir}">
622            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
623        </copy>
624    </target>
625    <target if="has.persistence.xml" name="-copy-persistence-xml">
626        <mkdir dir="${build.classes.dir}/META-INF"/>
627        <copy todir="${build.classes.dir}/META-INF">
628            <fileset dir="${meta.inf.dir}" includes="persistence.xml"/>
629        </copy>
630    </target>
631    <target name="-post-compile">
632        <!-- Empty placeholder for easier customization. -->
633        <!-- You can override this target in the ../build.xml file. -->
634    </target>
635    <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
636    <target name="-pre-compile-single">
637        <!-- Empty placeholder for easier customization. -->
638        <!-- You can override this target in the ../build.xml file. -->
639    </target>
640    <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
641        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
642        <j2seproject3:force-recompile/>
643        <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>
644    </target>
645    <target name="-post-compile-single">
646        <!-- Empty placeholder for easier customization. -->
647        <!-- You can override this target in the ../build.xml file. -->
648    </target>
649    <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
650    <!--
651                ====================
652                JAR BUILDING SECTION
653                ====================
654            -->
655    <target depends="init" name="-pre-pre-jar">
656        <dirname file="${dist.jar}" property="dist.jar.dir"/>
657        <mkdir dir="${dist.jar.dir}"/>
658    </target>
659    <target name="-pre-jar">
660        <!-- Empty placeholder for easier customization. -->
661        <!-- You can override this target in the ../build.xml file. -->
662    </target>
663    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive" name="-do-jar-without-manifest" unless="manifest.available-mkdist.available">
664        <j2seproject1:jar/>
665    </target>
666    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class-mkdist.available">
667        <j2seproject1:jar manifest="${manifest.file}"/>
668    </target>
669    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available">
670        <j2seproject1:jar manifest="${manifest.file}">
671            <j2seproject1:manifest>
672                <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
673            </j2seproject1:manifest>
674        </j2seproject1:jar>
675        <echo level="info">To run this application from the command line without Ant, try:</echo>
676        <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
677        <property location="${dist.jar}" name="dist.jar.resolved"/>
678        <pathconvert property="run.classpath.with.dist.jar">
679            <path path="${run.classpath}"/>
680            <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
681        </pathconvert>
682        <echo level="info">java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
683    </target>
684    <target depends="init" if="do.archive" name="-do-jar-with-libraries-create-manifest" unless="manifest.available">
685        <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
686        <touch file="${tmp.manifest.file}" verbose="false"/>
687    </target>
688    <target depends="init" if="do.archive+manifest.available" name="-do-jar-with-libraries-copy-manifest">
689        <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
690        <copy file="${manifest.file}" tofile="${tmp.manifest.file}"/>
691    </target>
692    <target depends="init,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest" if="do.archive+main.class.available" name="-do-jar-with-libraries-set-main">
693        <manifest file="${tmp.manifest.file}" mode="update">
694            <attribute name="Main-Class" value="${main.class}"/>
695        </manifest>
696    </target>
697    <target depends="init,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-with-libraries-set-splashscreen">
698        <basename file="${application.splash}" property="splashscreen.basename"/>
699        <mkdir dir="${build.classes.dir}/META-INF"/>
700        <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
701        <manifest file="${tmp.manifest.file}" mode="update">
702            <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
703        </manifest>
704    </target>
705    <target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen" if="do.mkdist" name="-do-jar-with-libraries-pack">
706        <j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
707        <echo level="info">To run this application from the command line without Ant, try:</echo>
708        <property location="${dist.jar}" name="dist.jar.resolved"/>
709        <echo level="info">java -jar "${dist.jar.resolved}"</echo>
710    </target>
711    <target depends="-do-jar-with-libraries-pack" if="do.archive" name="-do-jar-with-libraries-delete-manifest">
712        <delete>
713            <fileset file="${tmp.manifest.file}"/>
714        </delete>
715    </target>
716    <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen,-do-jar-with-libraries-pack,-do-jar-with-libraries-delete-manifest" name="-do-jar-with-libraries"/>
717    <target name="-post-jar">
718        <!-- Empty placeholder for easier customization. -->
719        <!-- You can override this target in the ../build.xml file. -->
720    </target>
721    <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"/>
722    <!--
723                =================
724                EXECUTION SECTION
725                =================
726            -->
727    <target depends="init,compile" description="Run a main class." name="run">
728        <j2seproject1:java>
729            <customize>
730                <arg line="${application.args}"/>
731            </customize>
732        </j2seproject1:java>
733    </target>
734    <target name="-do-not-recompile">
735        <property name="javac.includes.binary" value=""/>
736    </target>
737    <target depends="init,compile-single" name="run-single">
738        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
739        <j2seproject1:java classname="${run.class}"/>
740    </target>
741    <target depends="init,compile-test-single" name="run-test-with-main">
742        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
743        <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
744    </target>
745    <!--
746                =================
747                DEBUGGING SECTION
748                =================
749            -->
750    <target depends="init" if="netbeans.home" name="-debug-start-debugger">
751        <j2seproject1:nbjpdastart name="${debug.class}"/>
752    </target>
753    <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
754        <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
755    </target>
756    <target depends="init,compile" name="-debug-start-debuggee">
757        <j2seproject3:debug>
758            <customize>
759                <arg line="${application.args}"/>
760            </customize>
761        </j2seproject3:debug>
762    </target>
763    <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
764    <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
765        <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
766    </target>
767    <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
768    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
769        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
770        <j2seproject3:debug classname="${debug.class}"/>
771    </target>
772    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
773    <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
774        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
775        <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
776    </target>
777    <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
778    <target depends="init" name="-pre-debug-fix">
779        <fail unless="fix.includes">Must set fix.includes</fail>
780        <property name="javac.includes" value="${fix.includes}.java"/>
781    </target>
782    <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
783        <j2seproject1:nbjpdareload/>
784    </target>
785    <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
786    <!--
787                =================
788                PROFILING SECTION
789                =================
790            -->
791    <target depends="profile-init,compile" description="Profile a project in the IDE." if="netbeans.home" name="profile">
792        <nbprofiledirect>
793            <classpath>
794                <path path="${run.classpath}"/>
795            </classpath>
796        </nbprofiledirect>
797        <profile/>
798    </target>
799    <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="netbeans.home" name="profile-single">
800        <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail>
801        <nbprofiledirect>
802            <classpath>
803                <path path="${run.classpath}"/>
804            </classpath>
805        </nbprofiledirect>
806        <profile classname="${profile.class}"/>
807    </target>
808    <!--
809                =========================
810                APPLET PROFILING  SECTION
811                =========================
812            -->
813    <target depends="profile-init,compile-single" if="netbeans.home" name="profile-applet">
814        <nbprofiledirect>
815            <classpath>
816                <path path="${run.classpath}"/>
817            </classpath>
818        </nbprofiledirect>
819        <profile classname="sun.applet.AppletViewer">
820            <customize>
821                <arg value="${applet.url}"/>
822            </customize>
823        </profile>
824    </target>
825    <!--
826                =========================
827                TESTS PROFILING  SECTION
828                =========================
829            -->
830    <target depends="profile-init,compile-test-single" if="netbeans.home" name="profile-test-single">
831        <nbprofiledirect>
832            <classpath>
833                <path path="${run.test.classpath}"/>
834            </classpath>
835        </nbprofiledirect>
836        <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
837            <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
838            <jvmarg value="${profiler.info.jvmargs.agent}"/>
839            <jvmarg line="${profiler.info.jvmargs}"/>
840            <test name="${profile.class}"/>
841            <classpath>
842                <path path="${run.test.classpath}"/>
843            </classpath>
844            <syspropertyset>
845                <propertyref prefix="test-sys-prop."/>
846                <mapper from="test-sys-prop.*" to="*" type="glob"/>
847            </syspropertyset>
848            <formatter type="brief" usefile="false"/>
849            <formatter type="xml"/>
850        </junit>
851    </target>
852    <!--
853                ===============
854                JAVADOC SECTION
855                ===============
856            -->
857    <target depends="init" if="have.sources" name="-javadoc-build">
858        <mkdir dir="${dist.javadoc.dir}"/>
859        <condition else="" property="javadoc.endorsed.classpath.cmd.line.arg" value="-J${endorsed.classpath.cmd.line.arg}">
860            <and>
861                <isset property="endorsed.classpath.cmd.line.arg"/>
862                <not>
863                    <equals arg1="${endorsed.classpath.cmd.line.arg}" arg2=""/>
864                </not>
865            </and>
866        </condition>
867        <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}">
868            <classpath>
869                <path path="${javac.classpath}"/>
870            </classpath>
871            <fileset dir="${src.dir}" excludes="*.java,${excludes}" includes="${includes}">
872                <filename name="**/*.java"/>
873            </fileset>
874            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
875                <include name="**/*.java"/>
876                <exclude name="*.java"/>
877            </fileset>
878            <arg line="${javadoc.endorsed.classpath.cmd.line.arg}"/>
879        </javadoc>
880        <copy todir="${dist.javadoc.dir}">
881            <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
882                <filename name="**/doc-files/**"/>
883            </fileset>
884            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
885                <include name="**/doc-files/**"/>
886            </fileset>
887        </copy>
888    </target>
889    <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
890        <nbbrowse file="${dist.javadoc.dir}/index.html"/>
891    </target>
892    <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
893    <!--
894                =========================
895                JUNIT COMPILATION SECTION
896                =========================
897            -->
898    <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
899        <mkdir dir="${build.test.classes.dir}"/>
900    </target>
901    <target name="-pre-compile-test">
902        <!-- Empty placeholder for easier customization. -->
903        <!-- You can override this target in the ../build.xml file. -->
904    </target>
905    <target if="do.depend.true" name="-compile-test-depend">
906        <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
907    </target>
908    <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
909        <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" processorpath="${javac.test.processorpath}" srcdir="${test.src.dir}"/>
910        <copy todir="${build.test.classes.dir}">
911            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
912        </copy>
913    </target>
914    <target name="-post-compile-test">
915        <!-- Empty placeholder for easier customization. -->
916        <!-- You can override this target in the ../build.xml file. -->
917    </target>
918    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
919    <target name="-pre-compile-test-single">
920        <!-- Empty placeholder for easier customization. -->
921        <!-- You can override this target in the ../build.xml file. -->
922    </target>
923    <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
924        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
925        <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
926        <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" processorpath="${javac.test.processorpath}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}"/>
927        <copy todir="${build.test.classes.dir}">
928            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
929        </copy>
930    </target>
931    <target name="-post-compile-test-single">
932        <!-- Empty placeholder for easier customization. -->
933        <!-- You can override this target in the ../build.xml file. -->
934    </target>
935    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
936    <!--
937                =======================
938                JUNIT EXECUTION SECTION
939                =======================
940            -->
941    <target depends="init" if="have.tests" name="-pre-test-run">
942        <mkdir dir="${build.test.results.dir}"/>
943    </target>
944    <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
945        <j2seproject3:junit testincludes="**/*Test.java"/>
946    </target>
947    <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
948        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
949    </target>
950    <target depends="init" if="have.tests" name="test-report"/>
951    <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
952    <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
953    <target depends="init" if="have.tests" name="-pre-test-run-single">
954        <mkdir dir="${build.test.results.dir}"/>
955    </target>
956    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
957        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
958        <j2seproject3:junit excludes="" includes="${test.includes}"/>
959    </target>
960    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
961        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
962    </target>
963    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>
964    <!--
965                =======================
966                JUNIT DEBUGGING SECTION
967                =======================
968            -->
969    <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
970        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
971        <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
972        <delete file="${test.report.file}"/>
973        <mkdir dir="${build.test.results.dir}"/>
974        <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}">
975            <customize>
976                <syspropertyset>
977                    <propertyref prefix="test-sys-prop."/>
978                    <mapper from="test-sys-prop.*" to="*" type="glob"/>
979                </syspropertyset>
980                <arg value="${test.class}"/>
981                <arg value="showoutput=true"/>
982                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
983                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
984            </customize>
985        </j2seproject3:debug>
986    </target>
987    <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
988        <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
989    </target>
990    <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
991    <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
992        <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
993    </target>
994    <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
995    <!--
996                =========================
997                APPLET EXECUTION SECTION
998                =========================
999            -->
1000    <target depends="init,compile-single" name="run-applet">
1001        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
1002        <j2seproject1:java classname="sun.applet.AppletViewer">
1003            <customize>
1004                <arg value="${applet.url}"/>
1005            </customize>
1006        </j2seproject1:java>
1007    </target>
1008    <!--
1009                =========================
1010                APPLET DEBUGGING  SECTION
1011                =========================
1012            -->
1013    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
1014        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
1015        <j2seproject3:debug classname="sun.applet.AppletViewer">
1016            <customize>
1017                <arg value="${applet.url}"/>
1018            </customize>
1019        </j2seproject3:debug>
1020    </target>
1021    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
1022    <!--
1023                ===============
1024                CLEANUP SECTION
1025                ===============
1026            -->
1027    <target name="-deps-clean-init" unless="built-clean.properties">
1028        <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>
1029        <delete file="${built-clean.properties}" quiet="true"/>
1030    </target>
1031    <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
1032        <echo level="warn" message="Cycle detected: SuperPostak was already built"/>
1033    </target>
1034    <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
1035        <mkdir dir="${build.dir}"/>
1036        <touch file="${built-clean.properties}" verbose="false"/>
1037        <property file="${built-clean.properties}" prefix="already.built.clean."/>
1038        <antcall target="-warn-already-built-clean"/>
1039        <propertyfile file="${built-clean.properties}">
1040            <entry key="${basedir}" value=""/>
1041        </propertyfile>
1042        <antcall target="-maybe-call-dep">
1043            <param name="call.built.properties" value="${built-clean.properties}"/>
1044            <param location="${project.JFTable}" name="call.subproject"/>
1045            <param location="${project.JFTable}/build.xml" name="call.script"/>
1046            <param name="call.target" value="clean"/>
1047            <param name="transfer.built-clean.properties" value="${built-clean.properties}"/>
1048        </antcall>
1049        <antcall target="-maybe-call-dep">
1050            <param name="call.built.properties" value="${built-clean.properties}"/>
1051            <param location="${project.Postak}" name="call.subproject"/>
1052            <param location="${project.Postak}/build.xml" name="call.script"/>
1053            <param name="call.target" value="clean"/>
1054            <param name="transfer.built-clean.properties" value="${built-clean.properties}"/>
1055        </antcall>
1056    </target>
1057    <target depends="init" name="-do-clean">
1058        <delete dir="${build.dir}"/>
1059        <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
1060    </target>
1061    <target name="-post-clean">
1062        <!-- Empty placeholder for easier customization. -->
1063        <!-- You can override this target in the ../build.xml file. -->
1064    </target>
1065    <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
1066    <target name="-check-call-dep">
1067        <property file="${call.built.properties}" prefix="already.built."/>
1068        <condition property="should.call.dep">
1069            <not>
1070                <isset property="already.built.${call.subproject}"/>
1071            </not>
1072        </condition>
1073    </target>
1074    <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
1075        <ant antfile="${call.script}" inheritall="false" target="${call.target}">
1076            <propertyset>
1077                <propertyref prefix="transfer."/>
1078                <mapper from="transfer.*" to="*" type="glob"/>
1079            </propertyset>
1080        </ant>
1081    </target>
1082</project>
Note: See TracBrowser for help on using the browser.