org.apache.geronimo.deployment.cli
Class DeployUtils
java.lang.Object
org.apache.geronimo.deployment.plugin.ConfigIDExtractor
org.apache.geronimo.deployment.cli.DeployUtils
public class DeployUtils
- extends ConfigIDExtractor
Various helpers for deployment.
Method Summary |
static void |
println(String line,
int indent,
jline.ConsoleReader consoleReader)
|
static void |
printTo(String string,
int col,
jline.ConsoleReader consoleReader)
|
static String |
reformat(String source,
int indent,
int endCol)
Split up an output line so it indents at beginning and end (to fit in a
typical terminal) and doesn't break in the middle of a word. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DeployUtils
public DeployUtils()
reformat
public static String reformat(String source,
int indent,
int endCol)
- Split up an output line so it indents at beginning and end (to fit in a
typical terminal) and doesn't break in the middle of a word.
- Parameters:
source
- The unformatted Stringindent
- The number of characters to indent on the leftendCol
- The maximum width of the entire line in characters,
including indent (indent 10 with endCol 70 results
in 60 "usable" characters).
println
public static void println(String line,
int indent,
jline.ConsoleReader consoleReader)
throws IOException
- Throws:
IOException
printTo
public static void printTo(String string,
int col,
jline.ConsoleReader consoleReader)
throws IOException
- Throws:
IOException
Copyright © 2003-2008 The Apache Geronimo development community. All Rights Reserved.