Changeset 35579


Ignore:
Timestamp:
2021-10-14T10:52:51+13:00 (3 years ago)
Author:
davidb
Message:

Changed to 'javac' tasks relying on JAVACFLAGS rather than compile.java.version.target being set earlier in the file to be 1.6. This change is to bring the code in to line wiht a recent change in the Release Kit code base where JAVACFLAGS is explicitly set (and set more carefully to also specify an appropriate rt.jar runtime jar for 1.6 that has been checked in to the Release Kit code base)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/build.xml

    r35557 r35579  
    802802  <property name="compile.encoding"    value="UTF8"/>
    803803  <property name="compile.includeantruntime" value="false"/> <!-- to get rid of annoying 'ant' warning -->
    804   <property name="compile.java.target.version" value="1.6"/> <!-- used in -source and -target options-->
    805804  <!--
    806805
     
    17871786      deprecation="${compile.deprecation}"
    17881787      optimize="${compile.optimize}"
    1789       encoding="${compile.encoding}"
    1790       source="${compile.java.target.version}"
    1791       target="${compile.java.target.version}">
     1788      encoding="${compile.encoding}">
     1789      <compilerarg line="${env.JAVACFLAGS}"/>
    17921790      <classpath><path refid="compile.classpath"/></classpath>
    17931791    </javac>
     
    31863184      deprecation="${compile.deprecation}"
    31873185      optimize="${compile.optimize}"
    3188       encoding="${compile.encoding}"
    3189       source="${compile.java.target.version}"
    3190       target="${compile.java.target.version}">
     3186      encoding="${compile.encoding}">
     3187      <compilerarg line="${env.JAVACFLAGS}"/>
    31913188      <classpath refid="compile.classpath"/>
    31923189      <include name="org/greenstone/gsdl3/${axis.servicesname}${axis.sitename}.java" />
     
    32343231           deprecation="${compile.deprecation}"
    32353232           optimize="${compile.optimize}"
    3236            encoding="${compile.encoding}"
    3237                source="${compile.java.target.version}"
    3238                target="${compile.java.target.version}">
    3239          
     3233           encoding="${compile.encoding}">
     3234      <compilerarg line="${env.JAVACFLAGS}"/>
    32403235      <classpath>
    32413236            <path refid="compile.classpath"/>
     
    32503245         deprecation="${compile.deprecation}"
    32513246         optimize="${compile.optimize}"
    3252          encoding="${compile.encoding}"
    3253                  source="${compile.java.target.version}"
    3254                  target="${compile.java.target.version}">
     3247         encoding="${compile.encoding}">
     3248        <compilerarg line="${env.JAVACFLAGS}"/>
    32553249        <classpath>
    32563250              <path refid="compile.classpath"/>
     
    45744568                    <mkdir dir="@{compiledir}/../build"/>
    45754569                </if>
    4576                 <javac
    4577                     srcdir="@{compiledir}"
    4578                     destdir="@{compiledir}/../build"
    4579                         includeantruntime="${compile.includeantruntime}"
    4580                     debug="${compile.debug}"
    4581                     deprecation="${compile.deprecation}"
    4582                     optimize="${compile.optimize}"
    4583                     encoding="${compile.encoding}"
    4584                                         source="${compile.java.target.version}"
    4585                                         target="${compile.java.target.version}">
    4586 
    4587                     <classpath>
    4588                         <fileset dir="${basedir}/ext/testing/lib/java">
    4589                             <include name="*.jar"/>
    4590                         </fileset>
    4591                     </classpath>
    4592                     <include name="gstests/*.java"/>
     4570                <javac srcdir="@{compiledir}"
     4571                       destdir="@{compiledir}/../build"
     4572                       includeantruntime="${compile.includeantruntime}"
     4573                       debug="${compile.debug}"
     4574                       deprecation="${compile.deprecation}"
     4575                       optimize="${compile.optimize}"
     4576                       encoding="${compile.encoding}">
     4577                  <compilerarg line="${env.JAVACFLAGS}"/>
     4578                  <classpath>
     4579                    <fileset dir="${basedir}/ext/testing/lib/java">
     4580                      <include name="*.jar"/>
     4581                    </fileset>
     4582                  </classpath>
     4583                  <include name="gstests/*.java"/>
    45934584                </javac>
    45944585                <jar destfile="@{compiledir}/../tests.jar">
Note: See TracChangeset for help on using the changeset viewer.