com.sun.tools.apt.main
Class CommandLine

java.lang.Object
  extended by com.sun.tools.apt.main.CommandLine

public class CommandLine
extends java.lang.Object

Various utility methods for processing Java tool command line arguments.

This is NOT part of any API supported by Sun Microsystems. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.


Constructor Summary
CommandLine()
           
 
Method Summary
private static void loadCmdFile(java.lang.String name, ListBuffer<java.lang.String> args)
           
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandLine

public CommandLine()
Method Detail

parse

public 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,
                                ListBuffer<java.lang.String> args)
                         throws java.io.IOException
Throws:
java.io.IOException