src/Tools/jEdit/nbproject/build-impl.xml
author Marco Steger <m.steger@student.tugraz.at>
Tue, 31 Aug 2010 21:15:03 +0200
branchjedit-isac
changeset 37958 62186eba092b
permissions -rw-r--r--
cleaned isac directory
m@37958
     1
<?xml version="1.0" encoding="UTF-8"?>
m@37958
     2
<!--
m@37958
     3
*** GENERATED FROM project.xml - DO NOT EDIT  ***
m@37958
     4
***         EDIT ../build.xml INSTEAD         ***
m@37958
     5
m@37958
     6
For the purpose of easier reading the script
m@37958
     7
is divided into following sections:
m@37958
     8
m@37958
     9
  - initialization
m@37958
    10
  - compilation
m@37958
    11
  - jar
m@37958
    12
  - execution
m@37958
    13
  - debugging
m@37958
    14
  - javadoc
m@37958
    15
  - junit compilation
m@37958
    16
  - junit execution
m@37958
    17
  - junit debugging
m@37958
    18
  - applet
m@37958
    19
  - cleanup
m@37958
    20
m@37958
    21
        
m@37958
    22
        -->
m@37958
    23
<project xmlns:jaxrpc="http://www.netbeans.org/ns/scala-project/jax-rpc" xmlns:scalaProject1="http://www.netbeans.org/ns/scala-project/1" basedir=".." default="default" name="Isabelle-jEdit-impl">
m@37958
    24
    <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
m@37958
    25
    <!--
m@37958
    26
                ======================
m@37958
    27
                INITIALIZATION SECTION
m@37958
    28
                ======================
m@37958
    29
            -->
m@37958
    30
    <target name="-pre-init">
m@37958
    31
        <!-- Empty placeholder for easier customization. -->
m@37958
    32
        <!-- You can override this target in the ../build.xml file. -->
m@37958
    33
    </target>
m@37958
    34
    <target depends="-pre-init" name="-init-private">
m@37958
    35
        <property file="nbproject/private/config.properties"/>
m@37958
    36
        <property file="nbproject/private/configs/${config}.properties"/>
m@37958
    37
        <property file="nbproject/private/private.properties"/>
m@37958
    38
        <property environment="env"/>
m@37958
    39
        <condition property="scala.home" value="${env.SCALA_HOME}">
m@37958
    40
            <isset property="env.SCALA_HOME"/>
m@37958
    41
        </condition>
m@37958
    42
        <fail unless="scala.home">
m@37958
    43
                    You must set SCALA_HOME or environment property and append "-J-Dscala.home=scalahomepath"
m@37958
    44
                    property to the end of "netbeans_default_options" in NetBeansInstallationPath/etc/netbeans.conf to point to
m@37958
    45
                    Scala installation directory.
m@37958
    46
                </fail>
m@37958
    47
        <property name="scala.compiler" value="${scala.home}/lib/scala-compiler.jar"/>
m@37958
    48
        <property name="scala.library" value="${scala.home}/lib/scala-library.jar"/>
m@37958
    49
        <property name="scala.lib" value="${scala.home}/lib"/>
m@37958
    50
        <taskdef resource="scala/tools/ant/antlib.xml">
m@37958
    51
            <classpath>
m@37958
    52
                <pathelement location="${scala.compiler}"/>
m@37958
    53
                <pathelement location="${scala.library}"/>
m@37958
    54
            </classpath>
m@37958
    55
        </taskdef>
m@37958
    56
    </target>
m@37958
    57
    <target depends="-pre-init,-init-private" name="-init-user">
m@37958
    58
        <property file="${user.properties.file}"/>
m@37958
    59
        <!-- The two properties below are usually overridden -->
m@37958
    60
        <!-- by the active platform. Just a fallback. -->
m@37958
    61
        <property name="default.javac.source" value="1.5"/>
m@37958
    62
        <property name="default.javac.target" value="1.5"/>
m@37958
    63
    </target>
m@37958
    64
    <target depends="-pre-init,-init-private,-init-user" name="-init-project">
m@37958
    65
        <property file="nbproject/configs/${config}.properties"/>
m@37958
    66
        <property file="nbproject/project.properties"/>
m@37958
    67
    </target>
m@37958
    68
    <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
m@37958
    69
        <available file="${manifest.file}" property="manifest.available"/>
m@37958
    70
        <condition property="manifest.available+main.class">
m@37958
    71
            <and>
m@37958
    72
                <isset property="manifest.available"/>
m@37958
    73
                <isset property="main.class"/>
m@37958
    74
                <not>
m@37958
    75
                    <equals arg1="${main.class}" arg2="" trim="true"/>
m@37958
    76
                </not>
m@37958
    77
            </and>
m@37958
    78
        </condition>
m@37958
    79
        <condition property="manifest.available+main.class+mkdist.available">
m@37958
    80
            <and>
m@37958
    81
                <istrue value="${manifest.available+main.class}"/>
m@37958
    82
                <isset property="libs.CopyLibs.classpath"/>
m@37958
    83
            </and>
m@37958
    84
        </condition>
m@37958
    85
        <condition property="have.tests">
m@37958
    86
            <or/>
m@37958
    87
        </condition>
m@37958
    88
        <condition property="have.sources">
m@37958
    89
            <or>
m@37958
    90
                <available file="${src.dir}"/>
m@37958
    91
            </or>
m@37958
    92
        </condition>
m@37958
    93
        <condition property="netbeans.home+have.tests">
m@37958
    94
            <and>
m@37958
    95
                <isset property="netbeans.home"/>
m@37958
    96
                <isset property="have.tests"/>
m@37958
    97
            </and>
m@37958
    98
        </condition>
m@37958
    99
        <condition property="no.javadoc.preview">
m@37958
   100
            <and>
m@37958
   101
                <isset property="javadoc.preview"/>
m@37958
   102
                <isfalse value="${javadoc.preview}"/>
m@37958
   103
            </and>
m@37958
   104
        </condition>
m@37958
   105
        <property name="run.jvmargs" value=""/>
m@37958
   106
        <property name="javac.compilerargs" value=""/>
m@37958
   107
        <property name="work.dir" value="${basedir}"/>
m@37958
   108
        <condition property="no.deps">
m@37958
   109
            <and>
m@37958
   110
                <istrue value="${no.dependencies}"/>
m@37958
   111
            </and>
m@37958
   112
        </condition>
m@37958
   113
        <property name="javac.debug" value="true"/>
m@37958
   114
        <property name="javadoc.preview" value="true"/>
m@37958
   115
        <property name="application.args" value=""/>
m@37958
   116
        <property name="source.encoding" value="${file.encoding}"/>
m@37958
   117
        <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
m@37958
   118
            <and>
m@37958
   119
                <isset property="javadoc.encoding"/>
m@37958
   120
                <not>
m@37958
   121
                    <equals arg1="${javadoc.encoding}" arg2=""/>
m@37958
   122
                </not>
m@37958
   123
            </and>
m@37958
   124
        </condition>
m@37958
   125
        <property name="javadoc.encoding.used" value="${source.encoding}"/>
m@37958
   126
        <property name="includes" value="**"/>
m@37958
   127
        <property name="excludes" value=""/>
m@37958
   128
        <property name="extdirs" value=" "/>
m@37958
   129
        <property name="do.depend" value="false"/>
m@37958
   130
        <condition property="do.depend.true">
m@37958
   131
            <istrue value="${do.depend}"/>
m@37958
   132
        </condition>
m@37958
   133
        <condition else="" property="javac.compilerargs.jaxws" value="-Djava.endorsed.dirs='${jaxws.endorsed.dir}'">
m@37958
   134
            <and>
m@37958
   135
                <isset property="jaxws.endorsed.dir"/>
m@37958
   136
                <available file="nbproject/jaxws-build.xml"/>
m@37958
   137
            </and>
m@37958
   138
        </condition>
m@37958
   139
    </target>
m@37958
   140
    <target name="-post-init">
m@37958
   141
        <!-- Empty placeholder for easier customization. -->
m@37958
   142
        <!-- You can override this target in the ../build.xml file. -->
m@37958
   143
    </target>
m@37958
   144
    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
m@37958
   145
        <fail unless="src.dir">Must set src.dir</fail>
m@37958
   146
        <fail unless="build.dir">Must set build.dir</fail>
m@37958
   147
        <fail unless="dist.dir">Must set dist.dir</fail>
m@37958
   148
        <fail unless="build.classes.dir">Must set build.classes.dir</fail>
m@37958
   149
        <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
m@37958
   150
        <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
m@37958
   151
        <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
m@37958
   152
        <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
m@37958
   153
        <fail unless="dist.jar">Must set dist.jar</fail>
m@37958
   154
    </target>
m@37958
   155
    <target name="-init-macrodef-property">
m@37958
   156
        <macrodef name="property" uri="http://www.netbeans.org/ns/scala-project/1">
m@37958
   157
            <attribute name="name"/>
m@37958
   158
            <attribute name="value"/>
m@37958
   159
            <sequential>
m@37958
   160
                <property name="@{name}" value="${@{value}}"/>
m@37958
   161
            </sequential>
m@37958
   162
        </macrodef>
m@37958
   163
    </target>
m@37958
   164
    <target name="-init-macrodef-javac">
m@37958
   165
        <macrodef name="javac" uri="http://www.netbeans.org/ns/scala-project/1">
m@37958
   166
            <attribute default="${src.dir}" name="srcdir"/>
m@37958
   167
            <attribute default="${build.classes.dir}" name="destdir"/>
m@37958
   168
            <attribute default="${javac.classpath}" name="classpath"/>
m@37958
   169
            <attribute default="${includes}" name="includes"/>
m@37958
   170
            <attribute default="${excludes}" name="excludes"/>
m@37958
   171
            <attribute default="${javac.debug}" name="debug"/>
m@37958
   172
            <attribute default="" name="sourcepath"/>
m@37958
   173
            <element name="customize" optional="true"/>
m@37958
   174
            <sequential>
m@37958
   175
                <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}">
m@37958
   176
                    <classpath>
m@37958
   177
                        <path path="@{classpath}"/>
m@37958
   178
                        <fileset dir="${scala.lib}">
m@37958
   179
                            <include name="**/*.jar"/>
m@37958
   180
                        </fileset>
m@37958
   181
                    </classpath>
m@37958
   182
                    <compilerarg line="${javac.compilerargs} ${javac.compilerargs.jaxws}"/>
m@37958
   183
                    <customize/>
m@37958
   184
                </javac>
m@37958
   185
            </sequential>
m@37958
   186
        </macrodef>
m@37958
   187
        <macrodef name="depend" uri="http://www.netbeans.org/ns/scala-project/1">
m@37958
   188
            <attribute default="${src.dir}" name="srcdir"/>
m@37958
   189
            <attribute default="${build.classes.dir}" name="destdir"/>
m@37958
   190
            <attribute default="${javac.classpath}" name="classpath"/>
m@37958
   191
            <sequential>
m@37958
   192
                <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
m@37958
   193
                    <classpath>
m@37958
   194
                        <path>
m@37958
   195
                            <pathelement path="@{classpath}"/>
m@37958
   196
                            <fileset dir="${scala.lib}">
m@37958
   197
                                <include name="**/*.jar"/>
m@37958
   198
                            </fileset>
m@37958
   199
                            <pathelement location="${build.classes.dir}"/>
m@37958
   200
                        </path>
m@37958
   201
                    </classpath>
m@37958
   202
                </depend>
m@37958
   203
            </sequential>
m@37958
   204
        </macrodef>
m@37958
   205
        <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/scala-project/1">
m@37958
   206
            <attribute default="${build.classes.dir}" name="destdir"/>
m@37958
   207
            <sequential>
m@37958
   208
                <fail unless="javac.includes">Must set javac.includes</fail>
m@37958
   209
                <pathconvert pathsep="," property="javac.includes.binary">
m@37958
   210
                    <path>
m@37958
   211
                        <filelist dir="@{destdir}" files="${javac.includes}"/>
m@37958
   212
                    </path>
m@37958
   213
                    <globmapper from="*.java" to="*.class"/>
m@37958
   214
                </pathconvert>
m@37958
   215
                <delete>
m@37958
   216
                    <files includes="${javac.includes.binary}"/>
m@37958
   217
                </delete>
m@37958
   218
            </sequential>
m@37958
   219
        </macrodef>
m@37958
   220
    </target>
m@37958
   221
    <target name="-init-macrodef-scalac">
m@37958
   222
        <macrodef name="scalac" uri="http://www.netbeans.org/ns/scala-project/1">
m@37958
   223
            <attribute default="${src.dir}" name="srcdir"/>
m@37958
   224
            <attribute default="${build.classes.dir}" name="destdir"/>
m@37958
   225
            <attribute default="${javac.classpath}" name="classpath"/>
m@37958
   226
            <attribute default="${extdirs}" name="extdirs"/>
m@37958
   227
            <attribute default="${includes}" name="includes"/>
m@37958
   228
            <attribute default="${excludes}" name="excludes"/>
m@37958
   229
            <attribute default="${scalac.compilerargs}" name="addparams"/>
m@37958
   230
            <attribute default="" name="sourcepath"/>
m@37958
   231
            <element name="customize" optional="true"/>
m@37958
   232
            <sequential>
m@37958
   233
                <scalac addparams="-make:transitive -dependencyfile &quot;${basedir}/${build.dir}/.scala_dependencies&quot; @{addparams}" deprecation="${scalac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" extdirs="@{extdirs}" force="yes" fork="true" includes="@{includes}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="jvm-1.5" unchecked="${scalac.unchecked}">
m@37958
   234
                    <classpath>
m@37958
   235
                        <path>
m@37958
   236
                            <pathelement path="@{classpath}"/>
m@37958
   237
                            <fileset dir="${scala.lib}">
m@37958
   238
                                <include name="**/*.jar"/>
m@37958
   239
                            </fileset>
m@37958
   240
                            <pathelement location="${build.classes.dir}"/>
m@37958
   241
                        </path>
m@37958
   242
                    </classpath>
m@37958
   243
                    <customize/>
m@37958
   244
                </scalac>
m@37958
   245
            </sequential>
m@37958
   246
        </macrodef>
m@37958
   247
        <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/scala-project/1">
m@37958
   248
            <attribute default="${build.classes.dir}" name="destdir"/>
m@37958
   249
            <sequential>
m@37958
   250
                <fail unless="javac.includes">Must set javac.includes</fail>
m@37958
   251
                <pathconvert pathsep="," property="javac.includes.binary">
m@37958
   252
                    <path>
m@37958
   253
                        <filelist dir="@{destdir}" files="${javac.includes}"/>
m@37958
   254
                    </path>
m@37958
   255
                    <globmapper from="*.scala" to="*.class"/>
m@37958
   256
                </pathconvert>
m@37958
   257
                <delete>
m@37958
   258
                    <files includes="${javac.includes.binary}"/>
m@37958
   259
                </delete>
m@37958
   260
            </sequential>
m@37958
   261
        </macrodef>
m@37958
   262
    </target>
m@37958
   263
    <target name="-init-macrodef-junit">
m@37958
   264
        <macrodef name="junit" uri="http://www.netbeans.org/ns/scala-project/1">
m@37958
   265
            <attribute default="${includes}" name="includes"/>
m@37958
   266
            <attribute default="${excludes}" name="excludes"/>
m@37958
   267
            <attribute default="**" name="testincludes"/>
m@37958
   268
            <sequential>
m@37958
   269
                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true">
m@37958
   270
                    <batchtest todir="${build.test.results.dir}">
m@37958
   271
                        <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
m@37958
   272
                            <filename name="@{testincludes}"/>
m@37958
   273
                        </fileset>
m@37958
   274
                    </batchtest>
m@37958
   275
                    <classpath>
m@37958
   276
                        <path path="${run.test.classpath}"/>
m@37958
   277
                        <fileset dir="${scala.lib}">
m@37958
   278
                            <include name="**/*.jar"/>
m@37958
   279
                        </fileset>
m@37958
   280
                    </classpath>
m@37958
   281
                    <syspropertyset>
m@37958
   282
                        <propertyref prefix="test-sys-prop."/>
m@37958
   283
                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
m@37958
   284
                    </syspropertyset>
m@37958
   285
                    <formatter type="brief" usefile="false"/>
m@37958
   286
                    <formatter type="xml"/>
m@37958
   287
                    <jvmarg line="${run.jvmargs}"/>
m@37958
   288
                </junit>
m@37958
   289
            </sequential>
m@37958
   290
        </macrodef>
m@37958
   291
    </target>
m@37958
   292
    <target name="-init-macrodef-nbjpda">
m@37958
   293
        <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/scala-project/1">
m@37958
   294
            <attribute default="${main.class}" name="name"/>
m@37958
   295
            <attribute default="${debug.classpath}" name="classpath"/>
m@37958
   296
            <attribute default="" name="stopclassname"/>
m@37958
   297
            <sequential>
m@37958
   298
                <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="dt_socket">
m@37958
   299
                    <classpath>
m@37958
   300
                        <path path="@{classpath}"/>
m@37958
   301
                    </classpath>
m@37958
   302
                </nbjpdastart>
m@37958
   303
            </sequential>
m@37958
   304
        </macrodef>
m@37958
   305
        <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/scala-project/1">
m@37958
   306
            <attribute default="${build.classes.dir}" name="dir"/>
m@37958
   307
            <sequential>
m@37958
   308
                <nbjpdareload>
m@37958
   309
                    <fileset dir="@{dir}" includes="${fix.includes}*.class"/>
m@37958
   310
                </nbjpdareload>
m@37958
   311
            </sequential>
m@37958
   312
        </macrodef>
m@37958
   313
    </target>
m@37958
   314
    <target name="-init-debug-args">
m@37958
   315
        <property name="version-output" value="java version &quot;${ant.java.version}"/>
m@37958
   316
        <condition property="have-jdk-older-than-1.4">
m@37958
   317
            <or>
m@37958
   318
                <contains string="${version-output}" substring="java version &quot;1.0"/>
m@37958
   319
                <contains string="${version-output}" substring="java version &quot;1.1"/>
m@37958
   320
                <contains string="${version-output}" substring="java version &quot;1.2"/>
m@37958
   321
                <contains string="${version-output}" substring="java version &quot;1.3"/>
m@37958
   322
            </or>
m@37958
   323
        </condition>
m@37958
   324
        <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
m@37958
   325
            <istrue value="${have-jdk-older-than-1.4}"/>
m@37958
   326
        </condition>
m@37958
   327
    </target>
m@37958
   328
    <target depends="-init-debug-args" name="-init-macrodef-debug">
m@37958
   329
        <macrodef name="debug" uri="http://www.netbeans.org/ns/scala-project/1">
m@37958
   330
            <attribute default="${main.class}" name="classname"/>
m@37958
   331
            <attribute default="${debug.classpath}" name="classpath"/>
m@37958
   332
            <element name="customize" optional="true"/>
m@37958
   333
            <sequential>
m@37958
   334
                <java classname="@{classname}" dir="${work.dir}" fork="true">
m@37958
   335
                    <jvmarg line="${debug-args-line}"/>
m@37958
   336
                    <jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
m@37958
   337
                    <jvmarg line="${run.jvmargs}"/>
m@37958
   338
                    <classpath>
m@37958
   339
                        <path path="@{classpath}"/>
m@37958
   340
                        <fileset dir="${scala.lib}">
m@37958
   341
                            <include name="**/*.jar"/>
m@37958
   342
                        </fileset>
m@37958
   343
                    </classpath>
m@37958
   344
                    <syspropertyset>
m@37958
   345
                        <propertyref prefix="run-sys-prop."/>
m@37958
   346
                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
m@37958
   347
                    </syspropertyset>
m@37958
   348
                    <customize/>
m@37958
   349
                </java>
m@37958
   350
            </sequential>
m@37958
   351
        </macrodef>
m@37958
   352
    </target>
m@37958
   353
    <target name="-init-macrodef-java">
m@37958
   354
        <macrodef name="java" uri="http://www.netbeans.org/ns/scala-project/1">
m@37958
   355
            <attribute default="${main.class}" name="classname"/>
m@37958
   356
            <element name="customize" optional="true"/>
m@37958
   357
            <sequential>
m@37958
   358
                <java classname="@{classname}" dir="${work.dir}" fork="true">
m@37958
   359
                    <jvmarg line="${run.jvmargs}"/>
m@37958
   360
                    <classpath>
m@37958
   361
                        <path path="${run.classpath}"/>
m@37958
   362
                        <fileset dir="${scala.lib}">
m@37958
   363
                            <include name="**/*.jar"/>
m@37958
   364
                        </fileset>
m@37958
   365
                    </classpath>
m@37958
   366
                    <syspropertyset>
m@37958
   367
                        <propertyref prefix="run-sys-prop."/>
m@37958
   368
                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
m@37958
   369
                    </syspropertyset>
m@37958
   370
                    <customize/>
m@37958
   371
                </java>
m@37958
   372
            </sequential>
m@37958
   373
        </macrodef>
m@37958
   374
    </target>
m@37958
   375
    <target name="-init-presetdef-jar">
m@37958
   376
        <presetdef name="jar" uri="http://www.netbeans.org/ns/scala-project/1">
m@37958
   377
            <jar compress="${jar.compress}" jarfile="${dist.jar}">
m@37958
   378
                <scalaProject1:fileset dir="${build.classes.dir}"/>
m@37958
   379
            </jar>
m@37958
   380
        </presetdef>
m@37958
   381
    </target>
m@37958
   382
    <target depends="-pre-init,-init-private ,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-scalac,-init-macrodef-junit,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar" name="init"/>
m@37958
   383
    <!--
m@37958
   384
                ===================
m@37958
   385
                COMPILATION SECTION
m@37958
   386
                ===================
m@37958
   387
            -->
m@37958
   388
    <target depends="init" name="deps-jar" unless="no.deps">
m@37958
   389
        <ant antfile="${project.jEdit}/build-nb.xml" inheritall="false" target="build"/>
m@37958
   390
    </target>
m@37958
   391
    <target depends="init,deps-jar" name="-pre-pre-compile">
m@37958
   392
        <mkdir dir="${build.classes.dir}"/>
m@37958
   393
    </target>
m@37958
   394
    <target name="-pre-compile">
m@37958
   395
        <!-- Empty placeholder for easier customization. -->
m@37958
   396
        <!-- You can override this target in the ../build.xml file. -->
m@37958
   397
    </target>
m@37958
   398
    <target if="do.depend.true" name="-compile-depend">
m@37958
   399
        <scalaProject1:depend/>
m@37958
   400
    </target>
m@37958
   401
    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-compile-depend" if="have.sources" name="-do-compile">
m@37958
   402
        <scalaProject1:scalac/>
m@37958
   403
        <scalaProject1:javac/>
m@37958
   404
        <copy todir="${build.classes.dir}">
m@37958
   405
            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}&#10;                        " includes="${includes}"/>
m@37958
   406
        </copy>
m@37958
   407
    </target>
m@37958
   408
    <target name="-post-compile">
m@37958
   409
        <!-- Empty placeholder for easier customization. -->
m@37958
   410
        <!-- You can override this target in the ../build.xml file. -->
m@37958
   411
    </target>
m@37958
   412
    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
m@37958
   413
    <target name="-pre-compile-single">
m@37958
   414
        <!-- Empty placeholder for easier customization. -->
m@37958
   415
        <!-- You can override this target in the ../build.xml file. -->
m@37958
   416
    </target>
m@37958
   417
    <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
m@37958
   418
        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
m@37958
   419
        <scalaProject1:force-recompile/>
m@37958
   420
        <scalaProject1:scalac excludes="" includes="${javac.includes}" sourcepath="${src.dir}"/>
m@37958
   421
    </target>
m@37958
   422
    <target name="-post-compile-single">
m@37958
   423
        <!-- Empty placeholder for easier customization. -->
m@37958
   424
        <!-- You can override this target in the ../build.xml file. -->
m@37958
   425
    </target>
m@37958
   426
    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
m@37958
   427
    <!--
m@37958
   428
                ====================
m@37958
   429
                JAR BUILDING SECTION
m@37958
   430
                ====================
m@37958
   431
            -->
m@37958
   432
    <target depends="init" name="-pre-pre-jar">
m@37958
   433
        <dirname file="${dist.jar}" property="dist.jar.dir"/>
m@37958
   434
        <mkdir dir="${dist.jar.dir}"/>
m@37958
   435
    </target>
m@37958
   436
    <target name="-pre-jar">
m@37958
   437
        <!-- Empty placeholder for easier customization. -->
m@37958
   438
        <!-- You can override this target in the ../build.xml file. -->
m@37958
   439
    </target>
m@37958
   440
    <target depends="init,compile,-pre-pre-jar,-pre-jar" name="-do-jar-without-manifest" unless="manifest.available">
m@37958
   441
        <scalaProject1:jar/>
m@37958
   442
    </target>
m@37958
   443
    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class">
m@37958
   444
        <scalaProject1:jar manifest="${manifest.file}"/>
m@37958
   445
    </target>
m@37958
   446
    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available">
m@37958
   447
        <scalaProject1:jar manifest="${manifest.file}">
m@37958
   448
            <scalaProject1:manifest>
m@37958
   449
                <scalaProject1:attribute name="Main-Class" value="${main.class}"/>
m@37958
   450
            </scalaProject1:manifest>
m@37958
   451
        </scalaProject1:jar>
m@37958
   452
        <echo>To run this application from the command line without Ant, try:</echo>
m@37958
   453
        <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
m@37958
   454
        <property location="${dist.jar}" name="dist.jar.resolved"/>
m@37958
   455
        <pathconvert property="run.classpath.with.dist.jar">
m@37958
   456
            <path path="${run.classpath}"/>
m@37958
   457
            <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
m@37958
   458
        </pathconvert>
m@37958
   459
        <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}
m@37958
   460
                </echo>
m@37958
   461
    </target>
m@37958
   462
    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries">
m@37958
   463
        <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
m@37958
   464
        <pathconvert property="run.classpath.without.build.classes.dir">
m@37958
   465
            <path path="${run.classpath}"/>
m@37958
   466
            <map from="${build.classes.dir.resolved}" to=""/>
m@37958
   467
        </pathconvert>
m@37958
   468
        <pathconvert pathsep=" " property="jar.classpath">
m@37958
   469
            <path path="${run.classpath.without.build.classes.dir}"/>
m@37958
   470
            <chainedmapper>
m@37958
   471
                <flattenmapper/>
m@37958
   472
                <globmapper from="*" to="lib/*"/>
m@37958
   473
            </chainedmapper>
m@37958
   474
        </pathconvert>
m@37958
   475
        <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
m@37958
   476
        <copylibs compress="${jar.compress}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
m@37958
   477
            <fileset dir="${build.classes.dir}"/>
m@37958
   478
            <manifest>
m@37958
   479
                <attribute name="Main-Class" value="${main.class}"/>
m@37958
   480
                <attribute name="Class-Path" value="${jar.classpath}"/>
m@37958
   481
            </manifest>
m@37958
   482
        </copylibs>
m@37958
   483
        <echo>To run this application from the command line without Ant, try:</echo>
m@37958
   484
        <property location="${dist.jar}" name="dist.jar.resolved"/>
m@37958
   485
        <echo>java -jar "${dist.jar.resolved}"
m@37958
   486
                </echo>
m@37958
   487
    </target>
m@37958
   488
    <target name="-post-jar">
m@37958
   489
        <!-- Empty placeholder for easier customization. -->
m@37958
   490
        <!-- You can override this target in the ../build.xml file. -->
m@37958
   491
    </target>
m@37958
   492
    <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-post-jar" description="Build JAR." name="jar"/>
m@37958
   493
    <!--
m@37958
   494
                =================
m@37958
   495
                EXECUTION SECTION
m@37958
   496
                =================
m@37958
   497
            -->
m@37958
   498
    <target depends="init,compile" description="Run a main class." name="run">
m@37958
   499
        <scalaProject1:java>
m@37958
   500
            <customize>
m@37958
   501
                <arg line="${application.args}"/>
m@37958
   502
            </customize>
m@37958
   503
        </scalaProject1:java>
m@37958
   504
    </target>
m@37958
   505
    <target name="-do-not-recompile">
m@37958
   506
        <property name="javac.includes.binary" value=""/>
m@37958
   507
    </target>
m@37958
   508
    <target depends="init,-do-not-recompile,compile-single" name="run-single">
m@37958
   509
        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
m@37958
   510
        <scalaProject1:java classname="${run.class}"/>
m@37958
   511
    </target>
m@37958
   512
    <!--
m@37958
   513
                =================
m@37958
   514
                DEBUGGING SECTION
m@37958
   515
                =================
m@37958
   516
            -->
m@37958
   517
    <target depends="init" if="netbeans.home" name="-debug-start-debugger">
m@37958
   518
        <scalaProject1:nbjpdastart name="${debug.class}"/>
m@37958
   519
    </target>
m@37958
   520
    <target depends="init,compile" name="-debug-start-debuggee">
m@37958
   521
        <scalaProject1:debug>
m@37958
   522
            <customize>
m@37958
   523
                <arg line="${application.args}"/>
m@37958
   524
            </customize>
m@37958
   525
        </scalaProject1:debug>
m@37958
   526
    </target>
m@37958
   527
    <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
m@37958
   528
    <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
m@37958
   529
        <scalaProject1:nbjpdastart stopclassname="${main.class}"/>
m@37958
   530
    </target>
m@37958
   531
    <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
m@37958
   532
    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
m@37958
   533
        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
m@37958
   534
        <scalaProject1:debug classname="${debug.class}"/>
m@37958
   535
    </target>
m@37958
   536
    <target depends="init,-do-not-recompile,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
m@37958
   537
    <target depends="init" name="-pre-debug-fix">
m@37958
   538
        <fail unless="fix.includes">Must set fix.includes</fail>
m@37958
   539
        <property name="javac.includes" value="${fix.includes}.java"/>
m@37958
   540
    </target>
m@37958
   541
    <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
m@37958
   542
        <scalaProject1:nbjpdareload/>
m@37958
   543
    </target>
m@37958
   544
    <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
m@37958
   545
    <!--
m@37958
   546
                ===============
m@37958
   547
                JAVADOC SECTION
m@37958
   548
                ===============
m@37958
   549
            -->
m@37958
   550
    <target depends="init" name="-javadoc-build">
m@37958
   551
        <mkdir dir="${dist.javadoc.dir}"/>
m@37958
   552
        <scaladoc addparams="${javadoc.additionalparam}" deprecation="yes" destdir="${dist.javadoc.dir}" doctitle="${javadoc.windowtitle}" encoding="${javadoc.encoding.used}" srcdir="${src.dir}" unchecked="yes">
m@37958
   553
            <classpath>
m@37958
   554
                <path path="${javac.classpath}"/>
m@37958
   555
                <fileset dir="${scala.lib}">
m@37958
   556
                    <include name="**/*.jar"/>
m@37958
   557
                </fileset>
m@37958
   558
            </classpath>
m@37958
   559
        </scaladoc>
m@37958
   560
    </target>
m@37958
   561
    <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
m@37958
   562
        <nbbrowse file="${dist.javadoc.dir}/index.html"/>
m@37958
   563
    </target>
m@37958
   564
    <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
m@37958
   565
    <!--
m@37958
   566
                =========================
m@37958
   567
                JUNIT COMPILATION SECTION
m@37958
   568
                =========================
m@37958
   569
            -->
m@37958
   570
    <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
m@37958
   571
        <mkdir dir="${build.test.classes.dir}"/>
m@37958
   572
    </target>
m@37958
   573
    <target name="-pre-compile-test">
m@37958
   574
        <!-- Empty placeholder for easier customization. -->
m@37958
   575
        <!-- You can override this target in the ../build.xml file. -->
m@37958
   576
    </target>
m@37958
   577
    <target if="do.depend.true" name="-compile-test-depend">
m@37958
   578
        <scalaProject1:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir=""/>
m@37958
   579
    </target>
m@37958
   580
    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
m@37958
   581
        <scalaProject1:scalac classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir=""/>
m@37958
   582
        <copy todir="${build.test.classes.dir}"/>
m@37958
   583
    </target>
m@37958
   584
    <target name="-post-compile-test">
m@37958
   585
        <!-- Empty placeholder for easier customization. -->
m@37958
   586
        <!-- You can override this target in the ../build.xml file. -->
m@37958
   587
    </target>
m@37958
   588
    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
m@37958
   589
    <target name="-pre-compile-test-single">
m@37958
   590
        <!-- Empty placeholder for easier customization. -->
m@37958
   591
        <!-- You can override this target in the ../build.xml file. -->
m@37958
   592
    </target>
m@37958
   593
    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
m@37958
   594
        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
m@37958
   595
        <scalaProject1:force-recompile destdir="${build.test.classes.dir}"/>
m@37958
   596
        <scalaProject1:scalac classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" sourcepath="" srcdir=""/>
m@37958
   597
        <copy todir="${build.test.classes.dir}"/>
m@37958
   598
    </target>
m@37958
   599
    <target name="-post-compile-test-single">
m@37958
   600
        <!-- Empty placeholder for easier customization. -->
m@37958
   601
        <!-- You can override this target in the ../build.xml file. -->
m@37958
   602
    </target>
m@37958
   603
    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
m@37958
   604
    <!--
m@37958
   605
                =======================
m@37958
   606
                JUNIT EXECUTION SECTION
m@37958
   607
                =======================
m@37958
   608
            -->
m@37958
   609
    <target depends="init" if="have.tests" name="-pre-test-run">
m@37958
   610
        <mkdir dir="${build.test.results.dir}"/>
m@37958
   611
    </target>
m@37958
   612
    <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
m@37958
   613
        <scalaProject1:junit testincludes="**/*Test.class"/>
m@37958
   614
    </target>
m@37958
   615
    <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
m@37958
   616
        <fail if="tests.failed">Some tests failed; see details above.</fail>
m@37958
   617
    </target>
m@37958
   618
    <target depends="init" if="have.tests" name="test-report"/>
m@37958
   619
    <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
m@37958
   620
    <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
m@37958
   621
    <target depends="init" if="have.tests" name="-pre-test-run-single">
m@37958
   622
        <mkdir dir="${build.test.results.dir}"/>
m@37958
   623
    </target>
m@37958
   624
    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
m@37958
   625
        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
m@37958
   626
        <scalaProject1:junit excludes="" includes="${test.includes}"/>
m@37958
   627
    </target>
m@37958
   628
    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
m@37958
   629
        <fail if="tests.failed">Some tests failed; see details above.</fail>
m@37958
   630
    </target>
m@37958
   631
    <target depends="init,-do-not-recompile,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>
m@37958
   632
    <!--
m@37958
   633
                =======================
m@37958
   634
                JUNIT DEBUGGING SECTION
m@37958
   635
                =======================
m@37958
   636
            -->
m@37958
   637
    <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
m@37958
   638
        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
m@37958
   639
        <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
m@37958
   640
        <delete file="${test.report.file}"/>
m@37958
   641
        <mkdir dir="${build.test.results.dir}"/>
m@37958
   642
        <scalaProject1:debug classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner" classpath="${ant.home}/lib/ant.jar:${ant.home}/lib/ant-junit.jar:${debug.test.classpath}">
m@37958
   643
            <customize>
m@37958
   644
                <syspropertyset>
m@37958
   645
                    <propertyref prefix="test-sys-prop."/>
m@37958
   646
                    <mapper from="test-sys-prop.*" to="*" type="glob"/>
m@37958
   647
                </syspropertyset>
m@37958
   648
                <arg value="${test.class}"/>
m@37958
   649
                <arg value="showoutput=true"/>
m@37958
   650
                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
m@37958
   651
                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
m@37958
   652
            </customize>
m@37958
   653
        </scalaProject1:debug>
m@37958
   654
    </target>
m@37958
   655
    <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
m@37958
   656
        <scalaProject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
m@37958
   657
    </target>
m@37958
   658
    <target depends="init,-do-not-recompile,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
m@37958
   659
    <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
m@37958
   660
        <scalaProject1:nbjpdareload dir="${build.test.classes.dir}"/>
m@37958
   661
    </target>
m@37958
   662
    <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
m@37958
   663
    <!--
m@37958
   664
                =========================
m@37958
   665
                APPLET EXECUTION SECTION
m@37958
   666
                =========================
m@37958
   667
            -->
m@37958
   668
    <target depends="init,compile-single" name="run-applet">
m@37958
   669
        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
m@37958
   670
        <scalaProject1:java classname="sun.applet.AppletViewer">
m@37958
   671
            <customize>
m@37958
   672
                <arg value="${applet.url}"/>
m@37958
   673
            </customize>
m@37958
   674
        </scalaProject1:java>
m@37958
   675
    </target>
m@37958
   676
    <!--
m@37958
   677
                =========================
m@37958
   678
                APPLET DEBUGGING  SECTION
m@37958
   679
                =========================
m@37958
   680
            -->
m@37958
   681
    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
m@37958
   682
        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
m@37958
   683
        <scalaProject1:debug classname="sun.applet.AppletViewer">
m@37958
   684
            <customize>
m@37958
   685
                <arg value="${applet.url}"/>
m@37958
   686
            </customize>
m@37958
   687
        </scalaProject1:debug>
m@37958
   688
    </target>
m@37958
   689
    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
m@37958
   690
    <!--
m@37958
   691
                ===============
m@37958
   692
                CLEANUP SECTION
m@37958
   693
                ===============
m@37958
   694
            -->
m@37958
   695
    <target depends="init" name="deps-clean" unless="no.deps">
m@37958
   696
        <ant antfile="${project.jEdit}/build-nb.xml" inheritall="false" target="clean"/>
m@37958
   697
    </target>
m@37958
   698
    <target depends="init" name="-do-clean">
m@37958
   699
        <delete dir="${build.dir}"/>
m@37958
   700
        <delete dir="${dist.dir}"/>
m@37958
   701
    </target>
m@37958
   702
    <target name="-post-clean">
m@37958
   703
        <!-- Empty placeholder for easier customization. -->
m@37958
   704
        <!-- You can override this target in the ../build.xml file. -->
m@37958
   705
    </target>
m@37958
   706
    <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
m@37958
   707
</project>