On 2002.06.11 23:37 Diane Holt wrote:
> I suspect you'd need to fork and specify gcj for your executable (see
> the doc for more details).
You meant forking with the exec task? So I guess, I have to put the
resulting object files (*.o) in the same directories with the .java
files.
BTW, the following is my build.xml:
okidz@bdg:~/hello$ more build.xml
<project default="compile" basedir=".">
<target name="compile">
<javac srcdir="."
includes="Hello.java"
destdir="."
compiler="gcj">
<compilerarg line="--main=Hello -o hello"/>
</javac>
</target>
</project>
The FAQ says that to define the command line options, you should use
the <arg /> tag; it seems that it has to be <compilerarg />.
Oki
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>