[15023] | 1 | <?xml version="1.0"?>
|
---|
| 2 | <!--
|
---|
| 3 | This is the build.xml run by AntInstaller for the installer
|
---|
| 4 | -->
|
---|
| 5 |
|
---|
[16087] | 6 | <project name="Installation">
|
---|
[15023] | 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>
|
---|
| 14 |
|
---|
| 15 | <!-- custom tasks -->
|
---|
| 16 | <typedef name="rsr" classname="RegexSearchReplace" classpathref="project.classpath"/>
|
---|
[16633] | 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"/>
|
---|
[15023] | 19 |
|
---|
[16087] | 20 | <condition property="bundled.java.exists">
|
---|
| 21 | <available file="../@java.extracted@/bin/java"/>
|
---|
| 22 | </condition>
|
---|
[15023] | 23 |
|
---|
[16633] | 24 | <!-- load windows properties -->
|
---|
| 25 | <winprops/>
|
---|
[16087] | 26 |
|
---|
| 27 | <target name="install-core-components" depends="">
|
---|
| 28 |
|
---|
[15023] | 29 | <echo>basedir: ${basedir}</echo>
|
---|
| 30 | <echo>installDir: ${installDir}</echo>
|
---|
| 31 | <echo>antinstaller.jar: ${antinstaller.jar}</echo>
|
---|
[16087] | 32 |
|
---|
| 33 | <!-- create the installation directory -->
|
---|
| 34 | <echo message="Creating Installation directory"/>
|
---|
[15023] | 35 | <mkdir dir="${installDir}"/>
|
---|
[16633] | 36 |
|
---|
| 37 |
|
---|
[16087] | 38 | <!-- install files -->
|
---|
[16747] | 39 | <echo message="Installing Files"/>
|
---|
[15023] | 40 | <unzip src="${antinstaller.jar}" dest="${installDir}">
|
---|
| 41 | <patternset>
|
---|
[16747] | 42 |
|
---|
| 43 | <include name="gli/**/*"/>
|
---|
| 44 | <include name="bin/**/*"/>
|
---|
| 45 | <include name="cgi-bin/**/*"/>
|
---|
| 46 | <include name="etc/**/*"/>
|
---|
| 47 | <include name="mappings/**/*"/>
|
---|
| 48 | <include name="images/**/*"/>
|
---|
| 49 | <include name="perllib/**/*"/>
|
---|
| 50 | <include name="indexers/**/*"/>
|
---|
| 51 | <include name="macros/**/*"/>
|
---|
| 52 | <include name="collect/**/*"/>
|
---|
| 53 |
|
---|
[16087] | 54 | <include name="COPYING"/>
|
---|
[16244] | 55 | <include name="READMEar.txt"/>
|
---|
| 56 | <include name="READMEes.txt"/>
|
---|
| 57 | <include name="READMEen.txt"/>
|
---|
| 58 | <include name="READMEfr.txt"/>
|
---|
| 59 | <include name="READMEru.txt"/>
|
---|
[16087] | 60 | <include name="setup.bat"/>
|
---|
| 61 | <include name="server.exe"/>
|
---|
[16747] | 62 |
|
---|
[15023] | 63 | </patternset>
|
---|
| 64 | </unzip>
|
---|
| 65 | <echo/>
|
---|
[16633] | 66 |
|
---|
[15023] | 67 | <!-- delete unneeded files -->
|
---|
[16774] | 68 | <echo message="Deleting some unneeded files"/>
|
---|
[15023] | 69 | <delete dir="${installDir}/resources/icons"/>
|
---|
| 70 | <delete file="${installDir}/resources/*.png"/>
|
---|
[16774] | 71 |
|
---|
| 72 | <echo message="Setting GSDLHOME in setup.bat"/>
|
---|
| 73 | <rsr
|
---|
| 74 | file="${installDir}/setup.bat"
|
---|
| 75 | pattern="\*\*GSDLHOME\*\*"
|
---|
| 76 | replacement="${installDir}"/>
|
---|
| 77 |
|
---|
[16087] | 78 | <echo message="Finished"/>
|
---|
[16633] | 79 |
|
---|
[15023] | 80 | </target>
|
---|
| 81 |
|
---|
| 82 | <!-- Source -->
|
---|
[16087] | 83 | <target name="install-source-code" depends="">
|
---|
[16633] | 84 |
|
---|
| 85 | <echo message="Installing Source Code (src)"/>
|
---|
| 86 | <echo message="Installing Packages (packages)"/>
|
---|
| 87 | <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="packages/**/*"/></patternset></unzip>
|
---|
| 88 | <echo/>
|
---|
| 89 |
|
---|
[15023] | 90 | <mkdir dir="${installDir}/src"/>
|
---|
[16087] | 91 | <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="src/**/*"/></patternset></unzip>
|
---|
[16633] | 92 |
|
---|
[15023] | 93 | </target>
|
---|
[16633] | 94 |
|
---|
| 95 | <!-- Start menu shortcuts -->
|
---|
| 96 | <target name="install-start-menu-shortcuts">
|
---|
[15023] | 97 |
|
---|
[16633] | 98 | <mkdir dir="${win32.personal.programs_menu}\Greenstone-@version@\Documentation"/>
|
---|
| 99 |
|
---|
| 100 | <shortcut
|
---|
| 101 | file="${win32.personal.programs_menu}\Greenstone-@version@\Greenstone2 Server.lnk"
|
---|
[16774] | 102 | execute="${installDir}\server.exe"
|
---|
[16633] | 103 | workingDirectory="${installDir}"
|
---|
| 104 | iconFile="${installDir}\images\icon.ico"
|
---|
| 105 | iconIndex="0" />
|
---|
| 106 |
|
---|
| 107 | <shortcut
|
---|
| 108 | file="${win32.personal.programs_menu}\Greenstone-@version@\Greenstone Librarian Interface (GLI).lnk"
|
---|
| 109 | execute="${installDir}\gli\gli.bat"
|
---|
| 110 | workingDirectory="${installDir}\gli"
|
---|
| 111 | iconFile="${installDir}\images\icon.ico"
|
---|
| 112 | iconIndex="0" />
|
---|
| 113 |
|
---|
| 114 | <shortcut
|
---|
| 115 | file="${win32.personal.programs_menu}\Greenstone-@version@\Greenstone Editor for Metadata Sets (GEMS).lnk"
|
---|
| 116 | execute="${installDir}\gli\gems4gs3.bat"
|
---|
| 117 | workingDirectory="${installDir}\gli"
|
---|
| 118 | iconFile="${installDir}\images\icon.ico"
|
---|
| 119 | iconIndex="0" />
|
---|
| 120 |
|
---|
| 121 | <shortcut
|
---|
| 122 | file="${win32.personal.programs_menu}\Greenstone-@version@\Documentation\READMEen.lnk"
|
---|
| 123 | execute="${installDir}\READMEen.txt" />
|
---|
| 124 | <shortcut
|
---|
| 125 | file="${win32.personal.programs_menu}\Greenstone-@version@\Documentation\READMEes.lnk"
|
---|
| 126 | execute="${installDir}\READMEes.txt" />
|
---|
| 127 | <shortcut
|
---|
| 128 | file="${win32.personal.programs_menu}\Greenstone-@version@\Documentation\READMEar.lnk"
|
---|
| 129 | execute="${installDir}\READMEar.txt" />
|
---|
| 130 | <shortcut
|
---|
| 131 | file="${win32.personal.programs_menu}\Greenstone-@version@\Documentation\READMEfr.lnk"
|
---|
| 132 | execute="${installDir}\READMEfr.txt" />
|
---|
| 133 | <shortcut
|
---|
| 134 | file="${win32.personal.programs_menu}\Greenstone-@version@\Documentation\READMEru.lnk"
|
---|
| 135 | execute="${installDir}\READMEru.txt" />
|
---|
[15023] | 136 | </target>
|
---|
[16633] | 137 |
|
---|
| 138 |
|
---|
| 139 | <target name="cleanuptarget"></target>
|
---|
[15023] | 140 |
|
---|
| 141 |
|
---|
| 142 | </project>
|
---|