|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.eclipse.jetty.start.CommandLineBuilder
public class CommandLineBuilder
| 构造方法摘要 | |
|---|---|
CommandLineBuilder(String bin)
|
|
| 方法摘要 | |
|---|---|
void |
addArg(String arg)
Add a simple argument to the command line. |
void |
addEqualsArg(String name,
String value)
Similar to addArg(String) but concats both name + value with an "=" sign, quoting were needed, and excluding the "=" portion if the value is
undefined or empty. |
void |
addRawArg(String arg)
Add a simple argument to the command line. |
List<String> |
getArgs()
|
static String |
quote(String arg)
Perform an optional quoting of the argument, being intelligent with spaces and quotes as needed. |
String |
toString()
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 构造方法详细信息 |
|---|
public CommandLineBuilder(String bin)
| 方法详细信息 |
|---|
public void addArg(String arg)
Will quote arguments that have a space in them.
arg - the simple argument to add
public void addEqualsArg(String name,
String value)
addArg(String) but concats both name + value with an "=" sign, quoting were needed, and excluding the "=" portion if the value is
undefined or empty.
addEqualsArg("-Dname", "value") = "-Dname=value"
addEqualsArg("-Djetty.home", "/opt/company inc/jetty (7)/") = "-Djetty.home=/opt/company\ inc/jetty\ (7)/"
addEqualsArg("-Djenkins.workspace", "/opt/workspaces/jetty jdk7/") = "-Djenkins.workspace=/opt/workspaces/jetty\ jdk7/"
addEqualsArg("-Dstress", null) = "-Dstress"
addEqualsArg("-Dstress", "") = "-Dstress"
name - the namevalue - the valuepublic void addRawArg(String arg)
Will NOT quote/escape arguments that have a space in them.
arg - the simple argument to addpublic List<String> getArgs()
public static String quote(String arg)
arg -
public String toString()
Object 中的 toString
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||