We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44ab556 commit c8cac5eCopy full SHA for c8cac5e
paperweight-core/src/main/kotlin/io/papermc/paperweight/core/tasks/SetupForkMinecraftSources.kt
@@ -81,7 +81,13 @@ abstract class SetupForkMinecraftSources : JavaLauncherTask() {
81
}
82
83
if (libraryImports.isPresent) {
84
- libraryImports.path.copyRecursivelyTo(out)
+ libraryImports.path.walk().forEach {
85
+ val outFile = out.resolve(it.relativeTo(libraryImports.path).invariantSeparatorsPathString)
86
+ // The file may already exist if upstream imported it
87
+ if (!outFile.exists()) {
88
+ it.copyTo(outFile.createParentDirectories())
89
+ }
90
91
92
commitAndTag(git, "Imports", "${identifier.get()} Imports")
93
0 commit comments