Browse Source

Adding in files that were seemingly ommitted from commit

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268295 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 24 years ago
parent
commit
81dabb3cb5
6 changed files with 120 additions and 0 deletions
  1. +57
    -0
      proposal/myrmidon/bin/ant
  2. +36
    -0
      proposal/myrmidon/bin/ant.bat
  3. +13
    -0
      proposal/myrmidon/bin/antRun
  4. +9
    -0
      proposal/myrmidon/bin/antRun.bat
  5. +4
    -0
      proposal/myrmidon/bin/fixPath.awk
  6. +1
    -0
      proposal/myrmidon/bin/lcp.bat

+ 57
- 0
proposal/myrmidon/bin/ant View File

@@ -0,0 +1,57 @@
#! /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 $@


+ 36
- 0
proposal/myrmidon/bin/ant.bat View File

@@ -0,0 +1,36 @@
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=


+ 13
- 0
proposal/myrmidon/bin/antRun View File

@@ -0,0 +1,13 @@
#! /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

+ 9
- 0
proposal/myrmidon/bin/antRun.bat View File

@@ -0,0 +1,9 @@
@echo off

cd %1
set ANT_RUN_CMD=%2
shift
shift

%ANT_RUN_CMD% %1 %2 %3 %4 %5 %6 %7 %8 %9


+ 4
- 0
proposal/myrmidon/bin/fixPath.awk View File

@@ -0,0 +1,4 @@
{
gsub("build/src/","src/java/",$0)
print $0
}

+ 1
- 0
proposal/myrmidon/bin/lcp.bat View File

@@ -0,0 +1 @@
set LOCALCLASSPATH=%LOCALCLASSPATH%;%1

Loading…
Cancel
Save