I haven't actually tried it (yet) for Ant, but you can customize the
compile-command variable.

Here's a snippet from my .emacs file that customizes the compile ('make')
command for my C++ environment:

(add-hook 'c-mode-common-hook
           (lambda ()
             (set (make-local-variable 'compile-command)
(get-compile-command))))

get-compile-command is a function I wrote to return the compile command; you
could substite your own function (or string).

As far as formatting goes, there's a note on the ide's page on the Ant site
about emacs.

Sorry I couldn't be more specific -- give me a few days and I might setup my
.emacs for ant.  But, I'm sure it can be done.

Steve Molitor
[EMAIL PROTECTED]

-----Original Message-----
From: Gerald E. Bennett [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 25, 2001 9:03 PM
To: Ant-User (E-mail)
Subject: Ant and Emacs


Is there anyway to replace the :make command in emacs to use ant?
Is there any special parsing you need to do with the output so that the
errors are parsed correctly?
Has anyone written any modules to do this?

thanks in advance.


gerry

Reply via email to