Fixed *.rawclobber suffix stripping during patching

This commit is contained in:
Vhati 2014-10-22 22:51:27 -04:00
parent 840fbd15af
commit dcdec15c0e

View file

@ -282,6 +282,7 @@ public class ModPatchThread extends Thread {
}
}
else if ( fileName.endsWith( ".xml.rawclobber" ) || fileName.endsWith( ".rawclobber.xml" ) ) {
innerPath = parentPath + fileName.replaceAll( "[.](?:xml[.]rawclobber|rawclobber[.]xml)$", ".xml" );
innerPath = checkCase( innerPath, knownPaths, knownPathsLower );
log.warn( String.format( "Copying xml as raw text: %s", innerPath ) );