org.openbakery.appledoc.AppledocCleanTask.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xcode-plugin Show documentation
Show all versions of xcode-plugin Show documentation
XCode-Plugin is a plugin to allow custom XCode projects to build as generated by CMake
package org.openbakery.appledoc
import org.gradle.api.DefaultTask
import org.gradle.api.tasks.TaskAction
class AppledocCleanTask extends DefaultTask {
AppledocCleanTask() {
super()
this.description = "Cleans up the generated files from appledoc"
}
@TaskAction
def clean() {
def documentationDirectory = project.getFileResolver().withBaseDir(project.getBuildDir()).resolve("documentation")
project.file(documentationDirectory).deleteDir()
}
}