Changeset 29244

Show
Ignore:
Timestamp:
29.08.2014 18:07:30 (5 years ago)
Author:
ak19
Message:

Dr Bainbridge updated the generation of the OAIConfig.xml. It is now generated in web\WEB-INF\classes from its template .in file in the resources folder, following the pattern of changes that Kathy made for similar template files.

Files:
1 modified

Legend:

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

    r29156 r29244  
    789789 
    790790    <!--Now write out the url with oaiserver suffix as the baseURL property in OAIConfig.xml--> 
    791     <available file="${basedir}/resources/oai/OAIConfig.xml" property="oaiconfig.present"/> 
     791    <available file="${basedir}/resources/oai/OAIConfig.xml.in" property="oaiconfig.present"/> 
    792792    <antcall target="init-oaiconfig"> 
    793793      <param name="url" value="${url}"/> 
     
    797797  <target name="init-oaiconfig" if="oaiconfig.present"> 
    798798    <echo>Writing out baseURL ${url}oaiserver to ${web.writableclasses}/OAIConfig.xml</echo> 
    799     <copy file="${basedir}/resources/oai/OAIConfig.xml" tofile="${web.writableclasses}/OAIConfig.xml"/> 
     799    <copy file="${basedir}/resources/oai/OAIConfig.xml.in" tofile="${web.writableclasses}/OAIConfig.xml"/> 
    800800    <rsr verbosity="1" file="${web.writableclasses}/OAIConfig.xml" pattern="&lt;baseURL&gt;.*&lt;/baseURL&gt;" replacement="&lt;baseURL&gt;${url}oaiserver&lt;/baseURL&gt;" />    
    801801  </target>