Phillip Lord writes: > >>>>> "Madeleine" == Arnold, Madeleine <[EMAIL PROTECTED]> writes: > > Madeleine> Hi there I'm a JDE newbie of 2 days. Can anyone help with > Madeleine> this question: Is there a way in JDE to compile all > Madeleine> classes within a particular package? I've found the build > Madeleine> command that calls javac on the application's main class, > Madeleine> but my application has several packages, and I often want > Madeleine> to recompile only a particular package rather than the > Madeleine> entire application. Thanks Madeleine > > Using one of the standard build tools is probably the way > to go. JDE supports "make" and "ant" directly, and M-x compile will > work with anything that you choose. Also the "JMaker" package from > David Ponce (which I think comes with JDE these days) will build make > files for you automatically. In my experience ant is generally quicker > because it launches all compiles from a single JVM, while make will > tend to launch javac for each out of date file, which means multiple > JVM invocations.
The makefile generated by JMaker uses a single invocation of javac to compile all classes in a package. It is very fast in my experience. JMaker is tightly integrated with the JDE. Only one command is required to generate a new makefile for ALL packages in the current project or to update an existing makefile when you add a class. JMaker generates a makefile hierarchy with individual makefiles for each package and a master makefile for the entire project. Thus, you can easily choose whether to build the entire project or just a pacakge. JMaker uses the JDE settings for the current project, e.g., jde-global-classpath, jde-compile-option-debug, etc., to generate the javac options. I recommend JMaker very highly. It's what I use to build the JDE's Java code. - Paul
