org.apache.avro.mojo
Class AbstractAvroMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by 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[] 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
 
Constructor Summary
AbstractAvroMojo()
           
 
Method Summary
protected abstract  void doCompile(String filename, File sourceDirectory, File outputDirectory)
           
 void execute()
           
protected abstract  String[] getIncludes()
           
protected abstract  String[] getTestIncludes()
           
 
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
 

Field Detail

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.

Constructor Detail

AbstractAvroMojo

public AbstractAvroMojo()
Method Detail

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 © 2011 The Apache Software Foundation. All Rights Reserved.