[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 -->
|
---|
[30131] | 48 |
|
---|
| 49 | <!-- determine if there is an existing installation in the installDir-->
|
---|
| 50 | <available file="${installDir}\installation.properties" property="is.overinstall"/>
|
---|
[19935] | 51 |
|
---|
[30131] | 52 | <!-- work out whether a jre was bundled with this installer. If it was, then for a Mac, it would live in /tmp -->
|
---|
| 53 | <!-- if mac -->
|
---|
| 54 | <available file="/tmp/jre/bin" property="bundled.java.exists"/>
|
---|
| 55 | <property name="extracted.jre.path" location="/tmp/jre" relative="false" />
|
---|
| 56 | <!-- /if -->
|
---|
[30138] | 57 | <!-- if windows|linux -->
|
---|
[20306] | 58 | <available file="../jre/bin" property="bundled.java.exists"/>
|
---|
[30131] | 59 | <property name="extracted.jre.path" location="../jre" relative="true" basedir="${basedir}" />
|
---|
| 60 | <!-- /if -->
|
---|
[19935] | 61 |
|
---|
| 62 | <!-- target to copy the bundled jre into place -->
|
---|
[17765] | 63 | <target name="Initialising" if="bundled.java.exists">
|
---|
[17754] | 64 | <mkdir dir="${installDir}"/>
|
---|
| 65 | <copy todir="${installDir}/packages/jre" failonerror="false">
|
---|
[30131] | 66 | <fileset dir="${extracted.jre.path}"/>
|
---|
[17754] | 67 | </copy>
|
---|
| 68 | <chmod dir="${installDir}/packages/jre/bin" includes="*" perm="775"/>
|
---|
[30131] | 69 | <!-- if mac -->
|
---|
| 70 | <chmod dir="${installDir}/packages/jre/lib" includes="**/*" perm="a+rx"/>
|
---|
| 71 | <!-- /if -->
|
---|
[17754] | 72 | </target>
|
---|
| 73 |
|
---|
[19935] | 74 | <!-- target to load in the messages left by the last installation -->
|
---|
| 75 | <target name="Looking For Previous Installation" if="is.overinstall">
|
---|
| 76 | <property file="${installDir}\installation.properties"/>
|
---|
| 77 | <delete dir="${installed.startmenu.path}" failonerror="false"/>
|
---|
| 78 | </target>
|
---|
| 79 |
|
---|
[17764] | 80 | <target name="Installing Core System">
|
---|
[17754] | 81 |
|
---|
[19935] | 82 | <!-- rip out build.xml to the temp dir so we can fake and <antcall> with <ant> -->
|
---|
| 83 | <unzip src="${antinstaller.jar}" dest="${basedir}"><patternset><include name="build.xml"/></patternset></unzip>
|
---|
[14982] | 84 |
|
---|
| 85 |
|
---|
[19935] | 86 | <!-- if windows -->
|
---|
| 87 | <echo>Figuring out the start menu path</echo>
|
---|
| 88 | <getfreepath path="${win32.personal.programs_menu}\Greenstone-@version@" property="startmenu.path"/>
|
---|
| 89 | <path id="startmenu.path.path" path="${startmenu.path}"/>
|
---|
| 90 | <pathconvert targetos="unix" property="startmenu.path.unix" refid="startmenu.path.path"/>
|
---|
| 91 |
|
---|
| 92 | <echo>Extracting 7za tool</echo>
|
---|
| 93 | <unzip src="${antinstaller.jar}" dest="${basedir}">
|
---|
| 94 | <patternset><include name="7za.exe"/></patternset>
|
---|
| 95 | </unzip>
|
---|
| 96 | <!-- /if -->
|
---|
| 97 |
|
---|
| 98 | <echo>Extracting core component</echo>
|
---|
[20190] | 99 | <unzip src="${antinstaller.jar}" dest="${basedir}"><patternset><include name="core.lzma"/></patternset></unzip>
|
---|
| 100 | <!-- if windows --><exec dir="${basedir}" executable="${basedir}/7za.exe"><arg line="x core.lzma"/></exec><!-- /if -->
|
---|
| 101 | <!-- if linux|mac --><sevenzip task="decode" input="${basedir}/core.lzma" output="${basedir}/core.comp"/><!-- /if -->
|
---|
| 102 | <delete file="core.lzma"/>
|
---|
| 103 | <unzip src="${basedir}/core.comp" dest="${installDir}"/>
|
---|
| 104 | <delete file="core.comp"/>
|
---|
[19935] | 105 |
|
---|
| 106 | <echo>Setting binaries to executable</echo>
|
---|
[14982] | 107 | <chmod dir="${installDir}" includes="*.sh" perm="775"/>
|
---|
| 108 | <chmod dir="${installDir}/bin/script" includes="*" perm="775"/>
|
---|
[15142] | 109 | <chmod dir="${installDir}/bin" includes="*" perm="775"/>
|
---|
[29296] | 110 | <chmod dir="${installDir}/ext/solr/bin/script" includes="*" perm="775"/>
|
---|
[29331] | 111 | <chmod dir="${installDir}/web/WEB-INF/cgi/" includes="*.pl" perm="775"/>
|
---|
[19935] | 112 | <!-- if linux -->
|
---|
[14982] | 113 | <chmod dir="${installDir}/gs2build/bin/linux" includes="*" perm="775"/>
|
---|
[25447] | 114 | <chmod dir="${installDir}/gs2build/bin/linux/wv/bin" includes="*" perm="775"/>
|
---|
[32304] | 115 | <chmod dir="${installDir}/gs2build/bin/linux/xpdf-tools/bin" includes="*" perm="775"/>
|
---|
[29313] | 116 | <chmod dir="${installDir}/bin/linux" includes="*" perm="775"/>
|
---|
[19935] | 117 | <!-- /if -->
|
---|
| 118 | <!-- if mac -->
|
---|
[25956] | 119 | <chmod dir="${installDir}/gs2build/bin/darwin" includes="**/*" excludes="ghostscript/** imagemagick/**" perm="775"/>
|
---|
[29313] | 120 | <chmod dir="${installDir}/bin/darwin" includes="*" perm="775"/>
|
---|
[19935] | 121 | <!-- /if -->
|
---|
[14982] | 122 | <chmod dir="${installDir}/gs2build/bin/script" includes="**/*" perm="775"/>
|
---|
[23816] | 123 | <!-- GLI START -->
|
---|
[14982] | 124 | <chmod dir="${installDir}/gli" includes="*.sh" perm="775"/>
|
---|
[23816] | 125 | <!-- GLI END -->
|
---|
| 126 |
|
---|
[25080] | 127 | <chmod file="${installDir}/packages/ant/bin/ant" perm="775"/>
|
---|
[19964] | 128 | <!--
|
---|
| 129 | source is not included for now
|
---|
[19953] | 130 | <chmod dir="${installDir}/gs2build" includes="**/configure" perm="775"/>
|
---|
| 131 | <chmod dir="${installDir}/gs2build/common-src/packages/gdbm/gdbm-1.8.3" includes="mkinstalldirs" perm="775"/>
|
---|
[19964] | 132 | <chmod file="${installDir}/src/packages/javagdbm/configure" perm="775"/>
|
---|
| 133 | -->
|
---|
[27335] | 134 |
|
---|
[14982] | 135 |
|
---|
[27335] | 136 | <echo>Correcting perl shebangs in perl scripts</echo>
|
---|
[29335] | 137 | <ant dir="${installDir}" antfile="build.xml" target="set-perl-shebangs" inheritAll="false">
|
---|
| 138 | <!-- if windows -->
|
---|
| 139 | <property name="perl.path" value="${installDir}\gs2build\bin\windows\perl\bin\"/>
|
---|
| 140 | <!-- /if -->
|
---|
| 141 | </ant>
|
---|
[27335] | 142 |
|
---|
[27485] | 143 |
|
---|
[26077] | 144 | <echo>Setting tomcat ports</echo>
|
---|
| 145 | <property name="tomcat.server" value="localhost"/>
|
---|
| 146 | <property name="tomcat.port" value="8383"/>
|
---|
| 147 | <property name="tomcat.shutdown.port" value="8305"/>
|
---|
[21847] | 148 | <rsr file="${installDir}/build.properties">
|
---|
| 149 | <job pattern="^(tomcat\.server[=:]).*" replacement="$1${tomcat.server}" />
|
---|
| 150 | <job pattern="^(tomcat\.port[=:]).*" replacement="$1${tomcat.port}" />
|
---|
| 151 | <job pattern="^(tomcat\.shutdown.port[=:]).*" replacement="$1${tomcat.shutdown.port}" />
|
---|
| 152 | </rsr>
|
---|
[14982] | 153 |
|
---|
[17123] | 154 | <echo>Setting up global properties</echo>
|
---|
[28940] | 155 | <copy file="${installDir}/resources/web/global.properties.in" tofile="${installDir}/web/WEB-INF/classes/global.properties" overwrite="true"/>
|
---|
[19935] | 156 | <rsr file="${installDir}/web/WEB-INF/classes/global.properties">
|
---|
[21847] | 157 | <job pattern="^(gsdl3\.home[:=]).*" replacement="$1${installDir.unix}/web" />
|
---|
| 158 | <job pattern="^(tomcat.server[:=]).*" replacement="$1${tomcat.server}" />
|
---|
| 159 | <job pattern="^(tomcat\.port[:=]).*" replacement="$1${tomcat.port}" />
|
---|
[19935] | 160 | </rsr>
|
---|
[14982] | 161 |
|
---|
[17123] | 162 | <echo>Setting up log4j properties</echo>
|
---|
[28940] | 163 | <copy file="${installDir}/resources/web/log4j.properties.in" tofile="${installDir}/web/WEB-INF/classes/log4j.properties" overwrite="true"/>
|
---|
[19955] | 164 | <rsr file="${installDir}/web/WEB-INF/classes/log4j.properties" pattern="@gsdl3home@" replacement="${installDir.unix}/web" />
|
---|
[14982] | 165 |
|
---|
[19935] | 166 | <!-- if windows -->
|
---|
| 167 | <echo message="Setting GSDLHOME in gs2build\setup.bat"/>
|
---|
[21890] | 168 | <!-- 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 -->
|
---|
| 169 | <rsr file="${installDir}/gs2build/setup.bat" pattern=""?\*\*GSDLHOME\*\*"?" replacement="${installDir.local}\gs2build" />
|
---|
[19935] | 170 | <!-- /if -->
|
---|
| 171 |
|
---|
[29335] | 172 | <!-- if windows|linux -->
|
---|
| 173 | <echo>Deleting mac shortcuts</echo>
|
---|
| 174 | <delete dir="${installDir}/gs3-server.app"/>
|
---|
| 175 | <delete dir="${installDir}/gli.app"/>
|
---|
| 176 | <delete dir="${installDir}/client-gli.app"/>
|
---|
| 177 | <delete dir="${installDir}/gems.app"/>
|
---|
| 178 | <!-- /if -->
|
---|
| 179 |
|
---|
[27391] | 180 | <!-- if mac -->
|
---|
[29335] | 181 | <echo>Installing Mac Shortcuts</echo>
|
---|
[27451] | 182 | <ant dir="${installDir}" antfile="build.xml" target="gen-mac-shortcuts" inheritAll="false" />
|
---|
| 183 | <!-- need to give executable permissions to the Mac shortcuts -->
|
---|
[27464] | 184 | <chmod file="${installDir}/gs3-server.app/Contents/MacOS/gs2-server" perm="775"/><!--called gs2-server, since the gs3-server.app is a copy of the one generated for gs2-->
|
---|
| 185 | <chmod file="${installDir}/gli.app/Contents/MacOS/gli" perm="775"/>
|
---|
| 186 | <chmod file="${installDir}/client-gli.app/Contents/MacOS/client-gli" perm="775"/>
|
---|
[29294] | 187 | <chmod file="${installDir}/gems.app/Contents/MacOS/gems" perm="775"/>
|
---|
| 188 |
|
---|
| 189 | <!--<chmod dir="${installDir}" includes="*.app" perm="755"/>
|
---|
| 190 | <chmod dir="${installDir}" includes="*.app/**/*" perm="755"/>-->
|
---|
| 191 |
|
---|
[27391] | 192 | <!-- /if -->
|
---|
| 193 |
|
---|
[23816] | 194 | <!-- GLI START -->
|
---|
[18980] | 195 | <echo>Creating the english dictionary</echo>
|
---|
| 196 | <copy file="${installDir}/gli/classes/dictionary.properties" tofile="${installDir}/gli/classes/dictionary_en.properties"/>
|
---|
[23816] | 197 | <!-- GLI END -->
|
---|
[18980] | 198 |
|
---|
[19935] | 199 | <echo>Creating usage.txt</echo>
|
---|
[17814] | 200 | <echo file="${installDir}/gs2build/etc/usage.txt"></echo>
|
---|
| 201 |
|
---|
[17257] | 202 | <echo>Creating installation properties file</echo>
|
---|
[19935] | 203 | <echo file="${installDir}\installation.properties">installed.startmenu.path:${startmenu.path.unix}</echo>
|
---|
[17257] | 204 |
|
---|
[17123] | 205 | <echo>Finished</echo>
|
---|
[15142] | 206 |
|
---|
[14982] | 207 | </target>
|
---|
| 208 |
|
---|
[29335] | 209 | <!-- Dummy target to redirect display of subtargets resulting from ant calls to the gen-mac-shortcuts
|
---|
| 210 | and set-perl-shebangs to this dummy target instead of to the Installing ImageMagick target below -->
|
---|
| 211 | <target name="Adjusting Permissions" />
|
---|
| 212 |
|
---|
[17646] | 213 | <target name="Installing ImageMagick">
|
---|
[19935] | 214 |
|
---|
[17646] | 215 | <echo>Installing ImageMagick</echo>
|
---|
[20190] | 216 | <unzip src="${antinstaller.jar}" dest="${basedir}"><patternset><include name="imagemagick.lzma"/></patternset></unzip>
|
---|
| 217 | <!-- if windows --><exec dir="${basedir}" executable="${basedir}/7za.exe"><arg line="x imagemagick.lzma"/></exec><!-- /if -->
|
---|
| 218 | <!-- if linux|mac --><sevenzip task="decode" input="${basedir}/imagemagick.lzma" output="${basedir}/imagemagick.comp"/><!-- /if -->
|
---|
| 219 | <delete file="imagemagick.lzma"/>
|
---|
| 220 | <unzip src="${basedir}/imagemagick.comp" dest="${installDir}"/>
|
---|
| 221 | <delete file="imagemagick.comp"/>
|
---|
[19935] | 222 |
|
---|
| 223 | <echo>Setting binaries to executable</echo>
|
---|
| 224 | <!-- if linux -->
|
---|
[17699] | 225 | <chmod dir="${installDir}/gs2build/bin/linux/imagemagick/bin" includes="*" perm="775"/>
|
---|
[19935] | 226 | <!-- /if -->
|
---|
| 227 | <!-- if mac -->
|
---|
| 228 | <chmod dir="${installDir}/gs2build/bin/darwin/imagemagick/bin" includes="*" perm="775"/>
|
---|
| 229 | <!-- /if -->
|
---|
| 230 |
|
---|
[14982] | 231 | </target>
|
---|
| 232 |
|
---|
[23843] | 233 | <!-- NO FLAX START -->
|
---|
| 234 |
|
---|
[19935] | 235 | <target name="Installing Ghostscript">
|
---|
[17646] | 236 |
|
---|
[19935] | 237 | <echo>Installing Ghostscript</echo>
|
---|
[20190] | 238 | <unzip src="${antinstaller.jar}" dest="${basedir}"><patternset><include name="ghostscript.lzma"/></patternset></unzip>
|
---|
| 239 | <!-- if windows --><exec dir="${basedir}" executable="${basedir}/7za.exe"><arg line="x ghostscript.lzma"/></exec><!-- /if -->
|
---|
| 240 | <!-- if linux|mac --><sevenzip task="decode" input="${basedir}/ghostscript.lzma" output="${basedir}/ghostscript.comp"/><!-- /if -->
|
---|
| 241 | <delete file="ghostscript.lzma"/>
|
---|
| 242 | <unzip src="${basedir}/ghostscript.comp" dest="${installDir}"/>
|
---|
| 243 | <delete file="ghostscript.comp"/>
|
---|
[19935] | 244 |
|
---|
| 245 | <echo>Setting binaries to executable</echo>
|
---|
| 246 | <!-- if linux -->
|
---|
| 247 | <chmod dir="${installDir}/gs2build/bin/linux/ghostscript/bin" includes="*" perm="775"/>
|
---|
| 248 | <!-- /if -->
|
---|
| 249 | <!-- if mac -->
|
---|
| 250 | <chmod dir="${installDir}/gs2build/bin/darwin/ghostscript/bin" includes="*" perm="775"/>
|
---|
| 251 | <!-- /if -->
|
---|
| 252 |
|
---|
| 253 | </target>
|
---|
| 254 |
|
---|
[23843] | 255 | <!-- NO FLAX END -->
|
---|
| 256 |
|
---|
[22325] | 257 | <!-- start amp -->
|
---|
| 258 |
|
---|
| 259 | <target name="Installing AMP">
|
---|
| 260 | <echo>Installing Apache, MySQL and PHP</echo>
|
---|
| 261 | <unzip src="${antinstaller.jar}" dest="${basedir}"><patternset><include name="amp.lzma"/></patternset></unzip>
|
---|
| 262 | <!-- if windows --><exec dir="${basedir}" executable="${basedir}/7za.exe"><arg line="x amp.lzma"/></exec><!-- /if -->
|
---|
| 263 | <!-- if linux|mac --><sevenzip task="decode" input="${basedir}/amp.lzma" output="${basedir}/amp.comp"/><!-- /if -->
|
---|
| 264 | <delete file="amp.lzma"/>
|
---|
| 265 | <unzip src="${basedir}/amp.comp" dest="${installDir}/ext/amp"/>
|
---|
| 266 | <delete file="amp.comp"/>
|
---|
| 267 |
|
---|
| 268 | <!-- if linux|mac -->
|
---|
| 269 | <echo>Setting binaries to executable</echo>
|
---|
| 270 | <chmod dir="${installDir}/ext/amp" includes="*" perm="775"/>
|
---|
| 271 | <!-- /if -->
|
---|
| 272 | </target>
|
---|
| 273 |
|
---|
| 274 | <!-- end amp -->
|
---|
| 275 |
|
---|
[17596] | 276 | <target name="Installing Tomcat">
|
---|
[19935] | 277 |
|
---|
[17123] | 278 | <echo>Installing Tomcat (packages/tomcat)</echo>
|
---|
[17446] | 279 | <mkdir dir="packages"/>
|
---|
[20190] | 280 | <unzip src="${antinstaller.jar}" dest="${basedir}"><patternset><include name="tomcat.lzma"/></patternset></unzip>
|
---|
| 281 | <!-- if windows --><exec dir="${basedir}" executable="${basedir}/7za.exe"><arg line="x tomcat.lzma"/></exec><!-- /if -->
|
---|
| 282 | <!-- if linux|mac --><sevenzip task="decode" input="${basedir}/tomcat.lzma" output="${basedir}/tomcat.comp"/><!-- /if -->
|
---|
| 283 | <delete file="tomcat.lzma"/>
|
---|
| 284 | <unzip src="${basedir}/tomcat.comp" dest="${installDir}"/>
|
---|
| 285 | <delete file="tomcat.comp"/>
|
---|
[17446] | 286 |
|
---|
[20190] | 287 |
|
---|
[17123] | 288 | <echo>Changing tomcat ports tomcat's server.xml</echo>
|
---|
[32328] | 289 | <copy file="${installDir}/resources/tomcat/server_tomcat7.xml.in" tofile="${installDir}/packages/tomcat/conf/server.xml" overwrite="true"/>
|
---|
[19935] | 290 | <rsr file="${installDir}/packages/tomcat/conf/server.xml">
|
---|
| 291 | <job pattern="@port@" replacement="${tomcat.port}"/>
|
---|
| 292 | <job pattern="@shutdown-port@" replacement="${tomcat.shutdown.port}"/>
|
---|
| 293 | </rsr>
|
---|
| 294 |
|
---|
[17123] | 295 | <echo>Copying greenstone3.xml to tomcat directory</echo>
|
---|
[32328] | 296 | <copy file="${installDir}/resources/tomcat/greenstone3.xml.in" tofile="${installDir}/packages/tomcat/conf/Catalina/localhost/greenstone3.xml" overwrite="true"/>
|
---|
[19962] | 297 | <rsr file="${installDir}/packages/tomcat/conf/Catalina/localhost/greenstone3.xml" pattern="@gsdl3webhome@" replacement="${installDir.local}${file.separator}web" />
|
---|
[23667] | 298 | <rsr file="${installDir}/packages/tomcat/conf/Catalina/localhost/greenstone3.xml" pattern="@privilegedattribute@" replacement="privileged='true'" />
|
---|
[26076] | 299 |
|
---|
| 300 | <!-- FLAX START -->
|
---|
| 301 | <rsr file="${installDir}/packages/tomcat/conf/Catalina/localhost/greenstone3.xml" pattern="localsite" replacement="flax" />
|
---|
| 302 | <!-- FLAX END -->
|
---|
| 303 |
|
---|
[19935] | 304 | <echo>Set binaries to executable</echo>
|
---|
[15973] | 305 | <chmod dir="${installDir}/packages/tomcat/bin" includes="*.sh" perm="775"/>
|
---|
[19935] | 306 |
|
---|
[15142] | 307 | </target>
|
---|
[15205] | 308 |
|
---|
[19935] | 309 | <target name="Installing Start Menu Shortcuts">
|
---|
[17786] | 310 |
|
---|
[19935] | 311 | <echo>Installing Start Menu Shortcuts</echo>
|
---|
[17814] | 312 |
|
---|
[23937] | 313 | <!-- NO FLAX START -->
|
---|
| 314 |
|
---|
[19935] | 315 | <mkdir dir="${startmenu.path}\Documentation"/>
|
---|
[23811] | 316 |
|
---|
[19935] | 317 | <shortcut
|
---|
| 318 | file="${startmenu.path}\Greenstone3 Server.lnk"
|
---|
| 319 | execute="${installDir}\gs3-server.bat"
|
---|
| 320 | workingDirectory="${installDir}"
|
---|
[21819] | 321 | iconFile="${installDir}\resources\images\server.ico"
|
---|
[19935] | 322 | iconIndex="0" />
|
---|
[17786] | 323 |
|
---|
[19935] | 324 | <shortcut
|
---|
| 325 | file="${startmenu.path}\Greenstone Librarian Interface (GLI).lnk"
|
---|
| 326 | execute="${installDir}\gli\gli.bat"
|
---|
| 327 | workingDirectory="${installDir}\gli"
|
---|
[21819] | 328 | iconFile="${installDir}\resources\images\librarian.ico"
|
---|
[19935] | 329 | iconIndex="0" />
|
---|
[29335] | 330 |
|
---|
| 331 | <shortcut
|
---|
| 332 | file="${startmenu.path}\Remote Greenstone Librarian Interface (Client GLI).lnk"
|
---|
| 333 | execute="${installDir}\gli\client-gli.bat"
|
---|
| 334 | workingDirectory="${installDir}\gli"
|
---|
| 335 | iconFile="${installDir}\resources\images\clientgli.ico"
|
---|
| 336 | iconIndex="0" />
|
---|
[19935] | 337 |
|
---|
| 338 | <shortcut
|
---|
| 339 | file="${startmenu.path}\Greenstone Editor for Metadata Sets (GEMS).lnk"
|
---|
| 340 | execute="${installDir}\gli\gems.bat"
|
---|
| 341 | workingDirectory="${installDir}\gli"
|
---|
[21819] | 342 | iconFile="${installDir}\resources\images\metadata.ico"
|
---|
[19935] | 343 | iconIndex="0" />
|
---|
[17786] | 344 |
|
---|
[19935] | 345 | <shortcut
|
---|
| 346 | file="${startmenu.path}\Uninstall.lnk"
|
---|
[23836] | 347 | execute="${installDir}\uninstall\Uninstall.bat"
|
---|
[19935] | 348 | workingDirectory="${installDir}"
|
---|
[20012] | 349 | iconFile="${installDir}\resources\images\uninstall.ico"
|
---|
[19935] | 350 | iconIndex="0" />
|
---|
| 351 |
|
---|
| 352 | <shortcut
|
---|
| 353 | file="${startmenu.path}\Documentation\README.lnk"
|
---|
| 354 | execute="${installDir}\README.txt" />
|
---|
| 355 |
|
---|
| 356 | <shortcut
|
---|
| 357 | file="${startmenu.path}\Documentation\Greenstone3 Users' Guide.lnk"
|
---|
| 358 | execute="${installDir}\documentation\manual\manual.pdf" />
|
---|
| 359 |
|
---|
| 360 | <shortcut
|
---|
| 361 | file="${startmenu.path}\Documentation\Greenstone2 Users' Guide.lnk"
|
---|
| 362 | execute="${installDir}\documentation\manual\gs2_user_en.pdf" />
|
---|
[20012] | 363 |
|
---|
| 364 | <shortcut
|
---|
| 365 | file="${startmenu.path}\Documentation\Greenstone Wiki.url"
|
---|
| 366 | url="http://wiki.greenstone.org" />
|
---|
| 367 |
|
---|
| 368 | <shortcut
|
---|
| 369 | file="${startmenu.path}\Documentation\Greenstone Website.url"
|
---|
| 370 | url="http://www.greenstone.org" />
|
---|
[19935] | 371 |
|
---|
[23811] | 372 | <!-- NO FLAX END -->
|
---|
| 373 |
|
---|
[24091] | 374 | <!-- FLAX START -->
|
---|
[23811] | 375 |
|
---|
| 376 | <shortcut
|
---|
| 377 | file="${startmenu.path}\Start FLAX Server.lnk"
|
---|
| 378 | execute="${installDir}\gs3-server.bat"
|
---|
| 379 | workingDirectory="${installDir}"
|
---|
| 380 | iconFile="${installDir}\resources\images\server.ico"
|
---|
| 381 | iconIndex="0" />
|
---|
| 382 |
|
---|
| 383 | <shortcut
|
---|
| 384 | file="${startmenu.path}\Uninstall.lnk"
|
---|
[23836] | 385 | execute="${installDir}\uninstall\Uninstall.bat"
|
---|
[23811] | 386 | workingDirectory="${installDir}"
|
---|
| 387 | iconFile="${installDir}\resources\images\uninstall.ico"
|
---|
| 388 | iconIndex="0" />
|
---|
| 389 |
|
---|
| 390 | <!-- FLAX END -->
|
---|
[19935] | 391 | </target>
|
---|
[24437] | 392 |
|
---|
[29285] | 393 | <target name="Configuring Administration Pages" if="set.admin.pwd">
|
---|
[24437] | 394 | <echo>Enabling Admin Pages</echo>
|
---|
| 395 | <rsr file="${installDir}/web/sites/localsite/siteConfig.xml" pattern="<!--<serviceRack name='Authentication'/>-->" replacement="<serviceRack name='Authentication'/>"/>
|
---|
[25329] | 396 | <echo>Creating admin user</echo>
|
---|
| 397 | <!--<echo>Creating admin and demo users</echo>-->
|
---|
[25611] | 398 | <ant dir="${installDir}" antfile="build.xml" target="config-admin" inheritAll="false">
|
---|
| 399 | <property name="admin.password" value="${admin.password}"/>
|
---|
| 400 | </ant>
|
---|
[25329] | 401 | <!--<adduser txt2db="org.greenstone.gsdl3.util.ChangePwdUsersDB"
|
---|
| 402 | usersDb="${installDir}/web/sites/localsite/etc/usersDB"
|
---|
[24437] | 403 | username="admin"
|
---|
| 404 | password="${admin.password}"
|
---|
| 405 | groups="administrator,colbuilder,all-collections-editor"
|
---|
[25329] | 406 | comment="created at install time"
|
---|
| 407 | email=""/>
|
---|
[24437] | 408 | <adduser
|
---|
[25329] | 409 | txt2db="org.greenstone.gsdl3.util.ChangePwdUsersDB"
|
---|
| 410 | usersDb="${installDir}/web/sites/localsite/etc/usersDB"
|
---|
[24437] | 411 | username="demo"
|
---|
| 412 | password="demo"
|
---|
| 413 | groups="demo"
|
---|
[25329] | 414 | comment="Dummy 'demo' user with password 'demo' for authen-e collection"
|
---|
| 415 | email=""/>-->
|
---|
[24437] | 416 | </target>
|
---|
| 417 |
|
---|
[19935] | 418 | <!-- util target to extract the given component -->
|
---|
| 419 | <!-- pass in ${component.name} as a param -->
|
---|
[20190] | 420 | <!-- unused at this time as causes display errors in installer gui!
|
---|
[19935] | 421 | <target name="extract-component">
|
---|
[20190] | 422 | <!- - extract the component into place - ->
|
---|
[19935] | 423 | <unzip src="${antinstaller.jar}" dest="${basedir}"><patternset><include name="${component.name}.lzma"/></patternset></unzip>
|
---|
[20190] | 424 | <!- - if windows - ->
|
---|
[19935] | 425 | <exec dir="${basedir}" executable="${basedir}/7za.exe"><arg line="x ${component.name}.lzma"/></exec>
|
---|
[20190] | 426 | <!- - /if - ->
|
---|
| 427 | <!- - if linux|mac - ->
|
---|
[19935] | 428 | <sevenzip task="decode" input="${basedir}/${component.name}.lzma" output="${basedir}/${component.name}.comp"/>
|
---|
[20190] | 429 | <!- - /if - ->
|
---|
[19935] | 430 | <delete file="${component.name}.lzma"/>
|
---|
| 431 | <unzip src="${basedir}/${component.name}.comp" dest="${installDir}"/>
|
---|
| 432 | <delete file="${component.name}.comp"/>
|
---|
[17786] | 433 | </target>
|
---|
[20190] | 434 | -->
|
---|
[17786] | 435 |
|
---|
[14982] | 436 | </project>
|
---|