org.apache.maven.plugins.help
Class AbstractHelpMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.help.AbstractHelpMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
- AbstractEffectiveMojo, ActiveProfilesMojo, AllProfilesMojo, DescribeMojo, ExpressionsMojo, SystemMojo
public abstract class AbstractHelpMojo
- extends org.apache.maven.plugin.AbstractMojo
Base class with some Help Mojo functionalities.
- Since:
- 2.1
- Version:
- $Id: AbstractHelpMojo.java 689770 2008-08-28 09:47:18Z vsiveton $
- Author:
- Vincent Siveton
Field Summary |
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. |
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Method Summary |
protected static void |
writeFile(File output,
String content)
Utility method to write a content in a given file. |
protected static void |
writeFile(File output,
StringBuffer content)
Utility method to write a content in a given file. |
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 |
Methods inherited from interface org.apache.maven.plugin.Mojo |
execute |
LINE_LENGTH
protected static final int LINE_LENGTH
- The maximum length of a display line.
- See Also:
- Constant Field Values
output
protected File output
- Optional parameter to write the output of this help in a given file, instead of writing to the console.
Note: Could be a relative path.
- Is defined by:
- expression:
- ${output}
AbstractHelpMojo
public AbstractHelpMojo()
writeFile
protected static void writeFile(File output,
StringBuffer content)
throws IOException
- Utility method to write a content in a given file.
- Parameters:
output
- is the wanted output file.content
- contains the content to be written to the file.
- Throws:
IOException
- if any- See Also:
writeFile(File, String)
writeFile
protected static void writeFile(File output,
String content)
throws IOException
- Utility method to write a content in a given file.
- Parameters:
output
- is the wanted output file.content
- contains the content to be written to the file.
- Throws:
IOException
- if any
Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.