1 import org.gradle.api.file.DirectoryProperty
2 import org.gradle.api.tasks.AbstractExecTask
3 import org.gradle.api.tasks.Input
4 import org.gradle.api.tasks.OutputDirectory
5 import javax.inject.Inject
6 
7 abstract class GenerateCompatAnnotationSrcDir
8 @Inject constructor() : AbstractExecTask<GenerateCompatAnnotationSrcDir>(GenerateCompatAnnotationSrcDir::class.java) {
9 
10     @get:OutputDirectory
11     abstract val outputFolder: DirectoryProperty
12 
13     @get:Input
14     abstract var symlinkTarget: String
15 
16     @get:Input
17     abstract var linkName: String
18 
execnull19     override fun exec() {
20         commandLine("ln", "-sf", symlinkTarget, outputFolder.get())
21         CommandLineUtils.debugPrintCommandLineArgs(this)
22         super.exec()
23     }
24 }
25