You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Daniel L. Boxwell" <Bo...@C-IV.org> on 2002/11/20 19:03:38 UTC
grep functionality
I am looking for functionality in ANT that will allow me to define a list of forbidden strings and then grep for them throughout my source tree. In particular, I would like to be able to search for strings such as
- System.out.println()
- connection.commit()
- etc. . .
Checkstyle will allow me to look for forbidden instantiations such as java.lang.Boolean, but that doesn't really solve my problem. . . I had originally thought of using the ReplaceRegExp task, but this task and all other regular expression based tasks I have found seem to be replacement oriented. Ideally I would have the ability to fail a build if a forbidden string crept into the code.
Any suggestions would be appreciated. I hope that I am just overlooking something simple!
Thanks,
--Dan