Java compiler switches

Hello everyone,I was wondering if it is possible to add compiler switches in java code. If so, how can i do it?
[125 byte] By [Charalambosa] at [2007-11-27 5:31:58]
# 1

> Hello everyone,

>

> I was wondering if it is possible to add compiler

> switches in java code. If so, how can i do it?

Do you mean command line options?

Otherwise, the compiler is now open source, so I suppose you could get armpit-deep in Java compiler code and add your own compiler switches.

kevjavaa at 2007-7-12 14:57:39 > top of Java-index,Java Essentials,Java Programming...
# 2

basically what i want is to have some options in the code that i can compile/ or not. Basically i m now in the process of developing the skeleton code and i want to print out each time something is called with its parameters to see if everything conforms to the design sequence diagrams. But when the product is finished, i want to be able to compile out these system outs.

Hope i made it clear....

Charalambosa at 2007-7-12 14:57:39 > top of Java-index,Java Essentials,Java Programming...
# 3
[url= http://www.eclipse.org/aspectj/doc/released/faq.php]AspectJ[/url], maybe :-\?
kevjavaa at 2007-7-12 14:57:39 > top of Java-index,Java Essentials,Java Programming...
# 4
That sounds like something that could be controlled with a logger.
Hippolytea at 2007-7-12 14:57:39 > top of Java-index,Java Essentials,Java Programming...
# 5
thats right! ...silly me, i don't know how it didn't cross my mind! ...thnx
Charalambosa at 2007-7-12 14:57:39 > top of Java-index,Java Essentials,Java Programming...