ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dick, Brian E." <>
Subject RE: C preprocessor driven from ANT?
Date Tue, 13 Dec 2005 14:29:12 GMT
I once used gcc for this purpose. You can just run the pre-processor and
save the output.

I also have used m4. It's a bit more powerful than gcc and is language

I have since bagged both of those and use ant's filterchains. I use the
ExpandProperties and ReplaceTokens filterchains instead of #defines. I
use the ConcatFilter filterchain or the Concat task instead of

-----Original Message-----
From: Tim Gordon [] 
Sent: Tuesday, December 13, 2005 8:30 AM
Subject: C preprocessor driven from ANT?


Does anyone know of a pure-Java pre-processor that can handle c-style
multiple #include and nested #defines?

Our DB build is preceded by the SQL being subject to some C-style
pre-processing before the stored procs are run into the DB. Our DB build
done outside of ANT using make at the moment but the only barrier to
it from ANT is the fact that this C-style pre-processing has to take

Obviously I'm after a pure-Java implementation so that I don't have to
about cross-platform issues, otherwise I'd just exec a resident native
binary pre-processor.


Allustra Limited
85 Gracechurch Street
Tel +44 (0)20 7469 8640
Fax +44 (0)20 7469 8689

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

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

View raw message