Changeset 16087 for release-kits/wirk2/installer
- Timestamp:
- 2008-06-20T16:01:32+12:00 (16 years ago)
- Location:
- release-kits/wirk2/installer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
release-kits/wirk2/installer/antinstall-config.xml
r16079 r16087 7 7 debug="false" 8 8 lookAndFeel="org.tp23.jgoodies.plaf.plastic.PlasticXPLookAndFeel" 9 name="Greenstone 3@version@ Installer"9 name="Greenstone@version@ Installer" 10 10 windowIcon="/resources/icon.png" 11 11 defaultImageResource="/resources/header.png" … … 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 --> … … 35 35 <comment name="choose-components"/> 36 36 37 <target target="install-core-components" defaultValue="true" force="true" displayText="" /> 38 <target target="install-start-menu-shortcuts" defaultValue="true" displayText="" /> 39 <target target="install-tomcat" defaultValue="true" displayText="" /> 40 <target target="install-ant" defaultValue="true" displayText="" /> 41 <target target="install-source-code" defaultValue="false" displayText="" /> 37 <target target="install-core-components" defaultValue="true" force="true" displayText="" /> 38 <target target="install-source-code" defaultValue="false" displayText="" /> 42 39 43 40 </page> 44 41 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> 42 <page type="progress" name="progress" showTargets="false" target="cleanuptarget" displayText=""></page> 55 43 56 44 </installer> -
release-kits/wirk2/installer/build.xml
r15812 r16087 4 4 --> 5 5 6 <project name="Installation" default="" basedir="${basedir}">6 <project name="Installation"> 7 7 8 8 <!-- this is required to pick up the properties generated during the install pages --> … … 15 15 <!-- custom tasks --> 16 16 <typedef name="rsr" classname="RegexSearchReplace" classpathref="project.classpath"/> 17 <taskdef name="shortcut" classname="com.orangevolt.tools.ant.Win32ShortcutTask" classpathref="project.classpath"/>18 <taskdef name="winprops" classname="com.orangevolt.tools.ant.Win32PropertiesTask" classpathref="project.classpath"/>19 17 20 < !-- create a local installDir String -->21 <path id="installDir.path">22 <pathelement location="${installDir}"/>23 </path> 24 <property name="installDir.local" refid="installDir.path"/> 25 26 27 <target name="install-core-components">28 < !-- load windows properties -->29 < winprops/>18 <condition property="bundled.java.exists"> 19 <available file="../@java.extracted@/bin/java"/> 20 </condition> 21 22 23 <target name="install-core-components" depends=""> 24 25 <echo>basedir: ${basedir}</echo> 26 <echo>installDir: ${installDir}</echo> 27 <echo>antinstaller.jar: ${antinstaller.jar}</echo> 30 28 31 29 <!-- create the installation directory --> 32 30 <echo message="Creating Installation directory"/> 33 <echo>basedir: ${basedir}</echo>34 <echo>installDir: ${installDir}</echo>35 <echo>antinstaller.jar: ${antinstaller.jar}</echo>36 31 <mkdir dir="${installDir}"/> 37 32 38 <!-- install binaries --> 33 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 39 39 <echo message="Installing Executable Binaries (bin)"/> 40 40 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="bin/**/*"/></patternset></unzip> 41 41 <echo/> 42 42 43 <echo message="Installing Documentation (docs)"/>44 <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> 45 45 <echo/> 46 46 47 <echo message="Installing GLI (gli)"/>48 <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> 49 49 <echo/> 50 50 51 <echo message="Installing gs2build (gs2build)"/>52 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name=" gs2build/**/*"/></patternset></unzip>51 <echo message="Installing mappings (mappings)"/> 52 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="mappings/**/*"/></patternset></unzip> 53 53 <echo/> 54 54 55 <echo message="Installing Libraries (lib)"/>56 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name=" lib/**/*"/></patternset></unzip>55 <echo message="Installing Packages (packages)"/> 56 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="packages/**/*"/></patternset></unzip> 57 57 <echo/> 58 58 59 <echo message="Installing Web Content (web)"/>60 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name=" web/**/*"/></patternset></unzip>59 <echo message="Installing Images (images)"/> 60 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="images/**/*"/></patternset></unzip> 61 61 <echo/> 62 62 63 <echo message="Installing Resources (resources)"/>64 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name=" resources/**/*"/></patternset></unzip>63 <echo message="Installing Perl Libraries (perllib)"/> 64 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="perllib/**/*"/></patternset></unzip> 65 65 <echo/> 66 66 67 <echo message="Installing Windows Utility Commands (winutil)"/>68 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name=" winutil/**/*"/></patternset></unzip>67 <echo message="Installing Indexers (indexers)"/> 68 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="indexers/**/*"/></patternset></unzip> 69 69 <echo/> 70 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> 77 <echo/> 71 78 72 79 <echo message="Installing Top Level Files"/> 73 80 <unzip src="${antinstaller.jar}" dest="${installDir}"> 74 81 <patternset> 75 <include name="greenstone3-build.xml"/> 76 <include name="build.properties"/> 77 <include name="gs3-server.bat"/> 78 <include name="gs3-setup.bat"/> 79 <include name="LICENSE.txt"/> 80 <include name="README.txt"/> 81 <include name="server.jar"/> 82 <include name="COPYING"/> 83 <include name="setup.bat"/> 84 <include name="server.exe"/> 82 85 </patternset> 83 86 </unzip> 84 87 <echo/> 85 86 <!-- rename greenstone3-build.xml back to build.xml -->87 <move file="${installDir}/greenstone3-build.xml" tofile="${installDir}/build.xml" overwrite="true"/>88 89 <!-- change the tomcat ports in build.properties -->90 <echo message="Changing tomcat ports in build.properties"/>91 <rsr file="${installDir}/build.properties" pattern="(tomcat.port[=:]).*" replacement="$1${tomcat.port}" />92 <rsr file="${installDir}/build.properties" pattern="(tomcat.shutdown.port[=:]).*" replacement="$1${tomcat.shutdown.port}" />93 <echo message="Changing tomcat ports in resources/tomcat/server.xml"/>94 <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" />99 100 101 <!-- copy the greenstone3.xml file to tomcat -->102 <echo message="Copying greenstone3.xml to tomcat directory"/>103 <copy file="${installDir}/resources/tomcat/greenstone3.xml" tofile="${installDir}/packages/tomcat/conf/Catalina/localhost/greenstone3.xml" overwrite="true"/>104 <rsr file="${installDir}/packages/tomcat/conf/Catalina/localhost/greenstone3.xml" pattern="@gsdl3webhome@" replacement="${installDir.local}\web" />105 106 <!-- set up global properties -->107 <echo message="Setting up global properties"/>108 <copy file="${installDir}/resources/java/global.properties.in" tofile="${installDir}/web/WEB-INF/classes/global.properties" overwrite="true"/>109 <rsr file="${installDir}/web/WEB-INF/classes/global.properties" pattern="@gsdl3home@" replacement="${installDir.local}\web" />110 <rsr file="${installDir}/web/WEB-INF/classes/global.properties" pattern="@tomcat.server@" replacement="${tomcat.server}" />111 <rsr file="${installDir}/web/WEB-INF/classes/global.properties" pattern="@tomcat.port@" replacement="${tomcat.port}" />112 113 <!-- set up log4j properties-->114 <echo message="Setting up log4j properties"/>115 <copy file="${installDir}/resources/java/log4j.properties.in" tofile="${installDir}/web/WEB-INF/classes/log4j.properties" overwrite="true"/>116 <rsr file="${installDir}/web/WEB-INF/classes/log4j.properties" pattern="@gsdl3home@" replacement="${installDir.local}\web" />117 88 118 89 <!-- delete unneeded files --> 90 <echo message="Deleting some extraneous files"/> 119 91 <delete dir="${installDir}/resources/icons"/> 120 92 <delete file="${installDir}/resources/*.png"/> 93 94 <echo message="Finished"/> 121 95 122 96 </target> 123 97 124 98 <!-- Source --> 125 <target name="install-source-code" >99 <target name="install-source-code" depends=""> 126 100 <echo message="Installing Source Code (src)"/> 127 101 <mkdir dir="${installDir}/src"/> 128 <unzip src="${antinstaller.jar}" dest="${installDir}"> 129 <patternset> 130 <include name="src/**/*"/> 131 </patternset> 132 </unzip> 102 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="src/**/*"/></patternset></unzip> 133 103 </target> 134 104 135 <target name="install-tomcat">136 137 <echo message="Installing Apache Tomcat"/>138 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="packages/tomcat/**/*"/></patternset></unzip>139 140 <!-- change the tomcat ports in tomcats server.xml -->141 <rsr file="${installDir}/packages/tomcat/conf/server.xml" pattern="@server@" replacement="${tomcat.server}" />142 <rsr file="${installDir}/packages/tomcat/conf/server.xml" pattern="@port@" replacement="${tomcat.port}" />143 <rsr file="${installDir}/packages/tomcat/conf/server.xml" pattern="@shutdown-port@" replacement="${tomcat.shutdown.port}" />144 145 </target>146 <target name="install-ant">147 <echo message="Installing Apache Ant"/>148 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="packages/ant/**/*"/></patternset></unzip>149 </target>150 151 105 <target name="cleanuptarget"> 152 106 </target> 153 107 154 <target name="install-start-menu-shortcuts">155 108 156 <mkdir dir="${win32.personal.programs_menu}\Greenstone-@version@\documentation"/>157 158 159 <shortcut160 file="${win32.personal.programs_menu}\Greenstone-@version@\Greenstone3 Server.lnk"161 execute="${installDir}\gs3-server.bat"162 workingDirectory="${installDir}"163 iconFile="${installDir}\resources\images\gs3.ico"164 iconIndex="0" />165 166 <shortcut167 file="${win32.personal.programs_menu}\Greenstone-@version@\Greenstone Librarian Interface (GLI).lnk"168 execute="${installDir}\gli\gli4gs3.bat"169 workingDirectory="${installDir}\gli"170 iconFile="${installDir}\resources\images\gs3.ico"171 iconIndex="0" />172 173 <shortcut174 file="${win32.personal.programs_menu}\Greenstone-@version@\Greenstone Editor for Metadata Sets (GEMS).lnk"175 execute="${installDir}\gli\gems4gs3.bat"176 workingDirectory="${installDir}\gli"177 iconFile="${installDir}\resources\images\gs3.ico"178 iconIndex="0" />179 180 <shortcut181 file="${win32.personal.programs_menu}\Greenstone-@version@\documentation\README.lnk"182 execute="${installDir}\README.txt" />183 184 <shortcut185 file="${win32.personal.programs_menu}\Greenstone-@version@\documentation\Greenstone3 Users' Guide.lnk"186 execute="${installDir}\documentation\manual\manual.pdf" />187 188 <shortcut189 file="${win32.personal.programs_menu}\Greenstone-@version@\documentation\Greenstone2 Users' Guide.lnk"190 execute="${installDir}\documentation\manual\gs2_user_en.pdf" />191 192 193 </target>194 195 109 </project>
Note:
See TracChangeset
for help on using the changeset viewer.