Ignore:
Timestamp:
2018-02-26T19:57:21+13:00 (6 years ago)
Author:
ak19
Message:

2 Bugfixes and tidying up errorhandling in JarTools. 1. Dr Bainbridge fixed issue surrounding env.Path rather than env.PATH being used on Windows, while the empty env.PATH was being concatenated as a variable name by build.xml. This resulted in a cyclical reference, noticed when running the GLI Web Start Application (converted from GLI Applet). Fix is in build.xml. 2. My bugfix to WebGatherer.java, the new GLI Web Start Application. The collectionDir wasn't set correctly until the Gatherer object was instantiated, but the collect dir needed to be known by other code beforehand. So shifted the Gatherer object instantiation up a bit. 3. Can't yet reproduce the Exception seen twice before when running GLI Web Start application. The exception was thrown in ZipTools.java. Tested by rerunning the applet repeatedly, but it hasn't struck again yet. Perhaps it's been fixed now because of the other changes?

File:
1 edited

Legend:

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

    r32152 r32153  
    649649  </path>
    650650
    651 
    652   <path id="local.tomcat.path">
    653     <pathelement location="${basedir}/bin/script"/>
    654     <pathelement location="${basedir}/bin"/>
    655     <pathelement location="${lib.jni}"/>
    656     <pathelement path="${env.PATH}"/>
    657     <pathelement path="${env.Path}"/>
    658     <pathelement path="${wn.home}/bin"/>
    659   </path>
     651 
     652    <if><bool><isset property="env.PATH"/></bool>
     653      <path id="local.tomcat.path">
     654        <pathelement location="${basedir}/bin/script"/>
     655        <pathelement location="${basedir}/bin"/>
     656        <pathelement location="${lib.jni}"/>   
     657        <pathelement path="${env.PATH}"/>
     658        <pathelement path="${wn.home}/bin"/>
     659      </path>
     660      <!-- Windows can be case sensitive about env.PATH, preferring env.Path. See https://ant.apache.org/manual/Tasks/property.html  -->
     661      <else><if><bool><isset property="env.Path"/></bool>
     662        <path id="local.tomcat.path">
     663          <pathelement location="${basedir}/bin/script"/>
     664          <pathelement location="${basedir}/bin"/>
     665          <pathelement location="${lib.jni}"/>
     666          <pathelement path="${env.Path}"/>
     667          <pathelement path="${wn.home}/bin"/>
     668        </path>
     669      <!-- else print error about no path set -->
     670      <else>
     671        <echo>No env.PATH (or env.Path) set. Unable to set local.tomcat.path property</echo>
     672      </else></if></else>   
     673    </if>   
    660674
    661675  <target name="test-setup">
     
    666680    <echo>is windows : ${current.os.iswindows}</echo>
    667681    <echo>os.unix: ${os.unix}</echo>
     682    <echo>env.PATH: ${env.PATH}</echo>
     683    <echo>env.Path: ${env.Path}</echo> 
    668684  </target>
    669685
Note: See TracChangeset for help on using the changeset viewer.