Changeset 16931 for release-kits/wirk2/installer
- Timestamp:
- 2008-08-21T11:16:35+12:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
release-kits/wirk2/installer/build.xml
r16917 r16931 6 6 <project name="Installation"> 7 7 8 <!-- this is required to pick up the properties generated during the install pages --> 9 <property file="${basedir}/ant.install.properties"/> 10 11 <path id="project.classpath"> 12 <pathelement path="${antinstaller.jar}"/> 13 </path> 8 <!-- classpath --> 9 <path id="project.classpath"><pathelement path="${antinstaller.jar}"/></path> 14 10 15 11 <!-- custom tasks --> 16 12 <typedef name="rsr" classname="RegexSearchReplace" classpathref="project.classpath"/> 17 <typedef name=" rsr" classname="GetFreePath" classpathref="project.classpath"/>13 <typedef name="getfreepath" classname="GetFreePath" classpathref="project.classpath"/> 18 14 <taskdef name="shortcut" classname="com.orangevolt.tools.ant.Win32ShortcutTask" classpathref="project.classpath"/> 19 15 <taskdef name="winprops" classname="com.orangevolt.tools.ant.Win32PropertiesTask" classpathref="project.classpath"/> 20 16 21 <condition property="bundled.java.exists"> 22 <available file="../@java.extracted@/bin/java"/> 23 </condition> 17 <!-- pick up the properties generated during the install pages --> 18 <property file="${basedir}/ant.install.properties"/> 19 20 <!-- determine if there is an existing installation in the installDir--> 21 <available file="${installDir}\etc\installation.properties" property="is.overinstall"/> 24 22 25 23 <!-- load windows properties --> 26 24 <winprops/> 25 26 <!-- create a local installDir String --> 27 <path id="installDir.path"><pathelement location="${installDir}"/></path> 28 <property name="installDir.local" refid="installDir.path"/> 29 30 <target name="load-previous-props" if="is.overinstall"> 31 <property file="${installDir}\etc\installation.properties"/> 32 </target> 27 33 28 <target name="install-core-components" depends=" ">34 <target name="install-core-components" depends="load-previous-props"> 29 35 30 36 <echo>basedir: ${basedir}</echo> … … 35 41 <echo message="Creating Installation directory"/> 36 42 <mkdir dir="${installDir}"/> 37 38 43 39 44 <!-- install files --> … … 71 76 <delete file="${installDir}/resources/*.png"/> 72 77 73 <echo message="Setting GSDLHOME in setup.bat"/>78 <echo message="Setting GSDLHOME in config files"/> 74 79 <rsr 75 80 file="${installDir}/setup.bat" … … 77 82 replacement="${installDir}"/> 78 83 <rsr 79 file="${installDir}/cgi-bin/gsdlsite. bat"84 file="${installDir}/cgi-bin/gsdlsite.cfg" 80 85 pattern="\*\*GSDLHOME\*\*" 81 86 replacement="${installDir}"/> … … 103 108 <target name="install-start-menu-shortcuts"> 104 109 105 <!-- figure out the start menu path -->110 <!-- figure out the start menu path (if not already set from previous installation) --> 106 111 <getfreepath path="${win32.personal.programs_menu}\Greenstone-@version@" property="startmenu.path"/> 107 112 … … 144 149 file="${startmenu.path}\Documentation\READMEru.lnk" 145 150 execute="${installDir}\READMEru.txt" /> 151 152 <rsr file="${installDir}\etc\installation.properties" pattern="@startmenu.path@" replacement="${startmenu.path}" winPath="true"/> 153 146 154 </target> 147 155
Note:
See TracChangeset
for help on using the changeset viewer.