java/rozsirene-atributy-jedit/nbproject/build-impl.xml
author František Kučera <franta-hg@frantovo.cz>
Mon, 11 Dec 2023 00:28:30 +0100
branchv_0
changeset 28 c2ffda907125
parent 26 706d4c013bf1
permissions -rw-r--r--
oprava názvu balíčku
franta-hg@18
     1
<?xml version="1.0" encoding="UTF-8"?>
franta-hg@18
     2
<!--
franta-hg@18
     3
*** GENERATED FROM project.xml - DO NOT EDIT  ***
franta-hg@18
     4
***         EDIT ../build.xml INSTEAD         ***
franta-hg@18
     5
franta-hg@18
     6
For the purpose of easier reading the script
franta-hg@18
     7
is divided into following sections:
franta-hg@18
     8
franta-hg@18
     9
  - initialization
franta-hg@18
    10
  - compilation
franta-hg@18
    11
  - jar
franta-hg@18
    12
  - execution
franta-hg@18
    13
  - debugging
franta-hg@18
    14
  - javadoc
franta-hg@26
    15
  - test compilation
franta-hg@26
    16
  - test execution
franta-hg@26
    17
  - test debugging
franta-hg@18
    18
  - applet
franta-hg@18
    19
  - cleanup
franta-hg@18
    20
franta-hg@18
    21
        -->
franta-hg@18
    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">
franta-hg@18
    23
    <fail message="Please build using Ant 1.8.0 or higher.">
franta-hg@18
    24
        <condition>
franta-hg@18
    25
            <not>
franta-hg@18
    26
                <antversion atleast="1.8.0"/>
franta-hg@18
    27
            </not>
franta-hg@18
    28
        </condition>
franta-hg@18
    29
    </fail>
franta-hg@18
    30
    <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
franta-hg@18
    31
    <!-- 
franta-hg@18
    32
                ======================
franta-hg@18
    33
                INITIALIZATION SECTION 
franta-hg@18
    34
                ======================
franta-hg@18
    35
            -->
franta-hg@18
    36
    <target name="-pre-init">
franta-hg@18
    37
        <!-- Empty placeholder for easier customization. -->
franta-hg@18
    38
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@18
    39
    </target>
franta-hg@18
    40
    <target depends="-pre-init" name="-init-private">
franta-hg@18
    41
        <property file="nbproject/private/config.properties"/>
franta-hg@18
    42
        <property file="nbproject/private/configs/${config}.properties"/>
franta-hg@18
    43
        <property file="nbproject/private/private.properties"/>
franta-hg@18
    44
    </target>
franta-hg@18
    45
    <target depends="-pre-init,-init-private" name="-init-user">
franta-hg@18
    46
        <property file="${user.properties.file}"/>
franta-hg@18
    47
        <!-- The two properties below are usually overridden -->
franta-hg@18
    48
        <!-- by the active platform. Just a fallback. -->
franta-hg@26
    49
        <property name="default.javac.source" value="1.6"/>
franta-hg@26
    50
        <property name="default.javac.target" value="1.6"/>
franta-hg@18
    51
    </target>
franta-hg@18
    52
    <target depends="-pre-init,-init-private,-init-user" name="-init-project">
franta-hg@18
    53
        <property file="nbproject/configs/${config}.properties"/>
franta-hg@18
    54
        <property file="nbproject/project.properties"/>
franta-hg@18
    55
    </target>
franta-hg@18
    56
    <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
franta-hg@26
    57
        <property name="platform.java" value="${java.home}/bin/java"/>
franta-hg@18
    58
        <available file="${manifest.file}" property="manifest.available"/>
franta-hg@18
    59
        <condition property="splashscreen.available">
franta-hg@18
    60
            <and>
franta-hg@18
    61
                <not>
franta-hg@18
    62
                    <equals arg1="${application.splash}" arg2="" trim="true"/>
franta-hg@18
    63
                </not>
franta-hg@18
    64
                <available file="${application.splash}"/>
franta-hg@18
    65
            </and>
franta-hg@18
    66
        </condition>
franta-hg@18
    67
        <condition property="main.class.available">
franta-hg@18
    68
            <and>
franta-hg@18
    69
                <isset property="main.class"/>
franta-hg@18
    70
                <not>
franta-hg@18
    71
                    <equals arg1="${main.class}" arg2="" trim="true"/>
franta-hg@18
    72
                </not>
franta-hg@18
    73
            </and>
franta-hg@18
    74
        </condition>
franta-hg@26
    75
        <condition property="profile.available">
franta-hg@18
    76
            <and>
franta-hg@26
    77
                <isset property="javac.profile"/>
franta-hg@26
    78
                <length length="0" string="${javac.profile}" when="greater"/>
franta-hg@26
    79
                <matches pattern="((1\.[89])|9)(\..*)?" string="${javac.source}"/>
franta-hg@18
    80
            </and>
franta-hg@18
    81
        </condition>
franta-hg@18
    82
        <condition property="do.archive">
franta-hg@26
    83
            <or>
franta-hg@26
    84
                <not>
franta-hg@26
    85
                    <istrue value="${jar.archive.disabled}"/>
franta-hg@26
    86
                </not>
franta-hg@26
    87
                <istrue value="${not.archive.disabled}"/>
franta-hg@26
    88
            </or>
franta-hg@18
    89
        </condition>
franta-hg@18
    90
        <condition property="do.mkdist">
franta-hg@18
    91
            <and>
franta-hg@18
    92
                <isset property="do.archive"/>
franta-hg@18
    93
                <isset property="libs.CopyLibs.classpath"/>
franta-hg@18
    94
                <not>
franta-hg@18
    95
                    <istrue value="${mkdist.disabled}"/>
franta-hg@18
    96
                </not>
franta-hg@18
    97
            </and>
franta-hg@18
    98
        </condition>
franta-hg@18
    99
        <condition property="do.archive+manifest.available">
franta-hg@18
   100
            <and>
franta-hg@18
   101
                <isset property="manifest.available"/>
franta-hg@18
   102
                <istrue value="${do.archive}"/>
franta-hg@18
   103
            </and>
franta-hg@18
   104
        </condition>
franta-hg@18
   105
        <condition property="do.archive+main.class.available">
franta-hg@18
   106
            <and>
franta-hg@18
   107
                <isset property="main.class.available"/>
franta-hg@18
   108
                <istrue value="${do.archive}"/>
franta-hg@18
   109
            </and>
franta-hg@18
   110
        </condition>
franta-hg@18
   111
        <condition property="do.archive+splashscreen.available">
franta-hg@18
   112
            <and>
franta-hg@18
   113
                <isset property="splashscreen.available"/>
franta-hg@18
   114
                <istrue value="${do.archive}"/>
franta-hg@18
   115
            </and>
franta-hg@18
   116
        </condition>
franta-hg@26
   117
        <condition property="do.archive+profile.available">
franta-hg@18
   118
            <and>
franta-hg@26
   119
                <isset property="profile.available"/>
franta-hg@18
   120
                <istrue value="${do.archive}"/>
franta-hg@18
   121
            </and>
franta-hg@18
   122
        </condition>
franta-hg@18
   123
        <condition property="have.tests">
franta-hg@18
   124
            <or>
franta-hg@18
   125
                <available file="${test.src.dir}"/>
franta-hg@18
   126
            </or>
franta-hg@18
   127
        </condition>
franta-hg@18
   128
        <condition property="have.sources">
franta-hg@18
   129
            <or>
franta-hg@18
   130
                <available file="${src.dir}"/>
franta-hg@18
   131
            </or>
franta-hg@18
   132
        </condition>
franta-hg@18
   133
        <condition property="netbeans.home+have.tests">
franta-hg@18
   134
            <and>
franta-hg@18
   135
                <isset property="netbeans.home"/>
franta-hg@18
   136
                <isset property="have.tests"/>
franta-hg@18
   137
            </and>
franta-hg@18
   138
        </condition>
franta-hg@18
   139
        <condition property="no.javadoc.preview">
franta-hg@18
   140
            <and>
franta-hg@18
   141
                <isset property="javadoc.preview"/>
franta-hg@18
   142
                <isfalse value="${javadoc.preview}"/>
franta-hg@18
   143
            </and>
franta-hg@18
   144
        </condition>
franta-hg@18
   145
        <property name="run.jvmargs" value=""/>
franta-hg@26
   146
        <property name="run.jvmargs.ide" value=""/>
franta-hg@18
   147
        <property name="javac.compilerargs" value=""/>
franta-hg@18
   148
        <property name="work.dir" value="${basedir}"/>
franta-hg@18
   149
        <condition property="no.deps">
franta-hg@18
   150
            <and>
franta-hg@18
   151
                <istrue value="${no.dependencies}"/>
franta-hg@18
   152
            </and>
franta-hg@18
   153
        </condition>
franta-hg@18
   154
        <property name="javac.debug" value="true"/>
franta-hg@18
   155
        <property name="javadoc.preview" value="true"/>
franta-hg@18
   156
        <property name="application.args" value=""/>
franta-hg@18
   157
        <property name="source.encoding" value="${file.encoding}"/>
franta-hg@18
   158
        <property name="runtime.encoding" value="${source.encoding}"/>
franta-hg@26
   159
        <property name="manifest.encoding" value="${source.encoding}"/>
franta-hg@18
   160
        <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
franta-hg@18
   161
            <and>
franta-hg@18
   162
                <isset property="javadoc.encoding"/>
franta-hg@18
   163
                <not>
franta-hg@18
   164
                    <equals arg1="${javadoc.encoding}" arg2=""/>
franta-hg@18
   165
                </not>
franta-hg@18
   166
            </and>
franta-hg@18
   167
        </condition>
franta-hg@18
   168
        <property name="javadoc.encoding.used" value="${source.encoding}"/>
franta-hg@18
   169
        <property name="includes" value="**"/>
franta-hg@18
   170
        <property name="excludes" value=""/>
franta-hg@18
   171
        <property name="do.depend" value="false"/>
franta-hg@18
   172
        <condition property="do.depend.true">
franta-hg@18
   173
            <istrue value="${do.depend}"/>
franta-hg@18
   174
        </condition>
franta-hg@18
   175
        <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
franta-hg@18
   176
        <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
franta-hg@26
   177
            <and>
franta-hg@26
   178
                <isset property="endorsed.classpath"/>
franta-hg@26
   179
                <not>
franta-hg@26
   180
                    <equals arg1="${endorsed.classpath}" arg2="" trim="true"/>
franta-hg@26
   181
                </not>
franta-hg@26
   182
            </and>
franta-hg@26
   183
        </condition>
franta-hg@26
   184
        <condition else="" property="javac.profile.cmd.line.arg" value="-profile ${javac.profile}">
franta-hg@26
   185
            <isset property="profile.available"/>
franta-hg@18
   186
        </condition>
franta-hg@18
   187
        <condition else="false" property="jdkBug6558476">
franta-hg@18
   188
            <and>
franta-hg@18
   189
                <matches pattern="1\.[56]" string="${java.specification.version}"/>
franta-hg@18
   190
                <not>
franta-hg@18
   191
                    <os family="unix"/>
franta-hg@18
   192
                </not>
franta-hg@18
   193
            </and>
franta-hg@18
   194
        </condition>
franta-hg@26
   195
        <condition else="false" property="javac.fork">
franta-hg@26
   196
            <or>
franta-hg@26
   197
                <istrue value="${jdkBug6558476}"/>
franta-hg@26
   198
                <istrue value="${javac.external.vm}"/>
franta-hg@26
   199
            </or>
franta-hg@26
   200
        </condition>
franta-hg@18
   201
        <property name="jar.index" value="false"/>
franta-hg@18
   202
        <property name="jar.index.metainf" value="${jar.index}"/>
franta-hg@18
   203
        <property name="copylibs.rebase" value="true"/>
franta-hg@18
   204
        <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
franta-hg@26
   205
        <condition property="junit.available">
franta-hg@26
   206
            <or>
franta-hg@26
   207
                <available classname="org.junit.Test" classpath="${run.test.classpath}"/>
franta-hg@26
   208
                <available classname="junit.framework.Test" classpath="${run.test.classpath}"/>
franta-hg@26
   209
            </or>
franta-hg@26
   210
        </condition>
franta-hg@26
   211
        <condition property="testng.available">
franta-hg@26
   212
            <available classname="org.testng.annotations.Test" classpath="${run.test.classpath}"/>
franta-hg@26
   213
        </condition>
franta-hg@26
   214
        <condition property="junit+testng.available">
franta-hg@26
   215
            <and>
franta-hg@26
   216
                <istrue value="${junit.available}"/>
franta-hg@26
   217
                <istrue value="${testng.available}"/>
franta-hg@26
   218
            </and>
franta-hg@26
   219
        </condition>
franta-hg@26
   220
        <condition else="testng" property="testng.mode" value="mixed">
franta-hg@26
   221
            <istrue value="${junit+testng.available}"/>
franta-hg@26
   222
        </condition>
franta-hg@26
   223
        <condition else="" property="testng.debug.mode" value="-mixed">
franta-hg@26
   224
            <istrue value="${junit+testng.available}"/>
franta-hg@26
   225
        </condition>
franta-hg@26
   226
        <property name="java.failonerror" value="true"/>
franta-hg@18
   227
    </target>
franta-hg@18
   228
    <target name="-post-init">
franta-hg@18
   229
        <!-- Empty placeholder for easier customization. -->
franta-hg@18
   230
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@18
   231
    </target>
franta-hg@18
   232
    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
franta-hg@18
   233
        <fail unless="src.dir">Must set src.dir</fail>
franta-hg@18
   234
        <fail unless="test.src.dir">Must set test.src.dir</fail>
franta-hg@18
   235
        <fail unless="build.dir">Must set build.dir</fail>
franta-hg@18
   236
        <fail unless="dist.dir">Must set dist.dir</fail>
franta-hg@18
   237
        <fail unless="build.classes.dir">Must set build.classes.dir</fail>
franta-hg@18
   238
        <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
franta-hg@18
   239
        <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
franta-hg@18
   240
        <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
franta-hg@18
   241
        <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
franta-hg@18
   242
        <fail unless="dist.jar">Must set dist.jar</fail>
franta-hg@18
   243
    </target>
franta-hg@18
   244
    <target name="-init-macrodef-property">
franta-hg@18
   245
        <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
franta-hg@18
   246
            <attribute name="name"/>
franta-hg@18
   247
            <attribute name="value"/>
franta-hg@18
   248
            <sequential>
franta-hg@18
   249
                <property name="@{name}" value="${@{value}}"/>
franta-hg@18
   250
            </sequential>
franta-hg@18
   251
        </macrodef>
franta-hg@18
   252
    </target>
franta-hg@18
   253
    <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
franta-hg@18
   254
        <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
franta-hg@18
   255
            <attribute default="${src.dir}" name="srcdir"/>
franta-hg@18
   256
            <attribute default="${build.classes.dir}" name="destdir"/>
franta-hg@18
   257
            <attribute default="${javac.classpath}" name="classpath"/>
franta-hg@18
   258
            <attribute default="${javac.processorpath}" name="processorpath"/>
franta-hg@18
   259
            <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
franta-hg@18
   260
            <attribute default="${includes}" name="includes"/>
franta-hg@18
   261
            <attribute default="${excludes}" name="excludes"/>
franta-hg@18
   262
            <attribute default="${javac.debug}" name="debug"/>
franta-hg@18
   263
            <attribute default="${empty.dir}" name="sourcepath"/>
franta-hg@18
   264
            <attribute default="${empty.dir}" name="gensrcdir"/>
franta-hg@18
   265
            <element name="customize" optional="true"/>
franta-hg@18
   266
            <sequential>
franta-hg@18
   267
                <property location="${build.dir}/empty" name="empty.dir"/>
franta-hg@18
   268
                <mkdir dir="${empty.dir}"/>
franta-hg@18
   269
                <mkdir dir="@{apgeneratedsrcdir}"/>
franta-hg@18
   270
                <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}">
franta-hg@18
   271
                    <src>
franta-hg@18
   272
                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
franta-hg@18
   273
                            <include name="*"/>
franta-hg@18
   274
                        </dirset>
franta-hg@18
   275
                    </src>
franta-hg@18
   276
                    <classpath>
franta-hg@18
   277
                        <path path="@{classpath}"/>
franta-hg@18
   278
                    </classpath>
franta-hg@18
   279
                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
franta-hg@26
   280
                    <compilerarg line="${javac.profile.cmd.line.arg}"/>
franta-hg@18
   281
                    <compilerarg line="${javac.compilerargs}"/>
franta-hg@18
   282
                    <compilerarg value="-processorpath"/>
franta-hg@18
   283
                    <compilerarg path="@{processorpath}:${empty.dir}"/>
franta-hg@18
   284
                    <compilerarg line="${ap.processors.internal}"/>
franta-hg@18
   285
                    <compilerarg line="${annotation.processing.processor.options}"/>
franta-hg@18
   286
                    <compilerarg value="-s"/>
franta-hg@18
   287
                    <compilerarg path="@{apgeneratedsrcdir}"/>
franta-hg@18
   288
                    <compilerarg line="${ap.proc.none.internal}"/>
franta-hg@18
   289
                    <customize/>
franta-hg@18
   290
                </javac>
franta-hg@18
   291
            </sequential>
franta-hg@18
   292
        </macrodef>
franta-hg@18
   293
    </target>
franta-hg@18
   294
    <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
franta-hg@18
   295
        <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
franta-hg@18
   296
            <attribute default="${src.dir}" name="srcdir"/>
franta-hg@18
   297
            <attribute default="${build.classes.dir}" name="destdir"/>
franta-hg@18
   298
            <attribute default="${javac.classpath}" name="classpath"/>
franta-hg@18
   299
            <attribute default="${javac.processorpath}" name="processorpath"/>
franta-hg@18
   300
            <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
franta-hg@18
   301
            <attribute default="${includes}" name="includes"/>
franta-hg@18
   302
            <attribute default="${excludes}" name="excludes"/>
franta-hg@18
   303
            <attribute default="${javac.debug}" name="debug"/>
franta-hg@18
   304
            <attribute default="${empty.dir}" name="sourcepath"/>
franta-hg@18
   305
            <attribute default="${empty.dir}" name="gensrcdir"/>
franta-hg@18
   306
            <element name="customize" optional="true"/>
franta-hg@18
   307
            <sequential>
franta-hg@18
   308
                <property location="${build.dir}/empty" name="empty.dir"/>
franta-hg@18
   309
                <mkdir dir="${empty.dir}"/>
franta-hg@18
   310
                <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}">
franta-hg@18
   311
                    <src>
franta-hg@18
   312
                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
franta-hg@18
   313
                            <include name="*"/>
franta-hg@18
   314
                        </dirset>
franta-hg@18
   315
                    </src>
franta-hg@18
   316
                    <classpath>
franta-hg@18
   317
                        <path path="@{classpath}"/>
franta-hg@18
   318
                    </classpath>
franta-hg@18
   319
                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
franta-hg@26
   320
                    <compilerarg line="${javac.profile.cmd.line.arg}"/>
franta-hg@18
   321
                    <compilerarg line="${javac.compilerargs}"/>
franta-hg@18
   322
                    <customize/>
franta-hg@18
   323
                </javac>
franta-hg@18
   324
            </sequential>
franta-hg@18
   325
        </macrodef>
franta-hg@18
   326
    </target>
franta-hg@18
   327
    <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
franta-hg@18
   328
        <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
franta-hg@18
   329
            <attribute default="${src.dir}" name="srcdir"/>
franta-hg@18
   330
            <attribute default="${build.classes.dir}" name="destdir"/>
franta-hg@18
   331
            <attribute default="${javac.classpath}" name="classpath"/>
franta-hg@18
   332
            <sequential>
franta-hg@18
   333
                <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
franta-hg@18
   334
                    <classpath>
franta-hg@18
   335
                        <path path="@{classpath}"/>
franta-hg@18
   336
                    </classpath>
franta-hg@18
   337
                </depend>
franta-hg@18
   338
            </sequential>
franta-hg@18
   339
        </macrodef>
franta-hg@18
   340
        <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
franta-hg@18
   341
            <attribute default="${build.classes.dir}" name="destdir"/>
franta-hg@18
   342
            <sequential>
franta-hg@18
   343
                <fail unless="javac.includes">Must set javac.includes</fail>
franta-hg@18
   344
                <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
franta-hg@18
   345
                    <path>
franta-hg@18
   346
                        <filelist dir="@{destdir}" files="${javac.includes}"/>
franta-hg@18
   347
                    </path>
franta-hg@18
   348
                    <globmapper from="*.java" to="*.class"/>
franta-hg@18
   349
                </pathconvert>
franta-hg@18
   350
                <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
franta-hg@18
   351
                <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
franta-hg@18
   352
                <delete>
franta-hg@18
   353
                    <files includesfile="${javac.includesfile.binary}"/>
franta-hg@18
   354
                </delete>
franta-hg@18
   355
                <delete>
franta-hg@18
   356
                    <fileset file="${javac.includesfile.binary}"/>
franta-hg@18
   357
                </delete>
franta-hg@18
   358
            </sequential>
franta-hg@18
   359
        </macrodef>
franta-hg@18
   360
    </target>
franta-hg@26
   361
    <target if="${junit.available}" name="-init-macrodef-junit-init">
franta-hg@26
   362
        <condition else="false" property="nb.junit.batch" value="true">
franta-hg@26
   363
            <and>
franta-hg@26
   364
                <istrue value="${junit.available}"/>
franta-hg@26
   365
                <not>
franta-hg@26
   366
                    <isset property="test.method"/>
franta-hg@26
   367
                </not>
franta-hg@26
   368
            </and>
franta-hg@26
   369
        </condition>
franta-hg@26
   370
        <condition else="false" property="nb.junit.single" value="true">
franta-hg@26
   371
            <and>
franta-hg@26
   372
                <istrue value="${junit.available}"/>
franta-hg@26
   373
                <isset property="test.method"/>
franta-hg@26
   374
            </and>
franta-hg@26
   375
        </condition>
franta-hg@26
   376
    </target>
franta-hg@26
   377
    <target name="-init-test-properties">
franta-hg@26
   378
        <property name="test.binaryincludes" value="&lt;nothing&gt;"/>
franta-hg@26
   379
        <property name="test.binarytestincludes" value=""/>
franta-hg@26
   380
        <property name="test.binaryexcludes" value=""/>
franta-hg@26
   381
    </target>
franta-hg@26
   382
    <target if="${nb.junit.single}" name="-init-macrodef-junit-single" unless="${nb.junit.batch}">
franta-hg@18
   383
        <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
franta-hg@18
   384
            <attribute default="${includes}" name="includes"/>
franta-hg@18
   385
            <attribute default="${excludes}" name="excludes"/>
franta-hg@18
   386
            <attribute default="**" name="testincludes"/>
franta-hg@26
   387
            <attribute default="" name="testmethods"/>
franta-hg@26
   388
            <element name="customize" optional="true"/>
franta-hg@26
   389
            <sequential>
franta-hg@26
   390
                <property name="junit.forkmode" value="perTest"/>
franta-hg@26
   391
                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
franta-hg@26
   392
                    <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
franta-hg@26
   393
                    <syspropertyset>
franta-hg@26
   394
                        <propertyref prefix="test-sys-prop."/>
franta-hg@26
   395
                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
franta-hg@26
   396
                    </syspropertyset>
franta-hg@26
   397
                    <formatter type="brief" usefile="false"/>
franta-hg@26
   398
                    <formatter type="xml"/>
franta-hg@26
   399
                    <jvmarg value="-ea"/>
franta-hg@26
   400
                    <customize/>
franta-hg@26
   401
                </junit>
franta-hg@26
   402
            </sequential>
franta-hg@26
   403
        </macrodef>
franta-hg@26
   404
    </target>
franta-hg@26
   405
    <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-batch" unless="${nb.junit.single}">
franta-hg@26
   406
        <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
franta-hg@26
   407
            <attribute default="${includes}" name="includes"/>
franta-hg@26
   408
            <attribute default="${excludes}" name="excludes"/>
franta-hg@26
   409
            <attribute default="**" name="testincludes"/>
franta-hg@26
   410
            <attribute default="" name="testmethods"/>
franta-hg@26
   411
            <element name="customize" optional="true"/>
franta-hg@18
   412
            <sequential>
franta-hg@18
   413
                <property name="junit.forkmode" value="perTest"/>
franta-hg@18
   414
                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
franta-hg@18
   415
                    <batchtest todir="${build.test.results.dir}">
franta-hg@18
   416
                        <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
franta-hg@18
   417
                            <filename name="@{testincludes}"/>
franta-hg@18
   418
                        </fileset>
franta-hg@26
   419
                        <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
franta-hg@26
   420
                            <filename name="${test.binarytestincludes}"/>
franta-hg@26
   421
                        </fileset>
franta-hg@18
   422
                    </batchtest>
franta-hg@18
   423
                    <syspropertyset>
franta-hg@18
   424
                        <propertyref prefix="test-sys-prop."/>
franta-hg@18
   425
                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
franta-hg@18
   426
                    </syspropertyset>
franta-hg@18
   427
                    <formatter type="brief" usefile="false"/>
franta-hg@18
   428
                    <formatter type="xml"/>
franta-hg@18
   429
                    <jvmarg value="-ea"/>
franta-hg@26
   430
                    <customize/>
franta-hg@18
   431
                </junit>
franta-hg@18
   432
            </sequential>
franta-hg@18
   433
        </macrodef>
franta-hg@18
   434
    </target>
franta-hg@26
   435
    <target depends="-init-macrodef-junit-init,-init-macrodef-junit-single, -init-macrodef-junit-batch" if="${junit.available}" name="-init-macrodef-junit"/>
franta-hg@26
   436
    <target if="${testng.available}" name="-init-macrodef-testng">
franta-hg@26
   437
        <macrodef name="testng" uri="http://www.netbeans.org/ns/j2se-project/3">
franta-hg@26
   438
            <attribute default="${includes}" name="includes"/>
franta-hg@26
   439
            <attribute default="${excludes}" name="excludes"/>
franta-hg@26
   440
            <attribute default="**" name="testincludes"/>
franta-hg@26
   441
            <attribute default="" name="testmethods"/>
franta-hg@26
   442
            <element name="customize" optional="true"/>
franta-hg@26
   443
            <sequential>
franta-hg@26
   444
                <condition else="" property="testng.methods.arg" value="@{testincludes}.@{testmethods}">
franta-hg@26
   445
                    <isset property="test.method"/>
franta-hg@26
   446
                </condition>
franta-hg@26
   447
                <union id="test.set">
franta-hg@26
   448
                    <fileset dir="${test.src.dir}" excludes="@{excludes},**/*.xml,${excludes}" includes="@{includes}">
franta-hg@26
   449
                        <filename name="@{testincludes}"/>
franta-hg@26
   450
                    </fileset>
franta-hg@26
   451
                </union>
franta-hg@26
   452
                <taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
franta-hg@26
   453
                <testng classfilesetref="test.set" failureProperty="tests.failed" listeners="org.testng.reporters.VerboseReporter" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="rozsirene-atributy-jedit" testname="TestNG tests" workingDir="${work.dir}">
franta-hg@26
   454
                    <xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
franta-hg@26
   455
                    <propertyset>
franta-hg@26
   456
                        <propertyref prefix="test-sys-prop."/>
franta-hg@26
   457
                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
franta-hg@26
   458
                    </propertyset>
franta-hg@26
   459
                    <customize/>
franta-hg@26
   460
                </testng>
franta-hg@26
   461
            </sequential>
franta-hg@26
   462
        </macrodef>
franta-hg@26
   463
    </target>
franta-hg@26
   464
    <target name="-init-macrodef-test-impl">
franta-hg@26
   465
        <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
franta-hg@26
   466
            <attribute default="${includes}" name="includes"/>
franta-hg@26
   467
            <attribute default="${excludes}" name="excludes"/>
franta-hg@26
   468
            <attribute default="**" name="testincludes"/>
franta-hg@26
   469
            <attribute default="" name="testmethods"/>
franta-hg@26
   470
            <element implicit="true" name="customize" optional="true"/>
franta-hg@26
   471
            <sequential>
franta-hg@26
   472
                <echo>No tests executed.</echo>
franta-hg@26
   473
            </sequential>
franta-hg@26
   474
        </macrodef>
franta-hg@26
   475
    </target>
franta-hg@26
   476
    <target depends="-init-macrodef-junit" if="${junit.available}" name="-init-macrodef-junit-impl">
franta-hg@26
   477
        <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
franta-hg@26
   478
            <attribute default="${includes}" name="includes"/>
franta-hg@26
   479
            <attribute default="${excludes}" name="excludes"/>
franta-hg@26
   480
            <attribute default="**" name="testincludes"/>
franta-hg@26
   481
            <attribute default="" name="testmethods"/>
franta-hg@26
   482
            <element implicit="true" name="customize" optional="true"/>
franta-hg@26
   483
            <sequential>
franta-hg@26
   484
                <j2seproject3:junit excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
franta-hg@26
   485
                    <customize/>
franta-hg@26
   486
                </j2seproject3:junit>
franta-hg@26
   487
            </sequential>
franta-hg@26
   488
        </macrodef>
franta-hg@26
   489
    </target>
franta-hg@26
   490
    <target depends="-init-macrodef-testng" if="${testng.available}" name="-init-macrodef-testng-impl">
franta-hg@26
   491
        <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
franta-hg@26
   492
            <attribute default="${includes}" name="includes"/>
franta-hg@26
   493
            <attribute default="${excludes}" name="excludes"/>
franta-hg@26
   494
            <attribute default="**" name="testincludes"/>
franta-hg@26
   495
            <attribute default="" name="testmethods"/>
franta-hg@26
   496
            <element implicit="true" name="customize" optional="true"/>
franta-hg@26
   497
            <sequential>
franta-hg@26
   498
                <j2seproject3:testng excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
franta-hg@26
   499
                    <customize/>
franta-hg@26
   500
                </j2seproject3:testng>
franta-hg@26
   501
            </sequential>
franta-hg@26
   502
        </macrodef>
franta-hg@26
   503
    </target>
franta-hg@26
   504
    <target depends="-init-macrodef-test-impl,-init-macrodef-junit-impl,-init-macrodef-testng-impl" name="-init-macrodef-test">
franta-hg@26
   505
        <macrodef name="test" uri="http://www.netbeans.org/ns/j2se-project/3">
franta-hg@26
   506
            <attribute default="${includes}" name="includes"/>
franta-hg@26
   507
            <attribute default="${excludes}" name="excludes"/>
franta-hg@26
   508
            <attribute default="**" name="testincludes"/>
franta-hg@26
   509
            <attribute default="" name="testmethods"/>
franta-hg@26
   510
            <sequential>
franta-hg@26
   511
                <j2seproject3:test-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
franta-hg@26
   512
                    <customize>
franta-hg@26
   513
                        <classpath>
franta-hg@26
   514
                            <path path="${run.test.classpath}"/>
franta-hg@26
   515
                        </classpath>
franta-hg@26
   516
                        <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
franta-hg@26
   517
                        <jvmarg line="${run.jvmargs}"/>
franta-hg@26
   518
                        <jvmarg line="${run.jvmargs.ide}"/>
franta-hg@26
   519
                    </customize>
franta-hg@26
   520
                </j2seproject3:test-impl>
franta-hg@26
   521
            </sequential>
franta-hg@26
   522
        </macrodef>
franta-hg@26
   523
    </target>
franta-hg@26
   524
    <target if="${junit.available}" name="-init-macrodef-junit-debug" unless="${nb.junit.batch}">
franta-hg@26
   525
        <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
franta-hg@26
   526
            <attribute default="${includes}" name="includes"/>
franta-hg@26
   527
            <attribute default="${excludes}" name="excludes"/>
franta-hg@26
   528
            <attribute default="**" name="testincludes"/>
franta-hg@26
   529
            <attribute default="" name="testmethods"/>
franta-hg@26
   530
            <element name="customize" optional="true"/>
franta-hg@26
   531
            <sequential>
franta-hg@26
   532
                <property name="junit.forkmode" value="perTest"/>
franta-hg@26
   533
                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
franta-hg@26
   534
                    <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
franta-hg@26
   535
                    <syspropertyset>
franta-hg@26
   536
                        <propertyref prefix="test-sys-prop."/>
franta-hg@26
   537
                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
franta-hg@26
   538
                    </syspropertyset>
franta-hg@26
   539
                    <formatter type="brief" usefile="false"/>
franta-hg@26
   540
                    <formatter type="xml"/>
franta-hg@26
   541
                    <jvmarg value="-ea"/>
franta-hg@26
   542
                    <jvmarg line="${debug-args-line}"/>
franta-hg@26
   543
                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
franta-hg@26
   544
                    <customize/>
franta-hg@26
   545
                </junit>
franta-hg@26
   546
            </sequential>
franta-hg@26
   547
        </macrodef>
franta-hg@26
   548
    </target>
franta-hg@26
   549
    <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-debug-batch">
franta-hg@26
   550
        <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
franta-hg@26
   551
            <attribute default="${includes}" name="includes"/>
franta-hg@26
   552
            <attribute default="${excludes}" name="excludes"/>
franta-hg@26
   553
            <attribute default="**" name="testincludes"/>
franta-hg@26
   554
            <attribute default="" name="testmethods"/>
franta-hg@26
   555
            <element name="customize" optional="true"/>
franta-hg@26
   556
            <sequential>
franta-hg@26
   557
                <property name="junit.forkmode" value="perTest"/>
franta-hg@26
   558
                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
franta-hg@26
   559
                    <batchtest todir="${build.test.results.dir}">
franta-hg@26
   560
                        <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
franta-hg@26
   561
                            <filename name="@{testincludes}"/>
franta-hg@26
   562
                        </fileset>
franta-hg@26
   563
                        <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
franta-hg@26
   564
                            <filename name="${test.binarytestincludes}"/>
franta-hg@26
   565
                        </fileset>
franta-hg@26
   566
                    </batchtest>
franta-hg@26
   567
                    <syspropertyset>
franta-hg@26
   568
                        <propertyref prefix="test-sys-prop."/>
franta-hg@26
   569
                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
franta-hg@26
   570
                    </syspropertyset>
franta-hg@26
   571
                    <formatter type="brief" usefile="false"/>
franta-hg@26
   572
                    <formatter type="xml"/>
franta-hg@26
   573
                    <jvmarg value="-ea"/>
franta-hg@26
   574
                    <jvmarg line="${debug-args-line}"/>
franta-hg@26
   575
                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
franta-hg@26
   576
                    <customize/>
franta-hg@26
   577
                </junit>
franta-hg@26
   578
            </sequential>
franta-hg@26
   579
        </macrodef>
franta-hg@26
   580
    </target>
franta-hg@26
   581
    <target depends="-init-macrodef-junit-debug,-init-macrodef-junit-debug-batch" if="${junit.available}" name="-init-macrodef-junit-debug-impl">
franta-hg@26
   582
        <macrodef name="test-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
franta-hg@26
   583
            <attribute default="${includes}" name="includes"/>
franta-hg@26
   584
            <attribute default="${excludes}" name="excludes"/>
franta-hg@26
   585
            <attribute default="**" name="testincludes"/>
franta-hg@26
   586
            <attribute default="" name="testmethods"/>
franta-hg@26
   587
            <element implicit="true" name="customize" optional="true"/>
franta-hg@26
   588
            <sequential>
franta-hg@26
   589
                <j2seproject3:junit-debug excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
franta-hg@26
   590
                    <customize/>
franta-hg@26
   591
                </j2seproject3:junit-debug>
franta-hg@26
   592
            </sequential>
franta-hg@26
   593
        </macrodef>
franta-hg@26
   594
    </target>
franta-hg@26
   595
    <target if="${testng.available}" name="-init-macrodef-testng-debug">
franta-hg@26
   596
        <macrodef name="testng-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
franta-hg@26
   597
            <attribute default="${main.class}" name="testClass"/>
franta-hg@26
   598
            <attribute default="" name="testMethod"/>
franta-hg@26
   599
            <element name="customize2" optional="true"/>
franta-hg@26
   600
            <sequential>
franta-hg@26
   601
                <condition else="-testclass @{testClass}" property="test.class.or.method" value="-methods @{testClass}.@{testMethod}">
franta-hg@26
   602
                    <isset property="test.method"/>
franta-hg@26
   603
                </condition>
franta-hg@26
   604
                <condition else="-suitename rozsirene-atributy-jedit -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}">
franta-hg@26
   605
                    <matches pattern=".*\.xml" string="@{testClass}"/>
franta-hg@26
   606
                </condition>
franta-hg@26
   607
                <delete dir="${build.test.results.dir}" quiet="true"/>
franta-hg@26
   608
                <mkdir dir="${build.test.results.dir}"/>
franta-hg@26
   609
                <j2seproject3:debug classname="org.testng.TestNG" classpath="${debug.test.classpath}">
franta-hg@26
   610
                    <customize>
franta-hg@26
   611
                        <customize2/>
franta-hg@26
   612
                        <jvmarg value="-ea"/>
franta-hg@26
   613
                        <arg line="${testng.debug.mode}"/>
franta-hg@26
   614
                        <arg line="-d ${build.test.results.dir}"/>
franta-hg@26
   615
                        <arg line="-listener org.testng.reporters.VerboseReporter"/>
franta-hg@26
   616
                        <arg line="${testng.cmd.args}"/>
franta-hg@26
   617
                    </customize>
franta-hg@26
   618
                </j2seproject3:debug>
franta-hg@26
   619
            </sequential>
franta-hg@26
   620
        </macrodef>
franta-hg@26
   621
    </target>
franta-hg@26
   622
    <target depends="-init-macrodef-testng-debug" if="${testng.available}" name="-init-macrodef-testng-debug-impl">
franta-hg@26
   623
        <macrodef name="testng-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
franta-hg@26
   624
            <attribute default="${main.class}" name="testClass"/>
franta-hg@26
   625
            <attribute default="" name="testMethod"/>
franta-hg@26
   626
            <element implicit="true" name="customize2" optional="true"/>
franta-hg@26
   627
            <sequential>
franta-hg@26
   628
                <j2seproject3:testng-debug testClass="@{testClass}" testMethod="@{testMethod}">
franta-hg@26
   629
                    <customize2/>
franta-hg@26
   630
                </j2seproject3:testng-debug>
franta-hg@26
   631
            </sequential>
franta-hg@26
   632
        </macrodef>
franta-hg@26
   633
    </target>
franta-hg@26
   634
    <target depends="-init-macrodef-junit-debug-impl" if="${junit.available}" name="-init-macrodef-test-debug-junit">
franta-hg@26
   635
        <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
franta-hg@26
   636
            <attribute default="${includes}" name="includes"/>
franta-hg@26
   637
            <attribute default="${excludes}" name="excludes"/>
franta-hg@26
   638
            <attribute default="**" name="testincludes"/>
franta-hg@26
   639
            <attribute default="" name="testmethods"/>
franta-hg@26
   640
            <attribute default="${main.class}" name="testClass"/>
franta-hg@26
   641
            <attribute default="" name="testMethod"/>
franta-hg@26
   642
            <sequential>
franta-hg@26
   643
                <j2seproject3:test-debug-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
franta-hg@26
   644
                    <customize>
franta-hg@26
   645
                        <classpath>
franta-hg@26
   646
                            <path path="${run.test.classpath}"/>
franta-hg@26
   647
                        </classpath>
franta-hg@26
   648
                        <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
franta-hg@26
   649
                        <jvmarg line="${run.jvmargs}"/>
franta-hg@26
   650
                        <jvmarg line="${run.jvmargs.ide}"/>
franta-hg@26
   651
                    </customize>
franta-hg@26
   652
                </j2seproject3:test-debug-impl>
franta-hg@26
   653
            </sequential>
franta-hg@26
   654
        </macrodef>
franta-hg@26
   655
    </target>
franta-hg@26
   656
    <target depends="-init-macrodef-testng-debug-impl" if="${testng.available}" name="-init-macrodef-test-debug-testng">
franta-hg@26
   657
        <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
franta-hg@26
   658
            <attribute default="${includes}" name="includes"/>
franta-hg@26
   659
            <attribute default="${excludes}" name="excludes"/>
franta-hg@26
   660
            <attribute default="**" name="testincludes"/>
franta-hg@26
   661
            <attribute default="" name="testmethods"/>
franta-hg@26
   662
            <attribute default="${main.class}" name="testClass"/>
franta-hg@26
   663
            <attribute default="" name="testMethod"/>
franta-hg@26
   664
            <sequential>
franta-hg@26
   665
                <j2seproject3:testng-debug-impl testClass="@{testClass}" testMethod="@{testMethod}">
franta-hg@26
   666
                    <customize2>
franta-hg@26
   667
                        <syspropertyset>
franta-hg@26
   668
                            <propertyref prefix="test-sys-prop."/>
franta-hg@26
   669
                            <mapper from="test-sys-prop.*" to="*" type="glob"/>
franta-hg@26
   670
                        </syspropertyset>
franta-hg@26
   671
                    </customize2>
franta-hg@26
   672
                </j2seproject3:testng-debug-impl>
franta-hg@26
   673
            </sequential>
franta-hg@26
   674
        </macrodef>
franta-hg@26
   675
    </target>
franta-hg@26
   676
    <target depends="-init-macrodef-test-debug-junit,-init-macrodef-test-debug-testng" name="-init-macrodef-test-debug"/>
franta-hg@26
   677
    <!--
franta-hg@26
   678
                pre NB7.2 profiling section; consider it deprecated
franta-hg@26
   679
            -->
franta-hg@26
   680
    <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" if="profiler.info.jvmargs.agent" name="profile-init"/>
franta-hg@26
   681
    <target if="profiler.info.jvmargs.agent" name="-profile-pre-init">
franta-hg@18
   682
        <!-- Empty placeholder for easier customization. -->
franta-hg@18
   683
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@18
   684
    </target>
franta-hg@26
   685
    <target if="profiler.info.jvmargs.agent" name="-profile-post-init">
franta-hg@18
   686
        <!-- Empty placeholder for easier customization. -->
franta-hg@18
   687
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@18
   688
    </target>
franta-hg@26
   689
    <target if="profiler.info.jvmargs.agent" name="-profile-init-macrodef-profile">
franta-hg@18
   690
        <macrodef name="resolve">
franta-hg@18
   691
            <attribute name="name"/>
franta-hg@18
   692
            <attribute name="value"/>
franta-hg@18
   693
            <sequential>
franta-hg@18
   694
                <property name="@{name}" value="${env.@{value}}"/>
franta-hg@18
   695
            </sequential>
franta-hg@18
   696
        </macrodef>
franta-hg@18
   697
        <macrodef name="profile">
franta-hg@18
   698
            <attribute default="${main.class}" name="classname"/>
franta-hg@18
   699
            <element name="customize" optional="true"/>
franta-hg@18
   700
            <sequential>
franta-hg@18
   701
                <property environment="env"/>
franta-hg@18
   702
                <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
franta-hg@26
   703
                <java classname="@{classname}" dir="${profiler.info.dir}" failonerror="${java.failonerror}" fork="true" jvm="${profiler.info.jvm}">
franta-hg@18
   704
                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
franta-hg@18
   705
                    <jvmarg value="${profiler.info.jvmargs.agent}"/>
franta-hg@18
   706
                    <jvmarg line="${profiler.info.jvmargs}"/>
franta-hg@18
   707
                    <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
franta-hg@18
   708
                    <arg line="${application.args}"/>
franta-hg@18
   709
                    <classpath>
franta-hg@18
   710
                        <path path="${run.classpath}"/>
franta-hg@18
   711
                    </classpath>
franta-hg@18
   712
                    <syspropertyset>
franta-hg@18
   713
                        <propertyref prefix="run-sys-prop."/>
franta-hg@18
   714
                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
franta-hg@18
   715
                    </syspropertyset>
franta-hg@18
   716
                    <customize/>
franta-hg@18
   717
                </java>
franta-hg@18
   718
            </sequential>
franta-hg@18
   719
        </macrodef>
franta-hg@18
   720
    </target>
franta-hg@26
   721
    <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" if="profiler.info.jvmargs.agent" name="-profile-init-check">
franta-hg@18
   722
        <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
franta-hg@18
   723
        <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
franta-hg@18
   724
    </target>
franta-hg@26
   725
    <!--
franta-hg@26
   726
                end of pre NB7.2 profiling section
franta-hg@26
   727
            -->
franta-hg@18
   728
    <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
franta-hg@18
   729
        <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
franta-hg@18
   730
            <attribute default="${main.class}" name="name"/>
franta-hg@18
   731
            <attribute default="${debug.classpath}" name="classpath"/>
franta-hg@18
   732
            <attribute default="" name="stopclassname"/>
franta-hg@18
   733
            <sequential>
franta-hg@18
   734
                <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
franta-hg@18
   735
                    <classpath>
franta-hg@18
   736
                        <path path="@{classpath}"/>
franta-hg@18
   737
                    </classpath>
franta-hg@18
   738
                </nbjpdastart>
franta-hg@18
   739
            </sequential>
franta-hg@18
   740
        </macrodef>
franta-hg@18
   741
        <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
franta-hg@18
   742
            <attribute default="${build.classes.dir}" name="dir"/>
franta-hg@18
   743
            <sequential>
franta-hg@18
   744
                <nbjpdareload>
franta-hg@18
   745
                    <fileset dir="@{dir}" includes="${fix.classes}">
franta-hg@18
   746
                        <include name="${fix.includes}*.class"/>
franta-hg@18
   747
                    </fileset>
franta-hg@18
   748
                </nbjpdareload>
franta-hg@18
   749
            </sequential>
franta-hg@18
   750
        </macrodef>
franta-hg@18
   751
    </target>
franta-hg@18
   752
    <target name="-init-debug-args">
franta-hg@18
   753
        <property name="version-output" value="java version &quot;${ant.java.version}"/>
franta-hg@18
   754
        <condition property="have-jdk-older-than-1.4">
franta-hg@18
   755
            <or>
franta-hg@18
   756
                <contains string="${version-output}" substring="java version &quot;1.0"/>
franta-hg@18
   757
                <contains string="${version-output}" substring="java version &quot;1.1"/>
franta-hg@18
   758
                <contains string="${version-output}" substring="java version &quot;1.2"/>
franta-hg@18
   759
                <contains string="${version-output}" substring="java version &quot;1.3"/>
franta-hg@18
   760
            </or>
franta-hg@18
   761
        </condition>
franta-hg@18
   762
        <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
franta-hg@18
   763
            <istrue value="${have-jdk-older-than-1.4}"/>
franta-hg@18
   764
        </condition>
franta-hg@18
   765
        <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
franta-hg@18
   766
            <os family="windows"/>
franta-hg@18
   767
        </condition>
franta-hg@18
   768
        <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
franta-hg@18
   769
            <isset property="debug.transport"/>
franta-hg@18
   770
        </condition>
franta-hg@18
   771
    </target>
franta-hg@18
   772
    <target depends="-init-debug-args" name="-init-macrodef-debug">
franta-hg@18
   773
        <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
franta-hg@18
   774
            <attribute default="${main.class}" name="classname"/>
franta-hg@18
   775
            <attribute default="${debug.classpath}" name="classpath"/>
franta-hg@18
   776
            <element name="customize" optional="true"/>
franta-hg@18
   777
            <sequential>
franta-hg@26
   778
                <java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true">
franta-hg@18
   779
                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
franta-hg@18
   780
                    <jvmarg line="${debug-args-line}"/>
franta-hg@18
   781
                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
franta-hg@18
   782
                    <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
franta-hg@18
   783
                    <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
franta-hg@18
   784
                    <jvmarg line="${run.jvmargs}"/>
franta-hg@26
   785
                    <jvmarg line="${run.jvmargs.ide}"/>
franta-hg@18
   786
                    <classpath>
franta-hg@18
   787
                        <path path="@{classpath}"/>
franta-hg@18
   788
                    </classpath>
franta-hg@18
   789
                    <syspropertyset>
franta-hg@18
   790
                        <propertyref prefix="run-sys-prop."/>
franta-hg@18
   791
                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
franta-hg@18
   792
                    </syspropertyset>
franta-hg@18
   793
                    <customize/>
franta-hg@18
   794
                </java>
franta-hg@18
   795
            </sequential>
franta-hg@18
   796
        </macrodef>
franta-hg@18
   797
    </target>
franta-hg@18
   798
    <target name="-init-macrodef-java">
franta-hg@18
   799
        <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
franta-hg@18
   800
            <attribute default="${main.class}" name="classname"/>
franta-hg@18
   801
            <attribute default="${run.classpath}" name="classpath"/>
franta-hg@26
   802
            <attribute default="jvm" name="jvm"/>
franta-hg@18
   803
            <element name="customize" optional="true"/>
franta-hg@18
   804
            <sequential>
franta-hg@26
   805
                <java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true">
franta-hg@18
   806
                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
franta-hg@18
   807
                    <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
franta-hg@18
   808
                    <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
franta-hg@18
   809
                    <jvmarg line="${run.jvmargs}"/>
franta-hg@26
   810
                    <jvmarg line="${run.jvmargs.ide}"/>
franta-hg@18
   811
                    <classpath>
franta-hg@18
   812
                        <path path="@{classpath}"/>
franta-hg@18
   813
                    </classpath>
franta-hg@18
   814
                    <syspropertyset>
franta-hg@18
   815
                        <propertyref prefix="run-sys-prop."/>
franta-hg@18
   816
                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
franta-hg@18
   817
                    </syspropertyset>
franta-hg@18
   818
                    <customize/>
franta-hg@18
   819
                </java>
franta-hg@18
   820
            </sequential>
franta-hg@18
   821
        </macrodef>
franta-hg@18
   822
    </target>
franta-hg@18
   823
    <target name="-init-macrodef-copylibs">
franta-hg@18
   824
        <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">
franta-hg@18
   825
            <attribute default="${manifest.file}" name="manifest"/>
franta-hg@18
   826
            <element name="customize" optional="true"/>
franta-hg@18
   827
            <sequential>
franta-hg@18
   828
                <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
franta-hg@18
   829
                <pathconvert property="run.classpath.without.build.classes.dir">
franta-hg@18
   830
                    <path path="${run.classpath}"/>
franta-hg@18
   831
                    <map from="${build.classes.dir.resolved}" to=""/>
franta-hg@18
   832
                </pathconvert>
franta-hg@18
   833
                <pathconvert pathsep=" " property="jar.classpath">
franta-hg@18
   834
                    <path path="${run.classpath.without.build.classes.dir}"/>
franta-hg@18
   835
                    <chainedmapper>
franta-hg@18
   836
                        <flattenmapper/>
franta-hg@26
   837
                        <filtermapper>
franta-hg@26
   838
                            <replacestring from=" " to="%20"/>
franta-hg@26
   839
                        </filtermapper>
franta-hg@18
   840
                        <globmapper from="*" to="lib/*"/>
franta-hg@18
   841
                    </chainedmapper>
franta-hg@18
   842
                </pathconvert>
franta-hg@18
   843
                <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
franta-hg@26
   844
                <copylibs compress="${jar.compress}" excludeFromCopy="${copylibs.excludes}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" manifestencoding="UTF-8" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
franta-hg@26
   845
                    <fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
franta-hg@18
   846
                    <manifest>
franta-hg@18
   847
                        <attribute name="Class-Path" value="${jar.classpath}"/>
franta-hg@18
   848
                        <customize/>
franta-hg@18
   849
                    </manifest>
franta-hg@18
   850
                </copylibs>
franta-hg@18
   851
            </sequential>
franta-hg@18
   852
        </macrodef>
franta-hg@18
   853
    </target>
franta-hg@18
   854
    <target name="-init-presetdef-jar">
franta-hg@18
   855
        <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
franta-hg@26
   856
            <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}" manifestencoding="UTF-8">
franta-hg@26
   857
                <j2seproject1:fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
franta-hg@18
   858
            </jar>
franta-hg@18
   859
        </presetdef>
franta-hg@18
   860
    </target>
franta-hg@18
   861
    <target name="-init-ap-cmdline-properties">
franta-hg@18
   862
        <property name="annotation.processing.enabled" value="true"/>
franta-hg@18
   863
        <property name="annotation.processing.processors.list" value=""/>
franta-hg@18
   864
        <property name="annotation.processing.processor.options" value=""/>
franta-hg@18
   865
        <property name="annotation.processing.run.all.processors" value="true"/>
franta-hg@18
   866
        <property name="javac.processorpath" value="${javac.classpath}"/>
franta-hg@18
   867
        <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
franta-hg@18
   868
        <condition property="ap.supported.internal" value="true">
franta-hg@18
   869
            <not>
franta-hg@18
   870
                <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
franta-hg@18
   871
            </not>
franta-hg@18
   872
        </condition>
franta-hg@18
   873
    </target>
franta-hg@18
   874
    <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
franta-hg@18
   875
        <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
franta-hg@18
   876
            <isfalse value="${annotation.processing.run.all.processors}"/>
franta-hg@18
   877
        </condition>
franta-hg@18
   878
        <condition else="" property="ap.proc.none.internal" value="-proc:none">
franta-hg@18
   879
            <isfalse value="${annotation.processing.enabled}"/>
franta-hg@18
   880
        </condition>
franta-hg@18
   881
    </target>
franta-hg@18
   882
    <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
franta-hg@18
   883
        <property name="ap.cmd.line.internal" value=""/>
franta-hg@18
   884
    </target>
franta-hg@26
   885
    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-test,-init-macrodef-test-debug,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar,-init-ap-cmdline" name="init"/>
franta-hg@18
   886
    <!--
franta-hg@18
   887
                ===================
franta-hg@18
   888
                COMPILATION SECTION
franta-hg@18
   889
                ===================
franta-hg@18
   890
            -->
franta-hg@18
   891
    <target name="-deps-jar-init" unless="built-jar.properties">
franta-hg@18
   892
        <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>
franta-hg@18
   893
        <delete file="${built-jar.properties}" quiet="true"/>
franta-hg@18
   894
    </target>
franta-hg@18
   895
    <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
franta-hg@18
   896
        <echo level="warn" message="Cycle detected: rozsirene-atributy-jedit was already built"/>
franta-hg@18
   897
    </target>
franta-hg@18
   898
    <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
franta-hg@18
   899
        <mkdir dir="${build.dir}"/>
franta-hg@18
   900
        <touch file="${built-jar.properties}" verbose="false"/>
franta-hg@18
   901
        <property file="${built-jar.properties}" prefix="already.built.jar."/>
franta-hg@18
   902
        <antcall target="-warn-already-built-jar"/>
franta-hg@18
   903
        <propertyfile file="${built-jar.properties}">
franta-hg@18
   904
            <entry key="${basedir}" value=""/>
franta-hg@18
   905
        </propertyfile>
franta-hg@18
   906
        <antcall target="-maybe-call-dep">
franta-hg@18
   907
            <param name="call.built.properties" value="${built-jar.properties}"/>
franta-hg@18
   908
            <param location="${project.rozsirene-atributy}" name="call.subproject"/>
franta-hg@18
   909
            <param location="${project.rozsirene-atributy}/build.xml" name="call.script"/>
franta-hg@18
   910
            <param name="call.target" value="jar"/>
franta-hg@18
   911
            <param name="transfer.built-jar.properties" value="${built-jar.properties}"/>
franta-hg@26
   912
            <param name="transfer.not.archive.disabled" value="true"/>
franta-hg@18
   913
        </antcall>
franta-hg@18
   914
    </target>
franta-hg@18
   915
    <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
franta-hg@18
   916
    <target depends="init" name="-check-automatic-build">
franta-hg@18
   917
        <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
franta-hg@18
   918
    </target>
franta-hg@18
   919
    <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
franta-hg@18
   920
        <antcall target="clean"/>
franta-hg@18
   921
    </target>
franta-hg@18
   922
    <target depends="init,deps-jar" name="-pre-pre-compile">
franta-hg@18
   923
        <mkdir dir="${build.classes.dir}"/>
franta-hg@18
   924
    </target>
franta-hg@18
   925
    <target name="-pre-compile">
franta-hg@18
   926
        <!-- Empty placeholder for easier customization. -->
franta-hg@18
   927
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@18
   928
    </target>
franta-hg@18
   929
    <target if="do.depend.true" name="-compile-depend">
franta-hg@18
   930
        <pathconvert property="build.generated.subdirs">
franta-hg@18
   931
            <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
franta-hg@18
   932
                <include name="*"/>
franta-hg@18
   933
            </dirset>
franta-hg@18
   934
        </pathconvert>
franta-hg@18
   935
        <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>
franta-hg@18
   936
    </target>
franta-hg@18
   937
    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">
franta-hg@18
   938
        <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
franta-hg@18
   939
        <copy todir="${build.classes.dir}">
franta-hg@18
   940
            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
franta-hg@18
   941
        </copy>
franta-hg@18
   942
    </target>
franta-hg@18
   943
    <target if="has.persistence.xml" name="-copy-persistence-xml">
franta-hg@18
   944
        <mkdir dir="${build.classes.dir}/META-INF"/>
franta-hg@18
   945
        <copy todir="${build.classes.dir}/META-INF">
franta-hg@26
   946
            <fileset dir="${meta.inf.dir}" includes="persistence.xml orm.xml"/>
franta-hg@18
   947
        </copy>
franta-hg@18
   948
    </target>
franta-hg@18
   949
    <target name="-post-compile">
franta-hg@18
   950
        <!-- Empty placeholder for easier customization. -->
franta-hg@18
   951
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@18
   952
    </target>
franta-hg@18
   953
    <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
franta-hg@18
   954
    <target name="-pre-compile-single">
franta-hg@18
   955
        <!-- Empty placeholder for easier customization. -->
franta-hg@18
   956
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@18
   957
    </target>
franta-hg@18
   958
    <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
franta-hg@18
   959
        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
franta-hg@18
   960
        <j2seproject3:force-recompile/>
franta-hg@18
   961
        <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>
franta-hg@18
   962
    </target>
franta-hg@18
   963
    <target name="-post-compile-single">
franta-hg@18
   964
        <!-- Empty placeholder for easier customization. -->
franta-hg@18
   965
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@18
   966
    </target>
franta-hg@18
   967
    <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
franta-hg@18
   968
    <!--
franta-hg@18
   969
                ====================
franta-hg@18
   970
                JAR BUILDING SECTION
franta-hg@18
   971
                ====================
franta-hg@18
   972
            -->
franta-hg@18
   973
    <target depends="init" name="-pre-pre-jar">
franta-hg@18
   974
        <dirname file="${dist.jar}" property="dist.jar.dir"/>
franta-hg@18
   975
        <mkdir dir="${dist.jar.dir}"/>
franta-hg@18
   976
    </target>
franta-hg@18
   977
    <target name="-pre-jar">
franta-hg@18
   978
        <!-- Empty placeholder for easier customization. -->
franta-hg@18
   979
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@18
   980
    </target>
franta-hg@26
   981
    <target depends="init" if="do.archive" name="-do-jar-create-manifest" unless="manifest.available">
franta-hg@26
   982
        <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
franta-hg@26
   983
        <touch file="${tmp.manifest.file}" verbose="false"/>
franta-hg@18
   984
    </target>
franta-hg@26
   985
    <target depends="init" if="do.archive+manifest.available" name="-do-jar-copy-manifest">
franta-hg@26
   986
        <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
franta-hg@26
   987
        <copy encoding="${manifest.encoding}" file="${manifest.file}" outputencoding="UTF-8" tofile="${tmp.manifest.file}"/>
franta-hg@18
   988
    </target>
franta-hg@26
   989
    <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+main.class.available" name="-do-jar-set-mainclass">
franta-hg@26
   990
        <manifest encoding="UTF-8" file="${tmp.manifest.file}" mode="update">
franta-hg@26
   991
            <attribute name="Main-Class" value="${main.class}"/>
franta-hg@26
   992
        </manifest>
franta-hg@26
   993
    </target>
franta-hg@26
   994
    <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+profile.available" name="-do-jar-set-profile">
franta-hg@26
   995
        <manifest encoding="UTF-8" file="${tmp.manifest.file}" mode="update">
franta-hg@26
   996
            <attribute name="Profile" value="${javac.profile}"/>
franta-hg@26
   997
        </manifest>
franta-hg@26
   998
    </target>
franta-hg@26
   999
    <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-set-splashscreen">
franta-hg@26
  1000
        <basename file="${application.splash}" property="splashscreen.basename"/>
franta-hg@26
  1001
        <mkdir dir="${build.classes.dir}/META-INF"/>
franta-hg@26
  1002
        <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
franta-hg@26
  1003
        <manifest encoding="UTF-8" file="${tmp.manifest.file}" mode="update">
franta-hg@26
  1004
            <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
franta-hg@26
  1005
        </manifest>
franta-hg@26
  1006
    </target>
franta-hg@26
  1007
    <target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen" if="do.mkdist" name="-do-jar-copylibs">
franta-hg@26
  1008
        <j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
franta-hg@18
  1009
        <echo level="info">To run this application from the command line without Ant, try:</echo>
franta-hg@26
  1010
        <property location="${dist.jar}" name="dist.jar.resolved"/>
franta-hg@26
  1011
        <echo level="info">java -jar "${dist.jar.resolved}"</echo>
franta-hg@26
  1012
    </target>
franta-hg@26
  1013
    <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen" if="do.archive" name="-do-jar-jar" unless="do.mkdist">
franta-hg@26
  1014
        <j2seproject1:jar manifest="${tmp.manifest.file}"/>
franta-hg@18
  1015
        <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
franta-hg@18
  1016
        <property location="${dist.jar}" name="dist.jar.resolved"/>
franta-hg@18
  1017
        <pathconvert property="run.classpath.with.dist.jar">
franta-hg@18
  1018
            <path path="${run.classpath}"/>
franta-hg@18
  1019
            <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
franta-hg@18
  1020
        </pathconvert>
franta-hg@26
  1021
        <condition else="" property="jar.usage.message" value="To run this application from the command line without Ant, try:${line.separator}${platform.java} -cp ${run.classpath.with.dist.jar} ${main.class}">
franta-hg@26
  1022
            <isset property="main.class.available"/>
franta-hg@26
  1023
        </condition>
franta-hg@26
  1024
        <condition else="debug" property="jar.usage.level" value="info">
franta-hg@26
  1025
            <isset property="main.class.available"/>
franta-hg@26
  1026
        </condition>
franta-hg@26
  1027
        <echo level="${jar.usage.level}" message="${jar.usage.message}"/>
franta-hg@18
  1028
    </target>
franta-hg@26
  1029
    <target depends="-do-jar-copylibs" if="do.archive" name="-do-jar-delete-manifest">
franta-hg@18
  1030
        <delete>
franta-hg@18
  1031
            <fileset file="${tmp.manifest.file}"/>
franta-hg@18
  1032
        </delete>
franta-hg@18
  1033
    </target>
franta-hg@26
  1034
    <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-do-jar-jar,-do-jar-delete-manifest" name="-do-jar-without-libraries"/>
franta-hg@26
  1035
    <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-do-jar-copylibs,-do-jar-delete-manifest" name="-do-jar-with-libraries"/>
franta-hg@18
  1036
    <target name="-post-jar">
franta-hg@18
  1037
        <!-- Empty placeholder for easier customization. -->
franta-hg@18
  1038
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@18
  1039
    </target>
franta-hg@26
  1040
    <target depends="init,compile,-pre-jar,-do-jar-without-libraries,-do-jar-with-libraries,-post-jar" name="-do-jar"/>
franta-hg@26
  1041
    <target depends="init,compile,-pre-jar,-do-jar,-post-jar" description="Build JAR." name="jar"/>
franta-hg@18
  1042
    <!--
franta-hg@18
  1043
                =================
franta-hg@18
  1044
                EXECUTION SECTION
franta-hg@18
  1045
                =================
franta-hg@18
  1046
            -->
franta-hg@18
  1047
    <target depends="init,compile" description="Run a main class." name="run">
franta-hg@18
  1048
        <j2seproject1:java>
franta-hg@18
  1049
            <customize>
franta-hg@18
  1050
                <arg line="${application.args}"/>
franta-hg@18
  1051
            </customize>
franta-hg@18
  1052
        </j2seproject1:java>
franta-hg@18
  1053
    </target>
franta-hg@18
  1054
    <target name="-do-not-recompile">
franta-hg@18
  1055
        <property name="javac.includes.binary" value=""/>
franta-hg@18
  1056
    </target>
franta-hg@18
  1057
    <target depends="init,compile-single" name="run-single">
franta-hg@18
  1058
        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
franta-hg@18
  1059
        <j2seproject1:java classname="${run.class}"/>
franta-hg@18
  1060
    </target>
franta-hg@18
  1061
    <target depends="init,compile-test-single" name="run-test-with-main">
franta-hg@18
  1062
        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
franta-hg@18
  1063
        <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
franta-hg@18
  1064
    </target>
franta-hg@18
  1065
    <!--
franta-hg@18
  1066
                =================
franta-hg@18
  1067
                DEBUGGING SECTION
franta-hg@18
  1068
                =================
franta-hg@18
  1069
            -->
franta-hg@18
  1070
    <target depends="init" if="netbeans.home" name="-debug-start-debugger">
franta-hg@18
  1071
        <j2seproject1:nbjpdastart name="${debug.class}"/>
franta-hg@18
  1072
    </target>
franta-hg@18
  1073
    <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
franta-hg@18
  1074
        <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
franta-hg@18
  1075
    </target>
franta-hg@18
  1076
    <target depends="init,compile" name="-debug-start-debuggee">
franta-hg@18
  1077
        <j2seproject3:debug>
franta-hg@18
  1078
            <customize>
franta-hg@18
  1079
                <arg line="${application.args}"/>
franta-hg@18
  1080
            </customize>
franta-hg@18
  1081
        </j2seproject3:debug>
franta-hg@18
  1082
    </target>
franta-hg@18
  1083
    <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
franta-hg@18
  1084
    <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
franta-hg@18
  1085
        <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
franta-hg@18
  1086
    </target>
franta-hg@18
  1087
    <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
franta-hg@18
  1088
    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
franta-hg@18
  1089
        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
franta-hg@18
  1090
        <j2seproject3:debug classname="${debug.class}"/>
franta-hg@18
  1091
    </target>
franta-hg@18
  1092
    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
franta-hg@18
  1093
    <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
franta-hg@18
  1094
        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
franta-hg@18
  1095
        <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
franta-hg@18
  1096
    </target>
franta-hg@18
  1097
    <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
franta-hg@18
  1098
    <target depends="init" name="-pre-debug-fix">
franta-hg@18
  1099
        <fail unless="fix.includes">Must set fix.includes</fail>
franta-hg@18
  1100
        <property name="javac.includes" value="${fix.includes}.java"/>
franta-hg@18
  1101
    </target>
franta-hg@18
  1102
    <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
franta-hg@18
  1103
        <j2seproject1:nbjpdareload/>
franta-hg@18
  1104
    </target>
franta-hg@18
  1105
    <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
franta-hg@18
  1106
    <!--
franta-hg@18
  1107
                =================
franta-hg@18
  1108
                PROFILING SECTION
franta-hg@18
  1109
                =================
franta-hg@18
  1110
            -->
franta-hg@26
  1111
    <!--
franta-hg@26
  1112
                pre NB7.2 profiler integration
franta-hg@26
  1113
            -->
franta-hg@26
  1114
    <target depends="profile-init,compile" description="Profile a project in the IDE." if="profiler.info.jvmargs.agent" name="-profile-pre72">
franta-hg@26
  1115
        <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
franta-hg@18
  1116
        <nbprofiledirect>
franta-hg@18
  1117
            <classpath>
franta-hg@18
  1118
                <path path="${run.classpath}"/>
franta-hg@18
  1119
            </classpath>
franta-hg@18
  1120
        </nbprofiledirect>
franta-hg@18
  1121
        <profile/>
franta-hg@18
  1122
    </target>
franta-hg@26
  1123
    <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="profiler.info.jvmargs.agent" name="-profile-single-pre72">
franta-hg@18
  1124
        <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail>
franta-hg@26
  1125
        <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
franta-hg@18
  1126
        <nbprofiledirect>
franta-hg@18
  1127
            <classpath>
franta-hg@18
  1128
                <path path="${run.classpath}"/>
franta-hg@18
  1129
            </classpath>
franta-hg@18
  1130
        </nbprofiledirect>
franta-hg@18
  1131
        <profile classname="${profile.class}"/>
franta-hg@18
  1132
    </target>
franta-hg@26
  1133
    <target depends="profile-init,compile-single" if="profiler.info.jvmargs.agent" name="-profile-applet-pre72">
franta-hg@26
  1134
        <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
franta-hg@18
  1135
        <nbprofiledirect>
franta-hg@18
  1136
            <classpath>
franta-hg@18
  1137
                <path path="${run.classpath}"/>
franta-hg@18
  1138
            </classpath>
franta-hg@18
  1139
        </nbprofiledirect>
franta-hg@18
  1140
        <profile classname="sun.applet.AppletViewer">
franta-hg@18
  1141
            <customize>
franta-hg@18
  1142
                <arg value="${applet.url}"/>
franta-hg@18
  1143
            </customize>
franta-hg@18
  1144
        </profile>
franta-hg@18
  1145
    </target>
franta-hg@26
  1146
    <target depends="profile-init,compile-test-single" if="profiler.info.jvmargs.agent" name="-profile-test-single-pre72">
franta-hg@26
  1147
        <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
franta-hg@18
  1148
        <nbprofiledirect>
franta-hg@18
  1149
            <classpath>
franta-hg@18
  1150
                <path path="${run.test.classpath}"/>
franta-hg@18
  1151
            </classpath>
franta-hg@18
  1152
        </nbprofiledirect>
franta-hg@18
  1153
        <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
franta-hg@18
  1154
            <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
franta-hg@18
  1155
            <jvmarg value="${profiler.info.jvmargs.agent}"/>
franta-hg@18
  1156
            <jvmarg line="${profiler.info.jvmargs}"/>
franta-hg@18
  1157
            <test name="${profile.class}"/>
franta-hg@18
  1158
            <classpath>
franta-hg@18
  1159
                <path path="${run.test.classpath}"/>
franta-hg@18
  1160
            </classpath>
franta-hg@18
  1161
            <syspropertyset>
franta-hg@18
  1162
                <propertyref prefix="test-sys-prop."/>
franta-hg@18
  1163
                <mapper from="test-sys-prop.*" to="*" type="glob"/>
franta-hg@18
  1164
            </syspropertyset>
franta-hg@18
  1165
            <formatter type="brief" usefile="false"/>
franta-hg@18
  1166
            <formatter type="xml"/>
franta-hg@18
  1167
        </junit>
franta-hg@18
  1168
    </target>
franta-hg@18
  1169
    <!--
franta-hg@26
  1170
                end of pre NB72 profiling section
franta-hg@26
  1171
            -->
franta-hg@26
  1172
    <target if="netbeans.home" name="-profile-check">
franta-hg@26
  1173
        <condition property="profiler.configured">
franta-hg@26
  1174
            <or>
franta-hg@26
  1175
                <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-agentpath:"/>
franta-hg@26
  1176
                <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-javaagent:"/>
franta-hg@26
  1177
            </or>
franta-hg@26
  1178
        </condition>
franta-hg@26
  1179
    </target>
franta-hg@26
  1180
    <target depends="-profile-check,-profile-pre72" description="Profile a project in the IDE." if="profiler.configured" name="profile" unless="profiler.info.jvmargs.agent">
franta-hg@26
  1181
        <startprofiler/>
franta-hg@26
  1182
        <antcall target="run"/>
franta-hg@26
  1183
    </target>
franta-hg@26
  1184
    <target depends="-profile-check,-profile-single-pre72" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-single" unless="profiler.info.jvmargs.agent">
franta-hg@26
  1185
        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
franta-hg@26
  1186
        <startprofiler/>
franta-hg@26
  1187
        <antcall target="run-single"/>
franta-hg@26
  1188
    </target>
franta-hg@26
  1189
    <target depends="-profile-test-single-pre72" description="Profile a selected test in the IDE." name="profile-test-single"/>
franta-hg@26
  1190
    <target depends="-profile-check" description="Profile a selected test in the IDE." if="profiler.configured" name="profile-test" unless="profiler.info.jvmargs">
franta-hg@26
  1191
        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
franta-hg@26
  1192
        <startprofiler/>
franta-hg@26
  1193
        <antcall target="test-single"/>
franta-hg@26
  1194
    </target>
franta-hg@26
  1195
    <target depends="-profile-check" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-test-with-main">
franta-hg@26
  1196
        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
franta-hg@26
  1197
        <startprofiler/>
franta-hg@26
  1198
        <antcall target="run-test-with-main"/>
franta-hg@26
  1199
    </target>
franta-hg@26
  1200
    <target depends="-profile-check,-profile-applet-pre72" if="profiler.configured" name="profile-applet" unless="profiler.info.jvmargs.agent">
franta-hg@26
  1201
        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
franta-hg@26
  1202
        <startprofiler/>
franta-hg@26
  1203
        <antcall target="run-applet"/>
franta-hg@26
  1204
    </target>
franta-hg@26
  1205
    <!--
franta-hg@18
  1206
                ===============
franta-hg@18
  1207
                JAVADOC SECTION
franta-hg@18
  1208
                ===============
franta-hg@18
  1209
            -->
franta-hg@18
  1210
    <target depends="init" if="have.sources" name="-javadoc-build">
franta-hg@18
  1211
        <mkdir dir="${dist.javadoc.dir}"/>
franta-hg@18
  1212
        <condition else="" property="javadoc.endorsed.classpath.cmd.line.arg" value="-J${endorsed.classpath.cmd.line.arg}">
franta-hg@18
  1213
            <and>
franta-hg@18
  1214
                <isset property="endorsed.classpath.cmd.line.arg"/>
franta-hg@18
  1215
                <not>
franta-hg@18
  1216
                    <equals arg1="${endorsed.classpath.cmd.line.arg}" arg2=""/>
franta-hg@18
  1217
                </not>
franta-hg@18
  1218
            </and>
franta-hg@18
  1219
        </condition>
franta-hg@26
  1220
        <condition else="" property="bug5101868workaround" value="*.java">
franta-hg@26
  1221
            <matches pattern="1\.[56](\..*)?" string="${java.version}"/>
franta-hg@26
  1222
        </condition>
franta-hg@26
  1223
        <javadoc additionalparam="-J-Dfile.encoding=${file.encoding} ${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}">
franta-hg@18
  1224
            <classpath>
franta-hg@18
  1225
                <path path="${javac.classpath}"/>
franta-hg@18
  1226
            </classpath>
franta-hg@26
  1227
            <fileset dir="${src.dir}" excludes="${bug5101868workaround},${excludes}" includes="${includes}">
franta-hg@18
  1228
                <filename name="**/*.java"/>
franta-hg@18
  1229
            </fileset>
franta-hg@18
  1230
            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
franta-hg@18
  1231
                <include name="**/*.java"/>
franta-hg@18
  1232
                <exclude name="*.java"/>
franta-hg@18
  1233
            </fileset>
franta-hg@18
  1234
            <arg line="${javadoc.endorsed.classpath.cmd.line.arg}"/>
franta-hg@18
  1235
        </javadoc>
franta-hg@18
  1236
        <copy todir="${dist.javadoc.dir}">
franta-hg@18
  1237
            <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
franta-hg@18
  1238
                <filename name="**/doc-files/**"/>
franta-hg@18
  1239
            </fileset>
franta-hg@18
  1240
            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
franta-hg@18
  1241
                <include name="**/doc-files/**"/>
franta-hg@18
  1242
            </fileset>
franta-hg@18
  1243
        </copy>
franta-hg@18
  1244
    </target>
franta-hg@18
  1245
    <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
franta-hg@18
  1246
        <nbbrowse file="${dist.javadoc.dir}/index.html"/>
franta-hg@18
  1247
    </target>
franta-hg@18
  1248
    <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
franta-hg@18
  1249
    <!--
franta-hg@18
  1250
                =========================
franta-hg@26
  1251
                TEST COMPILATION SECTION
franta-hg@18
  1252
                =========================
franta-hg@18
  1253
            -->
franta-hg@18
  1254
    <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
franta-hg@18
  1255
        <mkdir dir="${build.test.classes.dir}"/>
franta-hg@18
  1256
    </target>
franta-hg@18
  1257
    <target name="-pre-compile-test">
franta-hg@18
  1258
        <!-- Empty placeholder for easier customization. -->
franta-hg@18
  1259
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@18
  1260
    </target>
franta-hg@18
  1261
    <target if="do.depend.true" name="-compile-test-depend">
franta-hg@18
  1262
        <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
franta-hg@18
  1263
    </target>
franta-hg@18
  1264
    <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
franta-hg@18
  1265
        <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}"/>
franta-hg@18
  1266
        <copy todir="${build.test.classes.dir}">
franta-hg@18
  1267
            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
franta-hg@18
  1268
        </copy>
franta-hg@18
  1269
    </target>
franta-hg@18
  1270
    <target name="-post-compile-test">
franta-hg@18
  1271
        <!-- Empty placeholder for easier customization. -->
franta-hg@18
  1272
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@18
  1273
    </target>
franta-hg@18
  1274
    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
franta-hg@18
  1275
    <target name="-pre-compile-test-single">
franta-hg@18
  1276
        <!-- Empty placeholder for easier customization. -->
franta-hg@18
  1277
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@18
  1278
    </target>
franta-hg@18
  1279
    <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
franta-hg@18
  1280
        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
franta-hg@18
  1281
        <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
franta-hg@18
  1282
        <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}"/>
franta-hg@18
  1283
        <copy todir="${build.test.classes.dir}">
franta-hg@18
  1284
            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
franta-hg@18
  1285
        </copy>
franta-hg@18
  1286
    </target>
franta-hg@18
  1287
    <target name="-post-compile-test-single">
franta-hg@18
  1288
        <!-- Empty placeholder for easier customization. -->
franta-hg@18
  1289
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@18
  1290
    </target>
franta-hg@18
  1291
    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
franta-hg@18
  1292
    <!--
franta-hg@18
  1293
                =======================
franta-hg@26
  1294
                TEST EXECUTION SECTION
franta-hg@18
  1295
                =======================
franta-hg@18
  1296
            -->
franta-hg@18
  1297
    <target depends="init" if="have.tests" name="-pre-test-run">
franta-hg@18
  1298
        <mkdir dir="${build.test.results.dir}"/>
franta-hg@18
  1299
    </target>
franta-hg@18
  1300
    <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
franta-hg@26
  1301
        <j2seproject3:test includes="${includes}" testincludes="**/*Test.java"/>
franta-hg@18
  1302
    </target>
franta-hg@18
  1303
    <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
franta-hg@18
  1304
        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
franta-hg@18
  1305
    </target>
franta-hg@18
  1306
    <target depends="init" if="have.tests" name="test-report"/>
franta-hg@18
  1307
    <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
franta-hg@18
  1308
    <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
franta-hg@18
  1309
    <target depends="init" if="have.tests" name="-pre-test-run-single">
franta-hg@18
  1310
        <mkdir dir="${build.test.results.dir}"/>
franta-hg@18
  1311
    </target>
franta-hg@18
  1312
    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
franta-hg@18
  1313
        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
franta-hg@26
  1314
        <j2seproject3:test excludes="" includes="${test.includes}" testincludes="${test.includes}"/>
franta-hg@18
  1315
    </target>
franta-hg@18
  1316
    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
franta-hg@18
  1317
        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
franta-hg@18
  1318
    </target>
franta-hg@18
  1319
    <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"/>
franta-hg@26
  1320
    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single-method">
franta-hg@26
  1321
        <fail unless="test.class">Must select some files in the IDE or set test.class</fail>
franta-hg@26
  1322
        <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
franta-hg@26
  1323
        <j2seproject3:test excludes="" includes="${javac.includes}" testincludes="${test.class}" testmethods="${test.method}"/>
franta-hg@26
  1324
    </target>
franta-hg@26
  1325
    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method" if="have.tests" name="-post-test-run-single-method">
franta-hg@26
  1326
        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
franta-hg@26
  1327
    </target>
franta-hg@26
  1328
    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method,-post-test-run-single-method" description="Run single unit test." name="test-single-method"/>
franta-hg@18
  1329
    <!--
franta-hg@18
  1330
                =======================
franta-hg@26
  1331
                TEST DEBUGGING SECTION
franta-hg@18
  1332
                =======================
franta-hg@18
  1333
            -->
franta-hg@26
  1334
    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test">
franta-hg@18
  1335
        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
franta-hg@26
  1336
        <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testincludes="${javac.includes}"/>
franta-hg@26
  1337
    </target>
franta-hg@26
  1338
    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test-method">
franta-hg@26
  1339
        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
franta-hg@26
  1340
        <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
franta-hg@26
  1341
        <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testMethod="${test.method}" testincludes="${test.class}" testmethods="${test.method}"/>
franta-hg@18
  1342
    </target>
franta-hg@18
  1343
    <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
franta-hg@18
  1344
        <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
franta-hg@18
  1345
    </target>
franta-hg@18
  1346
    <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
franta-hg@26
  1347
    <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test-method" name="debug-test-method"/>
franta-hg@18
  1348
    <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
franta-hg@18
  1349
        <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
franta-hg@18
  1350
    </target>
franta-hg@18
  1351
    <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
franta-hg@18
  1352
    <!--
franta-hg@18
  1353
                =========================
franta-hg@18
  1354
                APPLET EXECUTION SECTION
franta-hg@18
  1355
                =========================
franta-hg@18
  1356
            -->
franta-hg@18
  1357
    <target depends="init,compile-single" name="run-applet">
franta-hg@18
  1358
        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
franta-hg@18
  1359
        <j2seproject1:java classname="sun.applet.AppletViewer">
franta-hg@18
  1360
            <customize>
franta-hg@18
  1361
                <arg value="${applet.url}"/>
franta-hg@18
  1362
            </customize>
franta-hg@18
  1363
        </j2seproject1:java>
franta-hg@18
  1364
    </target>
franta-hg@18
  1365
    <!--
franta-hg@18
  1366
                =========================
franta-hg@18
  1367
                APPLET DEBUGGING  SECTION
franta-hg@18
  1368
                =========================
franta-hg@18
  1369
            -->
franta-hg@18
  1370
    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
franta-hg@18
  1371
        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
franta-hg@18
  1372
        <j2seproject3:debug classname="sun.applet.AppletViewer">
franta-hg@18
  1373
            <customize>
franta-hg@18
  1374
                <arg value="${applet.url}"/>
franta-hg@18
  1375
            </customize>
franta-hg@18
  1376
        </j2seproject3:debug>
franta-hg@18
  1377
    </target>
franta-hg@18
  1378
    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
franta-hg@18
  1379
    <!--
franta-hg@18
  1380
                ===============
franta-hg@18
  1381
                CLEANUP SECTION
franta-hg@18
  1382
                ===============
franta-hg@18
  1383
            -->
franta-hg@18
  1384
    <target name="-deps-clean-init" unless="built-clean.properties">
franta-hg@18
  1385
        <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>
franta-hg@18
  1386
        <delete file="${built-clean.properties}" quiet="true"/>
franta-hg@18
  1387
    </target>
franta-hg@18
  1388
    <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
franta-hg@18
  1389
        <echo level="warn" message="Cycle detected: rozsirene-atributy-jedit was already built"/>
franta-hg@18
  1390
    </target>
franta-hg@18
  1391
    <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
franta-hg@18
  1392
        <mkdir dir="${build.dir}"/>
franta-hg@18
  1393
        <touch file="${built-clean.properties}" verbose="false"/>
franta-hg@18
  1394
        <property file="${built-clean.properties}" prefix="already.built.clean."/>
franta-hg@18
  1395
        <antcall target="-warn-already-built-clean"/>
franta-hg@18
  1396
        <propertyfile file="${built-clean.properties}">
franta-hg@18
  1397
            <entry key="${basedir}" value=""/>
franta-hg@18
  1398
        </propertyfile>
franta-hg@18
  1399
        <antcall target="-maybe-call-dep">
franta-hg@18
  1400
            <param name="call.built.properties" value="${built-clean.properties}"/>
franta-hg@18
  1401
            <param location="${project.rozsirene-atributy}" name="call.subproject"/>
franta-hg@18
  1402
            <param location="${project.rozsirene-atributy}/build.xml" name="call.script"/>
franta-hg@18
  1403
            <param name="call.target" value="clean"/>
franta-hg@18
  1404
            <param name="transfer.built-clean.properties" value="${built-clean.properties}"/>
franta-hg@26
  1405
            <param name="transfer.not.archive.disabled" value="true"/>
franta-hg@18
  1406
        </antcall>
franta-hg@18
  1407
    </target>
franta-hg@18
  1408
    <target depends="init" name="-do-clean">
franta-hg@18
  1409
        <delete dir="${build.dir}"/>
franta-hg@18
  1410
        <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
franta-hg@18
  1411
    </target>
franta-hg@18
  1412
    <target name="-post-clean">
franta-hg@18
  1413
        <!-- Empty placeholder for easier customization. -->
franta-hg@18
  1414
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@18
  1415
    </target>
franta-hg@18
  1416
    <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
franta-hg@18
  1417
    <target name="-check-call-dep">
franta-hg@18
  1418
        <property file="${call.built.properties}" prefix="already.built."/>
franta-hg@18
  1419
        <condition property="should.call.dep">
franta-hg@26
  1420
            <and>
franta-hg@26
  1421
                <not>
franta-hg@26
  1422
                    <isset property="already.built.${call.subproject}"/>
franta-hg@26
  1423
                </not>
franta-hg@26
  1424
                <available file="${call.script}"/>
franta-hg@26
  1425
            </and>
franta-hg@18
  1426
        </condition>
franta-hg@18
  1427
    </target>
franta-hg@18
  1428
    <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
franta-hg@18
  1429
        <ant antfile="${call.script}" inheritall="false" target="${call.target}">
franta-hg@18
  1430
            <propertyset>
franta-hg@18
  1431
                <propertyref prefix="transfer."/>
franta-hg@18
  1432
                <mapper from="transfer.*" to="*" type="glob"/>
franta-hg@18
  1433
            </propertyset>
franta-hg@18
  1434
        </ant>
franta-hg@18
  1435
    </target>
franta-hg@18
  1436
</project>