public class ToolExecutionEnvironment extends AbstractLogAwareFacet
log
Constructor and Description |
---|
ToolExecutionEnvironment(org.apache.maven.plugin.logging.Log mavenLog,
ThreadContextClassLoaderBuilder builder,
LoggingHandlerEnvironmentFacet loggingHandlerFacet,
LocaleFacet localeFacet)
Creates a new ToolExecutionEnvironment object wrapping the supplied Maven Log.
|
Modifier and Type | Method and Description |
---|---|
void |
add(EnvironmentFacet facet)
Adds the supplied EnvironmentFacet to this ToolExecutionEnvironment.
|
String |
getClassPathAsArgument()
Delegate method retrieving the classpath as argument from the underlying ThreadContextClassLoaderHolder.
|
void |
restore()
Restores the original Environment, implying that the change performed in
setup()
method are restored to the state before the setup method was called. |
void |
setup()
Sets up this Environment, inferring temporary changes to environment variables or conditions.
|
public ToolExecutionEnvironment(org.apache.maven.plugin.logging.Log mavenLog, ThreadContextClassLoaderBuilder builder, LoggingHandlerEnvironmentFacet loggingHandlerFacet, LocaleFacet localeFacet)
mavenLog
- The active Maven Log.builder
- The ThreadContextClassLoaderBuilder used to set up a ThreadContext ClassLoader for
this tool execution environment.localeFacet
- An optional LocaleFacet to alter the Locale for the tool execution environment. If
the localeFacet is null
, the locale will not be changed.loggingHandlerFacet
- The EnvironmentFacet for replacing Handlers from Java Util Logging with a Maven Log.public void add(EnvironmentFacet facet)
facet
- the non-null EnvironmentFacet to add to this ToolExecutionEnvironment.public String getClassPathAsArgument()
ThreadContextClassLoaderHolder.getClassPathAsArgument()
public final void setup()
restore()
method.public final void restore()
setup()
method are restored to the state before the setup method was called.Copyright © 2005–2015 MojoHaus. All rights reserved.