Gant 1.9.9

gant.tools
[Groovy] Class Execute

java.lang.Object
  gant.tools.Execute

final class Execute

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, int), java.lang.Object#wait(long), 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.
Returns:
the return code of the process.
Parameters:
command - the command as a single String.


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.
Returns:
the return code of the process.
Parameters:
command - the command as a list of Strings.


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.
Returns:
the return code of the process.
Parameters:
command - the command as a single String.


 

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