Package de.protos.etrice.gradle
Class ModelSource
java.lang.Object
de.protos.etrice.gradle.ModelSource
- All Implemented Interfaces:
Named
Group of model files and generator options.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gradle.api.Named
Named.Namer
-
Constructor Summary
ConstructorsConstructorDescriptionModelSource
(String name, SourceDirectorySet source, TaskProvider<GenerateTask> generateTask) -
Method Summary
Modifier and TypeMethodDescriptiongetName()
void
Sets a boolean generator option totrue
.void
Sets a generator option.
-
Constructor Details
-
ModelSource
@Inject public ModelSource(String name, SourceDirectorySet source, TaskProvider<GenerateTask> generateTask)
-
-
Method Details
-
getName
-
getClasspath
- Returns:
- the classpath of the generator
-
getModule
- Returns:
- the symbolic generator name
-
getSource
- Returns:
- the model directories
-
getGenDir
- Returns:
- the destination for generated files
-
getModelpath
- Returns:
- the modelpath that is passed to the generator
-
getOptions
- Returns:
- the options that are passed to the generator
-
option
Sets a generator option.- Parameters:
key
- the name of the optionvalue
- the new value for the option
-
option
Sets a boolean generator option totrue
.- Parameters:
key
- the name of the option
-
getGenerateTask
- Returns:
- a provider for the associated generate task.
-