Changeset 19935 for release-kits/shared/greenstone3
- Timestamp:
- 2009-06-26T16:18:44+12:00 (15 years ago)
- Location:
- release-kits/shared/greenstone3
- Files:
-
- 78 added
- 3 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
release-kits/shared/greenstone3/ant-scripts/rk3-targets.xml
r19715 r19935 12 12 <property name="version.major" value="3"/> 13 13 14 <!-- create the property set to be forwarded to greenstone3 --> 15 <propertyset id="forward.properties"> 16 <propertyref prefix="forward."/> 17 <mapper type="glob" from="forward.*" to="*"/> 18 19 <propertyref name="app.version"/> 20 <propertyref name="branch.path"/> 21 <propertyref name="branch.revision"/> 22 23 </propertyset> 24 14 25 <target name="greenstone3-set-version-numbers"> 15 26 <rsr … … 21 32 <target name="gs3-init"> 22 33 23 <property name="install.flax" value="false"/> 24 <echo level="info">Install Flax? (install.flax): ${install.flax}</echo> 34 <!-- don't let greenstone3 block and wait for user input to accept 35 the properties for the build --> 36 <property name="forward.properties.accepted" value="true"/> 25 37 26 <if><bool><isset property="server.default.servlet"/></bool> 27 <echo level="info">default servlet: (server.default.servlet): ${server.default.servlet}</echo> 28 </if> 38 <!-- make sure all c++ compilation is done statically --> 39 <property name="forward.compile.static" value="true"/> 40 41 <!-- show the property set to be forwarded to greenstone3 --> 42 <echo>Properties to be forwarded to greenstone3 build</echo> 43 <echoproperties><propertyset refid="forward.properties"/></echoproperties> 29 44 30 45 </target> … … 32 47 <target name="insert-uninstaller-jar"> 33 48 <copy file="compiled/uninst.jar" tofile="distributions/web/uninst.jar"/> 49 </target> 50 51 <!-- 52 inserts a copy of the release kit's own ant into the greenstone3 53 installation. the ant from the release kit is minified so is a good choice. 54 --> 55 <target name="insert-ant"> 56 57 <!-- remove any existing ant --> 58 <delete dir="compiled/packages/ant"/> 59 60 <!-- windows copy --> 61 <if><bool><equals arg1="${rk.os}" arg2="windows"/></bool> 62 <copy todir="compiled/packages"> 63 <fileset dir="${rk.home}/core" includes="ant/**/*"/> 64 </copy> 65 66 <!-- linux, mac copy--> 67 <else><if><bool><or><equals arg1="${rk.os}" arg2="linux"/><equals arg1="${rk.os}" arg2="mac"/></or></bool> 68 <exec executable="cp"> 69 <arg value="-r"/> 70 <arg value="${rk.home}/core/ant"/> 71 <arg value="compiled/packages"/> 72 </exec> 73 74 <!-- otherwise fail --> 75 <else> 76 <fail>this target does not support the current os</fail> 77 78 </else></if></else></if> 79 34 80 </target> 35 81 … … 44 90 </target> 45 91 92 <target name="checkout-greenstone3"> 93 <svn> 94 <checkout url="${svn.root}/greenstone3/${branch.path}" destPath="compiled" revision="${branch.revision}"/> 95 <checkout url="${svn.root}/gli/${branch.path}" destPath="compiled/gli" revision="${branch.revision}"/> 96 </svn> 97 </target> 98 99 <target name="insert-xml-parser"> 100 <copy todir="compiled/gs2build/perllib/cpan"> 101 <fileset dir="${rk.home}/greenstone3" includes="XML-Parser/**/*"/> 102 </copy> 103 </target> 104 105 <target name="insert-documented-examples"> 106 <echo>NOT IMPLEMENTED: Remember to put code in this target to grab and install the documented examples.</echo> 107 <!-- copy the doc eg colls from /home/nzdl - note we don't include the formatting ones --> 108 </target> 109 110 <target name="prepare-documentation"> 111 112 <mkdir dir="compiled/gsdl-manuals"/> 113 <svn> 114 <checkout url="${svn.root}/documentation/${branch.path}/manuals" destPath="compiled/gsdl-manuals/manuals"/> 115 <checkout url="${svn.root}/documentation/${branch.path}/shared" destPath="compiled/gsdl-manuals/shared"/> 116 </svn> 117 <path id="documentation.compile.classpath"> 118 <fileset dir="compiled/gsdl-manuals"> 119 <include name="**/*.jar"/> 120 </fileset> 121 <pathelement path="compiled/gsdl-manuals/shared"/> 122 <pathelement path="compiled/gsdl-manuals/manuals"/> 123 </path> 124 <javac srcdir="compiled/gsdl-manuals/shared" 125 destdir="compiled/gsdl-manuals/shared" 126 debug="on" 127 classpathref="documentation.compile.classpath"> 128 <include name="*.java"/> 129 </javac> 130 <unzip src="compiled/gsdl-manuals/shared/fop.zip" dest="compiled/gsdl-manuals/shared"/> 131 132 <java classname="ApplyXSLT" classpathref="documentation.compile.classpath" output="compiled/gsdl-manuals/manuals/xml-source/en/help-en.xml"> 133 <arg value="compiled/gsdl-manuals/manuals/processing/gen-gli-help-to-manual-chapter.xsl" /> 134 <arg value="compiled/gli/help/en/help.xml" /> 135 <arg value="compiled" /> 136 </java> 137 138 <chmod perm="a+x" file="compiled/gsdl-manuals/shared/fop/fop.sh"/> 139 <echo>Run generate-pdf script</echo> 140 <if><bool><equals arg1="${rk.os}" arg2="windows"/></bool> 141 <exec dir="compiled/gsdl-manuals/manuals" executable="cmd"> 142 <arg value="/C" /> 143 <arg file="${basedir}/compiled/gsdl-manuals/manuals/generate-pdf.bat" /> 144 <arg value="u" /> 145 <arg value="en" /> 146 </exec> 147 <else> 148 <exec dir="compiled/gsdl-manuals/manuals" executable="/bin/bash"> 149 <arg line="generate-pdf.sh u en" /> 150 </exec> 151 </else></if> 152 </target> 153 154 <target name="clean"> 155 <antcall target="clean-compiled"/> 156 <antcall target="clean-distributions"/> 157 <antcall target="clean-components"/> 158 <antcall target="clean-installer"/> 159 <antcall target="clean-wrapped-installer"/> 160 </target> 161 162 <target name="clean-compiled"> 163 <delete dir="compiled"/> 164 </target> 165 166 <target name="clean-distribution"> 167 <delete dir="distributions"/> 168 </target> 169 170 <target name="clean-components"> 171 <delete dir="components"/> 172 </target> 173 174 <target name="clean-installer"> 175 <delete dir="installer"/> 176 </target> 177 178 <target name="clean-wrapped-installer"> 179 <delete dir="wrapped-installer"/> 180 </target> 181 182 <target name="copy-greenstone3-installer-files"> 183 184 <!-- the installer descriptors --> 185 <copy todir="installer" file="${rk.home}/greenstone3/installer/antinstall-config.xml" overwrite="true"/> 186 <copy todir="installer" file="${rk.home}/greenstone3/installer/build.xml" overwrite="true"/> 187 188 </target> 46 189 47 190 </project> -
release-kits/shared/greenstone3/installer/antinstall-config.xml
r19790 r19935 26 26 </page> 27 27 28 <!-- start binary release -->28 <!-- welcome page --> 29 29 <page type="input" name="intro" displayText=""> 30 <comment name="welcome-message"/>31 </page>32 <!-- end binary release -->33 34 <!-- start source release -->35 <page type="input" name="intro" displayText="" target="Source Release">36 30 <comment name="welcome-greenstone3"/> 37 31 </page> 38 <!-- end source release -->39 32 40 33 <!-- type="license" shows a license page to click through --> … … 54 47 </page> 55 48 49 <!-- page to stop you going forward if an IS installation is detected --> 56 50 <page type="input" name="dontBudge" displayText="" ifProperty="(${ISInstallDetected}==true)" showNextButton="false"> 57 51 <comment name="is-install-detected"/> 58 52 </page> 59 53 54 <!-- page to choose components --> 60 55 <page type="input" name="selector" displayText=""> 61 56 <comment name="choose-components"/> 62 57 63 <!-- start binary release -->64 58 <target 65 59 target="Initialising" … … 77 71 force="true"/> 78 72 79 <!-- start bundled components -->80 73 <target 81 74 target="Installing ImageMagick" … … 83 76 defaultValue="true" 84 77 displayText=""/> 78 79 <!-- if windows|mac --> 80 <target 81 target="Installing Ghostscript" 82 diskRequirement="@component.size.ghostscript@" 83 defaultValue="true" 84 displayText=""/> 85 <!-- /if --> 85 86 86 87 <target … … 95 96 defaultValue="true" 96 97 displayText=""/> 97 <!-- end bundled components --> 98 99 <!-- if windows --> 100 <target 101 target="Installing Start Menu Shortcuts" 102 diskRequirement="~10 KB" 103 defaultValue="true" 104 displayText=""/> 105 <!-- /if --> 98 106 99 107 </page> 100 <!-- end binary release -->101 108 102 <!-- start bundled components-->109 <!-- page to setup tomcat --> 103 110 <page type="input" name="tomcat-config" ifProperty="(${Installing Tomcat}==true)" displayText=""> 104 105 111 <text property="tomcat.server" defaultValue="localhost" displayText=""/> 106 112 <text property="tomcat.port" defaultValue="8080" displayText=""/> 107 113 <text property="tomcat.shutdown.port" defaultValue="8005" displayText=""/> 114 </page> 108 115 109 </page> 110 <!-- end bundled components --> 111 116 <!-- the final progress page --> 112 117 <page type="progress" name="progress" showTargets="true" displayText=""/> 113 118 -
release-kits/shared/greenstone3/installer/build.xml
r18980 r19935 3 3 This is the build.xml run by AntInstaller for the installer 4 4 --> 5 6 5 <project name="Installation"> 7 6 … … 9 8 <property file="${basedir}/ant.install.properties"/> 10 9 11 <path id="project.classpath">12 <pathelement path="${antinstaller.jar}"/>13 </path>14 15 10 <!-- custom tasks --> 11 <path id="project.classpath"><pathelement path="${antinstaller.jar}"/></path> 12 16 13 <typedef name="rsr" classname="org.greenstone.anttasks.RegexSearchReplace" classpathref="project.classpath"/> 17 14 <taskdef name="sevenzip" classname="org.apache.tools.ant.SevenZip" classpathref="project.classpath"/> 18 19 <condition property="bundled.java.exists"> 20 <available file="../@linux-java.extracted@/bin/java"/> 21 </condition> 22 15 <!-- if windows --> 16 <taskdef name="shortcut" classname="com.orangevolt.tools.ant.Win32ShortcutTask" classpathref="project.classpath"/> 17 <taskdef name="winprops" classname="com.orangevolt.tools.ant.Win32PropertiesTask" classpathref="project.classpath"/> 18 <typedef name="getfreepath" classname="org.greenstone.anttasks.GetFreePath" classpathref="project.classpath"/> 19 <!-- /if --> 20 21 <!-- create a local and strictly unix installDir String --> 22 <path id="installDir.path"><pathelement location="${installDir}"/></path> 23 <property name="installDir.local" refid="installDir.path"/> 24 <pathconvert targetos="unix" property="installDir.unix" refid="installDir.path"/> 25 26 <!-- if windows --> 27 <!-- load windows properties --> 28 <winprops/> 29 <!-- /if --> 30 31 <!-- work out whether a jre is bundled with this installer --> 32 <available file="../jre/bin/java" property="bundled.java.exists"/> 33 34 <!-- determine if there is an existing installation in the installDir--> 35 <available file="${installDir}\installation.properties" property="is.overinstall"/> 36 37 <!-- target to copy the bundled jre into place --> 23 38 <target name="Initialising" if="bundled.java.exists"> 24 39 <mkdir dir="${installDir}"/> 25 40 <copy todir="${installDir}/packages/jre" failonerror="false"> 26 <fileset dir="../ @linux-java.extracted@"/>41 <fileset dir="../jre"/> 27 42 </copy> 28 43 <chmod dir="${installDir}/packages/jre/bin" includes="*" perm="775"/> 29 44 </target> 30 45 46 <!-- target to load in the messages left by the last installation --> 47 <target name="Looking For Previous Installation" if="is.overinstall"> 48 <property file="${installDir}\installation.properties"/> 49 <delete dir="${installed.startmenu.path}" failonerror="false"/> 50 </target> 51 31 52 <target name="Installing Core System"> 32 53 33 <!-- create the installation directory --> 34 <mkdir dir="${installDir}"/> 35 36 <!-- install files --> 37 <echo>Installing Core Files</echo> 38 <unzip src="${antinstaller.jar}" dest="${basedir}"><patternset><include name="core.lzma"/></patternset></unzip> 39 <sevenzip task="decode" input="${basedir}/core.lzma" output="${basedir}/core.comp"/> 40 <delete file="core.lzma"/> 41 <unzip src="${basedir}/core.comp" dest="${installDir}"/> 42 <delete file="core.comp"/> 43 44 <echo>Setting Binaries to Executable</echo> 54 <!-- rip out build.xml to the temp dir so we can fake and <antcall> with <ant> --> 55 <unzip src="${antinstaller.jar}" dest="${basedir}"><patternset><include name="build.xml"/></patternset></unzip> 56 57 58 <!-- if windows --> 59 <echo>Figuring out the start menu path</echo> 60 <getfreepath path="${win32.personal.programs_menu}\Greenstone-@version@" property="startmenu.path"/> 61 <path id="startmenu.path.path" path="${startmenu.path}"/> 62 <pathconvert targetos="unix" property="startmenu.path.unix" refid="startmenu.path.path"/> 63 64 <echo>Extracting 7za tool</echo> 65 <unzip src="${antinstaller.jar}" dest="${basedir}"> 66 <patternset><include name="7za.exe"/></patternset> 67 </unzip> 68 <!-- /if --> 69 70 <echo>Extracting core component</echo> 71 <ant target="extract-component"><property name="component.name" value="core"/></ant> 72 73 <echo>Setting binaries to executable</echo> 45 74 <chmod dir="${installDir}" includes="*.sh" perm="775"/> 46 75 <chmod dir="${installDir}/bin/script" includes="*" perm="775"/> 47 76 <chmod dir="${installDir}/bin" includes="*" perm="775"/> 77 <!-- if linux --> 48 78 <chmod dir="${installDir}/gs2build/bin/linux" includes="*" perm="775"/> 79 <!-- /if --> 80 <!-- if mac --> 81 <chmod dir="${installDir}/gs2build/bin/darwin" includes="*" perm="775"/> 82 <!-- /if --> 49 83 <chmod dir="${installDir}/gs2build/bin/script" includes="**/*" perm="775"/> 50 84 <chmod dir="${installDir}/gli" includes="*.sh" perm="775"/> 51 <echo/> 52 53 <echo>Changing tomcat ports in build.properties</echo> 85 86 <echo>Setting tomcat ports</echo> 54 87 <rsr file="${installDir}/build.properties" pattern="(tomcat.port[=:]).*" replacement="$1${tomcat.port}" /> 55 88 <rsr file="${installDir}/build.properties" pattern="(tomcat.shutdown.port[=:]).*" replacement="$1${tomcat.shutdown.port}" /> … … 57 90 <echo>Setting up global properties</echo> 58 91 <copy file="${installDir}/resources/java/global.properties.in" tofile="${installDir}/web/WEB-INF/classes/global.properties" overwrite="true"/> 59 <rsr file="${installDir}/web/WEB-INF/classes/global.properties" pattern="(.*)@gsdl3home@(.*)" replacement="$1${installDir}/web$2" /> 60 <rsr file="${installDir}/web/WEB-INF/classes/global.properties" pattern="(.*)@tomcat.server@(.*)" replacement="$1localhost$2" /> 61 <rsr file="${installDir}/web/WEB-INF/classes/global.properties" pattern="(.*)@tomcat.port@(.*)" replacement="$1${tomcat.port}$2" /> 92 <rsr file="${installDir}/web/WEB-INF/classes/global.properties"> 93 <job pattern="@gsdl3home@" replacement="${installDir.unix}/web" /> 94 <job pattern="@tomcat.server@" replacement="${tomcat.server}" /> 95 <job pattern="@tomcat.port@" replacement="${tomcat.port}" /> 96 </rsr> 97 98 <echo>Copying greenstone3.xml to tomcat directory</echo> 99 <copy file="${installDir}/resources/tomcat/greenstone3.xml" tofile="${installDir}/packages/tomcat/conf/Catalina/localhost/greenstone3.xml" overwrite="true"/> 100 <rsr file="${installDir}/packages/tomcat/conf/Catalina/localhost/greenstone3.xml" pattern="@gsdl3webhome@" replacement="${installDir.local}${path.separator}web" /> 62 101 63 102 <echo>Setting up log4j properties</echo> 64 103 <copy file="${installDir}/resources/java/log4j.properties.in" tofile="${installDir}/web/WEB-INF/classes/log4j.properties" overwrite="true"/> 65 <rsr file="${installDir}/web/WEB-INF/classes/log4j.properties" pattern="(.*)@gsdl3home@(.*)" replacement="$1${installDir}/web$2" /> 104 <rsr file="${installDir}/web/WEB-INF/classes/log4j.properties" pattern="@gsdl3home@" replacement="${installDir}/web" /> 105 106 <!-- if windows --> 107 <echo message="Setting GSDLHOME in gs2build\setup.bat"/> 108 <rsr file="${installDir}/gs2build/setup.bat" pattern="\*\*GSDLHOME\*\*" replacement="${installDir.local}\gs2build" /> 109 <!-- /if --> 66 110 67 111 <echo>Creating the english dictionary</echo> 68 112 <copy file="${installDir}/gli/classes/dictionary.properties" tofile="${installDir}/gli/classes/dictionary_en.properties"/> 69 <echo/> 70 71 <echo>Create usage.txt</echo> 113 114 <echo>Creating usage.txt</echo> 72 115 <echo file="${installDir}/gs2build/etc/usage.txt"></echo> 73 116 74 117 <echo>Creating installation properties file</echo> 75 <echo file="${installDir} /installation.properties">#this file is just a placeholder for now</echo>118 <echo file="${installDir}\installation.properties">installed.startmenu.path:${startmenu.path.unix}</echo> 76 119 77 120 <echo>Finished</echo> … … 79 122 </target> 80 123 81 <!-- imagemagick -->82 124 <target name="Installing ImageMagick"> 125 83 126 <echo>Installing ImageMagick</echo> 84 <unzip src="${antinstaller.jar}" dest="${basedir}"><patternset><include name="imagemagick.lzma"/></patternset></unzip> 85 <sevenzip task="decode" input="${basedir}/imagemagick.lzma" output="${basedir}/imagemagick.comp"/> 86 <delete file="imagemagick.lzma"/> 87 <unzip src="${basedir}/imagemagick.comp" dest="${installDir}/gs2build/bin/linux"/> 88 <delete file="imagemagick.comp"/> 89 <echo>Setting Binaries to Executable</echo> 127 <ant target="extract-component"><property name="component.name" value="imagemagick"/></ant> 128 129 <echo>Setting binaries to executable</echo> 130 <!-- if linux --> 90 131 <chmod dir="${installDir}/gs2build/bin/linux/imagemagick/bin" includes="*" perm="775"/> 91 </target> 92 132 <!-- /if --> 133 <!-- if mac --> 134 <chmod dir="${installDir}/gs2build/bin/darwin/imagemagick/bin" includes="*" perm="775"/> 135 <!-- /if --> 136 137 </target> 138 139 <target name="Installing Ghostscript"> 140 141 <echo>Installing Ghostscript</echo> 142 <ant target="extract-component"><property name="component.name" value="ghostscript"/></ant> 143 144 <echo>Setting binaries to executable</echo> 145 <!-- if linux --> 146 <chmod dir="${installDir}/gs2build/bin/linux/ghostscript/bin" includes="*" perm="775"/> 147 <!-- /if --> 148 <!-- if mac --> 149 <chmod dir="${installDir}/gs2build/bin/darwin/ghostscript/bin" includes="*" perm="775"/> 150 <!-- /if --> 151 152 </target> 93 153 94 154 <target name="Installing Tomcat"> 155 95 156 <echo>Installing Tomcat (packages/tomcat)</echo> 96 157 <mkdir dir="packages"/> 97 <unzip src="${antinstaller.jar}" dest="${basedir}"><patternset><include name="tomcat.lzma"/></patternset></unzip> 98 <sevenzip task="decode" input="${basedir}/tomcat.lzma" output="${basedir}/tomcat.comp"/> 99 <delete file="tomcat.lzma"/> 100 <unzip src="${basedir}/tomcat.comp" dest="${installDir}/packages"/> 101 <delete file="tomcat.comp"/> 158 <ant target="extract-component"><property name="component.name" value="tomcat"/></ant> 102 159 103 160 <echo>Changing tomcat ports tomcat's server.xml</echo> 104 161 <copy file="${installDir}/resources/tomcat/server.xml" tofile="${installDir}/packages/tomcat/conf/server.xml" overwrite="true"/> 105 <rsr file="${installDir}/packages/tomcat/conf/server.xml" pattern="(.*)@port@(.*)" replacement="$1${tomcat.port}$2" /> 106 <rsr file="${installDir}/packages/tomcat/conf/server.xml" pattern="(.*)@shutdown-port@(.*)" replacement="$1${tomcat.shutdown.port}$2" /> 107 162 <rsr file="${installDir}/packages/tomcat/conf/server.xml"> 163 <job pattern="@port@" replacement="${tomcat.port}"/> 164 <job pattern="@shutdown-port@" replacement="${tomcat.shutdown.port}"/> 165 </rsr> 166 108 167 <echo>Copying greenstone3.xml to tomcat directory</echo> 109 168 <copy file="${installDir}/resources/tomcat/greenstone3.xml" tofile="${installDir}/packages/tomcat/conf/Catalina/localhost/greenstone3.xml" overwrite="true"/> 110 <rsr file="${installDir}/packages/tomcat/conf/Catalina/localhost/greenstone3.xml" pattern=" (.*)@gsdl3webhome@(.*)" replacement="$1${installDir}/web$2" />111 112 <echo>Set ting tomcatbinaries to executable</echo>169 <rsr file="${installDir}/packages/tomcat/conf/Catalina/localhost/greenstone3.xml" pattern="@gsdl3webhome@" replacement="${installDir}/web" /> 170 171 <echo>Set binaries to executable</echo> 113 172 <chmod dir="${installDir}/packages/tomcat/bin" includes="*.sh" perm="775"/> 114 <echo/> 173 115 174 </target> 116 175 117 176 <target name="Installing Ant"> 177 118 178 <echo>Installing Ant (packages/ant)</echo> 119 179 <mkdir dir="packages"/> 120 <unzip src="${antinstaller.jar}" dest="${basedir}"><patternset><include name="ant.lzma"/></patternset></unzip> 121 <sevenzip task="decode" input="${basedir}/ant.lzma" output="${basedir}/ant.comp"/> 122 <delete file="ant.lzma"/> 123 <unzip src="${basedir}/ant.comp" dest="${installDir}/packages"/> 124 <delete file="ant.comp"/> 125 126 <echo>Setting ant binaries to executable</echo> 180 <ant target="extract-component"><property name="component.name" value="ant"/></ant> 181 182 <echo>Set binaries to executable</echo> 127 183 <chmod dir="${installDir}/packages/ant/bin" includes="*" perm="775"/> 128 <echo/> 129 </target> 130 131 <!-- source release --> 132 <target name="Source Release"> 133 134 <echo>Installing Source Release</echo> 135 <unzip src="${antinstaller.jar}" dest="${basedir}"><patternset><include name="source-release.lzma"/></patternset></unzip> 136 <sevenzip task="decode" input="${basedir}/source-release.lzma" output="${basedir}/source-release.comp"/> 137 <delete file="source-release.lzma"/> 138 <unzip src="${basedir}/source-release.comp" dest="${installDir}"/> 139 <delete file="source-release.comp"/> 140 141 <echo>Setting Binaries to Executable</echo> 142 <chmod dir="${installDir}" includes="*.sh,**/configure" perm="775"/> 143 <chmod dir="${installDir}/bin/script" includes="*" perm="775"/> 144 <chmod dir="${installDir}/bin" includes="*" perm="775"/> 145 <chmod dir="${installDir}/gs2build/bin/linux" includes="*" perm="775"/> 146 <chmod dir="${installDir}/gs2build/bin/script" includes="**/*" perm="775"/> 147 <chmod dir="${installDir}/gli" includes="*.sh" perm="775"/> 148 <echo/> 149 150 <echo>Setting up global properties</echo> 151 <copy file="${installDir}/resources/java/global.properties.in" tofile="${installDir}/web/WEB-INF/classes/global.properties" overwrite="true"/> 152 <rsr file="${installDir}/web/WEB-INF/classes/global.properties" pattern="(.*)@gsdl3home@(.*)" replacement="$1${installDir}/web$2" /> 153 <rsr file="${installDir}/web/WEB-INF/classes/global.properties" pattern="(.*)@tomcat.server@(.*)" replacement="$1localhost$2" /> 154 <rsr file="${installDir}/web/WEB-INF/classes/global.properties" pattern="(.*)@tomcat.port@(.*)" replacement="$1${tomcat.port}$2" /> 155 156 <echo>Setting up log4j properties</echo> 157 <copy file="${installDir}/resources/java/log4j.properties.in" tofile="${installDir}/web/WEB-INF/classes/log4j.properties" overwrite="true"/> 158 <rsr file="${installDir}/web/WEB-INF/classes/log4j.properties" pattern="(.*)@gsdl3home@(.*)" replacement="$1${installDir}/web$2" /> 159 160 <echo>Create usage.txt</echo> 161 <echo file="${installDir}/gs2build/etc/usage.txt"></echo> 162 163 <echo>Creating installation properties file</echo> 164 <echo file="${installDir}/installation.properties">#this file is just a placeholder for now</echo> 165 166 </target> 167 184 185 </target> 186 187 188 <target name="Installing Start Menu Shortcuts"> 189 190 <echo>Installing Start Menu Shortcuts</echo> 191 192 <mkdir dir="${startmenu.path}\Documentation"/> 193 194 <shortcut 195 file="${startmenu.path}\Greenstone3 Server.lnk" 196 execute="${installDir}\gs3-server.bat" 197 workingDirectory="${installDir}" 198 iconFile="${installDir}\resources\images\gs3.ico" 199 iconIndex="0" /> 200 201 <shortcut 202 file="${startmenu.path}\Greenstone Librarian Interface (GLI).lnk" 203 execute="${installDir}\gli\gli.bat" 204 workingDirectory="${installDir}\gli" 205 iconFile="${installDir}\resources\images\gs3.ico" 206 iconIndex="0" /> 207 208 <shortcut 209 file="${startmenu.path}\Greenstone Editor for Metadata Sets (GEMS).lnk" 210 execute="${installDir}\gli\gems.bat" 211 workingDirectory="${installDir}\gli" 212 iconFile="${installDir}\resources\images\gs3.ico" 213 iconIndex="0" /> 214 215 <shortcut 216 file="${startmenu.path}\Uninstall.lnk" 217 execute="${installDir}\Uninstall.bat" 218 workingDirectory="${installDir}" 219 iconFile="${installDir}\resources\images\gs3.ico" 220 iconIndex="0" /> 221 222 <shortcut 223 file="${startmenu.path}\Documentation\README.lnk" 224 execute="${installDir}\README.txt" /> 225 226 <shortcut 227 file="${startmenu.path}\Documentation\Greenstone3 Users' Guide.lnk" 228 execute="${installDir}\documentation\manual\manual.pdf" /> 229 230 <shortcut 231 file="${startmenu.path}\Documentation\Greenstone2 Users' Guide.lnk" 232 execute="${installDir}\documentation\manual\gs2_user_en.pdf" /> 233 234 </target> 235 236 <!-- util target to extract the given component --> 237 <!-- pass in ${component.name} as a param --> 238 <target name="extract-component"> 239 <!-- extract the component into place --> 240 <unzip src="${antinstaller.jar}" dest="${basedir}"><patternset><include name="${component.name}.lzma"/></patternset></unzip> 241 <!-- if windows --> 242 <exec dir="${basedir}" executable="${basedir}/7za.exe"><arg line="x ${component.name}.lzma"/></exec> 243 <!-- /if --> 244 <!-- if linux|mac --> 245 <sevenzip task="decode" input="${basedir}/${component.name}.lzma" output="${basedir}/${component.name}.comp"/> 246 <!-- /if --> 247 <delete file="${component.name}.lzma"/> 248 <unzip src="${basedir}/${component.name}.comp" dest="${installDir}"/> 249 <delete file="${component.name}.comp"/> 250 </target> 168 251 169 252 </project>
Note:
See TracChangeset
for help on using the changeset viewer.