From 55d9940d86d46d8995b11620cc69b9b6a12769e8 Mon Sep 17 00:00:00 2001 From: md_5 Date: Thu, 28 Sep 2023 22:17:54 +1000 Subject: [PATCH] Fix file copy params --- .../java/net/md_5/specialsource/mavenplugin/RemapMojo.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ) {