ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46936] New: Launch ant in MSYS/MinGW environment (without Cygwin)
Date Mon, 30 Mar 2009 13:15:26 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46936

           Summary: Launch ant in MSYS/MinGW environment (without Cygwin)
           Product: Ant
           Version: 1.7.1
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: notifications@ant.apache.org
        ReportedBy: clem.oudot@gmail.com


Hi,

I use MSYS/MinGW to run shell scripts calling "ant" and "mvn". This works for
"mvn" but not for "ant".

So I modify a little the ant script, using code from mvn script to manage MinGW
:

...

# OS specific support.  $var _must_ be set to either true or false.
cygwin=false;
mingw=false;
darwin=false;
case "`uname`" in
  CYGWIN*) cygwin=true ;;
  MINGW*) mingw=true;;
  Darwin*) darwin=true
           if [ -z "$JAVA_HOME" ] ; then
             JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home
           fi
           ;;
esac

...

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

...


Hope it helps

Clément OUDOT
LINAGORA

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
Mime
View raw message