Class GenerateSimpleResourceTask

java.lang.Object
io.micronaut.sourcegen.example.plugin.GenerateSimpleResourceTask

@PluginTask public final class GenerateSimpleResourceTask extends Object
This is a configuration for another plugin task run. In this case it is a class instead of a record. The properties are parameters and the single method defines the task execution. The plugin generates a simple record.
  • Constructor Details

    • GenerateSimpleResourceTask

      public GenerateSimpleResourceTask()
  • Method Details

    • generateSimpleResource

      @PluginTaskExecutable public void generateSimpleResource()
      Generate a simple record in the supplied package and with the specified version. This javadoc will be copied to the respected plugin implementations.
    • setFileName

      public void setFileName(String fileName)
    • setContent

      public void setContent(String content)
    • setOutputFolder

      public void setOutputFolder(File outputFolder)
    • setEnding

      public void setEnding(GenerateSimpleResourceTask.Ending ending)
    • setRepeat

      public void setRepeat(GenerateSimpleResourceTask.Repeat repeat)