final List /* String */ _files = new ArrayList ();
// merge filesets:
for (Iterator i = m_dataFileSets.iterator (); i.hasNext (); )
{
final FileSet set = (FileSet) i.next ();
final DirectoryScanner ds = set.getDirectoryScanner (project);
final File dsBaseDir = ds.getBasedir ();
final String [] dsfiles = ds.getIncludedFiles ();
for (int f = 0; f < dsfiles.length; ++ f)
{
_files.add (new File (dsBaseDir, dsfiles [f]).getAbsolutePath ());
}
}
// // merge files:
// for (Iterator i = m_dataFiles.iterator (); i.hasNext (); )
// {
// final File file = (File) i.next ();
// if (! removeNonexistent || file.exists ())
// {
// _files.add (file.getAbsolutePath ());
// }
// }
if (_files.size () == 0)
return EMPTY_STRING_ARRAY;
else
{
final String [] files = new String [_files.size ()];
_files.toArray (files);
return files;
}