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
1
vote
1 answer

How to copy only a specific list of files from one directory to another using phing?

I have this list of file changes between two git revisions in a variable rolloutChanges - I am not sure how…
Sandeepan Nath
  • 9,966
  • 17
  • 86
  • 144
1
vote
1 answer

Using a Clover on Hudson

We're trying to limit Clover to a certain package and therefore have a definition in our Ant build file. Everything works fine from the command line (when we specify our known Ant target). But when it comes to the Clover plug-in on Hudson,…
Ates Goral
  • 137,716
  • 26
  • 137
  • 190
1
vote
2 answers

Check whether a file exists in an Ant FileSet

I am using FileSet in an Ant build file that is being read as an input from external source. How can I check if a specific file exists in the FileSet? For example, if the FileSet being read is **/src/*.java, I should be able to find MyClass.java in…
techjourneyman
  • 1,701
  • 3
  • 33
  • 53
1
vote
4 answers

Ant Fileset Expansion doesn't work

I get a very confusing reaction from my ant build-file and I'm wondering whether I'm just not clever enough or this might actually be a bug. I've got the following property set globally in my project: Then…
1
vote
1 answer

Ant: Concatenate properties from a fileset

I am trying to do the following in ANT but I am stuck. Read which projects are installed in my project workspace. workspace buildtools build.xml project1 build.xml project.name = "project1" IP =…
dbasch
  • 1,698
  • 1
  • 15
  • 31
1
vote
1 answer

How to concatenate paths returned from `fileset` into the XML file?

I'm trying to concatenate an unknown number of HTML files into one XML file. That's no problem with:
Flag
  • 497
  • 1
  • 3
  • 17
1
vote
1 answer

FIlter directories based on timestamp

My ultimate goal is the following : delete all content from a directory that is older than a given date. What I'm willing to achieve is removing all backup directories that are more than 7 days old compared to today's date. I could check the…
Julien
  • 11
  • 1
1
vote
1 answer

ANT task - multiple files - loop through

I have quite complicated ant task to write. I had to make separate builds files and 1 left. There are 4 files: buildpackage.bat, buildpackage.xml, buildpackage.txt, structure.xml buildpackage.bat is just an ant file that calls buildpackage.xml…
ES Su
  • 64
  • 2
  • 10
1
vote
2 answers

File Enumeration with Ant

I feel like I'm missing something obvious at the moment. I want to collect a set of dirs / files together in Ant. I know I can do it using a fileset with an optional patternset inside it, but that involves searching for files based a specific…
Undistraction
  • 42,754
  • 56
  • 195
  • 331
1
vote
1 answer

Ant regexpmapper file separator issues

I'm banging my head against a brick wall playing with ant filesets/ regexpmapper to try and simply rename a directory (in the middle of a path)... The situation is really simple: I have path component/DB/ that I'm copying to…
wmorrison365
  • 5,995
  • 2
  • 27
  • 40
1
vote
1 answer

Ant - Match all files in a directory

I'm trying to copy all the files in a directory using Ant Fileset pattern. I tried the following, **/* and **/*.* but neither of them copies entire directory structure. Is there any thing wrong in my file set pattern?
indiws
  • 283
  • 1
  • 3
  • 6
1
vote
1 answer

Why excludesfile is not working?

I have a list of class files to be excluded and i have added them in a file (say) exclude_class.txt as : **/a/b/c/*.class **/d/e/f/*.class **/g/h/i/j/*.class **/k/l/*.class Now when I use excludesfile in fileset task it is not working:
1
vote
1 answer

How to read a large file set

I am very new to Python. So please give specific advice. I am using Python 3.2.2. I need to read a large file set in my computer. Now I can not even open it. To verify the directory of the file, I used: >>> import os >>>…
Q-ximi
  • 941
  • 3
  • 14
  • 21
1
vote
0 answers

How to delete tarfileset after creation of archive?

I have following ant target to create an archive of log files. It collects all log files from the .metadata directory of an eclipse workspace recursively and log files from the project directories non-recursively. I would like to delete the files…
carl verbiest
  • 1,113
  • 1
  • 15
  • 30
1
vote
1 answer

Generating MD5 for files in an ant-contrib for loop in ANT

I am selecting set of files using file set and then using them to generate the checksum of all the files in the selected fileset here is my script
Deepak_Sharma
  • 61
  • 2
  • 10