Changeset 20493


Ignore:
Timestamp:
2009-09-03T16:57:12+12:00 (15 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.

File:
1 edited

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
Note: See TracChangeset for help on using the changeset viewer.