public Iterator<PlexusIoResource> getResources()
throws IOException
{
final List<PlexusIoResource> result = new ArrayList<PlexusIoResource>();
final FileSelector fileSelector = getDefaultFileSelector();
String prefix = getPrefix();
if ( prefix != null && prefix.length() == 0 )
{
prefix = null;
}
for ( final Iterator<PlexusIoResource> iter = getSrc().getResources(); iter.hasNext(); )
{
PlexusIoResource plexusIoResource = iter.next();
PlexusIoResourceAttributes attrs = null;
if ( plexusIoResource instanceof PlexusIoResourceWithAttributes )
{
attrs = ( (PlexusIoResourceWithAttributes) plexusIoResource ).getAttributes();
}
if ( plexusIoResource.isDirectory() )
{
attrs =
PlexusIoResourceAttributeUtils.mergeAttributes(
getOverrideDirAttributes(), attrs, getDefaultDirAttributes() );
}
else
{
attrs =
PlexusIoResourceAttributeUtils.mergeAttributes(
getOverrideFileAttributes(), attrs, getDefaultFileAttributes() );
}
if ( !fileSelector.isSelected( plexusIoResource ) )
{
continue;
}
if ( !isSelected( plexusIoResource ) )
{