How to search for a string in files with Ant (make sure certain string isn't found in source files)

前端 未结 3 908
轻奢々
轻奢々 2020-12-03 17:55

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).

So, I should b

3条回答
  •  青春惊慌失措
    2020-12-03 18:07

    This was very helpful as a start, but I have a list of strings which should be checked in a fileset.

    My current code sofar is:

    
    
    
        
        
        
    
    
    
        
        
        
        
    
    
    

    That works well, but how to expand that so the ${search4} is read from a list. Actually the list can be read from a file containing each search item is on a separate line.

提交回复
热议问题