1 <?xml version="1.0" encoding="UTF-8"?>
3 *** GENERATED FROM project.xml - DO NOT EDIT ***
4 *** EDIT ../build.xml INSTEAD ***
6 For the purpose of easier reading the script
7 is divided into following sections:
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.7.1 or higher.">
27 <antversion atleast="1.7.1"/>
31 <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
33 ======================
34 INITIALIZATION SECTION
35 ======================
37 <target name="-pre-init">
38 <!-- Empty placeholder for easier customization. -->
39 <!-- You can override this target in the ../build.xml file. -->
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"/>
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"/>
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"/>
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 <available file="${application.splash}" property="splashscreen.available"/>
60 <condition property="main.class.available">
62 <isset property="main.class"/>
64 <equals arg1="${main.class}" arg2="" trim="true"/>
68 <condition property="manifest.available+main.class">
70 <isset property="manifest.available"/>
71 <isset property="main.class.available"/>
74 <condition property="do.mkdist">
76 <isset property="libs.CopyLibs.classpath"/>
78 <istrue value="${mkdist.disabled}"/>
82 <condition property="manifest.available+main.class+mkdist.available">
84 <istrue value="${manifest.available+main.class}"/>
85 <isset property="do.mkdist"/>
88 <condition property="manifest.available+main.class+mkdist.available+splashscreen.available">
90 <istrue value="${manifest.available+main.class+mkdist.available}"/>
91 <istrue value="${splashscreen.available}"/>
94 <condition property="do.archive">
96 <istrue value="${jar.archive.disabled}"/>
99 <condition property="do.archive+manifest.available">
101 <isset property="manifest.available"/>
102 <istrue value="${do.archive}"/>
105 <condition property="do.archive+manifest.available+main.class">
107 <istrue value="${manifest.available+main.class}"/>
108 <istrue value="${do.archive}"/>
111 <condition property="do.archive+manifest.available+main.class+mkdist.available">
113 <istrue value="${manifest.available+main.class+mkdist.available}"/>
114 <istrue value="${do.archive}"/>
117 <condition property="do.archive+manifest.available+main.class+mkdist.available+splashscreen.available">
119 <istrue value="${manifest.available+main.class+mkdist.available+splashscreen.available}"/>
120 <istrue value="${do.archive}"/>
123 <condition property="have.tests">
125 <available file="${test.src.dir}"/>
128 <condition property="have.sources">
130 <available file="${src.dir}"/>
133 <condition property="netbeans.home+have.tests">
135 <isset property="netbeans.home"/>
136 <isset property="have.tests"/>
139 <condition property="no.javadoc.preview">
141 <isset property="javadoc.preview"/>
142 <isfalse value="${javadoc.preview}"/>
145 <property name="run.jvmargs" value=""/>
146 <property name="javac.compilerargs" value=""/>
147 <property name="work.dir" value="${basedir}"/>
148 <condition property="no.deps">
150 <istrue value="${no.dependencies}"/>
153 <property name="javac.debug" value="true"/>
154 <property name="javadoc.preview" value="true"/>
155 <property name="application.args" value=""/>
156 <property name="source.encoding" value="${file.encoding}"/>
157 <property name="runtime.encoding" value="${source.encoding}"/>
158 <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
160 <isset property="javadoc.encoding"/>
162 <equals arg1="${javadoc.encoding}" arg2=""/>
166 <property name="javadoc.encoding.used" value="${source.encoding}"/>
167 <property name="includes" value="**"/>
168 <property name="excludes" value=""/>
169 <property name="do.depend" value="false"/>
170 <condition property="do.depend.true">
171 <istrue value="${do.depend}"/>
173 <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
174 <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
175 <length length="0" string="${endorsed.classpath}" when="greater"/>
177 <property name="javac.fork" value="false"/>
178 <property name="jar.index" value="false"/>
179 <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
181 <target name="-post-init">
182 <!-- Empty placeholder for easier customization. -->
183 <!-- You can override this target in the ../build.xml file. -->
185 <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
186 <fail unless="src.dir">Must set src.dir</fail>
187 <fail unless="test.src.dir">Must set test.src.dir</fail>
188 <fail unless="build.dir">Must set build.dir</fail>
189 <fail unless="dist.dir">Must set dist.dir</fail>
190 <fail unless="build.classes.dir">Must set build.classes.dir</fail>
191 <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
192 <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
193 <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
194 <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
195 <fail unless="dist.jar">Must set dist.jar</fail>
197 <target name="-init-macrodef-property">
198 <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
199 <attribute name="name"/>
200 <attribute name="value"/>
202 <property name="@{name}" value="${@{value}}"/>
206 <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
207 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
208 <attribute default="${src.dir}" name="srcdir"/>
209 <attribute default="${build.classes.dir}" name="destdir"/>
210 <attribute default="${javac.classpath}" name="classpath"/>
211 <attribute default="${javac.processorpath}" name="processorpath"/>
212 <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
213 <attribute default="${includes}" name="includes"/>
214 <attribute default="${excludes}" name="excludes"/>
215 <attribute default="${javac.debug}" name="debug"/>
216 <attribute default="${empty.dir}" name="sourcepath"/>
217 <attribute default="${empty.dir}" name="gensrcdir"/>
218 <element name="customize" optional="true"/>
220 <property location="${build.dir}/empty" name="empty.dir"/>
221 <mkdir dir="${empty.dir}"/>
222 <mkdir dir="@{apgeneratedsrcdir}"/>
223 <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}">
225 <dirset dir="@{gensrcdir}" erroronmissingdir="false">
230 <path path="@{classpath}"/>
232 <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
233 <compilerarg line="${javac.compilerargs}"/>
234 <compilerarg value="-processorpath"/>
235 <compilerarg path="@{processorpath}:${empty.dir}"/>
236 <compilerarg line="${ap.processors.internal}"/>
237 <compilerarg line="${annotation.processing.processor.options}"/>
238 <compilerarg value="-s"/>
239 <compilerarg path="@{apgeneratedsrcdir}"/>
240 <compilerarg line="${ap.proc.none.internal}"/>
246 <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
247 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
248 <attribute default="${src.dir}" name="srcdir"/>
249 <attribute default="${build.classes.dir}" name="destdir"/>
250 <attribute default="${javac.classpath}" name="classpath"/>
251 <attribute default="${javac.processorpath}" name="processorpath"/>
252 <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
253 <attribute default="${includes}" name="includes"/>
254 <attribute default="${excludes}" name="excludes"/>
255 <attribute default="${javac.debug}" name="debug"/>
256 <attribute default="${empty.dir}" name="sourcepath"/>
257 <attribute default="${empty.dir}" name="gensrcdir"/>
258 <element name="customize" optional="true"/>
260 <property location="${build.dir}/empty" name="empty.dir"/>
261 <mkdir dir="${empty.dir}"/>
262 <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}">
264 <dirset dir="@{gensrcdir}" erroronmissingdir="false">
269 <path path="@{classpath}"/>
271 <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
272 <compilerarg line="${javac.compilerargs}"/>
278 <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
279 <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
280 <attribute default="${src.dir}" name="srcdir"/>
281 <attribute default="${build.classes.dir}" name="destdir"/>
282 <attribute default="${javac.classpath}" name="classpath"/>
284 <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
286 <path path="@{classpath}"/>
291 <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
292 <attribute default="${build.classes.dir}" name="destdir"/>
294 <fail unless="javac.includes">Must set javac.includes</fail>
295 <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
297 <filelist dir="@{destdir}" files="${javac.includes}"/>
299 <globmapper from="*.java" to="*.class"/>
301 <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
302 <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
304 <files includesfile="${javac.includesfile.binary}"/>
306 <delete file="${javac.includesfile.binary}"/>
310 <target name="-init-macrodef-junit">
311 <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
312 <attribute default="${includes}" name="includes"/>
313 <attribute default="${excludes}" name="excludes"/>
314 <attribute default="**" name="testincludes"/>
316 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${build.dir}">
317 <batchtest todir="${build.test.results.dir}">
318 <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
319 <filename name="@{testincludes}"/>
323 <path path="${run.test.classpath}"/>
326 <propertyref prefix="test-sys-prop."/>
327 <mapper from="test-sys-prop.*" to="*" type="glob"/>
329 <formatter type="brief" usefile="false"/>
330 <formatter type="xml"/>
331 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
332 <jvmarg line="${run.jvmargs}"/>
337 <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
338 <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
339 <attribute default="${main.class}" name="name"/>
340 <attribute default="${debug.classpath}" name="classpath"/>
341 <attribute default="" name="stopclassname"/>
343 <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
345 <path path="@{classpath}"/>
350 <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
351 <attribute default="${build.classes.dir}" name="dir"/>
354 <fileset dir="@{dir}" includes="${fix.classes}">
355 <include name="${fix.includes}*.class"/>
361 <target name="-init-debug-args">
362 <property name="version-output" value="java version "${ant.java.version}"/>
363 <condition property="have-jdk-older-than-1.4">
365 <contains string="${version-output}" substring="java version "1.0"/>
366 <contains string="${version-output}" substring="java version "1.1"/>
367 <contains string="${version-output}" substring="java version "1.2"/>
368 <contains string="${version-output}" substring="java version "1.3"/>
371 <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
372 <istrue value="${have-jdk-older-than-1.4}"/>
374 <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
375 <os family="windows"/>
377 <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
378 <isset property="debug.transport"/>
381 <target depends="-init-debug-args" name="-init-macrodef-debug">
382 <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
383 <attribute default="${main.class}" name="classname"/>
384 <attribute default="${debug.classpath}" name="classpath"/>
385 <element name="customize" optional="true"/>
387 <java classname="@{classname}" dir="${work.dir}" fork="true">
388 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
389 <jvmarg line="${debug-args-line}"/>
390 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
391 <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
392 <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
393 <jvmarg line="${run.jvmargs}"/>
395 <path path="@{classpath}"/>
398 <propertyref prefix="run-sys-prop."/>
399 <mapper from="run-sys-prop.*" to="*" type="glob"/>
406 <target name="-init-macrodef-java">
407 <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
408 <attribute default="${main.class}" name="classname"/>
409 <attribute default="${run.classpath}" name="classpath"/>
410 <element name="customize" optional="true"/>
412 <java classname="@{classname}" dir="${work.dir}" fork="true">
413 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
414 <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
415 <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
416 <jvmarg line="${run.jvmargs}"/>
418 <path path="@{classpath}"/>
421 <propertyref prefix="run-sys-prop."/>
422 <mapper from="run-sys-prop.*" to="*" type="glob"/>
429 <target name="-init-macrodef-copylibs">
430 <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">
431 <element name="customize" optional="true"/>
433 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
434 <pathconvert property="run.classpath.without.build.classes.dir">
435 <path path="${run.classpath}"/>
436 <map from="${build.classes.dir.resolved}" to=""/>
438 <pathconvert pathsep=" " property="jar.classpath">
439 <path path="${run.classpath.without.build.classes.dir}"/>
442 <globmapper from="*" to="lib/*"/>
445 <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
446 <copylibs compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
447 <fileset dir="${build.classes.dir}"/>
449 <attribute name="Class-Path" value="${jar.classpath}"/>
456 <target name="-init-presetdef-jar">
457 <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
458 <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">
459 <j2seproject1:fileset dir="${build.classes.dir}"/>
463 <target name="-init-ap-cmdline-properties">
464 <property name="annotation.processing.enabled" value="true"/>
465 <property name="annotation.processing.processors.list" value=""/>
466 <property name="annotation.processing.processor.options" value=""/>
467 <property name="annotation.processing.run.all.processors" value="true"/>
468 <property name="javac.processorpath" value="${javac.classpath}"/>
469 <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
470 <condition property="ap.supported.internal" value="true">
472 <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
476 <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
477 <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
478 <isfalse value="${annotation.processing.run.all.processors}"/>
480 <condition else="" property="ap.proc.none.internal" value="-proc:none">
481 <isfalse value="${annotation.processing.enabled}"/>
484 <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
485 <property name="ap.cmd.line.internal" value=""/>
487 <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"/>
493 <target name="-deps-jar-init" unless="built-jar.properties">
494 <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>
495 <delete file="${built-jar.properties}" quiet="true"/>
497 <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
498 <echo level="warn" message="Cycle detected: SuperPostak was already built"/>
500 <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
501 <mkdir dir="${build.dir}"/>
502 <touch file="${built-jar.properties}" verbose="false"/>
503 <property file="${built-jar.properties}" prefix="already.built.jar."/>
504 <antcall target="-warn-already-built-jar"/>
505 <propertyfile file="${built-jar.properties}">
506 <entry key="${basedir}" value=""/>
508 <antcall target="-maybe-call-dep">
509 <param name="call.built.properties" value="${built-jar.properties}"/>
510 <param location="${project.JFTable}" name="call.subproject"/>
511 <param location="${project.JFTable}/build.xml" name="call.script"/>
512 <param name="call.target" value="jar"/>
513 <param name="transfer.built-jar.properties" value="${built-jar.properties}"/>
515 <antcall target="-maybe-call-dep">
516 <param name="call.built.properties" value="${built-jar.properties}"/>
517 <param location="${project.Postak}" name="call.subproject"/>
518 <param location="${project.Postak}/build.xml" name="call.script"/>
519 <param name="call.target" value="jar"/>
520 <param name="transfer.built-jar.properties" value="${built-jar.properties}"/>
523 <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
524 <target depends="init" name="-check-automatic-build">
525 <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
527 <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
528 <antcall target="clean"/>
530 <target depends="init,deps-jar" name="-pre-pre-compile">
531 <mkdir dir="${build.classes.dir}"/>
533 <target name="-pre-compile">
534 <!-- Empty placeholder for easier customization. -->
535 <!-- You can override this target in the ../build.xml file. -->
537 <target if="do.depend.true" name="-compile-depend">
538 <pathconvert property="build.generated.subdirs">
539 <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
543 <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>
545 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">
546 <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
547 <copy todir="${build.classes.dir}">
548 <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
551 <target if="has.persistence.xml" name="-copy-persistence-xml">
552 <mkdir dir="${build.classes.dir}/META-INF"/>
553 <copy todir="${build.classes.dir}/META-INF">
554 <fileset dir="${meta.inf.dir}" includes="persistence.xml"/>
557 <target name="-post-compile">
558 <!-- Empty placeholder for easier customization. -->
559 <!-- You can override this target in the ../build.xml file. -->
561 <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
562 <target name="-pre-compile-single">
563 <!-- Empty placeholder for easier customization. -->
564 <!-- You can override this target in the ../build.xml file. -->
566 <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
567 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
568 <j2seproject3:force-recompile/>
569 <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>
571 <target name="-post-compile-single">
572 <!-- Empty placeholder for easier customization. -->
573 <!-- You can override this target in the ../build.xml file. -->
575 <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
581 <target depends="init" name="-pre-pre-jar">
582 <dirname file="${dist.jar}" property="dist.jar.dir"/>
583 <mkdir dir="${dist.jar.dir}"/>
585 <target name="-pre-jar">
586 <!-- Empty placeholder for easier customization. -->
587 <!-- You can override this target in the ../build.xml file. -->
589 <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive" name="-do-jar-without-manifest" unless="manifest.available">
592 <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class">
593 <j2seproject1:jar manifest="${manifest.file}"/>
595 <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">
596 <j2seproject1:jar manifest="${manifest.file}">
597 <j2seproject1:manifest>
598 <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
599 </j2seproject1:manifest>
601 <echo>To run this application from the command line without Ant, try:</echo>
602 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
603 <property location="${dist.jar}" name="dist.jar.resolved"/>
604 <pathconvert property="run.classpath.with.dist.jar">
605 <path path="${run.classpath}"/>
606 <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
608 <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
610 <target depends="init,compile,-pre-pre-jar,-pre-jar,-init-macrodef-copylibs" if="do.archive+manifest.available+main.class+mkdist.available+splashscreen.available" name="-do-jar-with-libraries-and-splashscreen">
611 <basename file="${application.splash}" property="splashscreen.basename"/>
612 <mkdir dir="${build.classes.dir}/META-INF"/>
613 <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
614 <j2seproject3:copylibs>
616 <attribute name="Main-Class" value="${main.class}"/>
617 <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
619 </j2seproject3:copylibs>
620 <echo>To run this application from the command line without Ant, try:</echo>
621 <property location="${dist.jar}" name="dist.jar.resolved"/>
622 <echo>java -jar "${dist.jar.resolved}"</echo>
624 <target depends="init,compile,-pre-pre-jar,-pre-jar,-init-macrodef-copylibs" if="do.archive+manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries" unless="splashscreen.available">
625 <j2seproject3:copylibs>
627 <attribute name="Main-Class" value="${main.class}"/>
629 </j2seproject3:copylibs>
630 <echo>To run this application from the command line without Ant, try:</echo>
631 <property location="${dist.jar}" name="dist.jar.resolved"/>
632 <echo>java -jar "${dist.jar.resolved}"</echo>
634 <target name="-post-jar">
635 <!-- Empty placeholder for easier customization. -->
636 <!-- You can override this target in the ../build.xml file. -->
638 <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries-and-splashscreen,-do-jar-with-libraries,-post-jar,jnlp" description="Build JAR." name="jar"/>
644 <target depends="init,compile" description="Run a main class." name="run">
647 <arg line="${application.args}"/>
651 <target name="-do-not-recompile">
652 <property name="javac.includes.binary" value=""/>
654 <target depends="init,compile-single" name="run-single">
655 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
656 <j2seproject1:java classname="${run.class}"/>
658 <target depends="init,compile-test-single" name="run-test-with-main">
659 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
660 <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
667 <target depends="init" if="netbeans.home" name="-debug-start-debugger">
668 <j2seproject1:nbjpdastart name="${debug.class}"/>
670 <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
671 <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
673 <target depends="init,compile" name="-debug-start-debuggee">
676 <arg line="${application.args}"/>
678 </j2seproject3:debug>
680 <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
681 <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
682 <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
684 <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
685 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
686 <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
687 <j2seproject3:debug classname="${debug.class}"/>
689 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
690 <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
691 <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
692 <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
694 <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
695 <target depends="init" name="-pre-debug-fix">
696 <fail unless="fix.includes">Must set fix.includes</fail>
697 <property name="javac.includes" value="${fix.includes}.java"/>
699 <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
700 <j2seproject1:nbjpdareload/>
702 <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
708 <target depends="init" if="have.sources" name="-javadoc-build">
709 <mkdir dir="${dist.javadoc.dir}"/>
710 <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}">
712 <path path="${javac.classpath}"/>
714 <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
715 <filename name="**/*.java"/>
717 <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
718 <include name="**/*.java"/>
721 <copy todir="${dist.javadoc.dir}">
722 <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
723 <filename name="**/doc-files/**"/>
725 <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
726 <include name="**/doc-files/**"/>
730 <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
731 <nbbrowse file="${dist.javadoc.dir}/index.html"/>
733 <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
735 =========================
736 JUNIT COMPILATION SECTION
737 =========================
739 <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
740 <mkdir dir="${build.test.classes.dir}"/>
742 <target name="-pre-compile-test">
743 <!-- Empty placeholder for easier customization. -->
744 <!-- You can override this target in the ../build.xml file. -->
746 <target if="do.depend.true" name="-compile-test-depend">
747 <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
749 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
750 <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}"/>
751 <copy todir="${build.test.classes.dir}">
752 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
755 <target name="-post-compile-test">
756 <!-- Empty placeholder for easier customization. -->
757 <!-- You can override this target in the ../build.xml file. -->
759 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
760 <target name="-pre-compile-test-single">
761 <!-- Empty placeholder for easier customization. -->
762 <!-- You can override this target in the ../build.xml file. -->
764 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
765 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
766 <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
767 <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}"/>
768 <copy todir="${build.test.classes.dir}">
769 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
772 <target name="-post-compile-test-single">
773 <!-- Empty placeholder for easier customization. -->
774 <!-- You can override this target in the ../build.xml file. -->
776 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
778 =======================
779 JUNIT EXECUTION SECTION
780 =======================
782 <target depends="init" if="have.tests" name="-pre-test-run">
783 <mkdir dir="${build.test.results.dir}"/>
785 <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
786 <j2seproject3:junit testincludes="**/*Test.java"/>
788 <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
789 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
791 <target depends="init" if="have.tests" name="test-report"/>
792 <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
793 <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
794 <target depends="init" if="have.tests" name="-pre-test-run-single">
795 <mkdir dir="${build.test.results.dir}"/>
797 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
798 <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
799 <j2seproject3:junit excludes="" includes="${test.includes}"/>
801 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
802 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
804 <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"/>
806 =======================
807 JUNIT DEBUGGING SECTION
808 =======================
810 <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
811 <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
812 <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
813 <delete file="${test.report.file}"/>
814 <mkdir dir="${build.test.results.dir}"/>
815 <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}">
818 <propertyref prefix="test-sys-prop."/>
819 <mapper from="test-sys-prop.*" to="*" type="glob"/>
821 <arg value="${test.class}"/>
822 <arg value="showoutput=true"/>
823 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
824 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
826 </j2seproject3:debug>
828 <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
829 <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
831 <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
832 <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
833 <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
835 <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
837 =========================
838 APPLET EXECUTION SECTION
839 =========================
841 <target depends="init,compile-single" name="run-applet">
842 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
843 <j2seproject1:java classname="sun.applet.AppletViewer">
845 <arg value="${applet.url}"/>
850 =========================
851 APPLET DEBUGGING SECTION
852 =========================
854 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
855 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
856 <j2seproject3:debug classname="sun.applet.AppletViewer">
858 <arg value="${applet.url}"/>
860 </j2seproject3:debug>
862 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
868 <target name="-deps-clean-init" unless="built-clean.properties">
869 <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>
870 <delete file="${built-clean.properties}" quiet="true"/>
872 <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
873 <echo level="warn" message="Cycle detected: SuperPostak was already built"/>
875 <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
876 <mkdir dir="${build.dir}"/>
877 <touch file="${built-clean.properties}" verbose="false"/>
878 <property file="${built-clean.properties}" prefix="already.built.clean."/>
879 <antcall target="-warn-already-built-clean"/>
880 <propertyfile file="${built-clean.properties}">
881 <entry key="${basedir}" value=""/>
883 <antcall target="-maybe-call-dep">
884 <param name="call.built.properties" value="${built-clean.properties}"/>
885 <param location="${project.JFTable}" name="call.subproject"/>
886 <param location="${project.JFTable}/build.xml" name="call.script"/>
887 <param name="call.target" value="clean"/>
888 <param name="transfer.built-clean.properties" value="${built-clean.properties}"/>
890 <antcall target="-maybe-call-dep">
891 <param name="call.built.properties" value="${built-clean.properties}"/>
892 <param location="${project.Postak}" name="call.subproject"/>
893 <param location="${project.Postak}/build.xml" name="call.script"/>
894 <param name="call.target" value="clean"/>
895 <param name="transfer.built-clean.properties" value="${built-clean.properties}"/>
898 <target depends="init" name="-do-clean">
899 <delete dir="${build.dir}"/>
900 <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
902 <target name="-post-clean">
903 <!-- Empty placeholder for easier customization. -->
904 <!-- You can override this target in the ../build.xml file. -->
906 <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
907 <target name="-check-call-dep">
908 <property file="${call.built.properties}" prefix="already.built."/>
909 <condition property="should.call.dep">
911 <isset property="already.built.${call.subproject}"/>
915 <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
916 <ant antfile="${call.script}" inheritall="false" target="${call.target}">
918 <propertyref prefix="transfer."/>
919 <mapper from="transfer.*" to="*" type="glob"/>