Return-Path: Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: (qmail 52314 invoked from network); 30 Mar 2009 13:15:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Mar 2009 13:15:47 -0000 Received: (qmail 93075 invoked by uid 500); 30 Mar 2009 13:15:47 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 93045 invoked by uid 500); 30 Mar 2009 13:15:47 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 93036 invoked by uid 99); 30 Mar 2009 13:15:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Mar 2009 13:15:47 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Mar 2009 13:15:46 +0000 Received: by brutus.apache.org (Postfix, from userid 33) id 88700234C004; Mon, 30 Mar 2009 06:15:26 -0700 (PDT) From: bugzilla@apache.org To: notifications@ant.apache.org Subject: DO NOT REPLY [Bug 46936] New: Launch ant in MSYS/MinGW environment (without Cygwin) X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: newchanged X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ant X-Bugzilla-Component: Core X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: clem.oudot@gmail.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: notifications@ant.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Date: Mon, 30 Mar 2009 06:15:26 -0700 (PDT) X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=3D46936 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 f= or "mvn" but not for "ant". So I modify a little the ant script, using code from mvn script to manage M= inGW : ... # OS specific support. $var _must_ be set to either true or false. cygwin=3Dfalse; mingw=3Dfalse; darwin=3Dfalse; case "`uname`" in CYGWIN*) cygwin=3Dtrue ;; MINGW*) mingw=3Dtrue;; Darwin*) darwin=3Dtrue if [ -z "$JAVA_HOME" ] ; then JAVA_HOME=3D/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=3D"`(cd "$ANT_HOME"; pwd)`" [ -n "$JAVA_HOME" ] && JAVA_HOME=3D"`(cd "$JAVA_HOME"; pwd)`" fi ... Hope it helps Cl=C3=A9ment OUDOT LINAGORA --=20 Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=3De= mail ------- You are receiving this mail because: ------- You are the assignee for the bug.=