开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜