Search code examples
phing

Simple way to enumerate the files in a fileset in phing


I am new to phing and trying to verify if my build.xml works as expected. I am looking for a convenient way to enumerate the files in a phing fileset.

The only thing that I've been able to get working is foreach (like in how to iterate (loop) through directories in phing?). However, it feels way too complex: I have to create a subtask, and phing gets called once for every file, making the outupt list hard to parse visually.

Any better alternatives? Thanks!


Solution

  • With Phing 2.4.8, the <echo> task supports filesets: http://www.phing.info/trac/ticket/792