eu.lindenbaum.maven.mojo.rel
Class ResourceGenerator
java.lang.Object
org.apache.maven.plugin.AbstractMojo
eu.lindenbaum.maven.ErlangMojo
eu.lindenbaum.maven.mojo.rel.ResourceGenerator
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public final class ResourceGenerator
- extends ErlangMojo
Copies all resource files into that target directory structure. Copied
resources contain:
- release file (*.rel)
- release upgrade file (relup)
- boot scripts, etc. as returned from
systools:make_script
The build of script files can be customized by passing user options through
the scriptOptions
parameter. In order to manage the project over the
project pom there is the possibility to let the Mojo
automatically
fill in values from the project pom into the .rel
file. This can be
done by using one of the supported variables into the release file. Below is
a list of supported variables and their substitutions:
${ARTIFACT}
: the projects artifact id (atom)
${VERSION}
: the projects version (string)
${ERTS}
: expands to the tuple
{erts, "ERTS_VERSION"}
with the version of erts available on the
backend node (tuple)
${APPLICATIONS}
: a comma separated listing with all
transitive dependency applications of the project (tuple listing)
${AUTODEPS}
: an erlang list with all transitive dependency
applications of the project (list)
${APPLICATION_NAME}
: will be replaced by the tuple
{'APPLICATION_NAME', "APPLICATION_VERSION"}
with the version
available on the backend node (tuple)
- Author:
- Tobias Schlager , Gregory Haskins
- Goal:
- generate-release-resources
- Phase:
- generate-resources
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 |
ResourceGenerator
public ResourceGenerator()
execute
protected void execute(org.apache.maven.plugin.logging.Log log,
Properties p)
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
- 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
org.apache.maven.plugin.MojoFailureException
- See Also:
Mojo.execute()
Copyright © 2011 Lindenbaum GmbH. All Rights Reserved.