|
Re: [ATL] Re: Pass a parameters in atl command lines [message #23364 is a reply to message #23239] |
Tue, 13 March 2007 14:00   |
Eclipse User |
|
|
|
Freddy Allilaire schreef:
> Hi Yassin,
>
> Please use the M2M newsgroup for ATL-specific questions. I've added it
> to the "to" list, so you can continue to use this thread.
>
> I have never used this command-line tool :-( but maybe Dennis could help
> you on this newsgroup :-).
>
> Regards,
> Freddy.
>
> yassin a écrit :
>> Hello,
>> I run the ATL Transformation from the command line as an own
>> application outside Eclipse. I'm using the 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)
>>
>> I want to pass a parameters with this Main to run my program, and i
>> want to know if "ATL Command-Line done by Dennis" support more than
>> one model "in".
>> someone can give me some information ???
>> I hope that you understood well my question and afflicted for my
>> English level writing .
>>
>> Thanks in advance
>>
>> Yassin
>>
>
>
It does support more than one "in", "out", "lib", etc. It also supports
doing more than one transformation. A good example can be found here:
http://ssel.vub.ac.be/viewcvs/viewcvs.py/UML1CaseStudies/uml 1cs-instantmessenger-model/outmodels/test2mm/build.xml?rev=5 387&view=markup
This example calls the ATL command line tool from an Ant script.
Kind regards,
Dennis
|
|
|
|
Re: [ATL] Re: Pass a parameters in atl command lines [message #24055 is a reply to message #23451] |
Sun, 18 March 2007 15:31  |
Eclipse User |
|
|
|
yassin schreef:
> I made a program in ATL which makes the fusion of the components, and
> which takes in parameter the names of the components merged. starting
> from the class 'luncher' that you used in your "Main", this class with
> parameter: �trans�, �libs�, �models� and "params". I want to know how I
> can used this �params�? how I will make to call this �params� in my
> program ATL? I already used the passage of parameter by a file XML, and
> I can launch my program ATL but without paramter (thanks to your Main
> function) but separately.
>
> thank you in advance
>
The "params" parameter in AtlLauncher.launch() is not used in the
command line interface, the Eclipse interface or the Ant interface. Are
you sure you even need this?
If you just want to know what to do with this parameter, then just do
the same as the command line tool: pass Collections.EMPTY_MAP into it.
If you want to pass parameters to your transformation, it's better to
store your parameters in an XML model:
http://wiki.eclipse.org/index.php/ATL_Howtos#How_do_I_use_ex tern_parameters_in_ATL_transformations.3F
--
Regards,
Dennis
|
|
|
Powered by
FUDForum. Page generated in 0.06626 seconds