eu.lindenbaum.maven.mojo.rel
Class TargetSystemPackager

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

public final class TargetSystemPackager
extends ErlangMojo

This Mojo creates a target system release package .tar.gz according to the official documentation. If there's no sys.config file found a default empty one will be included. The resulting target system depends on a correct root directory configuration. The plug-in will change the scripts to check for the ${ ARTIFACTID_TOP} (upper case) environment variable. This variable must be set by the user to guarantee a proper system behaviour. Example: If artifact id is release the environment variable ${RELEASE_TOP} must be set.

Note: The resulting target system is highly system dependent since it contains the erlang emulator (C code) from the backend nodes erlang installation.

Note: This mojo is currently working but still in experimental stage.

Author:
Tobias Schlager
See Also:
http://www.erlang.org/doc/system_principles/create_target.html
Goal:
target-system
Execute:
phase="package" lifecycle="targetSystem"

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
TargetSystemPackager()
           
 
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.
 
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

TargetSystemPackager

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


Copyright © 2011 Lindenbaum GmbH. All Rights Reserved.