>> I was just wondering if it was possible to use javac -J-Dname=value to
>> get compile-time constants into code, perhaps with annotations or
[quoted text clipped - 10 lines]
>
> Java does not do preprocessing. Period.
The JDK tools don't, but that doesn't mean you can't do it. Any number of
general-purpose text processing tools or 3rd-party Java pre-processors
could be used. You could even do it with core Ant tasks.
Dan.

Signature
Daniel Dyer
http://www.dandyer.co.uk
Arne Vajhøj - 15 Sep 2006 02:58 GMT
>> Java does not do preprocessing. Period.
>
> The JDK tools don't, but that doesn't mean you can't do it. Any number
> of general-purpose text processing tools or 3rd-party Java
> pre-processors could be used. You could even do it with core Ant tasks.
True.
But that has very little to do with Java.
Arne