Changeset 35311
- Timestamp:
- 2021-08-18T15:28:05+12:00 (3 years ago)
- Location:
- main/trunk/greenstone3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/build.xml
r34608 r35311 8 8 ====================================================================== --> 9 9 <project name="greenstone3" default="usage" basedir="."> 10 <echo> os.name: ${os.name}</echo>10 <echo>OS : ${os.name}</echo> 11 11 <!-- 12 12 <echo>os.arch: ${os.arch}</echo> 13 13 <echo>os.version: ${os.version}</echo> 14 --> 14 --> 15 16 <antversion property="ant.version.running" /> 17 <fail message="Minimum of Ant v1.7.1 required to operate Greenstone3 (detected version ${ant.version.running})"> 18 <condition> 19 <not><antversion atleast="1.7.1" /></not> 20 </condition> 21 </fail> 22 15 23 16 24 <!-- ============ classpath =================== --> -
main/trunk/greenstone3/gs3-setup.sh
r34569 r35311 559 559 echo "" 560 560 561 #ant 562 ANT_VERSION=1.7.1 561 # Ant 563 562 echo "Checking for Ant" 564 if [ -x "$GSDL3SRCHOME/packages/ant/bin/ant" ]; then 563 #Note: No longer need to print out info about minimum version of Ant needed 564 # for Greenstone3 (v1.7.1 at the time of writing this comment!), as this is 565 # now explicitly tested for in the build.xml file, and an error message generated 566 # if not new enough 567 568 if [ -x "$GSDL3SRCHOME/packages/ant/bin/ant" ] ; then 565 569 ANT_HOME="$GSDL3SRCHOME/packages/ant" 566 570 export ANT_HOME … … 568 572 echo " - Setup Greenstone ant ($GSDL3SRCHOME/packages/ant)" 569 573 else 570 if [ " $ANT_HOME" != "" ]; then574 if [ "x$ANT_HOME" != "x" ] ; then 571 575 addtopath PATH "$ANT_HOME/bin" 572 576 echo " - `ant -version`" 573 echo " - Note that Greenstone requires Ant $ANT_VERSION or greater"574 577 else 575 578 which ant &> /dev/null 576 if [ "$?" = "0" ] ; then579 if [ "$?" = "0" ] ; then 577 580 echo " - System install ant detected" 578 581 echo " - `ant -version`" 579 echo " - Note that Greenstone requires Ant $ANT_VERSION or greater"580 582 else 581 583 echo " - WARNING: Failed to find 'ant'"
Note:
See TracChangeset
for help on using the changeset viewer.