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