Filter out classpath entries that do not exist.
parent
5dda747cee
commit
94ce38068c
|
@ -45,7 +45,7 @@ public abstract class AbstractRunTask extends JavaExec {
|
||||||
setGroup(Constants.TaskGroup.FABRIC);
|
setGroup(Constants.TaskGroup.FABRIC);
|
||||||
this.config = configProvider.apply(getProject());
|
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);
|
args(config.programArgs);
|
||||||
getMainClass().set(config.mainClass);
|
getMainClass().set(config.mainClass);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue