public abstract class AbstractAvroMojo
extends org.apache.maven.plugin.AbstractMojo
Modifier and Type | Field and Description |
---|---|
protected boolean |
createSetters
Determines whether or not to create setters for the fields of the record.
|
protected String[] |
excludes
A set of Ant-like exclusion patterns used to prevent certain files from
being processed.
|
protected String[] |
imports
A list of files or directories that should be compiled first thus making
them importable by subsequently compiled schemas.
|
protected org.apache.maven.project.MavenProject |
project
The current Maven project.
|
protected String |
stringType
The Java type to use for Avro strings.
|
protected String |
templateDirectory
The directory (within the java classpath) that contains the velocity templates
to use for code generation.
|
protected String[] |
testExcludes
A set of Ant-like exclusion patterns used to prevent certain files from
being processed.
|
Constructor and Description |
---|
AbstractAvroMojo() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
doCompile(String filename,
File sourceDirectory,
File outputDirectory) |
void |
execute() |
protected SpecificCompiler.FieldVisibility |
getFieldVisibility() |
protected abstract String[] |
getIncludes() |
protected abstract String[] |
getTestIncludes() |
protected String[] imports
protected String[] excludes
protected String[] testExcludes
protected String stringType
protected String templateDirectory
protected boolean createSetters
protected org.apache.maven.project.MavenProject project
public void execute() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected SpecificCompiler.FieldVisibility getFieldVisibility()
protected abstract void doCompile(String filename, File sourceDirectory, File outputDirectory) throws IOException
IOException
protected abstract String[] getIncludes()
protected abstract String[] getTestIncludes()
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.