task1/solution09/nbproject/build-impl.xml
changeset 7 ac8f5d2832db
parent 6 97662396c0fd
     1.1 --- a/task1/solution09/nbproject/build-impl.xml	Sun Sep 28 14:12:38 2008 +0200
     1.2 +++ b/task1/solution09/nbproject/build-impl.xml	Sun Sep 28 18:23:45 2008 +0200
     1.3 @@ -47,43 +47,6 @@
     1.4          <property file="nbproject/project.properties"/>
     1.5      </target>
     1.6      <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
     1.7 -        <j2seproject1:property name="platform.home" value="platforms.${platform.active}.home"/>
     1.8 -        <j2seproject1:property name="platform.bootcp" value="platforms.${platform.active}.bootclasspath"/>
     1.9 -        <j2seproject1:property name="platform.compiler" value="platforms.${platform.active}.compile"/>
    1.10 -        <j2seproject1:property name="platform.javac.tmp" value="platforms.${platform.active}.javac"/>
    1.11 -        <condition property="platform.javac" value="${platform.home}/bin/javac">
    1.12 -            <equals arg1="${platform.javac.tmp}" arg2="$${platforms.${platform.active}.javac}"/>
    1.13 -        </condition>
    1.14 -        <property name="platform.javac" value="${platform.javac.tmp}"/>
    1.15 -        <j2seproject1:property name="platform.java.tmp" value="platforms.${platform.active}.java"/>
    1.16 -        <condition property="platform.java" value="${platform.home}/bin/java">
    1.17 -            <equals arg1="${platform.java.tmp}" arg2="$${platforms.${platform.active}.java}"/>
    1.18 -        </condition>
    1.19 -        <property name="platform.java" value="${platform.java.tmp}"/>
    1.20 -        <j2seproject1:property name="platform.javadoc.tmp" value="platforms.${platform.active}.javadoc"/>
    1.21 -        <condition property="platform.javadoc" value="${platform.home}/bin/javadoc">
    1.22 -            <equals arg1="${platform.javadoc.tmp}" arg2="$${platforms.${platform.active}.javadoc}"/>
    1.23 -        </condition>
    1.24 -        <property name="platform.javadoc" value="${platform.javadoc.tmp}"/>
    1.25 -        <condition property="platform.invalid" value="true">
    1.26 -            <or>
    1.27 -                <contains string="${platform.javac}" substring="$${platforms."/>
    1.28 -                <contains string="${platform.java}" substring="$${platforms."/>
    1.29 -                <contains string="${platform.javadoc}" substring="$${platforms."/>
    1.30 -            </or>
    1.31 -        </condition>
    1.32 -        <fail unless="platform.home">Must set platform.home</fail>
    1.33 -        <fail unless="platform.bootcp">Must set platform.bootcp</fail>
    1.34 -        <fail unless="platform.java">Must set platform.java</fail>
    1.35 -        <fail unless="platform.javac">Must set platform.javac</fail>
    1.36 -        <fail if="platform.invalid">
    1.37 - The J2SE Platform is not correctly set up.
    1.38 - Your active platform is: ${platform.active}, but the corresponding property "platforms.${platform.active}.home" is not found in the project's properties files. 
    1.39 - Either open the project in the IDE and setup the Platform with the same name or add it manually.
    1.40 - For example like this:
    1.41 -     ant -Duser.properties.file=&lt;path_to_property_file&gt; jar (where you put the property "platforms.${platform.active}.home" in a .properties file)
    1.42 -  or ant -Dplatforms.${platform.active}.home=&lt;path_to_JDK_home&gt; jar (where no properties file is used) 
    1.43 -  </fail>
    1.44          <available file="${manifest.file}" property="manifest.available"/>
    1.45          <condition property="manifest.available+main.class">
    1.46              <and>
    1.47 @@ -192,7 +155,7 @@
    1.48              <attribute default="" name="sourcepath"/>
    1.49              <element name="customize" optional="true"/>
    1.50              <sequential>
    1.51 -                <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" executable="${platform.javac}" fork="yes" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
    1.52 +                <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}">
    1.53                      <classpath>
    1.54                          <path path="@{classpath}"/>
    1.55                      </classpath>
    1.56 @@ -235,7 +198,7 @@
    1.57              <attribute default="${excludes}" name="excludes"/>
    1.58              <attribute default="**" name="testincludes"/>
    1.59              <sequential>
    1.60 -                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${platform.java}" showoutput="true">
    1.61 +                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true">
    1.62                      <batchtest todir="${build.test.results.dir}">
    1.63                          <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
    1.64                              <filename name="@{testincludes}"/>
    1.65 @@ -265,9 +228,6 @@
    1.66                      <classpath>
    1.67                          <path path="@{classpath}"/>
    1.68                      </classpath>
    1.69 -                    <bootclasspath>
    1.70 -                        <path path="${platform.bootcp}"/>
    1.71 -                    </bootclasspath>
    1.72                  </nbjpdastart>
    1.73              </sequential>
    1.74          </macrodef>
    1.75 @@ -283,9 +243,7 @@
    1.76          </macrodef>
    1.77      </target>
    1.78      <target name="-init-debug-args">
    1.79 -        <exec executable="${platform.java}" outputproperty="version-output">
    1.80 -            <arg value="-version"/>
    1.81 -        </exec>
    1.82 +        <property name="version-output" value="java version &quot;${ant.java.version}"/>
    1.83          <condition property="have-jdk-older-than-1.4">
    1.84              <or>
    1.85                  <contains string="${version-output}" substring="java version &quot;1.0"/>
    1.86 @@ -310,7 +268,7 @@
    1.87              <attribute default="${debug.classpath}" name="classpath"/>
    1.88              <element name="customize" optional="true"/>
    1.89              <sequential>
    1.90 -                <java classname="@{classname}" dir="${work.dir}" fork="true" jvm="${platform.java}">
    1.91 +                <java classname="@{classname}" dir="${work.dir}" fork="true">
    1.92                      <jvmarg line="${debug-args-line}"/>
    1.93                      <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
    1.94                      <jvmarg line="${run.jvmargs}"/>
    1.95 @@ -331,7 +289,7 @@
    1.96              <attribute default="${main.class}" name="classname"/>
    1.97              <element name="customize" optional="true"/>
    1.98              <sequential>
    1.99 -                <java classname="@{classname}" dir="${work.dir}" fork="true" jvm="${platform.java}">
   1.100 +                <java classname="@{classname}" dir="${work.dir}" fork="true">
   1.101                      <jvmarg line="${run.jvmargs}"/>
   1.102                      <classpath>
   1.103                          <path path="${run.classpath}"/>
   1.104 @@ -433,7 +391,7 @@
   1.105              <path path="${run.classpath}"/>
   1.106              <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
   1.107          </pathconvert>
   1.108 -        <echo>${platform.java} -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
   1.109 +        <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
   1.110      </target>
   1.111      <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries">
   1.112          <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
   1.113 @@ -458,7 +416,7 @@
   1.114          </copylibs>
   1.115          <echo>To run this application from the command line without Ant, try:</echo>
   1.116          <property location="${dist.jar}" name="dist.jar.resolved"/>
   1.117 -        <echo>${platform.java} -jar "${dist.jar.resolved}"</echo>
   1.118 +        <echo>java -jar "${dist.jar.resolved}"</echo>
   1.119      </target>
   1.120      <target name="-post-jar">
   1.121          <!-- Empty placeholder for easier customization. -->
   1.122 @@ -524,7 +482,7 @@
   1.123              -->
   1.124      <target depends="init" name="-javadoc-build">
   1.125          <mkdir dir="${dist.javadoc.dir}"/>
   1.126 -        <javadoc additionalparam="${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" executable="${platform.javadoc}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}">
   1.127 +        <javadoc additionalparam="${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}">
   1.128              <classpath>
   1.129                  <path path="${javac.classpath}"/>
   1.130              </classpath>