开发者

ANT creating a WAR file and excluding a word

开发者 https://www.devze.com 2023-03-05 16:05 出处:网络
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

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

精彩评论

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