This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]