Changeset 9688
- Timestamp:
- 2005-04-15T09:12:53+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ant-install-branch/gsdl3/build.xml
r9628 r9688 143 143 </path> 144 144 145 <!-- do we need this? copied from gs3-setup.sh --> 146 <path id="running.path"> 147 <pathelement location="${mysql.home}/bin"/> 148 <pathelement location="${basedir}/bin/script"/> 149 <pathelement location="${basedir}/bin"/> 150 <pathelement location="${basedir}/lib"/> 151 <pathelement path="${env.PATH}"/> 152 </path> 153 154 <path id="ld.library.path"> 155 <pathelement path="${env.LD_LIBRARY_PATH}"/> 156 <pathelement location="${basedir}/lib"/> 157 <pathelement location="${mysql.home}/lib/mysql"/> 158 </path> 145 159 <!-- ==================== Primary Targets ============================= --> 146 160 … … 202 216 </target> 203 217 218 <target name="check-cvsroot"> 219 <condition property="cvsroot.notset"> 220 <or> 221 <not> 222 <isset property="env.CVSROOT"/> 223 </not> 224 <equals arg1="" arg2="${env.CVSROOT}"/> 225 </or> 226 </condition> 227 <fail if="cvsroot.notset" message="You need to set the CVSROOT variable"/> 228 </target> 204 229 <!-- this sets up some initial properties --> 205 230 <target name="init"> … … 266 291 267 292 <!-- this is all the do-once things --> 268 <target name="prepare" depends="init,prepare- packages,prepare-gs2building,prepare-tomcat,prepare-axis,prepare-mysql,prepare-collections">293 <target name="prepare" depends="init,prepare-core,prepare-packages,prepare-gs2building,prepare-tomcat,prepare-axis,prepare-mysql,prepare-collections"> 269 294 </target> 270 295 … … 436 461 <!-- core targets refer to the core gsdl3 java src --> 437 462 438 <target name="prepare-core"/> 463 <target name="prepare-core"> 464 <!-- just get rid of empty directories--> 465 <cvs command="update -P"/> 466 </target> 439 467 <target name="configure-core"/> 440 468 <target name="update-core" depends="init,cvsupdate-core,clean-core,compile-core" … … 516 544 <target name="prepare-packages" depends="init,prepare-mgpp"/> 517 545 518 <target name="prepare-mgpp" depends=" init" unless="mgpp.present">546 <target name="prepare-mgpp" depends="check-cvsroot,init" unless="mgpp.present"> 519 547 <cvs command="checkout -P" package="mgpp" dest="${basedir}/packages/"/> 520 548 </target> … … 689 717 </target> 690 718 691 <target name="prepare-gs2build" depends=" init" if="gsdl2.islocal" unless="gs2build.present">719 <target name="prepare-gs2build" depends="check-cvsroot,init" if="gsdl2.islocal" unless="gs2build.present"> 692 720 <echo>checking out gs2build</echo> 693 <cvs command="c o-P" package="gs2build"/>721 <cvs command="checkout -P" package="gs2build"/> 694 722 695 723 <!-- rename the .gs2build files --> … … 708 736 709 737 </target> 710 <target name="prepare-gli" depends=" init" if="gsdl2.islocal" unless="gli.present">738 <target name="prepare-gli" depends="check-cvsroot,init" if="gsdl2.islocal" unless="gli.present"> 711 739 <echo>checking out gli</echo> 712 <cvs command="c o-P" package="gli"/>740 <cvs command="checkout -P" package="gli"/> 713 741 </target> 714 742 … … 840 868 </waitfor> 841 869 </target> 842 870 <!-- windows: 871 set CATALINA_HOME=%GSDL3HOME%\comms\jakarta\tomcat 872 set CATALINA_OPTS="-Djava.util.prefs.syncInterval=2000000 -DGSDL3HOME=%GSDL3HOME% -DGSDLOS=%GSDLOS% -DPATH=%PATH%" 873 call "%GSDL3HOME%\comms\jakarta\tomcat\bin\startup.bat" 874 # launch a web browser 875 start http://localhost:8080/gsdl3 876 877 --> 843 878 <target name="shutdown" depends="init,shutdown-tomcat,shutdown-mysql" description="Shutdown the (local) Greenstone servers."/> 844 879 845 880 <target name="shutdown-tomcat" description="Shutdown only Tomcat" depends="init" if="tomcat.islocal"> 846 881 <exec executable="${catalina.home}/bin/shutdown.sh" os="${os.linux}" dir="${catalina.home}/bin" spawn="false"/> 882 <!-- windows: 883 884 call "%GSDL3HOME%\comms\jakarta\tomcat\bin\shutdown.bat" 885 --> 847 886 </target> 848 887 … … 900 939 </target> 901 940 902 <target name="get-siteuri"> 903 <input addproperty="axis.siteuri" message="What name do you want the service to have? (press enter for default:localsite)" defaultvalue="localsite"/> 941 <target name="get-siteuri" depends="get-sitename"> 942 <input addproperty="axis.siteuri" message="What name do you want the service to have? (press enter for default:${axis.sitename})" defaultvalue="${axis.sitename}"/> 943 <echo>${axis.sitename}, ${axis.siteuri}</echo> 904 944 </target> 905 945 <target name="create-deployment-files" depends="get-sitename" … … 959 999 960 1000 <!-- mysql targets --> 1001 <!-- windows: 1002 cd %GSDL3HOME%\packages\mysql 1003 start bin\mysqld 1004 cd %GSDL3HOME% 1005 --> 961 1006 <target name="startup-mysql" depends="init" if="mysql.islocal" 962 1007 description="Startup only mysql"> … … 983 1028 description="Shutdown only mysql"> 984 1029 <exec executable="${mysql.home}/bin/mysqladmin" dir="${mysql.home}" 985 failonerror="true" >1030 failonerror="true" os="${os.linux}"> 986 1031 <arg value="--user=root"/> 987 1032 <arg value="--socket=/tmp/mysql.sock"/> 988 1033 <arg value="shutdown"/> 989 1034 </exec> 1035 <exec executable="${mysql.home}/bin/mysqladmin" dir="${mysql.home}" 1036 failonerror="true" os="${os.windows}"> 1037 <arg value="--user=root"/> 1038 <arg value="shutdown"/> 1039 </exec> 990 1040 <echo>MYSQL database server shutdown successfully</echo> 991 1041 </target>
Note:
See TracChangeset
for help on using the changeset viewer.