I do not know of any Ant task that will print out the contents of a fileset. But why bother doing that? Why not simply use the copy task with your fileset and a filterchain using the deletecharacters, striplinebreaks, etc.
You could use the <pathconvert> task, as is explained in this weblog.
It demonstrates how to convert a <path> definition to a pretty printable string, but the same approach should work for a <fileset>, since <pathconvert>'s refid attribute accepts a reference to either a <path>, <fileset>, <dirset>, or <filelist> according to the documentation.
Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
Joined: Jul 12, 2002
What I'm actually trying to do is this...
And, the added complication is that the compression utility only takes one file at a time, no wildcards.
A batch file and an "Exec" sounds like it wouldn't be cross-platform.
Ideas would be appreciated.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Trying to list the directory contents in a <fileset>