ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Barclay <Daniel.Barc...@digitalfocus.com>
Subject Re: for all you Emacs hackers
Date Wed, 09 May 2001 19:40:14 GMT
Daniel Rall wrote:
> 
> Here's a little something that I cooked up last night:
> 
> (defun ant (build-file &optional args)
>   "Runs Jakarta Ant using BUILD-FILE and any targets/arguments from ARGS."
>   (interactive "FBuild file: ")
>   (compile-internal
>    (concat "ant -emacs -buildfile " build-file " "
>            (if (interactive-p)
>                (call-interactively
>                 '(lambda (args) (interactive "sArguments: ") args))
>              args))
>    "No more errors."))
> 
> It works both interactively and from other elisp.  One enhancement
> that it may need would be to change directory to the directory
> containing the BUILD-FILE before invoking Ant (some Ant files I've
> seen expect your CWD to be the directory containing the build file).
> 
> Run interactively, it looks something like:
> M-x ant RET ~/velocity/build/build.xml RET clean compile RET
> 
> Comments welcome.  :)

What advantage does that give over using "M-x compile" and typing in the 
Ant command?


Daniel
-- 
Daniel Barclay
Digital Focus
Daniel.Barclay@digitalfocus.com

Mime
View raw message