|
Re: How to use ATL stand-alone [message #46981 is a reply to message #45682] |
Sat, 16 June 2007 16:06 |
|
On 2007-06-13 05:31:39 +0200, shifeng.yu@hp.com (Stephen Yu) said:
> Hi, Does anybody use ATL Command-Line done by Dennis?
> ( http://ssel.vub.ac.be/viewcvs/viewcvs.py/UML1CaseStudies/uml 1cs-atlcommandline/src/org/atl/commandline/Main.java?view=ma rkup)
Would
>
> you explain something about the parameters, see followings:
> Usage: <this program> --trans <transformation url> [--in <id>=<model>
> <id>=<metamodel> <MDR|EMF>] [--out <id>=<model> <id>=<metamodel>
> <MDR|EMF>] [--lib <id>=<library url>] [--superimpose <transformation
> url>] --next --trans ...
>
> It's difficult for me to figure out the right value for each paramter.
> Would you give me an example for this command-line?
>
> Thanks a lot.
>
> Stephen
Assume your ATL transformation declares the following input and output models:
module MyTrans;
create OUT : MetaModelOut from IN : MetaModelIn;
I also assume that you're working with EMF, and your files are all
stored in a folder on c:\atl.
The you have to use the following command line:
--trans file:/C:/atl/MyTrans.asm
--in IN=file:/C:/atl/inmodel.in MetaModelIn=file:/C:/atl/in.ecore EMF
--out OUT=file:/C:/atl/outmodel.out MetaModelOut=file:/C:/atl/out.ecore EMF
(I hope I've describe the URLs in a correct format.)
The IDs are retrieved from the create-line in your ATL-transformation:
create
OUT: -- ID of out model
MetaModelOut -- ID of out metamodel
from
IN : -- ID of in model
MetaModelIn; -- ID of in metamodel
All paths have to be URLs, the transformation is the compiled version.
Hope this helps,
Jens
|
|
|
Powered by
FUDForum. Page generated in 0.02589 seconds