ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@locus.apache.org
Subject cvs commit: jakarta-ant/proposal/myrmidon/bin ant ant.bat antRun antRun.bat fixPath.awk lcp.bat
Date Mon, 04 Dec 2000 13:54:44 GMT
donaldp     00/12/04 05:54:44

  Added:       proposal/myrmidon/bin ant ant.bat antRun antRun.bat
                        fixPath.awk lcp.bat
  Log:
  Adding in files that were seemingly ommitted from commit
  
  Revision  Changes    Path
  1.1                  jakarta-ant/proposal/myrmidon/bin/ant
  
  Index: ant
  ===================================================================
  #! /bin/sh
  
  if [ -f $HOME/.antrc ] ; then 
    . $HOME/.antrc
  fi
  
  if [ "$ANT_HOME" = "" ] ; then
    # try to find ANT
    if [ -d /opt/ant ] ; then 
      ANT_HOME=/opt/ant
    fi
  
    if [ -d ${HOME}/opt/ant ] ; then 
      ANT_HOME=${HOME}/opt/ant
    fi
  
    ## resolve links - $0 may be a link to ant's home
    PRG=$0
    progname=`basename $0`
    
    while [ -h "$PRG" ] ; do
      ls=`ls -ld "$PRG"`
      link=`expr "$ls" : '.*-> \(.*\)$'`
      if expr "$link" : '.*/.*' > /dev/null; then
  	PRG="$link"
      else
  	PRG="`dirname $PRG`/$link"
      fi
    done
    
    ANT_HOME=`dirname "$PRG"`/..
  
  fi
  
  # Allow .antrc to specifiy flags to java cmd
  if [ "$JAVACMD" = "" ] ; then 
    JAVACMD=java
  fi
  
  LOCALCLASSPATH=`echo $ANT_HOME/lib/*.jar | tr ' ' ':'`
  
  if [ "$CLASSPATH" != "" ] ; then
    LOCALCLASSPATH=$CLASSPATH:$LOCALCLASSPATH
  fi
  
  if [ "$JAVA_HOME" != "" ] ; then
    if test -f $JAVA_HOME/lib/tools.jar ; then
      LOCALCLASSPATH=$LOCALCLASSPATH:$JAVA_HOME/lib/tools.jar
    fi
  
    if test -f $JAVA_HOME/lib/classes.zip ; then
      LOCALCLASSPATH=$LOCALCLASSPATH:$JAVA_HOME/lib/classes.zip
    fi
  fi
  
  $JAVACMD -classpath $LOCALCLASSPATH -Dant.home=${ANT_HOME} $ANT_OPTS org.apache.tools.ant.Main
$@
  
  
  
  
  1.1                  jakarta-ant/proposal/myrmidon/bin/ant.bat
  
  Index: ant.bat
  ===================================================================
  rem @echo off
  rem find ANT_HOME
  if not "%ANT_HOME%"=="" goto checkJava
  
  rem check for ant in Program Files on system drive
  if not exist "%SystemDrive%\Program Files\ant" goto checkSystemDrive
  set ANT_HOME=%SystemDrive%\Program Files\ant
  goto checkJava
  
  :checkSystemDrive
  rem check for ant in root directory of system drive
  if not exist "%SystemDrive%\ant" goto noAntHome
  set ANT_HOME=%SystemDrive%\ant
  goto checkJava
  
  :noAntHome
  echo ANT_HOME is not set and ant could not be located. Please set ANT_HOME.
  goto end
  
  :checkJava
  if "%JAVACMD%" == "" set JAVACMD=java
  
  set LOCALCLASSPATH=
  for %%i in (%ANT_HOME%\lib\*.jar) do call %ANT_HOME%\bin\lcp.bat %%i
  set LOCALCLASSPATH=%LOCALCLASSPATH%;%CLASSPATH%
  
  if "%JAVA_HOME%" == "" goto runAnt
  if exist %JAVA_HOME%\lib\tools.jar call %ANT_HOME%\bin\lcp.bat %JAVA_HOME%\lib\tools.jar
  if exist %JAVA_HOME%\lib\classes.zip call %ANT_HOME%\bin\lcp.bat %JAVA_HOME%\lib\classes.zip
  
  :runAnt
  %JAVACMD% -classpath "%LOCALCLASSPATH%" -Dant.home="%ANT_HOME%" %ANT_OPTS% org.apache.tools.ant.Main
%1 %2 %3 %4 %5 %6 %7 %8 %9
  
  :end
  set LOCALCLASSPATH=
  
  
  
  
  1.1                  jakarta-ant/proposal/myrmidon/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
  
  
  
  1.1                  jakarta-ant/proposal/myrmidon/bin/antRun.bat
  
  Index: antRun.bat
  ===================================================================
  @echo off
  
  cd %1
  set ANT_RUN_CMD=%2
  shift 
  shift
  
  %ANT_RUN_CMD% %1 %2 %3 %4 %5 %6 %7 %8 %9
  
  
  
  
  1.1                  jakarta-ant/proposal/myrmidon/bin/fixPath.awk
  
  Index: fixPath.awk
  ===================================================================
  {
    gsub("build/src/","src/java/",$0)
    print $0
  }
  
  
  
  1.1                  jakarta-ant/proposal/myrmidon/bin/lcp.bat
  
  Index: lcp.bat
  ===================================================================
  set LOCALCLASSPATH=%LOCALCLASSPATH%;%1
  
  
  

Mime
View raw message