On 21 Jun 2004 08:13:36 -0700,
(Harald Kirsch) wrote
or quoted :
>
>If you insist in making your life really miserable,
>then there is nothing
>to prevent you from either using cpp or m4, like
>in a C program. Except you have to call cpp
>yourself, because javac will not do this for you.-)
I do some simple things like embed the name of the compiler used by
simply copying one of two variants to the official java file just
prior to compilation. You can do slightly more elaborate things with
simple file concatenation.
As a simple antipiracy measure, and as a very flexible configuration
tool, I sometimes copy a configuration file written in Java for a
customer to the official configuration then compile, to hard code in
all the constants.
--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See
http://mindprod.com/jgloss/jgloss.html for The Java Glossary.