[14982] | 1 | <?xml version="1.0"?>
|
---|
| 2 | <!--
|
---|
| 3 | This is the build.xml run by AntInstaller for the installer
|
---|
| 4 | -->
|
---|
[15205] | 5 | <project name="Installation">
|
---|
[14982] | 6 |
|
---|
| 7 | <!-- this is required to pick up the properties generated during the install pages -->
|
---|
| 8 | <property file="${basedir}/ant.install.properties"/>
|
---|
| 9 |
|
---|
[19935] | 10 | <!-- custom tasks -->
|
---|
| 11 | <path id="project.classpath"><pathelement path="${antinstaller.jar}"/></path>
|
---|
[14982] | 12 |
|
---|
[24437] | 13 | <typedef name="rsr" classname="org.greenstone.anttasks.RegexSearchReplace" classpathref="project.classpath"/>
|
---|
[25329] | 14 | <!--<typedef name="adduser" classname="org.greenstone.anttasks.AddGreenstone3UserToDatabase" classpathref="project.classpath"/>-->
|
---|
[19959] | 15 | <!-- if linux|mac -->
|
---|
[17468] | 16 | <taskdef name="sevenzip" classname="org.apache.tools.ant.SevenZip" classpathref="project.classpath"/>
|
---|
[19959] | 17 | <!-- /if -->
|
---|
[19935] | 18 | <!-- if windows -->
|
---|
| 19 | <taskdef name="shortcut" classname="com.orangevolt.tools.ant.Win32ShortcutTask" classpathref="project.classpath"/>
|
---|
| 20 | <taskdef name="winprops" classname="com.orangevolt.tools.ant.Win32PropertiesTask" classpathref="project.classpath"/>
|
---|
| 21 | <typedef name="getfreepath" classname="org.greenstone.anttasks.GetFreePath" classpathref="project.classpath"/>
|
---|
| 22 | <!-- /if -->
|
---|
[24437] | 23 |
|
---|
| 24 | <!-- set some properties to keep track of the OS -->
|
---|
| 25 | <!-- if windows -->
|
---|
| 26 | <property name="rk.os" value="windows"/>
|
---|
| 27 | <property name="shell.name" value="windows"/>
|
---|
| 28 | <!-- /if -->
|
---|
| 29 | <!-- if linux -->
|
---|
| 30 | <property name="rk.os" value="linux"/>
|
---|
| 31 | <property name="shell.name" value="linux"/>
|
---|
| 32 | <!-- /if -->
|
---|
| 33 | <!-- if mac -->
|
---|
| 34 | <property name="rk.os" value="mac"/>
|
---|
| 35 | <property name="shell.name" value="darwin"/>
|
---|
| 36 | <!-- /if -->
|
---|
| 37 |
|
---|
[14982] | 38 |
|
---|
[19935] | 39 | <!-- create a local and strictly unix installDir String -->
|
---|
| 40 | <path id="installDir.path"><pathelement location="${installDir}"/></path>
|
---|
| 41 | <property name="installDir.local" refid="installDir.path"/>
|
---|
| 42 | <pathconvert targetos="unix" property="installDir.unix" refid="installDir.path"/>
|
---|
[14982] | 43 |
|
---|
[19935] | 44 | <!-- if windows -->
|
---|
| 45 | <!-- load windows properties -->
|
---|
| 46 | <winprops/>
|
---|
| 47 | <!-- /if -->
|
---|
| 48 |
|
---|
| 49 | <!-- work out whether a jre is bundled with this installer -->
|
---|
[20306] | 50 | <available file="../jre/bin" property="bundled.java.exists"/>
|
---|
[19935] | 51 |
|
---|
| 52 | <!-- determine if there is an existing installation in the installDir-->
|
---|
| 53 | <available file="${installDir}\installation.properties" property="is.overinstall"/>
|
---|
| 54 |
|
---|
| 55 | <!-- target to copy the bundled jre into place -->
|
---|
[17765] | 56 | <target name="Initialising" if="bundled.java.exists">
|
---|
[17754] | 57 | <mkdir dir="${installDir}"/>
|
---|
| 58 | <copy todir="${installDir}/packages/jre" failonerror="false">
|
---|
[19935] | 59 | <fileset dir="../jre"/>
|
---|
[17754] | 60 | </copy>
|
---|
| 61 | <chmod dir="${installDir}/packages/jre/bin" includes="*" perm="775"/>
|
---|
| 62 | </target>
|
---|
| 63 |
|
---|
[19935] | 64 | <!-- target to load in the messages left by the last installation -->
|
---|
| 65 | <target name="Looking For Previous Installation" if="is.overinstall">
|
---|
| 66 | <property file="${installDir}\installation.properties"/>
|
---|
| 67 | <delete dir="${installed.startmenu.path}" failonerror="false"/>
|
---|
| 68 | </target>
|
---|
| 69 |
|
---|
[17764] | 70 | <target name="Installing Core System">
|
---|
[17754] | 71 |
|
---|
[19935] | 72 | <!-- rip out build.xml to the temp dir so we can fake and <antcall> with <ant> -->
|
---|
| 73 | <unzip src="${antinstaller.jar}" dest="${basedir}"><patternset><include name="build.xml"/></patternset></unzip>
|
---|
[14982] | 74 |
|
---|
| 75 |
|
---|
[19935] | 76 | <!-- if windows -->
|
---|
| 77 | <echo>Figuring out the start menu path</echo>
|
---|
| 78 | <getfreepath path="${win32.personal.programs_menu}\Greenstone-@version@" property="startmenu.path"/>
|
---|
| 79 | <path id="startmenu.path.path" path="${startmenu.path}"/>
|
---|
| 80 | <pathconvert targetos="unix" property="startmenu.path.unix" refid="startmenu.path.path"/>
|
---|
| 81 |
|
---|
| 82 | <echo>Extracting 7za tool</echo>
|
---|
| 83 | <unzip src="${antinstaller.jar}" dest="${basedir}">
|
---|
| 84 | <patternset><include name="7za.exe"/></patternset>
|
---|
| 85 | </unzip>
|
---|
| 86 | <!-- /if -->
|
---|
| 87 |
|
---|
| 88 | <echo>Extracting core component</echo>
|
---|
[20190] | 89 | <unzip src="${antinstaller.jar}" dest="${basedir}"><patternset><include name="core.lzma"/></patternset></unzip>
|
---|
| 90 | <!-- if windows --><exec dir="${basedir}" executable="${basedir}/7za.exe"><arg line="x core.lzma"/></exec><!-- /if -->
|
---|
| 91 | <!-- if linux|mac --><sevenzip task="decode" input="${basedir}/core.lzma" output="${basedir}/core.comp"/><!-- /if -->
|
---|
| 92 | <delete file="core.lzma"/>
|
---|
| 93 | <unzip src="${basedir}/core.comp" dest="${installDir}"/>
|
---|
| 94 | <delete file="core.comp"/>
|
---|
[19935] | 95 |
|
---|
| 96 | <echo>Setting binaries to executable</echo>
|
---|
[14982] | 97 | <chmod dir="${installDir}" includes="*.sh" perm="775"/>
|
---|
| 98 | <chmod dir="${installDir}/bin/script" includes="*" perm="775"/>
|
---|
[15142] | 99 | <chmod dir="${installDir}/bin" includes="*" perm="775"/>
|
---|
[19935] | 100 | <!-- if linux -->
|
---|
[14982] | 101 | <chmod dir="${installDir}/gs2build/bin/linux" includes="*" perm="775"/>
|
---|
[25447] | 102 | <chmod dir="${installDir}/gs2build/bin/linux/wv/bin" includes="*" perm="775"/>
|
---|
[19935] | 103 | <!-- /if -->
|
---|
| 104 | <!-- if mac -->
|
---|
[25956] | 105 | <chmod dir="${installDir}/gs2build/bin/darwin" includes="**/*" excludes="ghostscript/** imagemagick/**" perm="775"/>
|
---|
[19935] | 106 | <!-- /if -->
|
---|
[14982] | 107 | <chmod dir="${installDir}/gs2build/bin/script" includes="**/*" perm="775"/>
|
---|
[23816] | 108 | <!-- GLI START -->
|
---|
[14982] | 109 | <chmod dir="${installDir}/gli" includes="*.sh" perm="775"/>
|
---|
[23816] | 110 | <!-- GLI END -->
|
---|
| 111 |
|
---|
[25080] | 112 | <chmod file="${installDir}/packages/ant/bin/ant" perm="775"/>
|
---|
[19964] | 113 | <!--
|
---|
| 114 | source is not included for now
|
---|
[19953] | 115 | <chmod dir="${installDir}/gs2build" includes="**/configure" perm="775"/>
|
---|
| 116 | <chmod dir="${installDir}/gs2build/common-src/packages/gdbm/gdbm-1.8.3" includes="mkinstalldirs" perm="775"/>
|
---|
[19964] | 117 | <chmod file="${installDir}/src/packages/javagdbm/configure" perm="775"/>
|
---|
| 118 | -->
|
---|
[27335] | 119 |
|
---|
[14982] | 120 |
|
---|
[27335] | 121 | <echo>Correcting perl shebangs in perl scripts</echo>
|
---|
| 122 | <!-- if linux|mac -->
|
---|
| 123 | <exec executable="which" outputproperty="perl.executable"><arg value="perl"/></exec>
|
---|
| 124 | <rsr file="${installDir}/web/WEB-INF/cgi/gliserver.pl" pattern="^#!.*" replacement="#!${perl.executable} -w" lines="1"/>
|
---|
| 125 | <rsr file="${installDir}/web/WEB-INF/cgi/metadata-server.pl" pattern="^#!.*" replacement="#!${perl.executable} -w" lines="1"/>
|
---|
| 126 | <!-- /if -->
|
---|
| 127 | <!-- if windows -->
|
---|
| 128 | <property name="perl.executable" value="${installDir.local}\gs2build\bin\windows\perl\bin\perl.exe"/>
|
---|
| 129 | <rsr file="${installDir}/web/WEB-INF/cgi/gliserver.pl" pattern="^#!.*" replacement="#!${perl.executable} -w" lines="1"/>
|
---|
| 130 | <rsr file="${installDir}/web/WEB-INF/cgi/metadata-server.pl" pattern="^#!.*" replacement="#!${perl.executable} -w" lines="1"/>
|
---|
| 131 | <!-- /if -->
|
---|
| 132 |
|
---|
| 133 |
|
---|
[26077] | 134 | <echo>Setting tomcat ports</echo>
|
---|
| 135 | <property name="tomcat.server" value="localhost"/>
|
---|
| 136 | <property name="tomcat.port" value="8383"/>
|
---|
| 137 | <property name="tomcat.shutdown.port" value="8305"/>
|
---|
[21847] | 138 | <rsr file="${installDir}/build.properties">
|
---|
| 139 | <job pattern="^(tomcat\.server[=:]).*" replacement="$1${tomcat.server}" />
|
---|
| 140 | <job pattern="^(tomcat\.port[=:]).*" replacement="$1${tomcat.port}" />
|
---|
| 141 | <job pattern="^(tomcat\.shutdown.port[=:]).*" replacement="$1${tomcat.shutdown.port}" />
|
---|
| 142 | </rsr>
|
---|
[14982] | 143 |
|
---|
[17123] | 144 | <echo>Setting up global properties</echo>
|
---|
[14982] | 145 | <copy file="${installDir}/resources/java/global.properties.in" tofile="${installDir}/web/WEB-INF/classes/global.properties" overwrite="true"/>
|
---|
[19935] | 146 | <rsr file="${installDir}/web/WEB-INF/classes/global.properties">
|
---|
[21847] | 147 | <job pattern="^(gsdl3\.home[:=]).*" replacement="$1${installDir.unix}/web" />
|
---|
| 148 | <job pattern="^(tomcat.server[:=]).*" replacement="$1${tomcat.server}" />
|
---|
| 149 | <job pattern="^(tomcat\.port[:=]).*" replacement="$1${tomcat.port}" />
|
---|
[19935] | 150 | </rsr>
|
---|
[14982] | 151 |
|
---|
[17123] | 152 | <echo>Setting up log4j properties</echo>
|
---|
[14982] | 153 | <copy file="${installDir}/resources/java/log4j.properties.in" tofile="${installDir}/web/WEB-INF/classes/log4j.properties" overwrite="true"/>
|
---|
[19955] | 154 | <rsr file="${installDir}/web/WEB-INF/classes/log4j.properties" pattern="@gsdl3home@" replacement="${installDir.unix}/web" />
|
---|
[14982] | 155 |
|
---|
[19935] | 156 | <!-- if windows -->
|
---|
| 157 | <echo message="Setting GSDLHOME in gs2build\setup.bat"/>
|
---|
[21890] | 158 | <!-- No quotes around GSDLHOME filepath in setup.bat. since the set operations of batchfiles don't want spaces in their assignments, and where quotes are needed in setup.bat, setup.bat handles this itself -->
|
---|
| 159 | <rsr file="${installDir}/gs2build/setup.bat" pattern=""?\*\*GSDLHOME\*\*"?" replacement="${installDir.local}\gs2build" />
|
---|
[19935] | 160 | <!-- /if -->
|
---|
| 161 |
|
---|
[27391] | 162 | <!-- if mac -->
|
---|
| 163 | <echo>Installing Mac Shortcuts</echo>
|
---|
[27451] | 164 | <ant dir="${installDir}" antfile="build.xml" target="gen-mac-shortcuts" inheritAll="false" />
|
---|
| 165 | <!-- need to give executable permissions to the Mac shortcuts -->
|
---|
| 166 | <chmod dir="${installDir}/gs3-server.app" includes="*" perm="775"/>
|
---|
| 167 | <chmod dir="${installDir}/gli.app" includes="*" perm="775"/>
|
---|
| 168 | <chmod dir="${installDir}/client-gli.app" includes="*" perm="775"/>
|
---|
| 169 | <chmod dir="${installDir}/gems.app" includes="*" perm="775"/>
|
---|
[27391] | 170 | <!-- /if -->
|
---|
| 171 |
|
---|
[23816] | 172 | <!-- GLI START -->
|
---|
[18980] | 173 | <echo>Creating the english dictionary</echo>
|
---|
| 174 | <copy file="${installDir}/gli/classes/dictionary.properties" tofile="${installDir}/gli/classes/dictionary_en.properties"/>
|
---|
[23816] | 175 | <!-- GLI END -->
|
---|
[18980] | 176 |
|
---|
[19935] | 177 | <echo>Creating usage.txt</echo>
|
---|
[17814] | 178 | <echo file="${installDir}/gs2build/etc/usage.txt"></echo>
|
---|
| 179 |
|
---|
[17257] | 180 | <echo>Creating installation properties file</echo>
|
---|
[19935] | 181 | <echo file="${installDir}\installation.properties">installed.startmenu.path:${startmenu.path.unix}</echo>
|
---|
[17257] | 182 |
|
---|
[17123] | 183 | <echo>Finished</echo>
|
---|
[15142] | 184 |
|
---|
[14982] | 185 | </target>
|
---|
| 186 |
|
---|
[17646] | 187 | <target name="Installing ImageMagick">
|
---|
[19935] | 188 |
|
---|
[17646] | 189 | <echo>Installing ImageMagick</echo>
|
---|
[20190] | 190 | <unzip src="${antinstaller.jar}" dest="${basedir}"><patternset><include name="imagemagick.lzma"/></patternset></unzip>
|
---|
| 191 | <!-- if windows --><exec dir="${basedir}" executable="${basedir}/7za.exe"><arg line="x imagemagick.lzma"/></exec><!-- /if -->
|
---|
| 192 | <!-- if linux|mac --><sevenzip task="decode" input="${basedir}/imagemagick.lzma" output="${basedir}/imagemagick.comp"/><!-- /if -->
|
---|
| 193 | <delete file="imagemagick.lzma"/>
|
---|
| 194 | <unzip src="${basedir}/imagemagick.comp" dest="${installDir}"/>
|
---|
| 195 | <delete file="imagemagick.comp"/>
|
---|
[19935] | 196 |
|
---|
| 197 | <echo>Setting binaries to executable</echo>
|
---|
| 198 | <!-- if linux -->
|
---|
[17699] | 199 | <chmod dir="${installDir}/gs2build/bin/linux/imagemagick/bin" includes="*" perm="775"/>
|
---|
[19935] | 200 | <!-- /if -->
|
---|
| 201 | <!-- if mac -->
|
---|
| 202 | <chmod dir="${installDir}/gs2build/bin/darwin/imagemagick/bin" includes="*" perm="775"/>
|
---|
| 203 | <!-- /if -->
|
---|
| 204 |
|
---|
[14982] | 205 | </target>
|
---|
| 206 |
|
---|
[23843] | 207 | <!-- NO FLAX START -->
|
---|
| 208 |
|
---|
[19935] | 209 | <target name="Installing Ghostscript">
|
---|
[17646] | 210 |
|
---|
[19935] | 211 | <echo>Installing Ghostscript</echo>
|
---|
[20190] | 212 | <unzip src="${antinstaller.jar}" dest="${basedir}"><patternset><include name="ghostscript.lzma"/></patternset></unzip>
|
---|
| 213 | <!-- if windows --><exec dir="${basedir}" executable="${basedir}/7za.exe"><arg line="x ghostscript.lzma"/></exec><!-- /if -->
|
---|
| 214 | <!-- if linux|mac --><sevenzip task="decode" input="${basedir}/ghostscript.lzma" output="${basedir}/ghostscript.comp"/><!-- /if -->
|
---|
| 215 | <delete file="ghostscript.lzma"/>
|
---|
| 216 | <unzip src="${basedir}/ghostscript.comp" dest="${installDir}"/>
|
---|
| 217 | <delete file="ghostscript.comp"/>
|
---|
[19935] | 218 |
|
---|
| 219 | <echo>Setting binaries to executable</echo>
|
---|
| 220 | <!-- if linux -->
|
---|
| 221 | <chmod dir="${installDir}/gs2build/bin/linux/ghostscript/bin" includes="*" perm="775"/>
|
---|
| 222 | <!-- /if -->
|
---|
| 223 | <!-- if mac -->
|
---|
| 224 | <chmod dir="${installDir}/gs2build/bin/darwin/ghostscript/bin" includes="*" perm="775"/>
|
---|
| 225 | <!-- /if -->
|
---|
| 226 |
|
---|
| 227 | </target>
|
---|
| 228 |
|
---|
[23843] | 229 | <!-- NO FLAX END -->
|
---|
| 230 |
|
---|
[22325] | 231 | <!-- start amp -->
|
---|
| 232 |
|
---|
| 233 | <target name="Installing AMP">
|
---|
| 234 | <echo>Installing Apache, MySQL and PHP</echo>
|
---|
| 235 | <unzip src="${antinstaller.jar}" dest="${basedir}"><patternset><include name="amp.lzma"/></patternset></unzip>
|
---|
| 236 | <!-- if windows --><exec dir="${basedir}" executable="${basedir}/7za.exe"><arg line="x amp.lzma"/></exec><!-- /if -->
|
---|
| 237 | <!-- if linux|mac --><sevenzip task="decode" input="${basedir}/amp.lzma" output="${basedir}/amp.comp"/><!-- /if -->
|
---|
| 238 | <delete file="amp.lzma"/>
|
---|
| 239 | <unzip src="${basedir}/amp.comp" dest="${installDir}/ext/amp"/>
|
---|
| 240 | <delete file="amp.comp"/>
|
---|
| 241 |
|
---|
| 242 | <!-- if linux|mac -->
|
---|
| 243 | <echo>Setting binaries to executable</echo>
|
---|
| 244 | <chmod dir="${installDir}/ext/amp" includes="*" perm="775"/>
|
---|
| 245 | <!-- /if -->
|
---|
| 246 | </target>
|
---|
| 247 |
|
---|
| 248 | <!-- end amp -->
|
---|
| 249 |
|
---|
[17596] | 250 | <target name="Installing Tomcat">
|
---|
[19935] | 251 |
|
---|
[17123] | 252 | <echo>Installing Tomcat (packages/tomcat)</echo>
|
---|
[17446] | 253 | <mkdir dir="packages"/>
|
---|
[20190] | 254 | <unzip src="${antinstaller.jar}" dest="${basedir}"><patternset><include name="tomcat.lzma"/></patternset></unzip>
|
---|
| 255 | <!-- if windows --><exec dir="${basedir}" executable="${basedir}/7za.exe"><arg line="x tomcat.lzma"/></exec><!-- /if -->
|
---|
| 256 | <!-- if linux|mac --><sevenzip task="decode" input="${basedir}/tomcat.lzma" output="${basedir}/tomcat.comp"/><!-- /if -->
|
---|
| 257 | <delete file="tomcat.lzma"/>
|
---|
| 258 | <unzip src="${basedir}/tomcat.comp" dest="${installDir}"/>
|
---|
| 259 | <delete file="tomcat.comp"/>
|
---|
[17446] | 260 |
|
---|
[20190] | 261 |
|
---|
[17123] | 262 | <echo>Changing tomcat ports tomcat's server.xml</echo>
|
---|
[25156] | 263 | <copy file="${installDir}/resources/tomcat/server_tomcat7.xml" tofile="${installDir}/packages/tomcat/conf/server.xml" overwrite="true"/>
|
---|
[19935] | 264 | <rsr file="${installDir}/packages/tomcat/conf/server.xml">
|
---|
| 265 | <job pattern="@port@" replacement="${tomcat.port}"/>
|
---|
| 266 | <job pattern="@shutdown-port@" replacement="${tomcat.shutdown.port}"/>
|
---|
| 267 | </rsr>
|
---|
| 268 |
|
---|
[17123] | 269 | <echo>Copying greenstone3.xml to tomcat directory</echo>
|
---|
[15973] | 270 | <copy file="${installDir}/resources/tomcat/greenstone3.xml" tofile="${installDir}/packages/tomcat/conf/Catalina/localhost/greenstone3.xml" overwrite="true"/>
|
---|
[19962] | 271 | <rsr file="${installDir}/packages/tomcat/conf/Catalina/localhost/greenstone3.xml" pattern="@gsdl3webhome@" replacement="${installDir.local}${file.separator}web" />
|
---|
[23667] | 272 | <rsr file="${installDir}/packages/tomcat/conf/Catalina/localhost/greenstone3.xml" pattern="@privilegedattribute@" replacement="privileged='true'" />
|
---|
[26076] | 273 |
|
---|
| 274 | <!-- FLAX START -->
|
---|
| 275 | <rsr file="${installDir}/packages/tomcat/conf/Catalina/localhost/greenstone3.xml" pattern="localsite" replacement="flax" />
|
---|
| 276 | <!-- FLAX END -->
|
---|
| 277 |
|
---|
[19935] | 278 | <echo>Set binaries to executable</echo>
|
---|
[15973] | 279 | <chmod dir="${installDir}/packages/tomcat/bin" includes="*.sh" perm="775"/>
|
---|
[19935] | 280 |
|
---|
[15142] | 281 | </target>
|
---|
[15205] | 282 |
|
---|
[19935] | 283 | <target name="Installing Start Menu Shortcuts">
|
---|
[17786] | 284 |
|
---|
[19935] | 285 | <echo>Installing Start Menu Shortcuts</echo>
|
---|
[17814] | 286 |
|
---|
[23937] | 287 | <!-- NO FLAX START -->
|
---|
| 288 |
|
---|
[19935] | 289 | <mkdir dir="${startmenu.path}\Documentation"/>
|
---|
[23811] | 290 |
|
---|
[19935] | 291 | <shortcut
|
---|
| 292 | file="${startmenu.path}\Greenstone3 Server.lnk"
|
---|
| 293 | execute="${installDir}\gs3-server.bat"
|
---|
| 294 | workingDirectory="${installDir}"
|
---|
[21819] | 295 | iconFile="${installDir}\resources\images\server.ico"
|
---|
[19935] | 296 | iconIndex="0" />
|
---|
[17786] | 297 |
|
---|
[19935] | 298 | <shortcut
|
---|
| 299 | file="${startmenu.path}\Greenstone Librarian Interface (GLI).lnk"
|
---|
| 300 | execute="${installDir}\gli\gli.bat"
|
---|
| 301 | workingDirectory="${installDir}\gli"
|
---|
[21819] | 302 | iconFile="${installDir}\resources\images\librarian.ico"
|
---|
[19935] | 303 | iconIndex="0" />
|
---|
| 304 |
|
---|
| 305 | <shortcut
|
---|
| 306 | file="${startmenu.path}\Greenstone Editor for Metadata Sets (GEMS).lnk"
|
---|
| 307 | execute="${installDir}\gli\gems.bat"
|
---|
| 308 | workingDirectory="${installDir}\gli"
|
---|
[21819] | 309 | iconFile="${installDir}\resources\images\metadata.ico"
|
---|
[19935] | 310 | iconIndex="0" />
|
---|
[17786] | 311 |
|
---|
[19935] | 312 | <shortcut
|
---|
| 313 | file="${startmenu.path}\Uninstall.lnk"
|
---|
[23836] | 314 | execute="${installDir}\uninstall\Uninstall.bat"
|
---|
[19935] | 315 | workingDirectory="${installDir}"
|
---|
[20012] | 316 | iconFile="${installDir}\resources\images\uninstall.ico"
|
---|
[19935] | 317 | iconIndex="0" />
|
---|
| 318 |
|
---|
| 319 | <shortcut
|
---|
| 320 | file="${startmenu.path}\Documentation\README.lnk"
|
---|
| 321 | execute="${installDir}\README.txt" />
|
---|
| 322 |
|
---|
| 323 | <shortcut
|
---|
| 324 | file="${startmenu.path}\Documentation\Greenstone3 Users' Guide.lnk"
|
---|
| 325 | execute="${installDir}\documentation\manual\manual.pdf" />
|
---|
| 326 |
|
---|
| 327 | <shortcut
|
---|
| 328 | file="${startmenu.path}\Documentation\Greenstone2 Users' Guide.lnk"
|
---|
| 329 | execute="${installDir}\documentation\manual\gs2_user_en.pdf" />
|
---|
[20012] | 330 |
|
---|
| 331 | <shortcut
|
---|
| 332 | file="${startmenu.path}\Documentation\Greenstone Wiki.url"
|
---|
| 333 | url="http://wiki.greenstone.org" />
|
---|
| 334 |
|
---|
| 335 | <shortcut
|
---|
| 336 | file="${startmenu.path}\Documentation\Greenstone Website.url"
|
---|
| 337 | url="http://www.greenstone.org" />
|
---|
[19935] | 338 |
|
---|
[23811] | 339 | <!-- NO FLAX END -->
|
---|
| 340 |
|
---|
[24091] | 341 | <!-- FLAX START -->
|
---|
[23811] | 342 |
|
---|
| 343 | <shortcut
|
---|
| 344 | file="${startmenu.path}\Start FLAX Server.lnk"
|
---|
| 345 | execute="${installDir}\gs3-server.bat"
|
---|
| 346 | workingDirectory="${installDir}"
|
---|
| 347 | iconFile="${installDir}\resources\images\server.ico"
|
---|
| 348 | iconIndex="0" />
|
---|
| 349 |
|
---|
| 350 | <shortcut
|
---|
| 351 | file="${startmenu.path}\Uninstall.lnk"
|
---|
[23836] | 352 | execute="${installDir}\uninstall\Uninstall.bat"
|
---|
[23811] | 353 | workingDirectory="${installDir}"
|
---|
| 354 | iconFile="${installDir}\resources\images\uninstall.ico"
|
---|
| 355 | iconIndex="0" />
|
---|
| 356 |
|
---|
| 357 | <!-- FLAX END -->
|
---|
[19935] | 358 | </target>
|
---|
[24437] | 359 |
|
---|
| 360 | <target name="Configuring Administration Pages" if="enable.admin.pages">
|
---|
| 361 | <echo>Enabling Admin Pages</echo>
|
---|
| 362 | <rsr file="${installDir}/web/sites/localsite/siteConfig.xml" pattern="<!--<serviceRack name='Authentication'/>-->" replacement="<serviceRack name='Authentication'/>"/>
|
---|
[25329] | 363 | <echo>Creating admin user</echo>
|
---|
| 364 | <!--<echo>Creating admin and demo users</echo>-->
|
---|
[25611] | 365 | <ant dir="${installDir}" antfile="build.xml" target="config-admin" inheritAll="false">
|
---|
| 366 | <property name="admin.password" value="${admin.password}"/>
|
---|
| 367 | </ant>
|
---|
[25329] | 368 | <!--<adduser txt2db="org.greenstone.gsdl3.util.ChangePwdUsersDB"
|
---|
| 369 | usersDb="${installDir}/web/sites/localsite/etc/usersDB"
|
---|
[24437] | 370 | username="admin"
|
---|
| 371 | password="${admin.password}"
|
---|
| 372 | groups="administrator,colbuilder,all-collections-editor"
|
---|
[25329] | 373 | comment="created at install time"
|
---|
| 374 | email=""/>
|
---|
[24437] | 375 | <adduser
|
---|
[25329] | 376 | txt2db="org.greenstone.gsdl3.util.ChangePwdUsersDB"
|
---|
| 377 | usersDb="${installDir}/web/sites/localsite/etc/usersDB"
|
---|
[24437] | 378 | username="demo"
|
---|
| 379 | password="demo"
|
---|
| 380 | groups="demo"
|
---|
[25329] | 381 | comment="Dummy 'demo' user with password 'demo' for authen-e collection"
|
---|
| 382 | email=""/>-->
|
---|
[24437] | 383 | </target>
|
---|
| 384 |
|
---|
[19935] | 385 | <!-- util target to extract the given component -->
|
---|
| 386 | <!-- pass in ${component.name} as a param -->
|
---|
[20190] | 387 | <!-- unused at this time as causes display errors in installer gui!
|
---|
[19935] | 388 | <target name="extract-component">
|
---|
[20190] | 389 | <!- - extract the component into place - ->
|
---|
[19935] | 390 | <unzip src="${antinstaller.jar}" dest="${basedir}"><patternset><include name="${component.name}.lzma"/></patternset></unzip>
|
---|
[20190] | 391 | <!- - if windows - ->
|
---|
[19935] | 392 | <exec dir="${basedir}" executable="${basedir}/7za.exe"><arg line="x ${component.name}.lzma"/></exec>
|
---|
[20190] | 393 | <!- - /if - ->
|
---|
| 394 | <!- - if linux|mac - ->
|
---|
[19935] | 395 | <sevenzip task="decode" input="${basedir}/${component.name}.lzma" output="${basedir}/${component.name}.comp"/>
|
---|
[20190] | 396 | <!- - /if - ->
|
---|
[19935] | 397 | <delete file="${component.name}.lzma"/>
|
---|
| 398 | <unzip src="${basedir}/${component.name}.comp" dest="${installDir}"/>
|
---|
| 399 | <delete file="${component.name}.comp"/>
|
---|
[17786] | 400 | </target>
|
---|
[20190] | 401 | -->
|
---|
[17786] | 402 |
|
---|
[14982] | 403 | </project>
|
---|