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 can be started either directly or as a daemon using the bin/start script. This script has to be provided with the correct root directory of the target system. Custom arguments like node name or cookie can be set by giving them as additional command line arguments to bin/start.

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

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 © 2012 Lindenbaum GmbH. All Rights Reserved.