How to list TODO: in Ant build output
        Posted  
        
            by C. Ross
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by C. Ross
        
        
        
        Published on 2010-04-30T14:39:23Z
        Indexed on 
            2010/04/30
            17:07 UTC
        
        
        Read the original article
        Hit count: 456
        
Related: How to use ant to check for tags (TODO: etc) in java source
How can I get ant to list TODO: tags found in my code in the build output when I run it.  I would like build failure to be optional (ie: a setting) if they are found.
I've tried Checkstyle as suggested in the related post, but it doesn't display the text of the TODO:.
IE:
[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:'.
© Stack Overflow or respective owner