Son of Mojo JoJo <[EMAIL PROTECTED]> wrote:
> does anyone know a way to get a COMMA sepearted list of files from a
> fileset?
This is currently not possible without writing a task of your own that
does so - either in Java or as a <script>, here's an untested Java
snippet that does what you want
FileSet fs = (FileSet) (new Reference("myref")).getReferencedObject(project);
DirectoryScanner ds = fs.getDirectoryScanner(project);
StringBuffer sb = new StringBuffer();
String[] files = ds.getIncludedFiles();
for (int i = 0; i < files.length;i++) {
if (i > 0) {
sb.append(",");
}
sb.append(files[i]);
}
project.setProperty("my-comma-sep-list", sb.toString());
Stefan