Fix DecompilerOptions.getClasspath()
I was blind and looking for this on the fork options...
This commit is contained in:
		
							parent
							
								
									d8f070cc27
								
							
						
					
					
						commit
						b69404ea03
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		|  | @ -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()); | ||||
| 		}); | ||||
| 	} | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue