Gant 1.9.6

gant.tools
[Groovy] Class Execute

java.lang.Object
  gant.tools.Execute

final class Execute
extends java.lang.Object

Provides methods for executing operating system commands ensuring that the pipes are flushed and so the execution cannot block on full pipes.

Authors:
Russel Winder


Constructor Summary
Execute(GantBinding binding)

Constructor for the "includeTool <<" usage.

Execute(GantBinding binding, java.util.Map map)

Constructor for the "includeTool **" usage.

 
Method Summary
java.lang.Object executable(java.util.Map keywordParameters = [:] , java.lang.String command)

Execute a command from the PATH.

java.lang.Object executable(java.util.Map keywordParameters = [:] , java.util.List command)

Execute a command from the PATH.

java.lang.Object shell(java.util.Map keywordParameters = [:] , java.lang.String command)

Execute a command using a shell.

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Constructor Detail

Execute

Execute(GantBinding binding)
Constructor for the "includeTool <<" usage.
Parameters:
binding - The GantBinding to bind to.


Execute

Execute(GantBinding binding, java.util.Map map)
Constructor for the "includeTool **" usage.
Parameters:
binding - The GantBinding to bind to.
map - The Map of initialization parameters. Currently ignored.


 
Method Detail

executable

java.lang.Object executable(java.util.Map keywordParameters = [:] , java.lang.String command)
Execute a command from the PATH. Optional, keyword parameters: outProcessing is a Closure used to process lines from standard out; errProcessing is a Closure used to process lines from standard error.
Parameters:
command - the command as a single String.
Returns:
the return code of the process.


executable

java.lang.Object executable(java.util.Map keywordParameters = [:] , java.util.List command)
Execute a command from the PATH. Optional, keyword parameters: outProcessing is a Closure used to process lines from standard out; errProcessing is a Closure used to process lines from standard error.
Parameters:
command - the command as a list of Strings.
Returns:
the return code of the process.


shell

java.lang.Object shell(java.util.Map keywordParameters = [:] , java.lang.String command)
Execute a command using a shell. Optional, keyword parameters: outProcessing is a Closure used to process lines from standard out; errProcessing is a Closure used to process lines from standard error.
Parameters:
command - the command as a single String.
Returns:
the return code of the process.


 

Copyright © 2006–9 The Codehaus. All Rights Reserved.