public abstract class AbstractHelpMojo
extends org.apache.maven.plugin.AbstractMojo
Modifier and Type | Field and Description |
---|---|
protected static int |
LINE_LENGTH
The maximum length of a display line.
|
protected File |
output
Optional parameter to write the output of this help in a given file, instead of writing to the console.
|
Constructor and Description |
---|
AbstractHelpMojo() |
Modifier and Type | Method and Description |
---|---|
protected static void |
writeFile(File output,
String content)
Utility method to write a content in a given file.
|
protected static void |
writeFile(File output,
StringBuilder content)
Utility method to write a content in a given file.
|
getLog, getPluginContext, setLog, setPluginContext
protected static final int LINE_LENGTH
@Parameter(property="output") protected File output
protected static void writeFile(File output, StringBuilder content) throws IOException
output
- is the wanted output file.content
- contains the content to be written to the file.IOException
- if anywriteFile(File, String)
protected static void writeFile(File output, String content) throws IOException
output
- is the wanted output file.content
- contains the content to be written to the file.IOException
- if anyCopyright © 2001–2014 The Apache Software Foundation. All rights reserved.