I have some questions about the use of the ATL compiler programatically.
In ny cas, i have an ATL model generated from an high order transformation
and
i want to compile this model into an .asm file. I look up to the
AtlCompiler.java and AtlDefaultCompiler.java classes and see that methods
i can call are:
public EObject[] compile(InputStream in, String outputFileName) and
public EObject[] compile(InputStream in, IFile out)
I see an example of use of the second one in the AtlBuildVisitor.java
class, but in my case i don't want to rely on eclipse resources via the
IFile so i try to use the first one.
My problem is that i don't understand how the .asm file is save. The
parameter outputFileName is used in the AtlDefaultCompiler.java
internalCompile method in this way:
params.put("debug", "false
params.put("WriteTo", outputFileName);
So i suppose the file is writen during the execution of the transformation
? But when try to use it, nothing is saved.
How to use to it ?
My others questions concern the input of the compile method. Can we
directly put the ATL model in xmi as output instead of an .atl file ?
And fort last, do we have to save the generated .asm file or can we deal
with it directly in memory ?