Changeset 36654


Ignore:
Timestamp:
2022-09-23T13:38:55+12:00 (6 days 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
  • main/trunk/greenstone3/build.xml

    r36586 r36654  
    414414  <property name="web.home" value="${basedir}/web"/>
    415415  <property name="web.writablehome" value="${gsdl3.writablehome}"/>
     416
     417  <!-- The following are useful in Java-based config files (.properties,.json,.xml)
     418       where the 'Unix style' (really URL style of slash, even in a file://...) is used -->
     419  <pathconvert targetos="unix" property="web.home.unix">
     420    <path path="${web.home}"/>
     421  </pathconvert>
     422  <pathconvert targetos="unix" property="web.writablehome.unix">
     423    <path path="${web.writablehome}"/>
     424  </pathconvert>
     425 
    416426  <!-- If using a dispersed GS3 web folder, then the user web would not contain everything in the
    417427       default GS3 web (it won't contain a CGI or lib folder inside WEB-INF, for instance) -->
     
    26442654  <target name="configure-webswing-ext" depends="init" >
    26452655    <exec executable="ant.bat" osfamily="windows" dir="${webswing-ext.home}" spawn="false" failonerror="true">
    2646       <arg value="-Dweb.home=${web.home}"/>
    2647       <arg value="-Dweb.writablehome=${web.writablehome}"/>
     2656      <arg value="-Dweb.home=${web.home.unix}"/>
     2657      <arg value="-Dweb.writablehome=${web.writablehome.unix}"/>
    26482658      <arg value="configure-extension"/>
    26492659    </exec>
Note: See TracChangeset for help on using the changeset viewer.