ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arnaud Vandyck <>
Subject javac and compilerargs
Date Mon, 15 Mar 2004 09:40:00 GMT
Hi all!

My name is Arnaud Vandyck and I'm new here. I use ant for a long time
and cannot do anything without it! ;-)

I'm also a Debian Developer (like Stefan Gybas, Takashi Okamoto and

I'd like to make some changes in the
ant-1.6.1/src/main/org/apache/tools/ant/taskdefs/compilers/ task
to change the behavior. I'd like ant NOT to pass the -C argument if a
nested <compilerarg> tag exists.

The reason:

I'd like to be able to build java sources to native code with gcj. I
think this can be achieved if I pass some extra arguments to the
compilerarg commandline like this:

    <javac srcdir="${src}" destdir="${build}">
      <compilerarg line=" -o build/hellonative"

But in the Gcj task, the '-C' argument is passed

         *  gcj should be set for generate class.

I'd like to know if I can add a condition  around this line so if there
is <compilerarg> tag, with the '-o' or '--main=' argument, no -C
argument is passed to gcj.

Many thanks for your time and help,

~/.signature not found

This is Unix we're talking about, remember.  It's not supposed to be
nice for the applications programmer.
		-- Matthew Danish on debian-devel

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message