[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: OT: Run Ant in MingW shell?
From: |
Kai Grossjohann |
Subject: |
Re: OT: Run Ant in MingW shell? |
Date: |
15 Oct 2003 04:07:37 -0700 |
Kai.Grossjohann@gmx.net (Kai Grossjohann) wrote in message
news:<e808b168.0310090018.4caa0f5c@posting.google.com>...
> 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
Re: OT: Run Ant in MingW shell?, Paul Kinnucan, 2003/10/15