[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 -->
|
---|
| 39 | <echo message="Installing GLI (gli)"/>
|
---|
| 40 | <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="gli/**/*"/></patternset></unzip>
|
---|
| 41 | <echo/>
|
---|
[16633] | 42 |
|
---|
[15023] | 43 | <echo message="Installing Executable Binaries (bin)"/>
|
---|
| 44 | <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="bin/**/*"/></patternset></unzip>
|
---|
| 45 | <echo/>
|
---|
[16633] | 46 |
|
---|
[16087] | 47 | <echo message="Installing CGI Binaries (cgi-bin)"/>
|
---|
| 48 | <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="cgi-bin/**/*"/></patternset></unzip>
|
---|
[15023] | 49 | <echo/>
|
---|
[16633] | 50 |
|
---|
[16087] | 51 | <echo message="Installing Config Folder (etc)"/>
|
---|
| 52 | <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="etc/**/*"/></patternset></unzip>
|
---|
[15023] | 53 | <echo/>
|
---|
[16633] | 54 |
|
---|
[16087] | 55 | <echo message="Installing mappings (mappings)"/>
|
---|
| 56 | <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="mappings/**/*"/></patternset></unzip>
|
---|
[15023] | 57 | <echo/>
|
---|
[16633] | 58 |
|
---|
| 59 |
|
---|
[16087] | 60 | <echo message="Installing Images (images)"/>
|
---|
| 61 | <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="images/**/*"/></patternset></unzip>
|
---|
[15023] | 62 | <echo/>
|
---|
[16633] | 63 |
|
---|
[16087] | 64 | <echo message="Installing Perl Libraries (perllib)"/>
|
---|
| 65 | <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="perllib/**/*"/></patternset></unzip>
|
---|
[15023] | 66 | <echo/>
|
---|
[16633] | 67 |
|
---|
[16087] | 68 | <echo message="Installing Indexers (indexers)"/>
|
---|
| 69 | <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="indexers/**/*"/></patternset></unzip>
|
---|
[15023] | 70 | <echo/>
|
---|
[16633] | 71 |
|
---|
[16087] | 72 | <echo message="Installing Macros (macros)"/>
|
---|
| 73 | <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="macros/**/*"/></patternset></unzip>
|
---|
| 74 | <echo/>
|
---|
[16633] | 75 |
|
---|
[16087] | 76 | <echo message="Installing Collect Folder (collect)"/>
|
---|
| 77 | <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="collect/**/*"/></patternset></unzip>
|
---|
| 78 | <echo/>
|
---|
[15023] | 79 |
|
---|
| 80 | <echo message="Installing Top Level Files"/>
|
---|
| 81 | <unzip src="${antinstaller.jar}" dest="${installDir}">
|
---|
| 82 | <patternset>
|
---|
[16087] | 83 | <include name="COPYING"/>
|
---|
[16244] | 84 | <include name="READMEar.txt"/>
|
---|
| 85 | <include name="READMEes.txt"/>
|
---|
| 86 | <include name="READMEen.txt"/>
|
---|
| 87 | <include name="READMEfr.txt"/>
|
---|
| 88 | <include name="READMEru.txt"/>
|
---|
[16087] | 89 | <include name="setup.bat"/>
|
---|
| 90 | <include name="server.exe"/>
|
---|
[15023] | 91 | </patternset>
|
---|
| 92 | </unzip>
|
---|
| 93 | <echo/>
|
---|
[16633] | 94 |
|
---|
[15023] | 95 | <!-- delete unneeded files -->
|
---|
[16087] | 96 | <echo message="Deleting some extraneous files"/>
|
---|
[15023] | 97 | <delete dir="${installDir}/resources/icons"/>
|
---|
| 98 | <delete file="${installDir}/resources/*.png"/>
|
---|
[16633] | 99 |
|
---|
[16087] | 100 | <echo message="Finished"/>
|
---|
[16633] | 101 |
|
---|
[15023] | 102 | </target>
|
---|
| 103 |
|
---|
| 104 | <!-- Source -->
|
---|
[16087] | 105 | <target name="install-source-code" depends="">
|
---|
[16633] | 106 |
|
---|
| 107 | <echo message="Installing Source Code (src)"/>
|
---|
| 108 | <echo message="Installing Packages (packages)"/>
|
---|
| 109 | <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="packages/**/*"/></patternset></unzip>
|
---|
| 110 | <echo/>
|
---|
| 111 |
|
---|
[15023] | 112 | <mkdir dir="${installDir}/src"/>
|
---|
[16087] | 113 | <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="src/**/*"/></patternset></unzip>
|
---|
[16633] | 114 |
|
---|
[15023] | 115 | </target>
|
---|
[16633] | 116 |
|
---|
| 117 | <!-- Start menu shortcuts -->
|
---|
| 118 | <target name="install-start-menu-shortcuts">
|
---|
[15023] | 119 |
|
---|
[16633] | 120 | <mkdir dir="${win32.personal.programs_menu}\Greenstone-@version@\Documentation"/>
|
---|
| 121 |
|
---|
| 122 | <shortcut
|
---|
| 123 | file="${win32.personal.programs_menu}\Greenstone-@version@\Greenstone2 Server.lnk"
|
---|
| 124 | execute="${installDir}\bin\windows\server.exe"
|
---|
| 125 | workingDirectory="${installDir}"
|
---|
| 126 | iconFile="${installDir}\images\icon.ico"
|
---|
| 127 | iconIndex="0" />
|
---|
| 128 |
|
---|
| 129 | <shortcut
|
---|
| 130 | file="${win32.personal.programs_menu}\Greenstone-@version@\Greenstone Librarian Interface (GLI).lnk"
|
---|
| 131 | execute="${installDir}\gli\gli.bat"
|
---|
| 132 | workingDirectory="${installDir}\gli"
|
---|
| 133 | iconFile="${installDir}\images\icon.ico"
|
---|
| 134 | iconIndex="0" />
|
---|
| 135 |
|
---|
| 136 | <shortcut
|
---|
| 137 | file="${win32.personal.programs_menu}\Greenstone-@version@\Greenstone Editor for Metadata Sets (GEMS).lnk"
|
---|
| 138 | execute="${installDir}\gli\gems4gs3.bat"
|
---|
| 139 | workingDirectory="${installDir}\gli"
|
---|
| 140 | iconFile="${installDir}\images\icon.ico"
|
---|
| 141 | iconIndex="0" />
|
---|
| 142 |
|
---|
| 143 | <shortcut
|
---|
| 144 | file="${win32.personal.programs_menu}\Greenstone-@version@\Documentation\READMEen.lnk"
|
---|
| 145 | execute="${installDir}\READMEen.txt" />
|
---|
| 146 | <shortcut
|
---|
| 147 | file="${win32.personal.programs_menu}\Greenstone-@version@\Documentation\READMEes.lnk"
|
---|
| 148 | execute="${installDir}\READMEes.txt" />
|
---|
| 149 | <shortcut
|
---|
| 150 | file="${win32.personal.programs_menu}\Greenstone-@version@\Documentation\READMEar.lnk"
|
---|
| 151 | execute="${installDir}\READMEar.txt" />
|
---|
| 152 | <shortcut
|
---|
| 153 | file="${win32.personal.programs_menu}\Greenstone-@version@\Documentation\READMEfr.lnk"
|
---|
| 154 | execute="${installDir}\READMEfr.txt" />
|
---|
| 155 | <shortcut
|
---|
| 156 | file="${win32.personal.programs_menu}\Greenstone-@version@\Documentation\READMEru.lnk"
|
---|
| 157 | execute="${installDir}\READMEru.txt" />
|
---|
[15023] | 158 | </target>
|
---|
[16633] | 159 |
|
---|
| 160 |
|
---|
| 161 | <target name="cleanuptarget"></target>
|
---|
[15023] | 162 |
|
---|
| 163 |
|
---|
| 164 | </project>
|
---|