You can use wildcards like 'module/dist/**/*.zip'. See [the includes attribute of Ant fileset](http://ant.apache.org/manual/Types/fileset.html) for the exact format.
- Multiple patterns can be specified by placing a comma (,) between them
- The base directory is the workspace. You can only archive files that are located in your workspace
- Will fail the build if no files are found
Removing Unwanted Folders
Top level folders can be excluded from the package using a custom addition to the Ant fileset - wrapping unwanted folder names in square brackets ([ ]):
- filter must start with '['
- wildcards are not supported
- filter can span a several folders
- invalid filters are ignored
- can be used with multiple filesets
Examples:
- "[build]/sample/one.txt" would add the folder and file "sample/one.txt" to the package
- "[build/sample]/two.txt" would add the file "one.txt" to the package
- "build/[sample]/three.txt" would be ignored
- "[**]/four.txt" would be ignored
- "[one]/one.txt, [two]/two.txt" would add one.txt and two.txt to the package