Changeset 9622
- Timestamp:
- 2005-04-11T14:31:31+12:00 (19 years ago)
- Location:
- branches/ant-install-branch/gsdl3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ant-install-branch/gsdl3/build.properties
r9514 r9622 14 14 # The port number that tomcat is/will be run on 15 15 tomcat.port=7070 16 # If tomcat is already running, enter the path to the base directory here 17 tomcat.installed.path= 16 18 17 19 ## Greenstone 2 collection building options 18 20 #The path to Greenstone 2 if it is already installed 19 gsdl.path= 21 gsdl.installed.path= 22 23 ## Relational database 24 mysql.installed.path= 20 25 21 26 ## Proxy setup - if Greenstone 3 is running behind a firewall -
branches/ant-install-branch/gsdl3/build.xml
r9589 r9622 190 190 tomcat.server=${tomcat.server} 191 191 tomcat.port=${tomcat.port} 192 gsdl.path=${gsdl.path} (this is the location of Greenstone 2 if you have it) 192 tomcat.installed.path=${tomcat.installed.path} (this is the location of Tomcat's base dir if it is already installed) 193 gsdl.installed.path=${gsdl.installed.path} (this is the location of Greenstone 2 if you have it) 193 194 proxy.host=${proxy.host} 194 195 proxy.port=${proxy.port} … … 223 224 <or> 224 225 <not> 225 <isset property="gsdl. path"/>226 <isset property="gsdl.installed.path"/> 226 227 </not> 227 <equals arg1="" arg2="${gsdl.path}"/> 228 <equals arg1="" arg2="${gsdl.installed.path}"/> 229 </or> 230 </condition> 231 <condition property="mysql.islocal"> 232 <or> 233 <not> 234 <isset property="mysql.installed.path"/> 235 </not> 236 <equals arg1="" arg2="${mysql.installed.path}"/> 237 </or> 238 </condition> 239 <condition property="tomcat.islocal"> 240 <or> 241 <not> 242 <isset property="tomcat.installed.path"/> 243 </not> 244 <equals arg1="" arg2="${tomcat.installed.path}"/> 228 245 </or> 229 246 </condition> … … 249 266 250 267 <!-- this is all the do-once things --> 251 <target name="prepare" depends="init,prepare-packages,prepare-gs2building,prepare-tomcat,prepare-axis,prepare- collections">268 <target name="prepare" depends="init,prepare-packages,prepare-gs2building,prepare-tomcat,prepare-axis,prepare-mysql,prepare-collections"> 252 269 </target> 253 270 … … 335 352 336 353 <!-- this is one target that we only want to run once. --> 337 <target name="prepare-mysql" depends="init,install-mysql -linux,install-mysql-windows,startup-mysql" unless="mysql.present">354 <target name="prepare-mysql" depends="init,install-mysql,startup-mysql" if="mysql.islocal" unless="mysql.present"> 338 355 <exec executable="${mysql.home}/bin/mysql" dir="${mysql.home}"> 339 356 <arg value="--user=root"/> … … 359 376 </target> 360 377 378 <target name="install-mysql" depends="init,install-mysql-linux,install-mysql-windows" if="mysql.islocal"/> 379 361 380 <!-- install and set up the database --> 362 <target name="install-mysql-linux" depends="init" if="current.os.islinux" unless="mysql.present 4">381 <target name="install-mysql-linux" depends="init" if="current.os.islinux" unless="mysql.present"> 363 382 <get src="http://www.greenstone.org/gs3files/mysql-standard-4.1.11-pc-linux-gnu-i686.tar.gz" 364 383 dest="${packages.home}/mysql-standard-4.1.11-pc-linux-gnu-i686.tar.gz" … … 680 699 <target name="rename-gs2build-files"> 681 700 <copy file="${gs2build.home}/configure.gs2build" tofile="${gs2build.home}/configure"/> 701 <chmod file="${gs2build.home}/configure" perm="a+x"/> 682 702 <copy file="${gs2build.home}/configure.in.gs2build" tofile="${gs2build.home}/configure.in"/> 683 703 <copy file="${gs2build.home}/Makefile.in.gs2build" tofile="${gs2build.home}/Makefile.in"/> 684 704 <copy file="${gs2build.home}/packages/configure.gs2build" tofile="${gs2build.home}/packages/configure"/> 705 <chmod file="${gs2build.home}/packages/configure" perm="a+x"/> 685 706 <copy file="${gs2build.home}/packages/Makefile.gs2build" tofile="${gs2build.home}/packages/Makefile"/> 686 707 <copy file="${gs2build.home}/lib/Makefile.in.gs2build" tofile="${gs2build.home}/lib/Makefile.in"/> 708 687 709 </target> 688 710 <target name="prepare-gli" depends="init" if="gsdl2.islocal" unless="gli.present"> … … 789 811 </target> 790 812 791 <target name="startup" description="Launch Greenstone (Tomcat and Mysql)" depends="init"> 813 <target name="startup" description="Launch the Greenstone servers (tomcat,mysql...)" depends="init,startup-mysql,startup-tomcat"/> 814 815 <target name="startup-tomcat" description="Launch Tomcat" depends="init" if="tomcat.islocal"> 792 816 <property name="tomcat.classpath" refid="compile.classpath"/> 793 817 <property name="tomcat.path" value="${basedir}/packages/mysql/bin:${basedir}/bin/script:${basedir}/bin:${env.PATH}"/> … … 817 841 </target> 818 842 819 <target name="shutdown" description="Shutdown Greenstone (Tomcat and Mysql)" depends="init"> 843 <target name="shutdown" depends="init,shutdown-tomcat,shutdown-mysql" description="Shutdown all the local servers"/> 844 845 <target name="shutdown-tomcat" description="Shutdown Greenstone (Tomcat and Mysql)" depends="init" if="tomcat.islocal"> 820 846 <exec executable="${catalina.home}/bin/shutdown.sh" os="${os.linux}" dir="${catalina.home}/bin" spawn="false"/> 821 847 </target> … … 925 951 926 952 <!-- mysql targets --> 927 <target name="startup-mysql" depends="init" >953 <target name="startup-mysql" depends="init" if="mysql.islocal"> 928 954 <exec executable="${mysql.home}/bin/mysqld_safe" dir="${mysql.home}" 929 955 spawn="true"> … … 936 962 </exec> 937 963 <sleep seconds="2"/> 938 </target> 939 940 <target name="shutdown-mysql" depends="init"> 941 <exec executable="${mysql.home}/bin/mysqladmin" dir="${mysql.home}"> 964 <!-- need to test that the server has started up --> 965 <exec executable="${mysql.home}/bin/mysql" dir="${mysql.home}" 966 failonerror="true" outputproperty="throw.away"> 967 <arg value="--user=root"/> 968 <arg value="--execute=show databases;"/> 969 </exec> 970 <echo>MYSQL database server started successfully</echo> 971 </target> 972 973 <target name="shutdown-mysql" depends="init" if="mysql.islocal"> 974 <exec executable="${mysql.home}/bin/mysqladmin" dir="${mysql.home}" 975 failonerror="true"> 942 976 <arg value="--user=root"/> 943 977 <arg value="--socket=/tmp/mysql.sock"/> 944 978 <arg value="shutdown"/> 945 979 </exec> 980 <echo>MYSQL database server shutdown successfully</echo> 946 981 </target> 947 982
Note:
See TracChangeset
for help on using the changeset viewer.