ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject RE: Commenting System.out.println using ant
Date Wed, 04 Aug 2004 18:12:05 GMT
I had a similar scenario, but I had to remove backslash + CRLF spaces. You
can see the solution at

However, a solution would be:
<project name="GTSim2 - Web" default="replace" basedir=".">
    <target name="replace">
	<replaceregexp flags="g" file="./">
	  <regexp pattern="System.out"/>
	  <substitution expression="// System.out"/>

I am pretty sure there are several other ways (more elegant or generic), but
I used this and it worked fine for me.

-----Original Message-----
From: Nitin Kumar []
Sent: Wednesday, August 04, 2004 11:01 AM
Subject: Commenting System.out.println using ant

Is there a way using ant which will comment out all System.out.printlns
in my java class?

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message