hudson.cli
Class CLI

java.lang.Object
  extended by hudson.cli.CLI

public class CLI
extends java.lang.Object

CLI entry point to Hudson.

Author:
Kohsuke Kawaguchi

Constructor Summary
CLI(java.net.URL hudson)
           
CLI(java.net.URL hudson, java.util.concurrent.ExecutorService exec)
           
 
Method Summary
 void close()
           
 int execute(java.util.List<java.lang.String> args)
           
 int execute(java.util.List<java.lang.String> args, java.io.InputStream stdin, java.io.OutputStream stdout, java.io.OutputStream stderr)
           
 int execute(java.lang.String... args)
           
 boolean hasCommand(java.lang.String name)
          Returns true if the named command exists.
static void main(java.lang.String[] _args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CLI

public CLI(java.net.URL hudson)
    throws java.io.IOException,
           java.lang.InterruptedException
Throws:
java.io.IOException
java.lang.InterruptedException

CLI

public CLI(java.net.URL hudson,
           java.util.concurrent.ExecutorService exec)
    throws java.io.IOException,
           java.lang.InterruptedException
Throws:
java.io.IOException
java.lang.InterruptedException
Method Detail

close

public void close()
           throws java.io.IOException,
                  java.lang.InterruptedException
Throws:
java.io.IOException
java.lang.InterruptedException

execute

public int execute(java.util.List<java.lang.String> args,
                   java.io.InputStream stdin,
                   java.io.OutputStream stdout,
                   java.io.OutputStream stderr)

execute

public int execute(java.util.List<java.lang.String> args)

execute

public int execute(java.lang.String... args)

hasCommand

public boolean hasCommand(java.lang.String name)
Returns true if the named command exists.


main

public static void main(java.lang.String[] _args)
                 throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2010. All Rights Reserved.