com.codemesh.terp.eval.executors
Class ShellExecutor
java.lang.Object
com.codemesh.terp.api.Executor.AbstractExecutor<ProcessExecutor.Result>
com.codemesh.terp.eval.executors.ProcessExecutor
com.codemesh.terp.eval.executors.ShellExecutor
- All Implemented Interfaces:
- Executor<ProcessExecutor.Result>
- Direct Known Subclasses:
- Ant.AntExecutor, BatchExecutor, CodegenExecutor, Cpp.CppExecutor, Csharp.CsharpExecutor, Lib.LibExecutor, ManifestTool.ManifestToolExecutor, Reg.RegExecutor, VisualBasic.VbExecutor, Xargs.XargsExecutor
public class ShellExecutor
- extends ProcessExecutor
An executor that runs commands in a shell.
| Methods inherited from class com.codemesh.terp.eval.executors.ProcessExecutor |
execute, execute, fromFile, fromMap, fromMap, fromString, getEnvironment, getExecutable, getWorkingDir, matches, setEnvironment, setExecutable, setWorkingDir |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
theShell
protected java.io.File theShell
theExecFlag
protected java.lang.String theExecFlag
TO_STRING
protected static final Converter<java.lang.String> TO_STRING
ShellExecutor
public ShellExecutor()
setShell
public void setShell(java.io.File shell)
getShell
public java.io.File getShell()
setExecFlag
public void setExecFlag(java.lang.String flag)
getExecFlag
public java.lang.String getExecFlag()
shellFromString
public static ShellExecutor shellFromString(java.lang.String shell)
shellFromFile
public static ShellExecutor shellFromFile(java.io.File shell)
shellFromMap
public static ShellExecutor shellFromMap(java.util.Map<java.lang.String,java.lang.Object> map)
shellFromMap
public static ShellExecutor shellFromMap(ShellExecutor result,
java.util.Map<java.lang.String,java.lang.Object> map)
createEnvironment
public static java.lang.String[] createEnvironment(java.util.Map<java.lang.String,java.lang.Object> map)
marshallArguments
public java.lang.String[] marshallArguments(java.util.List<java.lang.Object> args)
- Overrides:
marshallArguments in class ProcessExecutor
Copyright © 2008-2012 by Codemesh, Inc. All Rights Reserved.