Ignore:
Timestamp:
2022-09-23T13:38:28+12:00 (19 months ago)
Author:
davidb
Message:

Working through a set of changes where config values need to be expressed in unix (URL, really) format to work with the Java programs that read in the config files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs3-extensions/webswing/trunk/build.xml

    r36584 r36653  
    3939  <!-- greenstone3 paths -->
    4040  <property name="gsdl3srchome"     location="${basedir}/../.."/>     <!-- location property creates an absolute path -->
    41   <property name="web.home"         location="${basedir}/../../web"/> <!-- location property creates an absolute path, default if not set with -D argument -->
    42   <property name="web.writablehome" location="${basedir}/../../web"/> <!-- location property creates an absolute path, default if not set with -D argument -->
    43   <property name="web.extdir" value="${web.writablehome}/ext/webswing"/>
    44  
     41  <pathconvert targetos="unix" property="gsdl3srchome.unix">
     42    <path path="${gsdl3srchome}"/>
     43  </pathconvert>
     44
     45  <!-- location property creates an absolute path, default if not set with -D argument -->
     46  <property name="web.home"         location="${basedir}/../../web"/>
     47  <pathconvert targetos="unix" property="web.home.unix">
     48    <path path="${web.home}"/>
     49  </pathconvert>
     50
     51  <!-- location property creates an absolute path, default if not set with -D argument -->
     52  <property name="web.writablehome" location="${basedir}/../../web"/>
     53  <pathconvert targetos="unix" property="web.writablehome.unix">
     54    <path path="${web.writablehome}"/>
     55  </pathconvert>
     56
     57  <property name="web.extdir" value="${web.writablehome.unix}/ext/webswing"/>
     58  <pathconvert targetos="unix" property="web.extdir.unix">
     59    <path path="${web.extdir}"/>
     60  </pathconvert>
     61
    4562  <!-- local ext paths -->
    4663  <loadproperties prefix="gs3." srcFile="${basedir}/../../build.properties"/>
     
    105122    </if>
    106123    <if>
    107       <bool><not><available file="${web.extdir}/etc" type="dir"/></not></bool>       
    108       <echo>Creating web extension directory: ${web.extdir}/etc</echo>
    109       <mkdir dir="${web.extdir}/etc"/>
     124      <bool><not><available file="${web.extdir.unix}/etc" type="dir"/></not></bool>       
     125      <echo>Creating web extension directory: ${web.extdir.unix}/etc</echo>
     126      <mkdir dir="${web.extdir.unix}/etc"/>
    110127    </if>
    111128
     
    113130      <sequential>
    114131    <echo message="Installing ${basedir}/web/etc/@{configFile}.in"/>
    115     <copy file="${basedir}/web/etc/@{configFile}.in" tofile="${web.extdir}/etc/@{configFile}.in" overwrite="true" />
     132    <copy file="${basedir}/web/etc/@{configFile}.in" tofile="${web.extdir.unix}/etc/@{configFile}.in" overwrite="true" />
    116133      </sequential>
    117134    </for>
     
    144161    <for param="configFile" list="${etc-config-files}">
    145162      <sequential>
    146     <echo message="Configuring ${web.extdir}/etc/@{configFile}"/> 
    147     <copy file="${web.extdir}/etc/@{configFile}.in" tofile="${web.extdir}/etc/@{configFile}" filtering="true" overwrite="true">
     163    <echo message="Configuring ${web.extdir.unix}/etc/@{configFile}"/> 
     164    <copy file="${web.extdir.unix}/etc/@{configFile}.in" tofile="${web.extdir.unix}/etc/@{configFile}" filtering="true" overwrite="true">
    148165      <filterset>
    149166        <filter token="gsdl3srchome" value="${gsdl3srchome}"/>
     167        <filter token="gsdl3srchomeunix" value="${gsdl3srchome.unix}"/>
    150168      </filterset>
    151169    </copy>
     
    171189    <echo>Removing 'webswing' from ${web.extdir}</echo>
    172190    <echo>
    173        delete failonerror="false" includeEmptyDirs="true" dir="${web.extdir}/webswing"
     191       delete failonerror="false" includeEmptyDirs="true" dir="${web.extdir.unix}/webswing"
    174192    </echo>
    175193  </target>
Note: See TracChangeset for help on using the changeset viewer.