org.apache.avro.mojo
Class AbstractAvroMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.avro.mojo.AbstractAvroMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
- IDLProtocolMojo, ProtocolMojo, SchemaMojo
public abstract class AbstractAvroMojo
- extends org.apache.maven.plugin.AbstractMojo
Base for Avro Compiler Mojos.
Field Summary |
protected String[] |
excludes
A set of Ant-like exclusion patterns used to prevent certain files from
being processed. |
protected String |
stringType
The Java type to use for Avro strings. |
protected String[] |
testExcludes
A set of Ant-like exclusion patterns used to prevent certain files from
being processed. |
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Methods inherited from class org.apache.maven.plugin.AbstractMojo |
getLog, getPluginContext, setLog, setPluginContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
excludes
protected String[] excludes
- A set of Ant-like exclusion patterns used to prevent certain files from
being processed. By default, this set is empty such that no files are
excluded.
testExcludes
protected String[] testExcludes
- A set of Ant-like exclusion patterns used to prevent certain files from
being processed. By default, this set is empty such that no files are
excluded.
stringType
protected String stringType
- The Java type to use for Avro strings. May be one of CharSequence,
String or Utf8. CharSequence by default.
AbstractAvroMojo
public AbstractAvroMojo()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
doCompile
protected abstract void doCompile(String filename,
File sourceDirectory,
File outputDirectory)
throws IOException
- Throws:
IOException
getIncludes
protected abstract String[] getIncludes()
getTestIncludes
protected abstract String[] getTestIncludes()
Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.