throw new ArchiverException( "Expected "
+ PlexusIoArchivedResourceCollection.class.getName()
+ ", got " + resources.getClass().getName() );
}
final PlexusIoProxyResourceCollection proxy = new PlexusIoProxyResourceCollection();
proxy.setSrc( resources );
proxy.setExcludes( fileSet.getExcludes() );
proxy.setIncludes( fileSet.getIncludes() );
proxy.setIncludingEmptyDirectories( fileSet.isIncludingEmptyDirectories() );
proxy.setCaseSensitive( fileSet.isCaseSensitive() );
proxy.setPrefix( fileSet.getPrefix() );
proxy.setUsingDefaultExcludes( fileSet.isUsingDefaultExcludes() );
proxy.setFileSelectors( fileSet.getFileSelectors() );
if ( getOverrideDirectoryMode() > -1 || getOverrideFileMode() > -1 )
{
proxy.setOverrideAttributes( -1, null, -1, null, getOverrideFileMode(), getOverrideDirectoryMode() );
}
if ( getDefaultDirectoryMode() > -1 || getDefaultFileMode() > -1 )
{
proxy.setDefaultAttributes( -1, null, -1, null, getDefaultFileMode(), getDefaultDirectoryMode() );
}
return proxy;
}