title: How to search for a string in files with Ant (make sure certain string isn't found in source files)
body: <p>I'd like to search for a string within my source files with Ant. (I'd like my build to fail in case certain string is found within my source files).</p>
  
  <p>So, I should be able to recursively search for a certain string within a file set.</p>
  
  <p>I already found that I can use <a href="http://ant.apache.org/manual/Tasks/loadfile.html">loadfile task</a> to check <a href="http://www.coderanch.com/t/108727/tools/finding-string-patterns-file-Ant">whether a string pattern is found within one file</a>. But that seems to be working &amp; sensible only with a single file.</p>
  
  <p>On the other hand, <a href="http://ant.apache.org/manual/Tasks/replace.html">replace task</a> would provide recursively search-and-replace. I guess I could do that before build and replace my string with something that would break the build but I wonder if there is some cleaner solution?</p>
  
  <p>br, Touko</p>