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