Filter out classpath entries that do not exist.

dev/0.11
modmuss50 2022-02-01 14:34:32 +00:00
parent 5dda747cee
commit 94ce38068c
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ public abstract class AbstractRunTask extends JavaExec {
setGroup(Constants.TaskGroup.FABRIC);
this.config = configProvider.apply(getProject());
setClasspath(config.sourceSet.getRuntimeClasspath().filter(new LibraryFilter()));
setClasspath(config.sourceSet.getRuntimeClasspath().filter(File::exists).filter(new LibraryFilter()));
args(config.programArgs);
getMainClass().set(config.mainClass);
}