eu.lindenbaum.maven.mojo.app
Class TestInitializer
java.lang.Object
org.apache.maven.plugin.AbstractMojo
eu.lindenbaum.maven.ErlangMojo
eu.lindenbaum.maven.mojo.app.TestInitializer
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class TestInitializer
- extends ErlangMojo
Mojo
that starts the test erlang node used as a backend for rpcs made
by the plugin. The node will only be started if it is not already running.
The node will be shutdown when the executing JVM exits. This is done by a
Runtime.addShutdownHook(Thread)
which will only be added once
each JVM execution.
- Author:
- Tobias Schlager
- Goal:
- test-initialize
- Phase:
- generate-test-sources
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 |
TestInitializer
public TestInitializer()
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()
Copyright © 2012 Lindenbaum GmbH. All Rights Reserved.