Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] Re: Pass a parameters in atl command lines
[ATL] Re: Pass a parameters in atl command lines [message #23239] Tue, 13 March 2007 10:29 Go to next message
Eclipse UserFriend
Originally posted by: freddy.allilaire.univ-nantes.fr

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
>


--
Freddy Allilaire - ATLAS Group (INRIA & LINA)
http://www.sciences.univ-nantes.fr/lina/atl/contrib/allilair e
Re: [ATL] Re: Pass a parameters in atl command lines [message #23364 is a reply to message #23239] Tue, 13 March 2007 18:00 Go to previous messageGo to next message
Dennis Wagelaar is currently offline Dennis WagelaarFriend
Messages: 147
Registered: July 2009
Senior Member
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 #23451 is a reply to message #23364] Wed, 14 March 2007 09:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: yassin_chkouri.yahoo.fr

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
Re: [ATL] Re: Pass a parameters in atl command lines [message #24055 is a reply to message #23451] Sun, 18 March 2007 19:31 Go to previous message
Dennis Wagelaar is currently offline Dennis WagelaarFriend
Messages: 147
Registered: July 2009
Senior Member
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
Previous Topic:UML1.3 To IF Transformation
Next Topic:ATL out of eclipse
Goto Forum:
  


Current Time: Tue Mar 19 14:05:33 GMT 2024

Powered by FUDForum. Page generated in 0.02496 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top