mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-27 08:38:13 -07:00
Validate classpath.
This commit is contained in:
parent
c93caf5989
commit
281ae2071b
3 changed files with 13 additions and 1 deletions
|
@ -110,6 +110,14 @@ abstract public class JvmCompilerPlugin @Inject constructor(
|
|||
lp(project, "No resources to copy for ${sourceSet}")
|
||||
}
|
||||
}
|
||||
|
||||
protected fun validateClasspath(cp: List<String>) {
|
||||
cp.forEach {
|
||||
if (! File(it).exists()) {
|
||||
throw KobaltException("Couldn't find $it")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue