ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jose Alberto Fernandez" <>
Subject RE: for all you Emacs hackers
Date Wed, 09 May 2001 19:06:17 GMT
Around half a year ago I posted elisp code to make ANT work with JDE.
When you execute ^z^z  it automatically fires the build no matter where your
buildfile is located.

It uses the prj.el file for jde to do it.

Take a look at it. The file is specified relative to the prj.el file.

Now, in my case the build file is in a separate CVS module that is why it is
called "../the-other-cvs/config/...

It works like a charm.

Jose Alberto

> -----Original Message-----
> From:
> []On Behalf Of Daniel Rall
> Sent: Wednesday, May 09, 2001 7:01 PM
> To:
> Subject: for all you Emacs hackers
> 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.  :)
> Daniel Rall

View raw message