Changed plugin name from kobalt-exec to Exec.
This commit is contained in:
parent
9b72faa565
commit
a6dfa2ba07
7 changed files with 35 additions and 69 deletions
|
@ -39,12 +39,6 @@ import com.beust.kobalt.misc.log
|
|||
|
||||
class ExecPlugin : BasePlugin(), ITaskContributor {
|
||||
|
||||
/*
|
||||
fun main(argv: Array<String>) {
|
||||
com.beust.kobalt.main(argv)
|
||||
}
|
||||
*/
|
||||
|
||||
// ITaskContributor
|
||||
override fun tasksFor(project: Project, context: KobaltContext): List<DynamicTask> {
|
||||
return emptyList()
|
||||
|
@ -52,18 +46,18 @@ class ExecPlugin : BasePlugin(), ITaskContributor {
|
|||
|
||||
|
||||
companion object {
|
||||
const val NAME: String = "kobalt-exec"
|
||||
const val NAME: String = "Exec"
|
||||
}
|
||||
|
||||
override val name = NAME
|
||||
|
||||
@Task(name = "exec", description = "Executes a command line process.")
|
||||
@Task(name = "exec", description = "Execute a command line process.")
|
||||
fun taskExec(project: Project): TaskResult {
|
||||
return executeCommands(project)
|
||||
}
|
||||
|
||||
private fun executeCommands(project: Project): TaskResult {
|
||||
var success = false
|
||||
var success = true
|
||||
val config = configs[project.name]
|
||||
|
||||
if (config != null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue