<<JavaPreProcessor.java>>  <<defaults.properties>>  <<PreComp.java>> 

Hi all!

I'm new at this list and want to thank all developers for this great tool.

I wrote a new task for ant and would like to make it available to others that 
might have a use for it. 

I took the JavaPreprocessor from the JBoss Project and built a Preprocess Task 
around it.
The Task searches a directory structure for files with a specified extension 
and preprocesses them to
a new file with another specified extension.

The preprocessor supports the full C/C++ preprocessor syntax.

So I can use some #define statements even for Java-development. I use it for 
turing some debug and trace statments off when going to production.

But I mostly use it for genareting the bunch of static html files
forming my personal webpage. With #include I can ease the coding of headers 
occuring on every page. 
Even #defines and #ifdef's are useful for configuring menus occuring on every 
html page.

Hope you can use it too.

Andreas

Attachment: JavaPreProcessor.java
Description: Binary data

Attachment: defaults.properties
Description: Binary data

Attachment: PreComp.java
Description: Binary data

Reply via email to