Changeset 20493 for greenstone3

Show
Ignore:
Timestamp:
03.09.2009 16:57:12 (11 years ago)
Author:
ak19
Message:

This setup file used to overwrite any ant_home value I had already set with an ant that WOULD have been in the packages\ant folder if this were a binary installation. However there is no such folder for svn check-outs and so any user-set ANT_HOME variable is overwritten with an empty location causing such things as the gs3-server to fail to run the server.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • greenstone3/trunk/gs3-setup.bat

    r20307 r20493  
    2727:: change if using external tomcat or ant 
    2828set TOMCAT_HOME=%GSDL3SRCHOME%\packages\tomcat 
    29 set ANT_HOME=%GSDL3SRCHOME%\packages\ant 
     29if exist "%GSDL3SRCHOME%\packages\ant\nul" set ANT_HOME=%GSDL3SRCHOME%\packages\ant 
    3030 
    3131:: other important environment variables 
     
    114114echo GSDL3HOME    : %GSDL3HOME% 
    115115echo JAVA         : %RUNJAVA% 
    116  
     116if "%ANT_HOME%" == "" ( 
     117   echo. 
     118   echo ANT_HOME is not yet set. 
     119   echo Please make sure you have Ant version 1.7.1 or higher installed 
     120   echo Then set ANT_HOME to the ant installation folder 
     121   echo and add the path to its bin folder to the PATH 
     122) else ( 
     123   echo ANT_HOME     : %ANT_HOME% 
     124) 
     125echo. 
    117126:end