Changeset 27149


Ignore:
Timestamp:
2013-03-28T15:58:37+13:00 (11 years ago)
Author:
ak19
Message:
  1. New target setup-for-eclipse that generates a eclipse Run configuration launch file for TransformingLibrary.java from the .in version. 2. OAIConfig.xml generated from OAIConfig.xml.in
File:
1 edited

Legend:

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

    r27139 r27149  
    558558
    559559  <!-- install-common-src and install-collection-building are mutually exclusive and either one or the other will be done depending on whether collection building is enabled or not -->
    560   <target name="install" depends="init,install-common-src,install-collection-building,install-runtime"
     560  <target name="install" depends="init,install-common-src,install-collection-building,install-runtime,setup-for-eclipse"
    561561    description="Install Greenstone 3. Use this when you first checkout the code: 'ant prepare new-install'."/>
    562562
     
    682682
    683683    <!--Now write out the url with oaiserver suffix as the baseURL property in OAIConfig.xml-->
    684     <available file="${web.classes}/OAIConfig.xml" property="oaiconfig.present"/>
     684    <available file="${web.classes}/OAIConfig.xml.in" property="oaiconfig.present"/>
    685685    <antcall target="init-oaiconfig">
    686686      <param name="url" value="${url}"/>
     
    690690  <target name="init-oaiconfig" if="oaiconfig.present">
    691691    <echo>Writing out baseURL ${url}oaiserver to ${web.classes}/OAIConfig.xml</echo>
     692    <copy file="${web.classes}/OAIConfig.xml.in" tofile="${web.classes}/OAIConfig.xml"/>
    692693    <rsr file="${web.classes}/OAIConfig.xml" pattern="&lt;baseURL&gt;.*&lt;/baseURL&gt;" replacement="&lt;baseURL&gt;${url}oaiserver&lt;/baseURL&gt;" />   
    693694  </target>
     
    17751776    </jar>
    17761777    <copy file="${build.home}/server.jar" todir="${basedir}"/>
     1778  </target>
     1779
     1780  <!-- === Eclipse targets == -->
     1781  <target name="setup-for-eclipse">
     1782
     1783    <filter token="gsdlhome" value="${gs2build.home}"/>
     1784    <filter token="gsdl3srchome" value="${basedir}"/>
     1785    <filter token="gsdl3home" value="${basedir}/web"/>
     1786
     1787    <if>
     1788      <bool><not><available file="${basedir}/TransformingLibrary.launch"/></not></bool>         
     1789      <copy file="${basedir}/TransformingLibrary.launch.in" tofile="${basedir}/TransformingLibrary.launch" filtering="true" overwrite="true"/>
     1790    </if>
     1791<!--
     1792    <if>
     1793      <bool><not><available file="${basedir}/LibraryCommandline.launch"/></not></bool>         
     1794      <copy file="${basedir}/LibraryCommandline.launch.in" tofile="${basedir}/LibraryCommandline.launch" filtering="true" overwrite="true"/>
     1795    </if>
     1796-->
    17771797  </target>
    17781798 
Note: See TracChangeset for help on using the changeset viewer.