Skip to content
This repository has been archived by the owner on Jan 8, 2019. It is now read-only.

DevCharly/kobalt-ant

Repository files navigation

Ant plug-in for Kobalt

Build Status Download

Supports definition of per-project Kobalt tasks (similar to Ant targets) and execution of Ant tasks.

The primary goal is support migration of Ant builds to Kobalt. You can use built-it Ant tasks in Kobalt. Or define functions to use your custom Ant tasks.

val bs = buildScript {
    plugins("com.devcharly:kobalt-ant:")
}

val project = project {
    antTask("hello") {
        echo("Hello World")
    }

    antTask("copy-dir1-to-dir2") {
        mkdir("dir2")
        copy(todir = "dir2") {
            fileset(dir = "dir1")
            include(name = "**/*.txt")
        }
    }
}

Kobalt's incremental tasks are supported:

val bs = buildScript {
    plugins("com.devcharly:kobalt-ant:")
}

val project = project {
    antTask("copy-dir1-to-dir2",
            inputFiles = arrayOf("dir1"),
            outputFiles = arrayOf("dir2")
    ) {
        mkdir("dir2")
        copy(todir = "dir2") {
            fileset(dir = "dir1")
            include(name = "**/*.txt")
        }
    }
}

Examples

Supported Ant features

See Kotlin Ant DSL

Requirements

Kobalt 1.0.100 or later

About

Ant plug-in for Kobalt build system

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages