> Hello,
> Thank you guys for the responses.
> Rogue, I was afraid this was the only easy answer available. I am
> sure there is a good reason why they did not put a preprocessor into
> the IDE / compiler (it would not be difficult), but I can not figure
> one out.
Probably because the preprocessor is considered bad for good reasons. I
think even Stroustrup has regarded keeping the preprocessor in C++ one of
his bigger mistakes.
> Robert, I will look more into this, but it may be outside my available
> time (and capabilities). I was really hoping for a single class /
> file that generated the appropriate jar files based on a single flag.
> There have been other options presented, but unfortunately they do
> not appear to apply to "include" (e.g. non class) statements.
You can't expect to move to a new language and platform and keep doing
business as you are used to. You'll have to invest some time to get to
know the new environment.
Regarding your problem: ant (the XML configured Java build tool) might
help also, as it is quite flexible.
> The fact that the Mobility add on to NetBeans (5.0) has the
> preprocessor directives makes me wonder why it was not included in non
> Mobility type projects.
I don't know that feature but probably it's a hack included for platforms
where every single byte (even in class files) counts.
Regards
robert
Roedy Green - 21 Nov 2005 11:29 GMT
>Probably because the preprocessor is considered bad for good reasons. I
>think even Stroustrup has regarded keeping the preprocessor in C++ one of
>his bigger mistakes.
One place I would like something like a preprocessor in Java is when
you have two alternate implementations of a class in different
packages, and want to flip back and forth.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.