Changeset 36760


Ignore:
Timestamp:
2022-10-09T17:23:40+13:00 (19 months ago)
Author:
davidb
Message:

To run the ant 'install' target to compile everything up without having sourced gs3-devel.sh (i.e., we rely on the newer where interall build.xml does this), then we need to pass on the env.JAVA_HOME property explicitly to exec commands that make use of it

File:
1 edited

Legend:

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

    r36654 r36760  
    36843684    <exec executable="make" os="${os.unix}" dir="${javagdbm.home}" failonerror="true">
    36853685      <arg value="JAVACOPTIONS=-encoding UTF8"/>
     3686      <env key="JAVA_HOME" path="${env.JAVA_HOME}"/>
    36863687    </exec>
    36873688    <exec executable="make" os="${os.unix}" dir="${javagdbm.home}" failonerror="true">
     
    36953696    <echo>Windows: compile javagdbm</echo>
    36963697    <exec executable="${javagdbm.home}/winMake.bat" osfamily="windows" dir="${javagdbm.home}" failonerror="true">     
     3698      <env key="JAVA_HOME"    path="${env.JAVA_HOME}"/>
    36973699      <env key="GSDL3SRCHOME" path="${basedir}"/>
    36983700    </exec>
     
    38893891    <exec executable="make" os="${os.unix}" dir="${common.src.home}" failonerror="true">
    38903892      <arg value="${gs2.compile.target}"/>
     3893      <arg value="JAVA_HOME=${env.JAVA_HOME}"/>     
    38913894    </exec>
    38923895    <!-- windows: -->
     
    38953898      <arg value="win32.mak"/>
    38963899      <arg value="VISUAL_STUDIO_MAJORVERSION=${visualstudio.majorversion}"/>     
     3900      <arg value="JAVA_HOME=${env.JAVA_HOME}"/>     
     3901
    38973902      <arg value="GSDLHOME=${common.src.binhome}"/>
    38983903      <arg value="ENABLE_JNI=${gs2.windows.enablejni}"/>
Note: See TracChangeset for help on using the changeset viewer.