Skip to content

Commit cc1a775

Browse files
committed
Boot classpath does not work with --release
1 parent 27fd37b commit cc1a775

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/java/org/mcphackers/mcp/tasks/TaskRecompile.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,12 @@ protected Stage[] setStages() {
9090
if (targetVersion >= 0) {
9191
options.addAll(Arrays.asList("-target", Integer.toString(targetVersion)));
9292
}
93-
}
9493

95-
List<String> bootcp = new ArrayList<>();
96-
bootclasspath.forEach(p -> bootcp.add(p.toAbsolutePath().toString()));
97-
if (!bootclasspath.isEmpty()) {
98-
options.addAll(Arrays.asList("-bootclasspath", String.join(File.pathSeparator, bootcp)));
94+
List<String> bootcp = new ArrayList<>();
95+
bootclasspath.forEach(p -> bootcp.add(p.toAbsolutePath().toString()));
96+
if (!bootclasspath.isEmpty()) {
97+
options.addAll(Arrays.asList("-bootclasspath", String.join(File.pathSeparator, bootcp)));
98+
}
9999
}
100100

101101
options.addAll(Arrays.asList("-cp", String.join(File.pathSeparator, cp)));

0 commit comments

Comments
 (0)