api / org.gradle.plugins.ide.api / GeneratorTask

GeneratorTask

open class GeneratorTask<T : Any> : ConventionTask

A GeneratorTask generates a configuration file based on a domain object of type T. When executed the task:

Parameters

- The domain object for the configuration file.

Constructors

<init>

GeneratorTask()

Functions

getInputFile

open fun getInputFile(): File

The input file to load the initial configuration from. Defaults to the output file. If the specified input file does not exist, this task uses some default initial configuration.

getOutputFile

open fun getOutputFile(): File

The output file to write the final configuration to.

setInputFile

open fun setInputFile(inputFile: File): Unit

Sets the input file to load the initial configuration from.

setOutputFile

open fun setOutputFile(outputFile: File): Unit

Sets the output file to write the final configuration to.

Inheritors

GenerateSolutionFileTask

open class GenerateSolutionFileTask : GeneratorTask<VisualStudioSolutionFile>

Task for generating a solution file.

PropertiesGeneratorTask

abstract class PropertiesGeneratorTask<T : PersistableConfigurationObject> : GeneratorTask<T>

A convenience superclass for those tasks which generate Properties configuration files from a domain object of type T.

PropertyListGeneratorTask

abstract class PropertyListGeneratorTask<T : PersistableConfigurationObject> : GeneratorTask<T>

A convenience superclass for those tasks which generate Property List configuration files from a domain object of type T.

XmlGeneratorTask

abstract class XmlGeneratorTask<T : PersistableConfigurationObject> : GeneratorTask<T>

A convenience superclass for those tasks which generate XML configuration files from a domain object of type T.