File target = FileUtils.createTempFile( source.getName() + ".", ".filtered", tempRoot );
//@todo this test can be improved
boolean isPropertiesFile = source.getName().toLowerCase( Locale.ENGLISH ).endsWith( ".properties" );
MavenFileFilterRequest filterRequest =
new MavenFileFilterRequest( source, target, true, configSource.getProject(), configSource.getFilters(),
isPropertiesFile, encoding, configSource.getMavenSession(), null );
filterRequest.setEscapeString( escapeString );
filterRequest.setInjectProjectBuildFilters( true );
configSource.getMavenFileFilter().copyFile( filterRequest );
return target;
}
catch ( MavenFilteringException e )