Class ModelSource

java.lang.Object
de.protos.etrice.gradle.ModelSource
All Implemented Interfaces:
Named

public class ModelSource extends Object implements Named
Group of model files and generator options.
  • Constructor Details

  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface Named
    • getClasspath

      public ConfigurableFileCollection getClasspath()
      Returns:
      the classpath of the generator
    • getModule

      public Property<String> getModule()
      Returns:
      the symbolic generator name
    • getSource

      public SourceDirectorySet getSource()
      Returns:
      the model directories
    • getGenDir

      public DirectoryProperty getGenDir()
      Returns:
      the destination for generated files
    • getModelpath

      public ConfigurableFileCollection getModelpath()
      Returns:
      the modelpath that is passed to the generator
    • getOptions

      public MapProperty<String,Object> getOptions()
      Returns:
      the options that are passed to the generator
    • option

      public void option(String key, Object value)
      Sets a generator option.
      Parameters:
      key - the name of the option
      value - the new value for the option
    • option

      public void option(String key)
      Sets a boolean generator option to true.
      Parameters:
      key - the name of the option
    • getGenerateTask

      public TaskProvider<GenerateTask> getGenerateTask()
      Returns:
      a provider for the associated generate task.