|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.plugin.AbstractMojo org.apache.james.mailet.HelpMojo
public class HelpMojo
Display help information on maven-mailetdocs-plugin.
Call
mvn mailetdocs:help -Ddetail=true -Dgoal=<goal-name>to display parameter details.
Field Summary | |
---|---|
private boolean |
detail
If true , display all settable properties for each goal. |
private java.lang.String |
goal
The name of the goal for which to show help. |
private int |
indentSize
The number of spaces per indentation level, should be positive. |
private int |
lineLength
The maximum length of a display line, should be positive. |
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
HelpMojo()
|
Method Summary | |
---|---|
private void |
append(java.lang.StringBuffer sb,
java.lang.String description,
int indent)
Append a description to the buffer by respecting the indentSize and lineLength parameters. |
void |
execute()
|
private static int |
getIndentLevel(java.lang.String line)
Gets the indentation level of the specified line. |
private static java.lang.String |
repeat(java.lang.String str,
int repeat)
Repeat a String n times to form a new string. |
private static void |
toLines(java.util.List lines,
java.lang.String line,
int indentSize,
int lineLength)
Adds the specified line to the output sequence, performing line wrapping if necessary. |
private static java.util.List |
toLines(java.lang.String text,
int indent,
int indentSize,
int lineLength)
Splits the specified text into lines of convenient display length. |
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 |
Field Detail |
---|
private boolean detail
true
, display all settable properties for each goal.
private java.lang.String goal
private int lineLength
private int indentSize
Constructor Detail |
---|
public HelpMojo()
Method Detail |
---|
public void execute() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
private static java.lang.String repeat(java.lang.String str, int repeat)
Repeat a String n
times to form a new string.
str
- String to repeatrepeat
- number of times to repeat str
java.lang.NegativeArraySizeException
- if repeat < 0
java.lang.NullPointerException
- if str is null
private void append(java.lang.StringBuffer sb, java.lang.String description, int indent)
sb
- The buffer to append the description, not null
.description
- The description, not null
.indent
- The base indentation level of each line, must not be negative.private static java.util.List toLines(java.lang.String text, int indent, int indentSize, int lineLength)
text
- The text to split into lines, must not be null
.indent
- The base indentation level of each line, must not be negative.indentSize
- The size of each indentation, must not be negative.lineLength
- The length of the line, must not be negative.
null
.
java.lang.NegativeArraySizeException
- if indent < 0
private static void toLines(java.util.List lines, java.lang.String line, int indentSize, int lineLength)
lines
- The sequence of display lines, must not be null
.line
- The line to add, must not be null
.indentSize
- The size of each indentation, must not be negative.lineLength
- The length of the line, must not be negative.private static int getIndentLevel(java.lang.String line)
line
- The line whose indentation level should be retrieved, must not be null
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |