[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.modeling.m2m] Re: [ATL] Re: Pass a parameters in atl command lines

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_extern_parameters_in_ATL_transformations.3F

--
Regards,
Dennis