1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-27 08:38:13 -07:00

Validate classpath.

This commit is contained in:
Cedric Beust 2015-10-12 22:54:51 -07:00
parent c93caf5989
commit 281ae2071b
3 changed files with 13 additions and 1 deletions

View file

@ -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")
}
}
}
}