plugin-base
1.9.0
jvm
plugin-base
/
io.spine.tools.gradle
/
CodeGenerationAction
Code
Generation
Action
public
abstract
class
CodeGenerationAction
Abstract base for code generation actions.
Members
Constructors
Code
Generation
Action
Link copied to clipboard
protected
void
CodeGenerationAction
(
Project project
,
Supplier
<
FileSet
>
files
,
Supplier
<
String
>
targetDirPath
,
Supplier
<
String
>
protoSrcDirPath
)
Creates a new instance.
Functions
get
Indent
Link copied to clipboard
protected
abstract
Indent
getIndent
(
Project project
)
Obtains indentation configuration from the project.
indent
Link copied to clipboard
protected
final
Indent
indent
(
)
Obtains indentation to be used for code generation.
project
Link copied to clipboard
protected
final
Project
project
(
)
Obtains the project for which the code is generated.
proto
Files
Link copied to clipboard
protected
final
Supplier
<
FileSet
>
protoFiles
(
)
Obtains the Protobuf files to be processed.
proto
Src
Dir
Link copied to clipboard
protected
final
File
protoSrcDir
(
)
Obtains directory with source proto files.
target
Dir
Link copied to clipboard
protected
final
File
targetDir
(
)
Obtains directory under which the generated source will be placed.