Changeset 15980 for release-kits/lirk2/installer
- Timestamp:
- 2008-06-13T12:38:22+12:00 (16 years ago)
- Location:
- release-kits/lirk2
- Files:
-
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
release-kits/lirk2
- Property svn:externals
-
old new 1 1 lib http://svn.greenstone.org/release-kits/shared/lib 2 2 search4j http://svn.greenstone.org/release-kits/shared/search4j 3 linux http://svn.greenstone.org/release-kits/shared/linux 3 4
-
- Property svn:externals
-
release-kits/lirk2/installer/antinstall-config.xml
r15213 r15980 7 7 debug="false" 8 8 lookAndFeel="org.tp23.jgoodies.plaf.plastic.PlasticXPLookAndFeel" 9 name="Greenstone 3@version@ Installer"10 windowIcon="/resources/gs 3-small.png"9 name="Greenstone-@version@ Installer" 10 windowIcon="/resources/gs2-small.png" 11 11 defaultImageResource="/resources/makewavesdawn.png" 12 12 minJavaVersion="1.4"> … … 18 18 19 19 <!-- type="license" shows a license page to click through --> 20 <page type="license" name="license" resource="/ LICENSE.txt" displayText="" />20 <page type="license" name="license" resource="/COPYING" displayText="" /> 21 21 22 22 <!-- install destination page --> … … 37 37 <target target="install-core-components" defaultValue="true" force="true" displayText="" /> 38 38 <target target="install-java" defaultValue="true" displayText="" /> <!-- bundled java only --> 39 <target target="install-tomcat" defaultValue="true" displayText="" />40 <target target="install-ant" defaultValue="true" displayText="" />41 39 <target target="install-source-code" defaultValue="false" displayText="" /> 42 40 43 41 </page> 44 42 45 <page type="input" name="tomcat-config" ifProperty="(${install-tomcat}==true)" displayText=""> 46 47 <text property="tomcat.server" defaultValue="localhost" displayText=""/> 48 <text property="tomcat.port" defaultValue="8080" displayText=""/> 49 <text property="tomcat.shutdown.port" defaultValue="8005" displayText=""/> 50 51 </page> 52 53 <page type="progress" name="progress" showTargets="false" target="cleanuptarget" displayText=""> 54 </page> 43 <page type="progress" name="progress" showTargets="false" target="cleanuptarget" displayText=""></page> 55 44 56 45 </installer> -
release-kits/lirk2/installer/build.xml
r15205 r15980 23 23 <target name="install-core-components" depends=""> 24 24 25 <!-- create the installation directory -->26 <echo message="Creating Installation directory"/>27 25 <echo>basedir: ${basedir}</echo> 28 26 <echo>installDir: ${installDir}</echo> 29 27 <echo>antinstaller.jar: ${antinstaller.jar}</echo> 28 29 <!-- create the installation directory --> 30 <echo message="Creating Installation directory"/> 30 31 <mkdir dir="${installDir}"/> 31 32 32 33 33 <!-- install binaries and set executable --> 34 <!-- install files --> 35 <echo message="Installing GLI (gli)"/> 36 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="gli/**/*"/></patternset></unzip> 37 <echo/> 38 34 39 <echo message="Installing Executable Binaries (bin)"/> 35 40 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="bin/**/*"/></patternset></unzip> 36 41 <echo/> 37 42 38 <echo message="Installing Documentation (docs)"/>39 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name=" docs/**/*"/></patternset></unzip>43 <echo message="Installing CGI Binaries (cgi-bin)"/> 44 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="cgi-bin/**/*"/></patternset></unzip> 40 45 <echo/> 41 46 42 <echo message="Installing GLI (gli)"/>43 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name=" gli/**/*"/></patternset></unzip>47 <echo message="Installing Config Folder (etc)"/> 48 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="etc/**/*"/></patternset></unzip> 44 49 <echo/> 45 50 46 <echo message="Installing gs2build (gs2build)"/> 47 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="gs2build/**/*"/></patternset></unzip> 48 <echo/> 49 50 <echo message="Installing Libraries (lib)"/> 51 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="lib/**/*"/></patternset></unzip> 52 <echo/> 53 54 <echo message="Installing Web Content (web)"/> 55 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="web/**/*"/></patternset></unzip> 51 <echo message="Installing mappings (mappings)"/> 52 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="mappings/**/*"/></patternset></unzip> 56 53 <echo/> 57 54 … … 60 57 <echo/> 61 58 62 <echo message="Installing Resources (resources)"/> 63 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="resources/**/*"/></patternset></unzip> 59 <echo message="Installing Images (images)"/> 60 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="images/**/*"/></patternset></unzip> 61 <echo/> 62 63 <echo message="Installing Perl Libraries (perllib)"/> 64 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="perllib/**/*"/></patternset></unzip> 65 <echo/> 66 67 <echo message="Installing Indexers (indexers)"/> 68 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="indexers/**/*"/></patternset></unzip> 69 <echo/> 70 71 <echo message="Installing Macros (macros)"/> 72 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="macros/**/*"/></patternset></unzip> 73 <echo/> 74 75 <echo message="Installing Collect Folder (collect)"/> 76 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="collect/**/*"/></patternset></unzip> 64 77 <echo/> 65 78 … … 67 80 <unzip src="${antinstaller.jar}" dest="${installDir}"> 68 81 <patternset> 69 <include name="build.xml"/> 70 <include name="build.properties"/> 71 <include name="gs3-server.sh"/> 72 <include name="gs3-setup.sh"/> 73 <include name="LICENSE.txt"/> 74 <include name="README.txt"/> 75 <include name="server.jar"/> 82 <include name="config.sub"/> 83 <include name="configure.in"/> 84 <include name="install-sh"/> 85 <include name="setup.bash"/> 86 <include name="config.h.in"/> 87 <include name="configtest.pl"/> 88 <include name="WIN32cfg.h"/> 89 <include name="acconfig.h"/> 90 <include name="COPYING"/> 91 <include name="config.guess"/> 92 <include name="Install.txt"/> 93 <include name="configure"/> 94 <include name="win32.mak"/> 95 <include name="setup.csh"/> 96 <include name="Install.sh"/> 97 <include name="Makefile.in"/> 98 <include name="micotest.cpp"/> 99 <include name="aclocal.m4"/> 76 100 </patternset> 77 101 </unzip> … … 79 103 80 104 <echo message="Setting Binaries to Executable"/> 81 <chmod dir="${installDir}" includes="*.sh" perm="775"/> 82 <chmod dir="${installDir}/bin/script" includes="*" perm="775"/> 83 <chmod dir="${installDir}/bin" includes="*" perm="775"/> 84 <chmod dir="${installDir}/packages/tomcat/bin" includes="*.sh" perm="775"/> 85 <chmod dir="${installDir}/packages/ant/bin" includes="*" perm="775"/> 86 <chmod dir="${installDir}/gs2build/bin/linux" includes="*" perm="775"/> 87 <chmod dir="${installDir}/gs2build/bin/script" includes="**/*" perm="775"/> 105 <chmod dir="${installDir}" includes="*.sh,*.bash" perm="775"/> 106 <chmod dir="${installDir}/bin/linux" includes="*" perm="775"/> 107 <chmod dir="${installDir}/cgi-bin" includes="*" perm="775"/> 108 <chmod dir="${installDir}/bin/script" includes="**/*" perm="775"/> 88 109 <chmod dir="${installDir}/gli" includes="*.sh" perm="775"/> 89 110 <echo/> 90 91 <!-- change the tomcat ports in build.properties -->92 <echo message="Changing tomcat ports in build.properties"/>93 <rsr file="${installDir}/build.properties" pattern="(tomcat.port[=:]).*" replacement="$1${tomcat.port}" />94 <rsr file="${installDir}/build.properties" pattern="(tomcat.shutdown.port[=:]).*" replacement="$1${tomcat.shutdown.port}" />95 96 <!-- change the tomcat ports in tomcats server.xml -->97 <echo message="Changing tomcat ports tomcat's server.xml"/>98 <copy file="${installDir}/resources/tomcat/server.xml" tofile="${installDir}/packages/tomcat/conf/server.xml" overwrite="true"/>99 <rsr file="${installDir}/packages/tomcat/conf/server.xml" pattern="(.*)@port@(.*)" replacement="$1${tomcat.port}$2" />100 <rsr file="${installDir}/packages/tomcat/conf/server.xml" pattern="(.*)@shutdown-port@(.*)" replacement="$1${tomcat.shutdown.port}$2" />101 102 <!-- copy the greenstone3.xml file to tomcat -->103 <echo message="Copying greenstone3.xml to tomcat directory"/>104 <copy file="${installDir}/resources/tomcat/greenstone3.xml" tofile="${installDir}/packages/tomcat/conf/Catalina/localhost/greenstone3.xml" overwrite="true"/>105 <rsr file="${installDir}/packages/tomcat/conf/Catalina/localhost/greenstone3.xml" pattern="(.*)@gsdl3webhome@(.*)" replacement="$1${installDir}/web$2" />106 107 <!-- set up global properties -->108 <echo message="Setting up global properties"/>109 <copy file="${installDir}/resources/java/global.properties.in" tofile="${installDir}/web/WEB-INF/classes/global.properties" overwrite="true"/>110 <rsr file="${installDir}/web/WEB-INF/classes/global.properties" pattern="(.*)@gsdl3home@(.*)" replacement="$1${installDir}/web$2" />111 <rsr file="${installDir}/web/WEB-INF/classes/global.properties" pattern="(.*)@tomcat.server@(.*)" replacement="$1localhost$2" />112 <rsr file="${installDir}/web/WEB-INF/classes/global.properties" pattern="(.*)@tomcat.port@(.*)" replacement="$1${tomcat.port}$2" />113 114 <!-- set up log4j properties-->115 <echo message="Setting up log4j properties"/>116 <copy file="${installDir}/resources/java/log4j.properties.in" tofile="${installDir}/web/WEB-INF/classes/log4j.properties" overwrite="true"/>117 <rsr file="${installDir}/web/WEB-INF/classes/log4j.properties" pattern="(.*)@gsdl3home@(.*)" replacement="$1${installDir}/web$2" />118 119 120 <!-- in the gs3-setup.sh file, set ANT_HOME and put it in PATH (no need anymore)-->121 <!--<echo>In the gs3-setup.sh file, set ANT_HOME and put it in PATH</echo>122 <exec executable="echo" output="${installDir}/gs3-setup.sh" append="true">123 <arg line="export ANT_HOME=${installDir}/packages/ant; export PATH=$ANT_HOME/bin:$PATH;"/>124 </exec>-->125 111 126 112 <!-- delete unneeded files --> … … 137 123 <echo message="Installing Source Code (src)"/> 138 124 <mkdir dir="${installDir}/src"/> 139 <unzip src="${antinstaller.jar}" dest="${installDir}"> 140 <patternset> 141 <include name="src/**/*"/> 142 </patternset> 143 </unzip> 125 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="src/**/*"/></patternset></unzip> 144 126 </target> 145 127 … … 152 134 </target> 153 135 154 <target name="install-tomcat">155 <echo message="Installing Tomcat"/>156 </target>157 158 <target name="install-ant">159 <echo message="Installing Ant"/>160 </target>161 162 163 164 136 <target name="cleanuptarget"> 165 137 </target>
Note:
See TracChangeset
for help on using the changeset viewer.