eu.lindenbaum.maven
Class DialyzerMojo

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

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

This Mojo runs the erlang dialyzer tool on the project sources found in AbstractErlangMojo.srcMainErlang as well as the project includes in AbstractErlangMojo.srcMainInclude. This means dialyzer will run over the complete project code (excluding test modules).

The dialyzer can be skipped using the useDialyzer parameter in the projects pom. Additionally, the user can choose to run dialyzer also on the projects dependencies using the dialyzerWithDependencies pom parameter. This is disabled by default for the erlang-otp application packaging.

Author:
Tobias Schlager , Olle Törnström

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
DialyzerMojo()
           
 
Method Summary
protected  void dialyze(List<String> command)
          Starts a process evaluating a specific dialyzer command line.
 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

DialyzerMojo

public DialyzerMojo()
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

dialyze

protected void dialyze(List<String> command)
                throws org.apache.maven.plugin.MojoExecutionException,
                       org.apache.maven.plugin.MojoFailureException
Starts a process evaluating a specific dialyzer command line.

Parameters:
command - the command line to execute
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException


Copyright © 2010 Lindenbaum GmbH. All Rights Reserved.