Has anyone come across/written a task for using the gnu c pre-processor on .java files? If not, I'd also like to hear from anyone who has advice or suggestions about writing an ant task that would do this. The task would have to do something like: Scan a source tree for files containing the suffix (for example) .java.pp. For each file found: 1) Copy file to <classname>.java.c 2) Pass it cpp, renaming the output <classname>.java when cpp has processed it. Brian Sheehan Tranetics www: http://www.tranetics.com/ ---------------------------------------------- This e-mail is confidential and may also be privileged. If you are not the intended recipient, please notify us immediately by telephoning +353-(0)21-4877780. You should not copy or use it for any other purpose, nor disclose its contents to any other person. In messages of non-business nature, the views and opinions expressed are the author's own and do not necessarily reflect the views and opinions of the Company. ----------------------------------------------