Skip to content

Commit aa9b8c1

Browse files
committed
Fix an issue where on windows Paths where not passed properly when they were interpolated into arguments.
1 parent 54416f1 commit aa9b8c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • dsl/common/src/main/groovy/net/neoforged/gradle/dsl/common/tasks

dsl/common/src/main/groovy/net/neoforged/gradle/dsl/common/tasks/Execute.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ interface Execute extends WithWorkspace, WithOutput, WithJavaVersion, ExecuteSpe
3636
Provider<String> argument = runtimeArguments.get(argName)
3737
if (argument != null) {
3838
try {
39-
return Lists.newArrayList(matcher.replaceAll(argument.get()))
39+
return Lists.newArrayList(matcher.replaceAll(argument.get().replace("\\", "\\\\")))
4040
} catch (Exception e) {
4141
throw new RuntimeException("Failed to get runtime argument " + argName, e)
4242
}

0 commit comments

Comments
 (0)