Filter out classpath entries that do not exist.

This commit is contained in:
modmuss50 2022-02-01 14:34:32 +00:00
parent 5dda747cee
commit 94ce38068c

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);
}