public abstract class AbstractLogMojo
extends org.apache.maven.plugin.AbstractMojo
Constructor and Description |
---|
AbstractLogMojo() |
Modifier and Type | Method and Description |
---|---|
protected void |
append(Object value)
Appends the string representation of the specified object to the log file.
|
protected void |
reset()
Clears the contents of the log file by creating a new empty log file.
|
getLog, getPluginContext, setLog, setPluginContext
protected void append(Object value) throws org.apache.maven.plugin.MojoExecutionException
null
has no other
effect than touching the file. For each value different from null
, a line terminator will be
appended to the value's string representation.value
- The object to log, may be null
.org.apache.maven.plugin.MojoExecutionException
- If the log file could not be updated.protected void reset() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
- If the log file could not be reset.Copyright © 2008–2022 The Apache Software Foundation. All rights reserved.