cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@locus.apache.org
Subject cvs commit: xml-cocoon/lib/bin ant.bat antRun
Date Thu, 02 Mar 2000 23:17:20 GMT
stefano     00/03/02 15:17:20

  Added:       lib/bin  ant.bat antRun
  Log:
  added ant scripts that wrap in case of subexecution
  
  Revision  Changes    Path
  1.1                  xml-cocoon/lib/bin/ant.bat
  
  Index: ant.bat
  ===================================================================
  @echo off
  @setlocal
  if "%ANT_HOME%"=="" goto checkProgFiles
  goto checkJavaHome
  
  :checkProgFiles
  rem check for ant on system drive
  if not exist "%SystemDrive%\Program Files\ant" goto checkSystemDrive
  
  set ANT_HOME=%SystemDrive%\Program Files\ant
  goto checkJavaHome
  
  :checkSystemDrive
  if not exist "%SystemDrive%\ant" goto noAntHome
  set ANT_HOME=%SystemDrive%\ant
  goto checkJavaHome
  
  :noAntHome
  echo ANT_HOME is not set and ant could not be located
  goto end
  
  :checkJavaHome
  if "%JAVA_HOME%" == "" goto runAnt
  set CLASSPATH=%JAVA_HOME%\lib\tools.jar;%CLASSPATH%
  
  :runAnt
  set CLASSPATH=%ANT_HOME%\lib\ant.jar;%ANT_HOME%\lib\xml.jar;%CLASSPATH%
  java -Dant.home="%ANT_HOME%" org.apache.tools.ant.Main %1 %2 %3 %4 %5 %6 %7 %8 %9
  
  :end
  @endlocal
  
  
  
  1.1                  xml-cocoon/lib/bin/antRun
  
  Index: antRun
  ===================================================================
  #! /bin/sh
  
  # Args: DIR command
  cd $1
  CMD=$2
  shift
  shift
  
  if test -f $CMD.sh; then
    CMD="sh $CMD.sh"
  fi
  
  echo $CMD $@ | sh
  
  
  

Mime
View raw message