Browse Source

Cygwin support in bootstrap.sh

PR:	3014
Submitted by:	tpv@spamcop.net (Tim Vernum)


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269526 13f79535-47bb-0310-9956-ffa450edef68
master
Conor MacNeill 24 years ago
parent
commit
656070c3d5
1 changed files with 8 additions and 7 deletions
  1. +8
    -7
      bootstrap.sh

+ 8
- 7
bootstrap.sh View File

@@ -1,5 +1,11 @@
#!/bin/sh #!/bin/sh


# Make sure that the classpath & java_home are in Unix format before we use them
if [ "$OSTYPE" = "cygwin32" ] || [ "$OSTYPE" = "cygwin" ] ; then
CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
fi

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


if [ -n "$JAVA_HOME" ] ; then if [ -n "$JAVA_HOME" ] ; then
@@ -49,11 +55,6 @@ if [ ! -x "$JAVACMD" ] ; then
exit exit
fi fi


# More Cygwin support
if [ "$OSTYPE" = "cygwin32" ] || [ "$OSTYPE" = "cygwin" ] ; then
CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
fi

ANT_HOME=. ANT_HOME=.
export ANT_HOME export ANT_HOME


@@ -97,7 +98,7 @@ mkdir -p bin


echo ... Compiling Ant Classes echo ... Compiling Ant Classes


${JAVAC} -d ${CLASSDIR} ${TOOLS}/tar/*.java ${TOOLS}/zip/*.java \
"${JAVAC}" -d ${CLASSDIR} ${TOOLS}/tar/*.java ${TOOLS}/zip/*.java \
${TOOLS}/ant/util/regexp/RegexpMatcher.java \ ${TOOLS}/ant/util/regexp/RegexpMatcher.java \
${TOOLS}/ant/util/regexp/RegexpMatcherFactory.java \ ${TOOLS}/ant/util/regexp/RegexpMatcherFactory.java \
${TOOLS}/ant/util/*.java ${TOOLS}/ant/types/*.java \ ${TOOLS}/ant/util/*.java ${TOOLS}/ant/types/*.java \
@@ -118,7 +119,7 @@ echo ... Building Ant Distribution


cp -r ${CLASSDIR} build cp -r ${CLASSDIR} build


${JAVACMD} -classpath ${CLASSPATH} -Dant.home=. org.apache.tools.ant.Main -emacs bootstrap
"${JAVACMD}" -classpath "${CLASSPATH}" -Dant.home=. org.apache.tools.ant.Main -emacs bootstrap


echo ... Cleaning Up Build Directories echo ... Cleaning Up Build Directories




Loading…
Cancel
Save