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
others).

I'd like to make some changes in the
ant-1.6.1/src/main/org/apache/tools/ant/taskdefs/compilers/Gcj.java 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="--main=org.debian.java.HelloNative -o 
build/hellonative"
      compiler="gcj"/>
    </javac>

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

        /**
         *  gcj should be set for generate class.
         */
        cmd.createArgument().setValue("-C");

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to