ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran" <>
Subject Re: Running non-Java compilers
Date Wed, 05 Mar 2003 23:15:58 GMT

----- Original Message -----
From: "Dominique Devienne" <>
To: "'Ant Users List'" <>
Sent: Wednesday, March 05, 2003 14:19
Subject: RE: Running non-Java compilers

> Ant only has built-in task to deal with Java sources mostly. The
> project has a <cc> task (also called Cpptasks) which can compile C / C++ /
> Fortran and others.
> Ant cannot execute a Makefile (but can run make -f Makefile), and a
> cannot execute a Ant build file (but can run ant -f build.xml).

with the caveat that I dont think ant.bat sets the failure code if the build
failed, as there isnt a way to do that cross-windows-versions.
does it right.

> Ant and make are conceptually different, so you cannot think in terms of
> Makefile when using Ant. Ant requires a thought shift from Make.
> I'd advice picking up the Hatcher and Loughran book often discussed on
> list to start learning about Ant (and the <cc> task). --DD

ant contrib is a sourceforge project BTW, And the <cc>
task is incredibly smart -it even does dependency checking.

View raw message