Questions tagged [fileset]

A fileset in Apache Ant is a structure to combine a group of files and perform actions on them.

In Apache Ant, a FileSet is a structure to group a number of files. Many Ant tasks work on filesets, e.g. copy, delete, ...

Usually build-scripts use filesets to select a number of files that should be used for operations later on.

Similar concepts in Ant are DirSet and PatternSet.

See the documentation for details

118 questions
2
votes
1 answer

How to exclude all sub-folders in the directory using fileset?

I have an ANTScript like: I am trying to exclude all sub-folders in the directory. The above code excludes only back_out subfolder. Is…
useranon
  • 29,318
  • 31
  • 98
  • 146
2
votes
2 answers

Does Ant guarantee order of filesets?

in our project we use Ant to distribute files. There is hierarchy of files, and they overwrite files from previous level. Like this: default - level1 - level2. Currently it is made the way:
awfun
  • 2,316
  • 4
  • 31
  • 52
2
votes
3 answers

How do I make a fileset from a comma-separated list of directories in Ant?

In an Ant target I get a property, containing the list of directories to be included in further action (copying, filtering, etc.). It looks like this: directories=dir1, dir2, dir3 I need a way to convert this list to a fileset or patternset that…
Max Kosyakov
  • 292
  • 2
  • 5
2
votes
1 answer

How to exclude a directory which is already included in an Ant FileSet?

I am using the jar task in ant and wish to exclude a certain directory. The structure of the directories is something like: food |_ fruits |_ apples |_ bananas (having been made generic and simplified a little) And I have an ant task…
Grundlefleck
  • 124,925
  • 25
  • 94
  • 111
2
votes
1 answer

How can I echo a filename twice using 'FileSet' and 'PathConvert'?

I have this simple Ant task that lists all '.png' files in a folder:
emeraldjava
  • 10,894
  • 26
  • 97
  • 170
2
votes
3 answers

Problems with FileSet in Ant script?

I am using Ant script to generate javadoc and I just only wnt Ant to look for some classes based on a certain pattern, so I wrote:
ipkiss
  • 13,311
  • 33
  • 88
  • 123
2
votes
1 answer

Why `**/*ant*` exclude pattern doesn't work, but `"**/*ant*/**` works fine?

Let's say I have this in one of my targets: I'd like to group all the html files,…
Geo
  • 93,257
  • 117
  • 344
  • 520
2
votes
1 answer

How to pass multiple excludes for fileset in Ant as an input parameter?

I am using a fileset in Ant and I would like to have the things to exclude as an extracted property, like an array of strings(or just a comma-separated string). By doing this I can have a dynamic excludelist.