Class CommandLine

java.lang.Object
org.glassfish.rmic.tools.util.CommandLine

public class CommandLine extends Object
Various utility methods for processing Java tool command line arguments. WARNING: The contents of this source file are not part of any supported API. Code that depends on them does so at its own risk: they are subject to change or removal without notice.
  • Constructor Details

    • CommandLine

      public CommandLine()
  • Method Details

    • parse

      public static String[] parse(String[] args) throws 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:
      IOException
    • loadCmdFile

      private static void loadCmdFile(String name, List<String> args) throws IOException
      Throws:
      IOException