Ignore:
Timestamp:
2012-07-27T18:04:42+12:00 (12 years ago)
Author:
ak19
Message:

OAIConfig.xml's baseURL property is now set dynamically to the OAIServer URL whenever the tomcat server has started up.

File:
1 edited

Legend:

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

    r26002 r26033  
    644644    <echo>URL   : ${url}</echo>
    645645    <!-- assuming that index.html is not needed here -->   
     646
     647    <!--Now write out the url with oaiserver suffix as the baseURL property in OAIConfig.xml-->
     648    <available file="${web.classes}/OAIConfig.xml" property="oaiconfig.present"/>
     649    <antcall target="init-oaiconfig">
     650      <param name="url" value="${url}"/>
     651    </antcall>
     652  </target>
     653
     654  <target name="init-oaiconfig" if="oaiconfig.present">
     655    <echo>Writing out baseURL ${url}oaiserver to ${web.classes}/OAIConfig.xml</echo>
     656    <rsr file="${web.classes}/OAIConfig.xml" pattern="&lt;baseURL&gt;.*&lt;/baseURL&gt;" replacement="&lt;baseURL&gt;${url}oaiserver&lt;/baseURL&gt;" />   
    646657  </target>
    647658
Note: See TracChangeset for help on using the changeset viewer.