|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
com.soebes.maven.plugins.mlv.HelpMojo
public class HelpMojo
Display help information on maven-license-verifier-plugin.
Call
mvn license-verifier: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 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(StringBuffer sb,
String description,
int indent)
Append a description to the buffer by respecting the indentSize and lineLength parameters. |
void |
execute()
|
private static int |
getIndentLevel(String line)
Gets the indentation level of the specified line. |
private static String |
repeat(String str,
int repeat)
Repeat a String n times to form a new string. |
private static void |
toLines(List lines,
String line,
int indentSize,
int lineLength)
Adds the specified line to the output sequence, performing line wrapping if necessary. |
private static List |
toLines(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 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 String repeat(String str,
int repeat)
Repeat a String n times to form a new string.
str - String to repeatrepeat - number of times to repeat str
NegativeArraySizeException - if repeat < 0
NullPointerException - if str is null
private void append(StringBuffer sb,
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 List toLines(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.
NegativeArraySizeException - if indent < 0
private static void toLines(List lines,
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(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 | |||||||||