|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.microsoft.tfs.core.externaltools.WindowsStyleArgumentTokenizer
public abstract class WindowsStyleArgumentTokenizer
Methods for tokenizing string that contain arguments to external tools in a style similar to TFS on Windows.
| Constructor Summary | |
|---|---|
WindowsStyleArgumentTokenizer()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
getRawFirstToken(java.lang.String arguments)
This is a specialized hack for UI code that deals with command strings. |
static java.lang.String[] |
tokenizeArguments(java.lang.String arguments)
Tokenizes the argument string into strings to pass to exec in "windows style" -- anything inside paired double quotes is grouped, you may escape double-quotes only inside double-quotes by doubling them. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WindowsStyleArgumentTokenizer()
| Method Detail |
|---|
public static java.lang.String getRawFirstToken(java.lang.String arguments)
arguments - the arguments to parse
public static java.lang.String[] tokenizeArguments(java.lang.String arguments)
throws ExternalToolException
Tokenizes the argument string into strings to pass to exec in "windows style" -- anything inside paired double quotes is grouped, you may escape double-quotes only inside double-quotes by doubling them. (Confusing, huh?)
That is:
arguments - the arguments to tokenize (must not be null)
ExternalToolException - if the argument string cannot be parsed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||