diff --git a/src/main/java/net/md_5/specialsource/mavenplugin/RemapMojo.java b/src/main/java/net/md_5/specialsource/mavenplugin/RemapMojo.java index 61ace43..1eab34e 100644 --- a/src/main/java/net/md_5/specialsource/mavenplugin/RemapMojo.java +++ b/src/main/java/net/md_5/specialsource/mavenplugin/RemapMojo.java @@ -286,7 +286,7 @@ private void replaceFile( File oldFile, File newFile ) // Still didn't work. We'll do a copy try { - Files.copy( oldFile, newFile ); + Files.copy( oldFile, origFile ); } catch ( IOException ex ) { @@ -306,7 +306,7 @@ private void replaceFile( File oldFile, File newFile ) // Still didn't work. We'll do a copy try { - Files.copy( oldFile, newFile ); + Files.copy( newFile, oldFile ); } catch ( IOException ex ) {