Package org.eclipse.m2m.atl.emftvm.ant
Class CompileTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.eclipse.m2m.atl.emftvm.ant.EMFTVMTask
org.eclipse.m2m.atl.emftvm.ant.CompileTask
- All Implemented Interfaces:
Cloneable
Compiles an ATL module to EMFTVM bytecode.
-
Field Summary
Fields inherited from class org.eclipse.m2m.atl.emftvm.ant.EMFTVMTask
RESOURCE_SET
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addConfiguredModuleSet
(org.apache.tools.ant.types.FileSet moduleSet) Adds module set to the compile task.Returns the character set to be used for parsing.protected AtlToEmftvmCompiler
Returns theAtlToEmftvmCompiler
.Returns the module name.Returns the module path.List<org.apache.tools.ant.types.FileSet>
Returns the moduleFileSet
.Returns the directory path to write the output file to.protected void
Performs the actual execution.void
setCharset
(String charset) Sets the character set to be used for parsing.void
Sets the module name.void
setModulePath
(String modulePath) Sets the module path.void
setOutputPath
(String outputPath) Sets the directory path to write the output file to.Methods inherited from class org.eclipse.m2m.atl.emftvm.ant.EMFTVMTask
execute, getMetamodel, getModel, getResourceSet, setModel
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
-
Constructor Details
-
CompileTask
public CompileTask()
-
-
Method Details
-
setModule
Sets the module name.- Parameters:
module
- the module to set
-
getModule
Returns the module name.- Returns:
- the module
-
setModulePath
Sets the module path. If not set,Project.getBaseDir()
is used.- Parameters:
modulePath
- the modulePath to set
-
getModulePath
Returns the module path. If not set,Project.getBaseDir()
is used.- Returns:
- the modulePath
-
getCharset
Returns the character set to be used for parsing.- Returns:
- the character set to be used for parsing
-
setCharset
Sets the character set to be used for parsing.- Parameters:
charset
- the character set to set
-
getOutputPath
Returns the directory path to write the output file to. If not set,getModulePath()
is used.- Returns:
- the outputPath
-
setOutputPath
Sets the directory path to write the output file to. If not set,getModulePath()
is used.- Parameters:
outputPath
- the outputPath to set
-
getModuleSets
Returns the moduleFileSet
.- Returns:
- the moduleSets
-
addConfiguredModuleSet
public void addConfiguredModuleSet(org.apache.tools.ant.types.FileSet moduleSet) Adds module set to the compile task.- Parameters:
moduleSet
- the module set to add
-
getCompiler
Returns theAtlToEmftvmCompiler
.- Returns:
- the compiler
-
innerExecute
Performs the actual execution.- Specified by:
innerExecute
in classEMFTVMTask
- Throws:
Exception
-