All Downloads are FREE. Search and download functionalities are using the official Maven repository.

godot.gradle.tasks.deleteBuildLockTask.kt Maven / Gradle / Ivy

package godot.gradle.tasks

import godot.gradle.projectExt.getBuildLockDir
import org.gradle.api.Project
import org.gradle.api.Task
import org.gradle.api.tasks.TaskProvider
import java.io.File

fun Project.deleteBuildLockTask(): TaskProvider {
    return tasks.register("deleteBuildLock") {
        with(it) {
            group = "godot-kotlin-jvm-internal"
            description =
                "Internal task! Deletes the build lock file which prevents the bootstrap to reload user classes while a build/clean is still in progress"

            doLast {
                val buildLockDir = getBuildLockDir()
                File(buildLockDir, "buildLock.lock").delete()
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy