Package org.sonatype.plugins.munge
Class Munge.CommandLine
- java.lang.Object
-
- org.sonatype.plugins.munge.Munge.CommandLine
-
- Enclosing class:
- Munge
static class Munge.CommandLine extends java.lang.Object
This class was cut and pasted from the JDK1.2 sun.tools.util package. Since Munge needs to be used when only a JRE is present, we could not use it from that place. Likewise, Munge needs to be able to run under 1.1 so the 1.2 collections classes had to be replaced in this version.
-
-
Constructor Summary
Constructors Constructor Description CommandLine()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static void
loadCmdFile(java.lang.String name, java.util.Vector args)
(package private) static java.lang.String[]
parse(java.lang.String[] args)
Process Win32-style command files for the specified command line arguments and return the resulting arguments.
-
-
-
Method Detail
-
parse
static java.lang.String[] parse(java.lang.String[] args) throws java.io.IOException
Process Win32-style command files for the specified command line arguments and return the resulting arguments. A command file argument is of the form '@file' where 'file' is the name of the file whose contents are to be parsed for additional arguments. The contents of the command file are parsed using StreamTokenizer and the original '@file' argument replaced with the resulting tokens. Recursive command files are not supported. The '@' character itself can be quoted with the sequence '@@'.- Throws:
java.io.IOException
-
loadCmdFile
private static void loadCmdFile(java.lang.String name, java.util.Vector args) throws java.io.IOException
- Throws:
java.io.IOException
-
-