ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oki DZ <ok...@pindad.com>
Subject Re: native output
Date Wed, 12 Jun 2002 01:26:58 GMT
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:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message