I've reduced compilation times with JDEE & Ant by:

1. Creating ant targets that operate only in and below the current working
directory (as defined by the 'user.dir' property). For example, the java
compilation target only compiles modified files in or below the current dir.


2. Augmenting jde-ant-build to set the user.dir property to be the current
buffer's directory. The lisp for this is shown below.

The obvious risk with this simple approach is that I'll miss compiling
modified files in other directories. In practice it works well for me, as
the files that I have modified since the last compilation are usually all in
the same subsystem and hence under the same directory subtree.  I find that
the benefits of reduced compilation time outweigh the disadvantage of having
to pay attention to where I launch compilations from - YMMV. 

Ross.

(defun burnett-jde-ant-build () 
  "Runs the ant build with the Java user.dir system property set to the
current buffer's directory. This makes it possible to use the Ant server
with Ant build files that rely on ${user.dir}"
  (interactive) 
  (let
      ((jde-ant-args
        (concat jde-ant-args '" -Duser.dir=" default-directory)))
    (call-interactively 'jde-ant-build))) 


> -----Original Message-----
> From: David Jencks [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 23 July 2002 10:16
> To: WATSON Matt
> Cc: 'jde @ sunsite . dk'
> Subject: Re: Compile all open Java buffers
> 
> 
> I find a modular build system works well, and finds files 
> i've modified,
> saved, and closed.  It also works with more complicated build 
> processes
> such as code generation and packaging.
> 
> I can compile only the module I'm working on in 15-30 
> seconds, whereas the
> whole project build takes 2-5 minutes.
> 
> The only modular build system I know of is the jboss 
> buildmagic system. 
> I'd like to hear of others.
> 
> david jencks
> 
> On 2002.07.22 19:43:06 -0400 WATSON Matt wrote:
> > > > > Does anyone know a JDEE command that compiles all open 
> > > Java buffers
> > > > > that are in the current project?  Something like C-c C-v 
> > > C-c, except
> > > > > that it finds and compiles multiple files...
> > 
> > I have similar problems with compile times and I think a 
> command like
> > that
> > would be quite cool. I imagine it's not too difficult, if 
> only I had the
> > time. While I'm waiting for those compiles, my machine is trashed,
> > otherwise
> > I'd be doing it then!
> > 
> > Matt
> > 


IMPORTANT NOTICE:
This e-mail and any attachment to it is intended only to be read or used by
the named addressee.  It is confidential and may contain legally privileged
information.  No confidentiality or privilege is waived or lost by any
mistaken transmission to you.  If you receive this e-mail in error, please
immediately delete it from your system and notify the sender.  You must not
disclose, copy or use any part of this e-mail if you are not the intended
recipient.  The RTA is not responsible for any unauthorised alterations to
this e-mail or attachment to it.  

Reply via email to