eu.lindenbaum.maven.mojo.app
Class ShowBuildInfo

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

public class ShowBuildInfo
extends ErlangMojo

This Mojo outputs the build information ascertained by maven to compile Erlang sources. The output is supposed to enable other tools (like emacs) to reconstruct compilation commands.

The output is logged at info level and contains:

The output consists of one line per item. Each item consists of two elements: InfoType ": " InfoValue where InfoType is one of: InfoValue is a file path. Both elements a seperated by the string ": " (colon, space).

Since:
2.0.0
Author:
Sven Heyll , Tobias Schlager
Goal:
show-build-info
Execute:
phase="compile"

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
ShowBuildInfo()
           
 
Method Summary
protected  void execute(org.apache.maven.plugin.logging.Log log, Properties p)
          Will be invoked when ErlangMojo.execute() gets invoked on the base class.
 void logKeyValue(org.apache.maven.plugin.logging.Log log, String key, File f)
           
 
Methods inherited from class eu.lindenbaum.maven.ErlangMojo
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

ShowBuildInfo

public ShowBuildInfo()
Method Detail

execute

protected void execute(org.apache.maven.plugin.logging.Log log,
                       Properties p)
                throws org.apache.maven.plugin.MojoExecutionException
Description copied from class: ErlangMojo
Will be invoked when ErlangMojo.execute() gets invoked on the base class.

Specified by:
execute in class ErlangMojo
Parameters:
log - logger to be used for output logging
p - to be passed by the base class.
Throws:
org.apache.maven.plugin.MojoExecutionException
See Also:
Mojo.execute()

logKeyValue

public void logKeyValue(org.apache.maven.plugin.logging.Log log,
                        String key,
                        File f)


Copyright © 2012 Lindenbaum GmbH. All Rights Reserved.