开发者

Apache Ant does not include any file using my pattern

Here is zip task:

开发者_Python百科<zip destfile="${bindir}/HorizonWeb_bin.zip" >
  <fileset dir="${basedir}/Horizon WEB Deploy/Release" >
    <include name="*/*.bin" />
    <exclude name="*/*.pdb" />
  </fileset>
</zip>

What I do not understan is why it do not include any file while, for example, this one works:

<zip destfile="${bindir}/HorizonWeb.zip">
  <fileset dir="${basedir}/Horizon WEB Deploy/Release" />
</zip>

Could anybody explain and input a working example?

Thanks for any help ;)

P.S. Using Jenkins 1.424, if it matters....


*/*.bin means all the files ending with .bin and being a a direct subdirectory of the fileset dir. Is it what you want?

Don't you rather want **/*.bin, which means any file ending with .bin, in the fileset dir or in any subdirectory of the fileset dir, recursively?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜