com.likethesalad.placeholder.tasks.GatherRawStringsTask.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of string-reference Show documentation
Show all versions of string-reference Show documentation
This is a Gradle plugin for Android applications which resolves XML string references in other XML strings.
package com.likethesalad.placeholder.tasks
import com.likethesalad.placeholder.tasks.actions.GatherRawStringsAction
import org.gradle.api.DefaultTask
import org.gradle.api.tasks.InputFiles
import org.gradle.api.tasks.OutputFile
import org.gradle.api.tasks.TaskAction
import java.io.File
open class GatherRawStringsTask : DefaultTask() {
lateinit var gatherRawStringsAction: GatherRawStringsAction
@InputFiles
fun getInputFiles(): List = gatherRawStringsAction.getInputFiles()
@OutputFile
fun getOutputFile(): File = gatherRawStringsAction.getOutputFile()
@TaskAction
fun gatherStrings() = gatherRawStringsAction.gatherStrings()
}