cbeust-fix

This commit is contained in:
Erik C. Thauvin 2016-07-11 11:25:20 -07:00
commit 2ad8962324
2 changed files with 7 additions and 3 deletions

View file

@ -4,6 +4,8 @@ import com.beust.kobalt.plugin.application.*
import com.beust.kobalt.plugin.java.*
import net.thauvin.erik.kobalt.plugin.exec.*
val pl = plugins(file("../kobaltBuild/libs/kobalt-exec-0.1.jar"))
val p = project {
name = "example"
@ -20,7 +22,6 @@ val p = project {
}
dependencies {
compile(file("../kobaltBuild/libs/kobalt-exec-0.1.jar"))
}
dependenciesTest {
@ -34,4 +35,8 @@ val p = project {
application {
mainClass = "com.example.Main"
}
exec {
commandLine(args = arrayOf("ls"))
}
}

View file

@ -38,7 +38,6 @@ import com.beust.kobalt.api.annotation.Task
import com.beust.kobalt.misc.log
class ExecPlugin : BasePlugin(), ITaskContributor {
// ITaskContributor
override fun tasksFor(project: Project, context: KobaltContext): List<DynamicTask> {
return emptyList()
@ -70,7 +69,7 @@ class ExecPlugin : BasePlugin(), ITaskContributor {
}
}
log(2, "Executing: '" + { it.args.joinToString { " " } } + "' in '$dir'")
log(2, "Executing: '" + it.args.joinToString(" ") + "' in '$dir'")
success = true
}
}