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 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).


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.