eu.lindenbaum.maven
Class CompileMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
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
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 |
CompileMojo
public CompileMojo()
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 resideoutputDir
- path to output compiled filesincludeDir
- optional additional include directory, maybe null
inputSuffix
- suffix of source filesoutputSuffix
- suffix of comiled artifactsoptions
- 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.