Show
Ignore:
Timestamp:
11.11.2008 15:34:58 (11 years ago)
Author:
oranfry
Message:

the targets to intall the source releases on mac and windows

Files:
1 modified

Legend:

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

    r17814 r17815  
    134134        </target> 
    135135 
     136    <target name="Source Release" depends=""> 
     137 
     138        <!-- create the installation directory --> 
     139        <echo message="Creating Installation directory"/> 
     140        <mkdir dir="${installDir}"/> 
     141 
     142        <echo>Installing Source Release</echo> 
     143        <unzip src="${antinstaller.jar}" dest="${basedir}"><patternset><include name="source-release.lzma"/></patternset></unzip> 
     144        <sevenzip task="decode" input="${basedir}/source-release.lzma" output="${basedir}/source-release.comp"/> 
     145        <delete file="source-release.lzma"/> 
     146        <unzip src="${basedir}/source-release.comp" dest="${installDir}"/> 
     147        <delete file="source-release.comp"/> 
     148 
     149        <echo message="Setting Binaries to Executable"/> 
     150        <chmod dir="${installDir}" includes="*.sh" perm="775"/> 
     151        <chmod dir="${installDir}/bin/script" includes="*" perm="775"/> 
     152        <chmod dir="${installDir}/bin" includes="*" perm="775"/> 
     153        <chmod dir="${installDir}/gs2build/bin/darwin" includes="*" perm="775"/> 
     154        <chmod dir="${installDir}/gs2build/bin/script" includes="**/*" perm="775"/> 
     155        <chmod dir="${installDir}/gli" includes="*.sh" perm="775"/> 
     156        <echo/> 
     157 
     158        <!-- set up global properties --> 
     159        <echo message="Setting up global properties"/> 
     160        <copy file="${installDir}/resources/java/global.properties.in" tofile="${installDir}/web/WEB-INF/classes/global.properties" overwrite="true"/> 
     161        <rsr file="${installDir}/web/WEB-INF/classes/global.properties" pattern="(.*)@gsdl3home@(.*)" replacement="$1${installDir}/web$2" /> 
     162        <rsr file="${installDir}/web/WEB-INF/classes/global.properties" pattern="(.*)@tomcat.server@(.*)" replacement="$1localhost$2" /> 
     163        <rsr file="${installDir}/web/WEB-INF/classes/global.properties" pattern="(.*)@tomcat.port@(.*)" replacement="$1${tomcat.port}$2" /> 
     164 
     165        <!-- set up log4j properties--> 
     166        <echo message="Setting up log4j properties"/> 
     167        <copy file="${installDir}/resources/java/log4j.properties.in" tofile="${installDir}/web/WEB-INF/classes/log4j.properties" overwrite="true"/> 
     168        <rsr file="${installDir}/web/WEB-INF/classes/log4j.properties" pattern="(.*)@gsdl3home@(.*)" replacement="$1${installDir}/web$2" /> 
     169 
     170        <echo>Create usage.txt</echo> 
     171        <echo file="${installDir}/gs2build/etc/usage.txt"></echo> 
     172 
     173        <echo>Creating installation properties file</echo> 
     174        <echo file="${installDir}/installation.properties">#this file is just a placeholder for now</echo> 
     175 
     176        <echo message="Finished"/> 
     177 
     178    </target> 
     179 
     180 
    136181 
    137182</project>