Changeset 9516
- Timestamp:
- 2005-03-30T15:55:58+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ant-install-branch/gsdl3/build.xml
r9513 r9516 83 83 <property name="applet.home" value="${src.home}/org/greenstone/applet"/> 84 84 <property name="gsdl3.home" value="${src.home}/org/greenstone/gsdl3"/> 85 <property name="gs2 extra.home" value="${basedir}/gs2extra"/>85 <property name="gs2build.home" value="${basedir}/gs2building"/> 86 86 <property name="vishnu.home" value="${packages.home}/vishnu"/> 87 87 <property name="mg.home" value="${packages.home}/mg"/> … … 359 359 <target name="install" depends="install-packages, install-gsdl3" 360 360 description="install all binaries"/> 361 361 362 <target name="install-packages" depends="compile-packages" 362 363 description=""> … … 400 401 <!-- ===================== setup target ===================== --> 401 402 <target name="accept-properties"> 402 <input addproperty="properties.ok" validargs="y,n">The following properties are being used from a build.properties file found in this directory: 403 tomcat.servername=${tomcat.servername}, tomcat.port=${tomcat.port}, gsdl.path=${gsdl.path} (this is the location of Greenstone 2 if you have it). 403 <input addproperty="properties.ok" validargs="y,n">The following properties (among others) are being used from a build.properties file found in this directory: 404 tomcat.server=${tomcat.server} 405 tomcat.port=${tomcat.port} 406 gsdl.path=${gsdl.path} (this is the location of Greenstone 2 if you have it) 407 proxy.host=${proxy.host} 408 proxy.port=${proxy.port} 404 409 If these are not acceptable, please change them and rerun this target. Continue [y/n]?" /> 405 410 </input> … … 425 430 <available file="${basedir}/comms/jakarta/tomcat" property="tomcat.present"/> 426 431 <available file="${basedir}/gli" property="gli.present"/> 427 <available file="${basedir}/gs2build " property="gs2build.present"/>432 <available file="${basedir}/gs2building" property="gs2build.present"/> 428 433 <available file="${basedir}/comms/soap/axis" property="axis.present"/> 429 434 <available file="${basedir}/comms/jakarta/tomcat/webapps/axis" property="axis.installed"/> … … 437 442 </condition> 438 443 439 <echo>tomcat.port:${tomcat.port}, gli.present:${gli.present} gsdlislocal=${gsdl2.islocal} gs2build.present=${gs2build.present} gsdl.path = ${gsdl.path}</echo>444 <echo>tomcat.port:${tomcat.port}, gli.present:${gli.present} gsdlislocal=${gsdl2.islocal} gs2build.present=${gs2build.present} gsdl.path = ${gsdl.path}</echo> 440 445 <condition property="proxy.present"> 441 446 <not> … … 457 462 458 463 <!-- this is all the do-once things --> 459 <target name="prepar ation" depends="init,update-gsdl3,prepare-mgpp,prepare-gs2building,prepare-tomcat,prepare-axis,unpack-collections">464 <target name="prepare" depends="init,update-gsdl3,prepare-mgpp,prepare-gs2building,prepare-tomcat,prepare-axis,unpack-collections"> 460 465 </target> 461 466 462 467 <target name="update-gsdl3"> 463 468 <cvs command="update -dP"/> 464 </target>469 </target> 465 470 466 471 <!-- this is config stuff, that can be done more than once - should be rerun is the build.properties file changes --> 467 <target name="configuration" depends="init,configure-tomcat,configure-files"/>472 <target name="configure" depends="init,configure-tomcat,configure-files,configure-packages,configure-gs2building"/> 468 473 469 474 <target name="configure-files" depends="init"> … … 478 483 </target> 479 484 480 <target name="gsdl3-install" depends="accept-properties,init,prepar ation,configuration,all" description="setup the gsdl3 stuff to start with">485 <target name="gsdl3-install" depends="accept-properties,init,prepare,configure,compile" description="setup the gsdl3 stuff to start with"> 481 486 </target> 482 487 … … 498 503 </target> 499 504 505 500 506 <target name="update-cvs" description="update all the sources"> 501 507 <cvs command="update -dP"/> … … 507 513 <!-- ================== targets to handle gs2 building stuff ===============--> 508 514 509 <!-- used on install --> 510 <target name="get-gs2build" if="getgsdl2" > 511 <echo>getting gs2 stuff</echo> 512 <!----> 513 <antcall target="compile-gs2build"/> 514 </target> 515 516 517 <target name="update-gs2build" description="Use this to update your Greenstone 2 building stuff - only use if you specified that you didn't have greenstone 2 installed. Will do a cvs update on the gli and gs2build subdirectories, and thenmake clean and make."> 515 516 <target name="update-gs2building" description="Use this to update your Greenstone 2 building stuff - only use if you specified that you didn't have greenstone 2 installed. Will do a cvs update on the gli and gs2build subdirectories, and thenmake clean and make."> 518 517 <!-- gli --> 519 518 <cvs command="update -dP" dest="${basedir}/gli"/> 520 519 <!-- gs2build --> 521 520 <!-- Note: can't do a -d update here cos it will get all of gsdl--> 522 <cvs command="update -P" dest="${ basedir}/gs2build"/>521 <cvs command="update -P" dest="${gs2build.home}"/> 523 522 <antcall target="compile-gs2build"/> 523 </target> 524 525 <target name="configure-gs2building"> 526 <exec executable="${gs2build.home}/configure" os="${os.linux}" 527 dir="${gs2build.home}"> 528 <arg value="--prefix=${gs2build.home}"/> 529 </exec> 524 530 </target> 525 531 … … 538 544 resolveExecutable="true"/> 539 545 <!-- gs2build --> 540 <!--linux: configure, make clean, make, make install--> 541 <property name="gs2build.home" value="${basedir}/gs2build"/> 542 <exec executable="${gs2build.home}/configure" os="${os.linux}" 543 dir="${gs2build.home}"> 544 <arg value="--prefix=${gs2build.home}"/> 545 </exec> 546 <!--linux: make clean, make, make install --> 546 547 <exec executable="make" os="${os.linux}" dir="${gs2build.home}"> 547 548 <arg value="clean"/> … … 606 607 </move> 607 608 <!-- install the webapp into tomcat --> 608 <copy todir="${ tomcat.home}/webapps/axis">609 <copy todir="${basedir}/comms/jakarta/tomcat/webapps/axis"> 609 610 <fileset dir="${basedir}/comms/soap/axis/webapps/axis"/> 610 611 </copy> … … 618 619 <target name="prepare-gs2build" depends="init" if="gsdl2.islocal" unless="gs2build.present"> 619 620 <echo>checking out gs2build</echo> 620 <cvs command="co -P" package="gs2build"/> 621 <property name="gs2build.home" value="${basedir}/gs2build"/> 621 <cvs command="co -P -d gs2building" package="gs2build"/> 622 622 623 623 <!-- rename the .gs2build files -->
Note:
See TracChangeset
for help on using the changeset viewer.