mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-03-28 12:17:00 -05:00
Fix DecompilerOptions.getClasspath()
I was blind and looking for this on the fork options...
This commit is contained in:
@@ -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());
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user