On Tue, 13 Dec 2005, Tim Gordon <[EMAIL PROTECTED]> wrote:

> 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 is done outside of ANT using make at the moment but the only
> barrier to driving it from ANT is the fact that this C-style
> pre-processing has to take place.

without changing the syntax, that is, I assume.  Otherwise there are a
couple of preprocessor tasks listed on Ant's external tasks page.

You could try to use your own filterreader which would force you to
re-implement the pieces of logic required for your scripts, which
might not be that much (keeping track of defines, very simple
conditionals, swallowing lines and including other files).  I'm not
aware of existing solutions here.

And like Brian said, you can always run gcc's preprocessor
stand-alone.  A quick look over the ant-contrib cc tasks reveals that
they don't support running the compiler without compiling.

Sorry, no good news

       Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to