Ignore:
Timestamp:
2021-10-20T18:22:58+13:00 (3 years ago)
Author:
davidb
Message:

Need more careful control on how uninstaller Java code is compiled, so it too sticks with the -source -target values to produce a backwards compatible version of the installer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/release-kits/shared/core/ant-scripts/shared.xml

    r35629 r35651  
    22<project name="rk-init">
    33
     4  <taskdef name="if" classname="ise.antelope.tasks.IfTask" classpath="${rk.home}/shared/core/lib/AntelopeTasks_3.4.2.jar"/>
     5
    46    <!-- CHECK PRE-CONDITIONS  -->
    57    <target name="init">
    6       <echo>@@ Shared called</echo>
    78        <!-- load in static properties from build.properties -->
    89        <property file="${rk.name}-build.properties" />
     
    1011        <!-- load environment properties -->
    1112        <property environment="env"/>
    12 
     13       
     14        <if>
     15          <bool><isset property="env.JAVACFLAGS"/></bool>
     16          <property name="compile.javac.flags" value="${env.JAVACFLAGS}"/>
     17          <else>
     18            <property name="compile.javac.flags" value=""/>
     19          </else>     
     20        </if>
     21       
    1322        <!-- CLASSPATH -->
    1423        <path id="project.classpath">
     
    261270       
    262271        <!-- copile to build -->
    263         <javac
    264             srcdir="${rk.home}/shared/core/uninstaller"
    265             destdir="compiled/uninstaller/build" />
     272        <javac includeantruntime="false"
     273               srcdir="${rk.home}/shared/core/uninstaller"
     274               destdir="compiled/uninstaller/build" >
     275          <compilerarg line="${compile.javac.flags}"/>
     276        </javac>
    266277
    267278        <!-- copy language bundle into place -->
    268279        <native2ascii
    269             implementation="default"
    270             src="${rk.home}/shared/core/language-strings"
    271             dest="compiled/uninstaller/build/resources"/>
     280               implementation="default"
     281               src="${rk.home}/shared/core/language-strings"
     282               dest="compiled/uninstaller/build/resources"/>
    272283
    273284        <!-- jar it all up -->
    274         <jar
    275             destfile="compiled/uninstall/uninst.jar"
    276             manifest="${rk.home}/shared/core/uninstaller/manifest.mf"
    277             basedir="compiled/uninstaller/build" />
     285        <jar   destfile="compiled/uninstall/uninst.jar"
     286               manifest="${rk.home}/shared/core/uninstaller/manifest.mf"
     287               basedir="compiled/uninstaller/build" />
    278288
    279289        <!-- clean up build directory -->
Note: See TracChangeset for help on using the changeset viewer.