Class ProtoMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.fusesource.hawtbuf.proto.compiler.ProtoMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
public class ProtoMojo extends org.apache.maven.plugin.AbstractMojo
A Maven Mojo so that the Proto compiler can be used with maven.
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description ProtoMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
private void
processFiles(java.io.File[] mainFiles, java.io.File outputDir)
-
-
-
Field Detail
-
project
protected org.apache.maven.project.MavenProject project
The maven project.
-
mainSourceDirectory
private java.io.File mainSourceDirectory
The directory where the proto files (*.proto
) are located.
-
mainOutputDirectory
private java.io.File mainOutputDirectory
The directory where the output files will be located.
-
testSourceDirectory
private java.io.File testSourceDirectory
The directory where the proto files (*.proto
) are located.
-
testOutputDirectory
private java.io.File testOutputDirectory
The directory where the output files will be located.
-
type
private java.lang.String type
The type of generator to run.
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
processFiles
private void processFiles(java.io.File[] mainFiles, java.io.File outputDir) throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
-