This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Compiling Source Tree Using GCJ
- From: Jeff Sturm <jsturm at one-point dot com>
- To: jishu dot sengupta at cgadc dot com
- Cc: gcc at gcc dot gnu dot org, <java at gcc dot gnu dot org>
- Date: Thu, 19 Jun 2003 17:48:23 -0400 (EDT)
- Subject: Re: Compiling Source Tree Using GCJ
(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