0

Here is zip task:

<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....

HX_unbanned
  • 583
  • 1
  • 15
  • 51

1 Answers1

2

*/*.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?

JB Nizet
  • 678,734
  • 91
  • 1,224
  • 1,255
  • well, I tried both ways ... current directory will not contain any *.bin file anyway, so goal is any level subdirectory ... but I tried with the **/*.bin pattern it still did not work :( could it be causing other filesets or there is also some undocumented quirks here? – HX_unbanned Aug 30 '11 at 11:54
  • It's `**/*.bin`, not `**/.bin`. – JB Nizet Aug 30 '11 at 11:56
  • @HX_unbanned This solution should work. Also you can try includes/excludes zip task's attributes. – alehro Aug 30 '11 at 12:39
  • Hmmm ... Okay ... I'll multi-check dir, vars, props, args and other "data-carriers" ... – HX_unbanned Aug 31 '11 at 09:48