Quantcast
Channel: Gradle Forums - Latest posts
Viewing all articles
Browse latest Browse all 19854

How can I delete a file from inside a task?

$
0
0

You can do as follows

task installerTask() {
    //.... your task logic goes here
    doLast {
        delete("${buildDir}/jpackageAppImage")
    }
}

Viewing all articles
Browse latest Browse all 19854

Trending Articles