public final class ThriftCompileMojo
extends org.apache.maven.plugin.AbstractMojo
thrift compiler for generating java sources
from thrift definitions. It also searches dependency artifacts for
thrift files and includes them in the thriftPath so that they can be
referenced. Finally, it adds the thrift files to the project as resources so
that they are included in the final artifact.| Modifier and Type | Field and Description |
|---|---|
protected org.apache.maven.project.MavenProject |
project
The current Maven project.
|
protected org.apache.maven.project.MavenProjectHelper |
projectHelper
A helper used to add resources to the project.
|
| Constructor and Description |
|---|
ThriftCompileMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
attachFiles() |
void |
execute()
Executes the mojo.
|
protected List<org.apache.maven.artifact.Artifact> |
getDependencyArtifacts() |
protected File |
getOutputDirectory() |
protected File |
getThriftSourceRoot() |
static String |
toHexString(byte[] byteArray) |
protected org.apache.maven.project.MavenProject project
protected org.apache.maven.project.MavenProjectHelper projectHelper
protected List<org.apache.maven.artifact.Artifact> getDependencyArtifacts()
protected File getOutputDirectory()
protected File getThriftSourceRoot()
protected void attachFiles()
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionpublic static String toHexString(byte[] byteArray)
Copyright © 2012–2013 Facebook, Inc.. All rights reserved.