From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kai.Grossjohann@gmx.net (Kai Grossjohann) Newsgroups: gmane.emacs.help Subject: Re: OT: Run Ant in MingW shell? Date: 15 Oct 2003 04:07:37 -0700 Organization: http://groups.google.com Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1066216748 22016 80.91.224.253 (15 Oct 2003 11:19:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 15 Oct 2003 11:19:08 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 15 13:19:06 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A9jgI-0007j7-00 for ; Wed, 15 Oct 2003 13:19:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A9jem-0006m8-Ts for geh-help-gnu-emacs@m.gmane.org; Wed, 15 Oct 2003 07:17:32 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 42 Original-NNTP-Posting-Host: 62.225.156.156 Original-X-Trace: posting.google.com 1066216058 1994 127.0.0.1 (15 Oct 2003 11:07:38 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 15 Oct 2003 11:07:38 +0000 (UTC) Original-Xref: shelby.stanford.edu gnu.emacs.help:117267 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:13196 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:13196 Kai.Grossjohann@gmx.net (Kai Grossjohann) wrote in message news:... > In that shell, I say "cd work/bla", then I say "ant -emacs compile", > and this is the response: > > ~/work/bla> ant -emacs compile > java.lang.NoClassDefFoundError: org/apache/tools/ant/Main > Exception in thread "main" ~/work/bla> > > I look at $CLASSPATH and it's the same as under CMD.EXE. But there, > Ant works. > > Any idea how to get it working? Silly me. Typing "ant" will run the Bourne shell script. I need to say "ant.bat" to run the Windows thing. Alas, typing "ant.bat -emacs compile" in the MinGW shell leads to the shell trying to interpret ant.bat as a shell script. That won't work, of course. ~/work/evITA-Web> ant.bat -emacs compile /c/Programme/Apache-Group/apache-ant-1.5.4/bin/ant.bat: @echo: command not found /c/Programme/Apache-Group/apache-ant-1.5.4/bin/ant.bat: line 3: syntax error near unexpected token `(c' /c/Programme/Apache-Group/apache-ant-1.5.4/bin/ant.bat: line 3: `REM Copyright (c) 2001-2003 The Apache Software Foundation. All rights' ~/work/evITA-Web> Hm. Googling for "bat mingw shell"... Ah! Found an article on Cygwin with the same problem. Typing cmd //c /c/Programme/Apache-Group/apache-ant-1.5.4/bin/ant.bat -emacs compile really works! Now it would be nice if it could be made automatic. I'll ask the MinGW folks, I guess. Kai