Fix DecompilerOptions.getClasspath()

I was blind and looking for this on the fork options...
dev/0.11
modmuss50 2022-01-22 23:29:51 +00:00
parent d8f070cc27
commit b69404ea03
1 changed files with 4 additions and 2 deletions

View File

@ -160,15 +160,17 @@ public abstract class GenerateSourcesTask extends AbstractLoomTask {
private WorkQueue createWorkQueue(String jvmMarkerValue) {
if (!useProcessIsolation()) {
return getWorkerExecutor().noIsolation();
return getWorkerExecutor().classLoaderIsolation(spec -> {
spec.getClasspath().from(decompilerOptions.getClasspath());
});
}
return getWorkerExecutor().processIsolation(spec -> {
spec.forkOptions(forkOptions -> {
forkOptions.setMaxHeapSize("%dm".formatted(decompilerOptions.getMemory().get()));
forkOptions.systemProperty(WorkerDaemonClientsManagerHelper.MARKER_PROP, jvmMarkerValue);
forkOptions.bootstrapClasspath(decompilerOptions.getClasspath());
});
spec.getClasspath().from(decompilerOptions.getClasspath());
});
}