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

com.likethesalad.placeholder.tasks.ResolvePlaceholdersTask.kt Maven / Gradle / Ivy

Go to download

This is a Gradle plugin for Android applications which resolves XML string references in other XML strings.

There is a newer version: 1.3.0
Show newest version
package com.likethesalad.placeholder.tasks

import com.likethesalad.placeholder.tasks.actions.ResolvePlaceholdersAction
import org.gradle.api.DefaultTask
import org.gradle.api.tasks.InputFiles
import org.gradle.api.tasks.OutputFiles
import org.gradle.api.tasks.TaskAction
import java.io.File

open class ResolvePlaceholdersTask : DefaultTask() {

    lateinit var resolvePlaceholdersAction: ResolvePlaceholdersAction

    @InputFiles
    fun getTemplatesFiles(): List = resolvePlaceholdersAction.getTemplatesFiles()

    @OutputFiles
    fun getResolvedFiles(): List = resolvePlaceholdersAction.getResolvedFiles()

    @TaskAction
    fun resolve() = resolvePlaceholdersAction.resolve()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy