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_SETFields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapperFields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConfiguredModuleSet(org.apache.tools.ant.types.FileSet moduleSet) Adds module set to the compile task.Returns the character set to be used for parsing.protected AtlToEmftvmCompilerReturns 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 voidPerforms the actual execution.voidsetCharset(String charset) Sets the character set to be used for parsing.voidSets the module name.voidsetModulePath(String modulePath) Sets the module path.voidsetOutputPath(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, setModelMethods 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, setTaskTypeMethods 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:
innerExecutein classEMFTVMTask- Throws:
Exception
-