org.ops4j.pax.runner.platform.internal
Class CommandLineBuilder

java.lang.Object
  extended by org.ops4j.pax.runner.platform.internal.CommandLineBuilder

public class CommandLineBuilder
extends java.lang.Object

Provides easy building of command line for a java runtime. TODO add unit tests

Since:
August 25, 2007
Author:
Alin Dreghiciu

Constructor Summary
CommandLineBuilder()
          Creates a new command line builder.
 
Method Summary
 CommandLineBuilder append(java.lang.String segment)
          Appends a string to command line.
 CommandLineBuilder append(java.lang.String[] segments)
          Appends an array of strings to command line.
 java.lang.String[] toArray()
          Returns the command line.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandLineBuilder

public CommandLineBuilder()
Creates a new command line builder.

Method Detail

append

public CommandLineBuilder append(java.lang.String[] segments)
Appends an array of strings to command line.

Parameters:
segments - array to append
Returns:
CommandLineBuilder for fluent api

append

public CommandLineBuilder append(java.lang.String segment)
Appends a string to command line.

Parameters:
segment - string to append
Returns:
CommandLineBuilder for fluent api

toArray

public java.lang.String[] toArray()
Returns the command line.

Returns:
command line


Copyright © 2006-2012 OPS4J - Open Participation Software for Java. All Rights Reserved.