org.apache.geronimo.deployment.cli
Class DeployUtils

java.lang.Object
  extended by org.apache.geronimo.deployment.plugin.ConfigIDExtractor
      extended by org.apache.geronimo.deployment.cli.DeployUtils

public class DeployUtils
extends ConfigIDExtractor

Various helpers for deployment.


Constructor Summary
DeployUtils()
           
 
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 org.apache.geronimo.deployment.plugin.ConfigIDExtractor
extractModuleIdFromArchive, extractModuleIdFromPlan, identifyTargetModuleIDs, isJarFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeployUtils

public DeployUtils()
Method Detail

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 String
indent - The number of characters to indent on the left
endCol - 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.