mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Warning.
This commit is contained in:
parent
fcfa0653a2
commit
639c0249a4
3 changed files with 4 additions and 3 deletions
|
@ -24,7 +24,7 @@ abstract class BuildGenerator : IInitContributor<File> {
|
|||
}
|
||||
}
|
||||
|
||||
override fun affinity(dir: File) = KFiles.findRecursively(dir, fileMatch).size
|
||||
override fun affinity(arg: File) = KFiles.findRecursively(arg, fileMatch).size
|
||||
|
||||
private fun importPom(pomFile: File, mainDeps: ArrayList<Pom.Dependency>, testDeps: ArrayList<Pom.Dependency>,
|
||||
map: HashMap<String, Any?>) {
|
||||
|
|
|
@ -17,7 +17,7 @@ abstract class GenericTestRunner : ITestRunnerContributor {
|
|||
abstract fun args(project: Project, classpath: List<IClasspathDependency>) : List<String>
|
||||
|
||||
override fun run(project: Project, context: KobaltContext, classpath: List<IClasspathDependency>)
|
||||
= TaskResult(runTests(project, context, classpath))
|
||||
= TaskResult(runTests(project, classpath))
|
||||
|
||||
|
||||
protected fun findTestClasses(project: Project, classpath: List<IClasspathDependency>): List<String> {
|
||||
|
@ -46,7 +46,7 @@ abstract class GenericTestRunner : ITestRunnerContributor {
|
|||
/**
|
||||
* @return true if all the tests passed
|
||||
*/
|
||||
fun runTests(project: Project, context: KobaltContext, classpath: List<IClasspathDependency>) : Boolean {
|
||||
fun runTests(project: Project, classpath: List<IClasspathDependency>) : Boolean {
|
||||
val jvm = JavaInfo.create(File(SystemProperties.javaBase))
|
||||
val java = jvm.javaExecutable
|
||||
val args = args(project, classpath)
|
||||
|
|
|
@ -113,6 +113,7 @@ abstract class JvmCompilerPlugin @Inject constructor(
|
|||
protected fun compilerArgsFor(project: Project) : List<String> {
|
||||
val result = project.projectProperties.get(COMPILER_ARGS)
|
||||
if (result != null) {
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
return result as List<String>
|
||||
} else {
|
||||
return emptyList()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue