eu.lindenbaum.maven.mojo.app
Class ShowBuildInfo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
eu.lindenbaum.maven.ErlangMojo
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:
- source folder for main erlang sources
- source folder for unit-test erlang sources
- include directories that may contain erlang header files
- code path directories including those of dependend projects in the target
directory of the maven build
The output consists of one line per item. Each item consists of two elements:
InfoType ": " InfoValue
where InfoType
is one of:
src_dir
test_src_dir
include_dir
code_path
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"
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 |
ShowBuildInfo
public ShowBuildInfo()
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 loggingp
- 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.