Browse Source

support MSYS/MingW. Submitted by Clement OUDOT. PR 46936

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@763652 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 16 years ago
parent
commit
9aac905f3e
4 changed files with 18 additions and 1 deletions
  1. +1
    -0
      CONTRIBUTORS
  2. +3
    -0
      WHATSNEW
  3. +4
    -0
      contributors.xml
  4. +10
    -1
      src/script/ant

+ 1
- 0
CONTRIBUTORS View File

@@ -45,6 +45,7 @@ Christophe Labouisse
Christopher A. Longo
Christopher Charlier
Clemens Hammacher
Clement OUDOT
Conor MacNeill
Craeg Strong
Craig Cottingham


+ 3
- 0
WHATSNEW View File

@@ -360,6 +360,9 @@ Fixed bugs:
symbolic links.
Bugzilla Report 46747.

* The ant shell script should now support MSYS/MinGW as well.
Bugzilla Report 46936.

Other changes:
--------------
* A HostInfo task was added performing information on hosts, including info on


+ 4
- 0
contributors.xml View File

@@ -202,6 +202,10 @@
<first>Clemens</first>
<last>Hammacher</last>
</name>
<name>
<first>Clement</first>
<last>OUDOT</last>
</name>
<name>
<first>Conor</first>
<last>MacNeill</last>


+ 10
- 1
src/script/ant View File

@@ -80,6 +80,7 @@ fi
# OS specific support. $var _must_ be set to either true or false.
cygwin=false;
darwin=false;
mingw=false;
case "`uname`" in
CYGWIN*) cygwin=true ;;
Darwin*) darwin=true
@@ -87,6 +88,7 @@ case "`uname`" in
JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home
fi
;;
MINGW*) mingw=true ;;
esac

if [ -z "$ANT_HOME" -o ! -d "$ANT_HOME" ] ; then
@@ -111,13 +113,20 @@ if [ -z "$ANT_HOME" -o ! -d "$ANT_HOME" ] ; then
ANT_HOME=`cd "$ANT_HOME" > /dev/null && pwd`
fi

# For Cygwin, ensure paths are in UNIX format before anything is touched
# For Cygwin and Mingw, ensure paths are in UNIX format before
# anything is touched
if $cygwin ; then
[ -n "$ANT_HOME" ] &&
ANT_HOME=`cygpath --unix "$ANT_HOME"`
[ -n "$JAVA_HOME" ] &&
JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
fi
if $mingw ; then
[ -n "$ANT_HOME" ] &&
ANT_HOME="`(cd "$ANT_HOME"; pwd)`"
[ -n "$JAVA_HOME" ] &&
JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
fi

# set ANT_LIB location
ANT_LIB="${ANT_HOME}/lib"


Loading…
Cancel
Save