mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-27 08:38:13 -07:00
R.java compilation.
This commit is contained in:
parent
07da07bb6d
commit
ea9d574f39
5 changed files with 90 additions and 44 deletions
|
@ -28,6 +28,15 @@ abstract class JvmCompilerPlugin @Inject constructor(
|
|||
const val SOURCE_SET_MAIN = "main"
|
||||
const val SOURCE_SET_TEST = "test"
|
||||
const val DOCS_DIRECTORY = "docs/javadoc"
|
||||
|
||||
fun validateClasspath(cp: List<String>) {
|
||||
cp.forEach {
|
||||
if (! File(it).exists()) {
|
||||
throw KobaltException("Couldn't find $it")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -110,14 +119,6 @@ abstract 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