public class ProtoMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
private java.io.File |
mainOutputDirectory
The directory where the output files will be located.
|
private java.io.File |
mainSourceDirectory
The directory where the proto files (
*.proto) are
located. |
protected org.apache.maven.project.MavenProject |
project
The maven project.
|
private java.io.File |
testOutputDirectory
The directory where the output files will be located.
|
private java.io.File |
testSourceDirectory
The directory where the proto files (
*.proto) are
located. |
private java.lang.String |
type
The type of generator to run.
|
| Constructor and Description |
|---|
ProtoMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
private void |
processFiles(java.io.File[] mainFiles,
java.io.File outputDir) |
protected org.apache.maven.project.MavenProject project
private java.io.File mainSourceDirectory
*.proto) are
located.private java.io.File mainOutputDirectory
private java.io.File testSourceDirectory
*.proto) are
located.private java.io.File testOutputDirectory
private java.lang.String type
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprivate void processFiles(java.io.File[] mainFiles,
java.io.File outputDir)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException