Exclude a particular method of a class from java compilation

Posted by Soman on Stack Overflow See other posts from Stack Overflow or by Soman
Published on 2010-05-07T11:16:55Z Indexed on 2010/05/07 11:28 UTC
Read the original article Hit count: 196

Filed under:
|

Hi,

I want to exclude a particular method of a class from java compilation.

For eg:

class Test { 
       public void printdouble(){}
       public void printint(){}
 }

Depending upon some properties, I want to exclude printdouble method during compilation.

NOTE: I'm using ant script for java compilation

Thanks in Advance Soman

© Stack Overflow or respective owner

Related posts about java

Related posts about ant