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 A. Longo
Christopher Charlier Christopher Charlier
Clemens Hammacher Clemens Hammacher
Clement OUDOT
Conor MacNeill Conor MacNeill
Craeg Strong Craeg Strong
Craig Cottingham Craig Cottingham


+ 3
- 0
WHATSNEW View File

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


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

Other changes: Other changes:
-------------- --------------
* A HostInfo task was added performing information on hosts, including info on * 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> <first>Clemens</first>
<last>Hammacher</last> <last>Hammacher</last>
</name> </name>
<name>
<first>Clement</first>
<last>OUDOT</last>
</name>
<name> <name>
<first>Conor</first> <first>Conor</first>
<last>MacNeill</last> <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. # OS specific support. $var _must_ be set to either true or false.
cygwin=false; cygwin=false;
darwin=false; darwin=false;
mingw=false;
case "`uname`" in case "`uname`" in
CYGWIN*) cygwin=true ;; CYGWIN*) cygwin=true ;;
Darwin*) darwin=true Darwin*) darwin=true
@@ -87,6 +88,7 @@ case "`uname`" in
JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home
fi fi
;; ;;
MINGW*) mingw=true ;;
esac esac


if [ -z "$ANT_HOME" -o ! -d "$ANT_HOME" ] ; then 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` ANT_HOME=`cd "$ANT_HOME" > /dev/null && pwd`
fi 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 if $cygwin ; then
[ -n "$ANT_HOME" ] && [ -n "$ANT_HOME" ] &&
ANT_HOME=`cygpath --unix "$ANT_HOME"` ANT_HOME=`cygpath --unix "$ANT_HOME"`
[ -n "$JAVA_HOME" ] && [ -n "$JAVA_HOME" ] &&
JAVA_HOME=`cygpath --unix "$JAVA_HOME"` JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
fi 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 # set ANT_LIB location
ANT_LIB="${ANT_HOME}/lib" ANT_LIB="${ANT_HOME}/lib"


Loading…
Cancel
Save