Class GenerateSimpleResourceTask
java.lang.Object
io.micronaut.sourcegen.example.plugin.GenerateSimpleResourceTask
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
An enum representing how the file ends.static final record
Configuration for repeating the file. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Generate a simple record in the supplied package and with the specified version.void
setContent
(String content) void
void
setFileName
(String fileName) void
setOutputFolder
(File outputFolder) void
-
Constructor Details
-
GenerateSimpleResourceTask
public GenerateSimpleResourceTask()
-
-
Method Details
-
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
-
setContent
-
setOutputFolder
-
setEnding
-
setRepeat
-