aQute.libg.command
Class Command

java.lang.Object
  extended by aQute.libg.command.Command

public class Command
extends Object


Constructor Summary
Command()
           
Command(String fullCommand)
           
 
Method Summary
 void add(String... args)
           
 void addAll(Collection<String> args)
           
 Command arg(String... args)
           
 void cancel()
           
 int execute(Appendable stdout, Appendable stderr)
           
 int execute(InputStream in, Appendable stdout, Appendable stderr)
           
 int execute(String input, Appendable stdout, Appendable stderr)
           
 Command full(String full)
           
 void inherit()
           
static boolean needsWindowsQuoting(String s)
           
 void setCwd(File dir)
           
 void setReporter(Reporter reporter)
           
 void setTimeout(long duration, TimeUnit unit)
           
 void setTrace()
           
 String toString()
           
 String var(String name)
           
 Command var(String name, String value)
           
static String windowsQuote(String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Command

public Command(String fullCommand)

Command

public Command()
Method Detail

execute

public int execute(Appendable stdout,
                   Appendable stderr)
            throws Exception
Throws:
Exception

execute

public int execute(String input,
                   Appendable stdout,
                   Appendable stderr)
            throws Exception
Throws:
Exception

needsWindowsQuoting

public static boolean needsWindowsQuoting(String s)

windowsQuote

public static String windowsQuote(String s)

execute

public int execute(InputStream in,
                   Appendable stdout,
                   Appendable stderr)
            throws Exception
Throws:
Exception

add

public void add(String... args)

addAll

public void addAll(Collection<String> args)

setTimeout

public void setTimeout(long duration,
                       TimeUnit unit)

setTrace

public void setTrace()

setReporter

public void setReporter(Reporter reporter)

setCwd

public void setCwd(File dir)

cancel

public void cancel()

var

public Command var(String name,
                   String value)

arg

public Command arg(String... args)

full

public Command full(String full)

inherit

public void inherit()

var

public String var(String name)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014 aQute SARL. All rights reserved.