Class ATLModelTransformationTask
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- org.eclipse.m2m.atl.core.ant.tasks.AbstractAtlTask
-
- org.eclipse.m2m.atl.core.ant.tasks.ATLModelTransformationTask
-
- All Implemented Interfaces:
java.lang.Cloneable
public class ATLModelTransformationTask extends AbstractAtlTask
Launches an ATL transformation, using the launcher specified as property in the ant project.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.io.File
asmPath
protected java.util.List<InModel>
inModels
protected java.util.List<InModel>
inoutModels
protected boolean
isRefiningTraceMode
protected java.util.List<Library>
libraries
protected java.lang.String
mode
protected java.util.Map<java.lang.String,java.lang.Object>
options
protected java.util.List<OutModel>
outModels
protected java.util.List<Superimpose>
superimposeModules
-
Fields inherited from class org.eclipse.m2m.atl.core.ant.tasks.AbstractAtlTask
DEFAULT_LAUNCHER, DEFAULT_MODEL_HANDLER, LAUNCHER_PROPERTY, OPTION_MODEL_HANDLER, OPTION_MODEL_NAME, OPTION_MODEL_PATH, OPTION_NEW_MODEL, RESULT_REFERENCE
-
-
Constructor Summary
Constructors Constructor Description ATLModelTransformationTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addConfiguredInModel(InModel model)
Adds an input model to the task.void
addConfiguredInoutModel(InModel model)
Adds an input/output model to the task.void
addConfiguredLibrary(Library library)
Adds a library to the task.void
addConfiguredOption(Param option)
Adds an option to the task.void
addConfiguredOutModel(OutModel model)
Adds an output model to the task.void
addConfiguredSuperimpose(Superimpose superimpose)
Adds a superimposition module to the task.void
execute()
void
setMode(java.lang.String mode)
void
setPath(java.io.File path)
void
setRefining(boolean isRefining)
-
Methods inherited from class org.eclipse.m2m.atl.core.ant.tasks.AbstractAtlTask
error, error, getDefaultModelFactory, getLauncher, getLauncherName, init, newModel, newModel, newReferenceModel
-
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
-
-
-
-
Field Detail
-
mode
protected java.lang.String mode
-
isRefiningTraceMode
protected boolean isRefiningTraceMode
-
asmPath
protected java.io.File asmPath
-
inModels
protected java.util.List<InModel> inModels
-
outModels
protected java.util.List<OutModel> outModels
-
inoutModels
protected java.util.List<InModel> inoutModels
-
libraries
protected java.util.List<Library> libraries
-
options
protected java.util.Map<java.lang.String,java.lang.Object> options
-
superimposeModules
protected java.util.List<Superimpose> superimposeModules
-
-
Method Detail
-
setMode
public void setMode(java.lang.String mode)
-
setRefining
public void setRefining(boolean isRefining)
-
setPath
public void setPath(java.io.File path)
-
addConfiguredInModel
public void addConfiguredInModel(InModel model)
Adds an input model to the task.- Parameters:
model
- the given model
-
addConfiguredOutModel
public void addConfiguredOutModel(OutModel model)
Adds an output model to the task.- Parameters:
model
- the given model
-
addConfiguredInoutModel
public void addConfiguredInoutModel(InModel model)
Adds an input/output model to the task.- Parameters:
model
- the given model
-
addConfiguredLibrary
public void addConfiguredLibrary(Library library)
Adds a library to the task.- Parameters:
library
- the given library
-
addConfiguredSuperimpose
public void addConfiguredSuperimpose(Superimpose superimpose)
Adds a superimposition module to the task.- Parameters:
superimpose
- the given superimposition module
-
addConfiguredOption
public void addConfiguredOption(Param option)
Adds an option to the task.- Parameters:
option
- the given option
-
execute
public void execute() throws org.apache.tools.ant.BuildException
- Overrides:
execute
in classAbstractAtlTask
- Throws:
org.apache.tools.ant.BuildException
- See Also:
AbstractAtlTask.execute()
-
-