Filter out classpath entries that do not exist.
This commit is contained in:
parent
5dda747cee
commit
94ce38068c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue