org.codehaus.gmaven.mojo.support
Class ShellExecutor

java.lang.Object
  extended by org.codehaus.gmaven.mojo.support.ShellExecutor
All Implemented Interfaces:
groovy.lang.GroovyObject

public class ShellExecutor
extends Object
implements groovy.lang.GroovyObject

Helper to execute shell (/bin/sh) scripts.

Version:
$Id: ShellExecutor.groovy 11 2009-07-16 09:25:38Z user57 $
Author:
Jason Dillon

Constructor Summary
ShellExecutor()
           
ShellExecutor(String script)
           
 
Method Summary
 Object execute()
           
 Object execute(List args)
           
static Object execute(String script)
           
static Object execute(String script, List args)
           
 boolean getFailOnError()
           
 groovy.lang.MetaClass getMetaClass()
           
 Object getProperty(String name)
           
 Object invokeMethod(String name, Object args)
           
 boolean isFailOnError()
           
 Object leftShift(String text)
           
 void setFailOnError(boolean value)
           
 void setMetaClass(groovy.lang.MetaClass metaClass)
           
 void setProperty(String name, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShellExecutor

public ShellExecutor(String script)

ShellExecutor

public ShellExecutor()
Method Detail

getFailOnError

public boolean getFailOnError()

isFailOnError

public boolean isFailOnError()

setFailOnError

public void setFailOnError(boolean value)

leftShift

public Object leftShift(String text)

execute

public Object execute(List args)

execute

public Object execute()

execute

public static Object execute(String script,
                             List args)

execute

public static Object execute(String script)

getMetaClass

public groovy.lang.MetaClass getMetaClass()
Specified by:
getMetaClass in interface groovy.lang.GroovyObject

setMetaClass

public void setMetaClass(groovy.lang.MetaClass metaClass)
Specified by:
setMetaClass in interface groovy.lang.GroovyObject

invokeMethod

public Object invokeMethod(String name,
                           Object args)
Specified by:
invokeMethod in interface groovy.lang.GroovyObject

getProperty

public Object getProperty(String name)
Specified by:
getProperty in interface groovy.lang.GroovyObject

setProperty

public void setProperty(String name,
                        Object value)
Specified by:
setProperty in interface groovy.lang.GroovyObject


Copyright © 2006-2012 Codehaus. All Rights Reserved.