com.codemesh.terp.data
Class Cpp.MsvcExecutor
java.lang.Object
com.codemesh.terp.api.Executor.AbstractExecutor<ProcessExecutor.Result>
com.codemesh.terp.eval.executors.ProcessExecutor
com.codemesh.terp.eval.executors.ShellExecutor
com.codemesh.terp.data.Cpp.CppExecutor
com.codemesh.terp.data.Cpp.MsvcExecutor
- All Implemented Interfaces:
- Executor<ProcessExecutor.Result>, Named, Versioned, java.lang.Comparable<Cpp.CppExecutor>
- Enclosing interface:
- Cpp
public static class Cpp.MsvcExecutor
- extends Cpp.CppExecutor
| Methods inherited from class com.codemesh.terp.data.Cpp.CppExecutor |
accFromFile, accFromMap, accFromString, accFromVersion, compareTo, cppFromFile, cppFromMap, cppFromString, cppFromVersion, equals, gccFromFile, gccFromMap, gccFromString, gccFromVersion, getCode, getCompiler, getName, getProcArchs, getTraits, getVersion, hashCode, iccFromFile, iccFromMap, iccFromString, iccFromVersion, marshallArguments, msvcFromFile, msvcFromString, msvcFromVersion, qccFromFile, qccFromMap, qccFromString, qccFromVersion, setCode, setCompiler, setName, setProcArch, setVersion, sunccFromFile, sunccFromMap, sunccFromString, sunccFromVersion, supportsOption, supportsOptions, toString, xlcFromFile, xlcFromMap, xlcFromString, xlcFromVersion |
| 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 java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
ALL_MSVCS
public static final java.util.List<Cpp.MsvcExecutor> ALL_MSVCS
theVcVars
protected java.io.File theVcVars
Cpp.MsvcExecutor
public Cpp.MsvcExecutor()
getVcVars
public java.io.File getVcVars()
setVcVars
public void setVcVars(java.io.File vcvars)
getVcVars
public static java.io.File getVcVars(java.io.File compiler)
populate
public static void populate()
getLib
public Lib.LibExecutor getLib()
msvcFromMap
public static Cpp.MsvcExecutor msvcFromMap(java.util.Map map)
msvcFromMap
public static Cpp.MsvcExecutor msvcFromMap(Cpp.MsvcExecutor exec,
java.util.Map map)
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.
- Overrides:
batchExecute in class Cpp.CppExecutor
- Parameters:
args - the commandlines that will be batched up.
- Returns:
- the execution result of the batch file.
Copyright © 2008-2012 by Codemesh, Inc. All Rights Reserved.