Changeset 5838 for trunk/build.xml


Ignore:
Timestamp:
Nov 1, 2011, 12:10:57 PM (10 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #1635: Test BASE with Java 7

BASE itself seems to be working just fine. Compilation with Java 7 needs to set the 'javac.bootclasspath' to point to a JRE 6 installation. The recommended approach is to create build.properties and set the value in that file. Eg.

javac.bootclasspath /path/to/jdk-6/jre
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        88examples
        99plugins
         10build.properties
  • trunk/build.xml

    r5823 r5838  
    5757    package.src       Create source distribution only
    5858  </description>
     59 
     60  <!--create this file if you need to override values from properties below -->
     61  <property file="build.properties" />
    5962
    6063  <!-- set BASE version
     
    8083  <property name="javac.encoding" value="UTF-8"
    8184    description="Default value for the 'encoding' attribute when compiling java code" />
     85  <property name="javac.bootclasspath" value="."
     86    description="Path to JRE containing the Java version we are building BASE against." />
    8287  <property name="src" location="src" description="Location of source files" />
    8388  <property name="build" location="build" description="Location of compiled files" />
     
    9499    <fileset dir="${lib}/dist">
    95100      <include name="**/*.jar"/>
     101    </fileset>
     102  </path>
     103
     104  <path id="lib.bootclasspath">
     105    <fileset dir="${javac.bootclasspath}">
     106      <include name="lib/*.jar" />
    96107    </fileset>
    97108  </path>
     
    429440      source="${javac.source}"
    430441      target="${javac.target}"
     442      bootclasspathref="lib.bootclasspath"
    431443      includeantruntime="false"
    432444      >
     
    465477      source="${javac.source}"
    466478      target="${javac.target}"
     479      bootclasspathref="lib.bootclasspath"
    467480      includeantruntime="false"
    468481      >
     
    653666      source="${javac.source}"
    654667      target="${javac.target}"
     668      bootclasspathref="lib.bootclasspath"
    655669      includeantruntime="false"
    656670      >
     
    720734      source="${javac.source}"
    721735      target="${javac.target}"
     736      bootclasspathref="lib.bootclasspath"
    722737      includeantruntime="false"
    723738      >
     
    779794      source="${javac.source}"
    780795      target="${javac.target}"
     796      bootclasspathref="lib.bootclasspath"
    781797      includeantruntime="false"
    782798      >
     
    863879      target="${javac.target}"
    864880      encoding="${javac.encoding}"
     881      bootclasspathref="lib.bootclasspath"
    865882      includeantruntime="false"
    866883      >
     
    884901      source="${javac.source}"
    885902      target="${javac.target}"
     903      bootclasspathref="lib.bootclasspath"
    886904      includeantruntime="false"
    887905      >
     
    966984      source="${javac.source}"
    967985      target="${javac.target}"
     986      bootclasspathref="lib.bootclasspath"
    968987      includeantruntime="false"
    969988      >
     
    9981017      source="${javac.source}"
    9991018      target="${javac.target}"
     1019      bootclasspathref="lib.bootclasspath"
    10001020      includeantruntime="false"
    10011021      >
     
    10891109      source="${javac.source}"
    10901110      target="${javac.target}"
     1111      bootclasspathref="lib.bootclasspath"
    10911112      includeantruntime="false"
    10921113      >
     
    11351156      source="${javac.source}"
    11361157      target="${javac.target}"
     1158      bootclasspathref="lib.bootclasspath"
    11371159      includeantruntime="false"
    11381160      >
Note: See TracChangeset for help on using the changeset viewer.