Ignore:
Timestamp:
2008-05-30T10:27:32+12:00 (16 years ago)
Author:
oranfry
Message:

rename build.xml on its way into the jar, and then back to the original name on its way back out. This stops a naming conflict with ant-installers own build.xml file. Also, now put the concrete value of @gsdlhome@ into gs2build\setup.bat at install time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release-kits/wirk3/installer/build.xml

    r15691 r15812  
    6161        <echo/>
    6262
    63         <!--
    64         <echo message="Installing Packages (packages)"/>
    65         <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="packages/**/*"/></patternset></unzip>
    66         <echo/>
    67         -->
    68 
    6963        <echo message="Installing Resources (resources)"/>
    7064        <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="resources/**/*"/></patternset></unzip>
     
    7973        <unzip src="${antinstaller.jar}" dest="${installDir}">
    8074            <patternset>
    81                 <include name="build.xml"/>
     75                <include name="greenstone3-build.xml"/>
    8276                <include name="build.properties"/>
    8377                <include name="gs3-server.bat"/>
     
    8983        </unzip>
    9084        <echo/>
    91 
     85       
     86        <!-- rename greenstone3-build.xml back to build.xml -->
     87        <move file="${installDir}/greenstone3-build.xml" tofile="${installDir}/build.xml" overwrite="true"/>
     88       
    9289        <!-- change the tomcat ports in build.properties -->
    9390        <echo message="Changing tomcat ports in build.properties"/>
     
    9693        <echo message="Changing tomcat ports in resources/tomcat/server.xml"/>
    9794        <copy file="${installDir}/resources/tomcat/server.xml" tofile="${installDir.local}/packages/tomcat/conf/server.xml" overwrite="true"/>
     95       
     96        <!-- set gsdlhome in gs2build setup.bat -->
     97        <echo message="Setting %GSDLHOME% in gs2build\setup.bat"/>
     98        <rsr file="${installDir}/gs2build/setup.bat" pattern="@gsdlhome@" replacement="${installDir.local}\gs2build" />
    9899
     100       
    99101        <!-- copy the greenstone3.xml file to tomcat -->
    100102        <echo message="Copying greenstone3.xml to tomcat directory"/>
Note: See TracChangeset for help on using the changeset viewer.