title: How to list TODO: in Ant build output
body: <blockquote>
    <p>Related: <a href="https://stackoverflow.com/questions/1636520/how-to-use-ant-to-check-for-tags-todo-etc-in-java-source">How to use ant to check for tags (TODO: etc) in java source</a></p>
  </blockquote>
  
  <hr>
  
  <p>How can I get ant to list <code>TODO:</code> tags found in my code in the build output when I run it.  I would like build failure to be <em>optional</em> (ie: a setting) if they are found.</p>
  
  <hr>
  
  <p>I've tried <a href="http://checkstyle.sourceforge.net/index.html" rel="nofollow noreferrer">Checkstyle</a> as suggested in the related post, but it doesn't display the text of the <code>TODO:</code>.</p>
  
  <p>IE: </p>
  
  <pre>
  [checkstyle] .../src/Game.java:36: warning: Comment matches to-do format 'TODO:'.
  [checkstyle] .../src/Game.java:41: warning: Comment matches to-do format 'TODO:'.
  [checkstyle] .../src/GameThread.java:25: warning: Comment matches to-do format 'TODO:'.
  [checkstyle] .../src/GameThread.java:30: warning: Comment matches to-do format 'TODO:'.
  [checkstyle] .../src/GameThread.java:44: warning: Comment matches to-do format 'TODO:'.
  </pre>