JDeveloper SCM API

oracle.ide.scm.util
Class SCMCommandUtils

java.lang.Object
  |
  +--oracle.ide.scm.util.SCMCommandUtils

public final class SCMCommandUtils
extends java.lang.Object

Command-line related utilities.


Method Summary
static java.util.Iterator splitCommandOptions(java.util.List options)
          Convenience overload, no base command.
static java.util.Iterator splitCommandOptions(java.util.List command, java.util.List options)
          Splits the given command options to prevent exceeding the command-line buffer limit (NT).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

splitCommandOptions

public static final java.util.Iterator splitCommandOptions(java.util.List options)
Convenience overload, no base command.

splitCommandOptions

public static final java.util.Iterator splitCommandOptions(java.util.List command,
                                                           java.util.List options)
Splits the given command options to prevent exceeding the command-line buffer limit (NT). This method will predict the length of the command and ensure that the base command and options strings do not exceed the maximum buffer length, unless unavoidable.
Parameters:
command - the base command, used in all command length calculations and not treated as splittable; may be null.
options - the command options list.
Returns:
an iterator over split options lists.

Copyright © 2002 Oracle Corporation