terp - the Codemesh Modular
Template Interpreter v1.3.309

com.codemesh.terp.data
Class ManifestTool.ManifestToolExecutor

java.lang.Object
  extended by com.codemesh.terp.api.Executor.AbstractExecutor<ProcessExecutor.Result>
      extended by com.codemesh.terp.eval.executors.ProcessExecutor
          extended by com.codemesh.terp.eval.executors.ShellExecutor
              extended by com.codemesh.terp.data.ManifestTool.ManifestToolExecutor
All Implemented Interfaces:
Executor<ProcessExecutor.Result>, Named, Versioned, java.lang.Comparable<ManifestTool.ManifestToolExecutor>
Enclosing interface:
ManifestTool

public static class ManifestTool.ManifestToolExecutor
extends ShellExecutor
implements java.lang.Comparable<ManifestTool.ManifestToolExecutor>, Named, Versioned


Nested Class Summary
 
Nested classes/interfaces inherited from class com.codemesh.terp.eval.executors.ProcessExecutor
ProcessExecutor.Result
 
Nested classes/interfaces inherited from interface com.codemesh.terp.api.Executor
Executor.AbstractExecutor<T>, Executor.ForMethod
 
Field Summary
protected  ProcArch procarch
           
protected static ToVersion TO_VERSION
           
protected  Version version
           
 
Fields inherited from class com.codemesh.terp.eval.executors.ShellExecutor
theExecFlag, theShell, TO_STRING
 
Fields inherited from class com.codemesh.terp.eval.executors.ProcessExecutor
EOL, IS_WINDOWS, logger, theEnvironment, theExecutable, theWorkingDir, TO_FILE, TO_LIST
 
Constructor Summary
ManifestTool.ManifestToolExecutor()
           
 
Method Summary
 ProcessExecutor.Result addManifest(java.io.File target, java.io.File manifest)
           
 ProcessExecutor.Result batchExecute(java.util.List<java.lang.Object> args)
          Executes a batch of several compiler invocations, prefixing each one with the compiler executable's path.
 int compareTo(ManifestTool.ManifestToolExecutor o)
           
 boolean equals(java.lang.Object o)
           
 ProcessExecutor.Result execute(java.util.List<java.lang.Object> args, TerpEvaluator eval, TerpContext ctx)
          Performs the executor's action on the given arguments in the given context.
 java.lang.String getName()
          Returns the named object's name.
 ProcArch getProcArch()
           
 Version getVersion()
           
 int hashCode()
           
static ManifestTool.ManifestToolExecutor mtFromFile(java.io.File executableOrHome)
           
static ManifestTool.ManifestToolExecutor mtFromMap(java.util.Map<java.lang.String,java.lang.Object> map)
           
static ManifestTool.ManifestToolExecutor mtFromString(java.lang.String executableOrHome)
           
 void setProcArch(ProcArch pa)
           
 
Methods inherited from class com.codemesh.terp.eval.executors.ShellExecutor
createEnvironment, getExecFlag, getShell, marshallArguments, setExecFlag, setShell, shellFromFile, shellFromMap, shellFromMap, shellFromString
 
Methods inherited from class com.codemesh.terp.eval.executors.ProcessExecutor
execute, fromFile, fromMap, fromMap, fromString, getEnvironment, getExecutable, getWorkingDir, matches, setEnvironment, setExecutable, setWorkingDir
 
Methods inherited from class com.codemesh.terp.api.Executor.AbstractExecutor
execute
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TO_VERSION

protected static final ToVersion TO_VERSION

procarch

protected ProcArch procarch

version

protected Version version
Constructor Detail

ManifestTool.ManifestToolExecutor

public ManifestTool.ManifestToolExecutor()
Method Detail

getProcArch

public ProcArch getProcArch()

setProcArch

public void setProcArch(ProcArch pa)

getName

public java.lang.String getName()
Description copied from interface: Named
Returns the named object's name.

Specified by:
getName in interface Named
Returns:
the name.

getVersion

public Version getVersion()
Specified by:
getVersion in interface Versioned

compareTo

public int compareTo(ManifestTool.ManifestToolExecutor o)
Specified by:
compareTo in interface java.lang.Comparable<ManifestTool.ManifestToolExecutor>

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

mtFromString

public static ManifestTool.ManifestToolExecutor mtFromString(java.lang.String executableOrHome)

mtFromFile

public static ManifestTool.ManifestToolExecutor mtFromFile(java.io.File executableOrHome)

mtFromMap

public static ManifestTool.ManifestToolExecutor mtFromMap(java.util.Map<java.lang.String,java.lang.Object> map)

addManifest

public ProcessExecutor.Result addManifest(java.io.File target,
                                          java.io.File manifest)

execute

public ProcessExecutor.Result execute(java.util.List<java.lang.Object> args,
                                      TerpEvaluator eval,
                                      TerpContext ctx)
Description copied from interface: Executor
Performs the executor's action on the given arguments in the given context. Typically, your custom executor will implement this method to provide its core functionality.

Specified by:
execute in interface Executor<ProcessExecutor.Result>
Overrides:
execute in class ProcessExecutor
Parameters:
args - the arguments.
eval - the evaluator to use. Can frequently be null.
ctx - the context in which the execution occurs. Can frequently be null.
Returns:
the execution result.

batchExecute

public ProcessExecutor.Result batchExecute(java.util.List<java.lang.Object> args)
Executes a batch of several compiler invocations, prefixing each one with the compiler executable's path.

Parameters:
args - the commandlines that will be batched up.
Returns:
the execution result of the batch file.

terp - the Codemesh Modular
Template Interpreter v1.3.309

Copyright © 2008-2012 by Codemesh, Inc. All Rights Reserved.