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