Excluding parts of source code during compilation

suraj puvvada suraj.puvvada at gmail.com
Tue Sep 6 15:50:53 PDT 2011


Hi,

Is there a way to exclude parts of code during compilation ? For example I
would like exclude a bunch of DEBUG/NON_PRODUCT code for production builds.

NOT_PRODUCT_BLOCK
{
  //some statements
}

or

if(DEBUG || NOT_PRODUCT)
{
   //bunch of statements
}

Thanks
Suraj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20110906/61d1cdd9/attachment.html 


More information about the compiler-dev mailing list