Skip to main content



      Home
Home » Archived » M2M (model-to-model transformation) » Launching ATL programmatically
Launching ATL programmatically [message #1545] Mon, 18 December 2006 10:54 Go to next message
Eclipse UserFriend
Originally posted by: dorazio.nicola.yahoo.it

Hi all,
I'm an Italian student of Rome and I'm making a thesis about ATL. I need
to launch ATL programmatically (from java file, not from Run... option),
but I have so much problem. I write here because there isn't books about
doing this. In my trasformation I have this scheme:

INPUT METAMODEL Klaper.ecore (EMF)
INPUT MODEL My.klaper (generated by an emf plugin)
OUTPUT METAMODEL DTMP.ecore (EMF)

The error is that the function input = amh.loadModel("IN", emfmm1,
inputm_url.openStream()) returns null where emfmm1 is a type of ASMModel
and inputm_url is type of URL. By debug I have seen that "null" came
from some method called in URI.class (but because I haven't the source
code of this class I cannot see why).

Is anyone who can say me how can I resolve my problem?

Thank you so much for the time spent to me.

Best regards Nicola D'Orazio
Re: Launching ATL programmatically [message #1559 is a reply to message #1545] Mon, 18 December 2006 12:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: freddy.allilaire.univ-nantes.fr

Hi Nicola,

You can find some details here:
http://wiki.eclipse.org/index.php/ATL_Howtos#How_do_I_launch _transformations_programmatically.3F

The source code of the ATL ant task could be an interesting example for
you of how to launch an ATL transformation programmatically
( http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.gmt/AM3 /org.eclipse.gmt.am3.tools.ant/src_ant/?root=Technology_Proj ect).

Best regards,
Freddy.

Nicola D'Orazio a écrit :
> Hi all,
> I'm an Italian student of Rome and I'm making a thesis about ATL. I need
> to launch ATL programmatically (from java file, not from Run... option),
> but I have so much problem. I write here because there isn't books about
> doing this. In my trasformation I have this scheme:
>
> INPUT METAMODEL Klaper.ecore (EMF)
> INPUT MODEL My.klaper (generated by an emf plugin)
> OUTPUT METAMODEL DTMP.ecore (EMF)
>
> The error is that the function input = amh.loadModel("IN", emfmm1,
> inputm_url.openStream()) returns null where emfmm1 is a type of ASMModel
> and inputm_url is type of URL. By debug I have seen that "null" came
> from some method called in URI.class (but because I haven't the source
> code of this class I cannot see why).
>
> Is anyone who can say me how can I resolve my problem?
>
> Thank you so much for the time spent to me.
>
> Best regards Nicola D'Orazio
Re: Launching ATL programmatically [message #1611 is a reply to message #1559] Tue, 19 December 2006 00:56 Go to previous message
Eclipse UserFriend
Originally posted by: bezivin.univ-nantes.fr

Dear Freddy and Nicola,

Could you stick with the rule in this newsgroup
of always prefixing the subject line
of your question, answer or comment
by the [ATL] tag?

We absolutely need to enforce this rule/habit
since the M2M project has several components.

Thanks,

Jean


"Freddy Allilaire" <freddy.allilaire@univ-nantes.fr> a
Previous Topic:Getting value from a reference
Next Topic:[ATL] Run Problem On Linux
Goto Forum:
  


Current Time: Thu Jun 05 00:50:46 EDT 2025

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

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

Back to the top