Browse Source

Changes for Unix build process

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268544 13f79535-47bb-0310-9956-ffa450edef68
master
Conor MacNeill 24 years ago
parent
commit
05f470f1d0
3 changed files with 9 additions and 3 deletions
  1. +6
    -1
      bootstrap.sh
  2. +2
    -2
      build.sh
  3. +1
    -0
      build.xml

+ 6
- 1
bootstrap.sh View File

@@ -2,6 +2,8 @@

# You will need to specify JAVA_HOME if compiling with 1.2 or later.

unset CLASSPATH

if [ "$JAVA_HOME" != "" ] ; then
if [ -f $JAVA_HOME/lib/tools.jar ] ; then
CLASSPATH=$CLASSPATH:$JAVA_HOME/lib/tools.jar
@@ -59,6 +61,7 @@ fi
export CLASSPATH

mkdir -p ${CLASSDIR}
mkdir -p build

echo ... Compiling Ant Classes

@@ -77,8 +80,10 @@ cp src/main/org/apache/tools/ant/types/defaults.properties \

echo ... Building Ant Distribution

cp -r ${CLASSDIR} build

${JAVA_HOME}/bin/java -classpath ${CLASSPATH} org.apache.tools.ant.Main \
-buildfile build.xml clean main bootstrap
-buildfile build.xml bootstrap

echo ... Cleaning Up Build Directories



+ 2
- 2
build.sh View File

@@ -5,11 +5,11 @@ ANT_HOME=.
export ANT_HOME

if test ! -f lib/ant.jar -o ! -x bin/ant -o ! -x bin/antRun ; then
./bootstrap.sh
/bin/sh ./bootstrap.sh
fi

if [ "$REALANTHOME" != "" ] ; then
ANT_INSTALL="-Dant.install $REALANTHOME"
ANT_INSTALL="-Dant.install=$REALANTHOME"
fi

bin/ant $ANT_INSTALL $*


+ 1
- 0
build.xml View File

@@ -345,6 +345,7 @@
<include name="build.sh"/>
<include name="bootstrap.bat"/>
<include name="bootstrap.sh"/>
<include name="build.xml"/>
</fileset>
</copy>



Loading…
Cancel
Save