}
IIncludeStylesheet[] is = new IIncludeStylesheet[includeStylesheets.length];
for ( int i = 0; i < includeStylesheets.length; i++ )
{
final MavenIncludeStylesheet ss = includeStylesheets[i];
is[i] = new IIncludeStylesheet()
{
public String name()
{
if ( ss.getName() != null )
{
return ss.getName();
}
return PathUtil.file( ss.getPath(), getResourcesTargetDirectories() ).getName();
}
public String path()
{
return PathUtil.file( ss.getPath(), getResourcesTargetDirectories() ).getAbsolutePath();
}
};
}
return is;