eu.lindenbaum.maven
Class CompileMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by eu.lindenbaum.maven.CompileMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public final class CompileMojo
extends org.apache.maven.plugin.AbstractMojo

This Mojo compiles the projects erlang sources and SNMP files.

Author:
Olivier Sambourg, Tobias Schlager , Olle Törnström

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
CompileMojo()
           
 
Method Summary
protected  int compile(File inputDir, File outputDir, File includeDir, String inputSuffix, String outputSuffix, List<String> options)
          Compile files ending with a specific suffix.
 void execute()
           
 
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
 

Constructor Detail

CompileMojo

public CompileMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

compile

protected final int compile(File inputDir,
                            File outputDir,
                            File includeDir,
                            String inputSuffix,
                            String outputSuffix,
                            List<String> options)
                     throws org.apache.maven.plugin.MojoExecutionException,
                            org.apache.maven.plugin.MojoFailureException
Compile files ending with a specific suffix.

Parameters:
inputDir - path where sources reside
outputDir - path to output compiled files
includeDir - optional additional include directory, maybe null
inputSuffix - suffix of source files
outputSuffix - suffix of comiled artifacts
options - optional compiler options to be passed to the compiler, maybe null
Returns:
number of compiled files
Throws:
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException


Copyright © 2010 Lindenbaum GmbH. All Rights Reserved.