开发者

Apache Ant does not include any file using my pattern

开发者 https://www.devze.com 2023-04-01 04:45 出处:网络
Here is zip task: 开发者_Python百科<zip destfile=\"${bindir}/HorizonWeb_bin.zip\" > <fileset dir=\"${basedir}/Horizon WEB Deploy/Release\" >

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

精彩评论

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