File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
paperweight-core/src/main/kotlin/io/papermc/paperweight/core/tasks Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -244,14 +244,19 @@ abstract class SetupMinecraftSources : JavaLauncherTask() {
244244
245245 val isWindows = System .getProperty(" os.name" ).lowercase().contains(" win" )
246246 oldPaperLog.outputStream().use { logOut ->
247- val processBuilder = ProcessBuilder (
248- " ./gradlew" + if (isWindows) " .bat" else " " ,
247+ val args = arrayOf(
249248 " applyPatches" ,
250249 " --console" ,
251250 " plain" ,
252251 " --stacktrace" ,
253252 " -Dpaperweight.debug=true"
254253 )
254+ val command = if (isWindows) {
255+ listOf (" cmd.exe" , " /C" , " gradlew.bat " + args.joinToString(" " ))
256+ } else {
257+ listOf (" ./gradlew" , * args)
258+ }
259+ val processBuilder = ProcessBuilder (command)
255260 processBuilder.directory(oldPaperDir)
256261 val process = processBuilder.start()
257262
You can’t perform that action at this time.
0 commit comments