org.eclipse.xtend.util.stdlib
Class SystemCommand
java.lang.Object
org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent
org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent2
org.eclipse.xtend.util.stdlib.SystemCommand
- All Implemented Interfaces:
- org.eclipse.emf.mwe.core.WorkflowComponent, org.eclipse.emf.mwe.core.WorkflowComponentWithID, org.eclipse.emf.mwe2.runtime.workflow.IWorkflowComponent
public class SystemCommand
- extends org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent2
This component executes a system command.
Properties
Property |
Type |
Mandatory |
Description |
command |
String |
yes |
The command to execute. |
directory |
String |
no |
Execution directory. |
arg |
String |
no |
(multiple) command arguments. |
env |
String |
no |
(multiple) additional environment entries. Format: [key],[value] |
Example
<component class="org.ecipse.xtend.util.stdlib.SystemCommand">
<directory value="src-gen"/>
<command value="sh"/>
<arg value="processdot.sh"/>
</component>
- Since:
- 4.3.1
- Author:
- Karsten Thoms
Method Summary |
void |
addArg(java.lang.String arg)
|
void |
addEnv(java.lang.String entry)
|
protected void |
checkConfigurationInternal(org.eclipse.emf.mwe.core.issues.Issues issues)
|
java.lang.String |
getCommand()
|
protected void |
invokeInternal(org.eclipse.emf.mwe.core.WorkflowContext ctx,
org.eclipse.emf.mwe.core.monitor.ProgressMonitor monitor,
org.eclipse.emf.mwe.core.issues.Issues issues)
|
void |
setCommand(java.lang.String command)
|
void |
setDirectory(java.lang.String directory)
|
Methods inherited from class org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent2 |
checkConfiguration |
Methods inherited from class org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent |
checkRequiredConfigProperty, getBridge, getComponentName, getContainer, getId, getLocation, getLogMessage, invoke, invoke, postInvoke, preInvoke, setContainer, setId, setLocation, setSkipOnErrors |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SystemCommand
public SystemCommand()
checkConfigurationInternal
protected void checkConfigurationInternal(org.eclipse.emf.mwe.core.issues.Issues issues)
- Overrides:
checkConfigurationInternal
in class org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent2
invokeInternal
protected void invokeInternal(org.eclipse.emf.mwe.core.WorkflowContext ctx,
org.eclipse.emf.mwe.core.monitor.ProgressMonitor monitor,
org.eclipse.emf.mwe.core.issues.Issues issues)
- Specified by:
invokeInternal
in class org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent
getCommand
public java.lang.String getCommand()
setCommand
public void setCommand(java.lang.String command)
setDirectory
public void setDirectory(java.lang.String directory)
addArg
public void addArg(java.lang.String arg)
addEnv
public void addEnv(java.lang.String entry)