|
Gant 1.9.6 | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectgant.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.
| 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(GantBinding binding)
binding - The GantBinding to bind to.
Execute(GantBinding binding, java.util.Map map)
binding - The GantBinding to bind to.map - The Map of initialization parameters. Currently ignored.
| Method Detail |
|---|
java.lang.Object executable(java.util.Map keywordParameters = [:] , java.lang.String command)
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.
java.lang.Object executable(java.util.Map keywordParameters = [:] , java.util.List command)
outProcessing is a Closure used to process
lines from standard out; errProcessing is a Closure used to process lines
from standard error.
command - the command as a list of Strings.
java.lang.Object shell(java.util.Map keywordParameters = [:] , java.lang.String command)
outProcessing is a Closure used to process
lines from standard out; errProcessing is a Closure used to process lines
from standard error.
command - the command as a single String.
Copyright © 2006–9 The Codehaus. All Rights Reserved.