Compiling Source Tree Using GCJ
Jeff Sturm
jsturm@one-point.com
Thu Jun 19 21:58:00 GMT 2003
(Cc'ing java@gcc.gnu.org, where this question is more on-topic.)
On Thu, 19 Jun 2003 jishu.sengupta@cgadc.com wrote:
> How can I compile Java source Tree with multiple dependencies on other
> source trees using GCJ ?
Typically you'd compile each source tree separately and use --classpath to
resolve dependencies.
> I am trying to achieve the same behavior as Ant, available from Apache,
> which produces the byte code
> to a separate destination directory, and can work on multiple source trees.
? I don't understand the question, given that Ant isn't a compiler
at all, it relies on javac or jikes or ...
gcj supports the -d option to specify a destination directory.
> But Finally I still want to use Ant for other management tasks, only for
> compilation need GCJ, is it Possible ?
It should be possible. "gcj -C" handles most of the same options as jikes
or javac.
Jeff
More information about the Java
mailing list