|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.eclipse.emf.ant.taskdefs.EMFTask
org.eclipse.emf.ant.taskdefs.codegen.ecore.GeneratorTask
org.eclipse.emf.importer.rose.taskdefs.RoseGeneratorTask
Generates source code from models specifed in Rose files. Exposes some
functionalities available on the RoseImporterApplication
class - check its printUsage() method for detailed information on the arguments
you can use with this task.
This task is supposed to be executed by a Eclipse driver with the org.eclipse.emf.ant plugin. It is neither necessary to use Ant's task TaskDef to declare this task in a script nor to change the Ant's runtime classpath.
The following command line will start a headless Eclipse instance and run the specified Ant script.
java -classpath eclipseDir/startup.jar org.eclipse.core.launcher.Main -data worspaceDir -application org.eclipse.ant.core.antRunner -buildfile antScript
Usage example:
<emf.Rose2Java model="c:/lib/model/lib.mdl"
genModel="c:/lib/emf/lib.genmodel"
modelProject="c:/lib"
modelProjectFragmentPath="src">
<arg line="-package library library library.xmi org.examples Library"/>
<arg line="-pathMap VABASE_PLUGINS_PATH d:/eclipse/plugins"/>
</emf.Rose2Java>
| Nested Class Summary |
| Nested classes inherited from class org.eclipse.emf.ant.taskdefs.codegen.ecore.GeneratorTask |
GeneratorTask.ModelLocation, GeneratorTask.ReconcileGenModelType |
| Field Summary |
| Fields inherited from class org.eclipse.emf.ant.taskdefs.codegen.ecore.GeneratorTask |
autoBuild, commandline, copyright, generateEditorProject, generateEditProject, generateJavaCode, generateModelProject, genModel, GENMODEL_KEEP, GENMODEL_OVERWRITE, GENMODEL_RELOAD, model, modelPluginID, modelProject, modelProjectFragmentPath, reconcileGenModel, sdo, templatePath |
| Fields inherited from class org.apache.tools.ant.Task |
description, location, target, taskName, taskType, wrapper |
| Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
| Constructor Summary | |
RoseGeneratorTask()
|
|
| Method Summary | |
protected void |
addGenModelArguments()
|
protected void |
createGenModel(String[] arguments)
|
protected boolean |
supportMultipleURIs()
|
| Methods inherited from class org.eclipse.emf.ant.taskdefs.codegen.ecore.GeneratorTask |
addGenModelPathArgument, addModelPathArgument, adjustEditAndEditorProjects, checkAttributes, createArg, createModel, doExecute, generateCodeFromGenModel, getCommandline, getGeneratorArguments, setAutoBuild, setCopyright, setGenerateEditorProject, setGenerateEditProject, setGenerateJavaCode, setGenerateModelProject, setGenModel, setModel, setModelPluginID, setModelProject, setModelProjectFragmentPath, setReconcileGenModel, setReconcileGenModel, setSDO, setTemplatePath |
| Methods inherited from class org.eclipse.emf.ant.taskdefs.EMFTask |
assertTrue, execute, getProgressMonitor |
| Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
| Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, setProject |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RoseGeneratorTask()
| Method Detail |
protected boolean supportMultipleURIs()
supportMultipleURIs in class GeneratorTaskprotected void addGenModelArguments()
addGenModelArguments in class GeneratorTask
protected void createGenModel(String[] arguments)
throws Exception
createGenModel in class GeneratorTaskException
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||