ANT creating a WAR file and excluding a word
When building my WAR file I want to exclude all files that hav开发者_如何转开发e the word "test" in them. Is there a way to exclude all those files in one exclude tag?
Yes, using something like this in a <fileset>
:
<exclude name="**/*test*"/>
In fact, this is the first example in the Ant manual for <FileSet>
.
yes
<war ... excludes="**/**test**" />
or by using a fileset
精彩评论