[ATL] serializing a model to text from ant [message #85772] |
Wed, 02 July 2008 14:07 |
Eclipse User |
|
|
|
Originally posted by: christos.sofronis.parades.rm.cnr.it
Hello,
I am very new in ATL (about a week) and not very old in eclipse, so excuse
me if my question is trivial; though, I went extensively throught the
examples and documentation before posting here.
I have a problem to serializing the resulting model from a model
transformation to its corresponding text file (not the xmi per se). I
follow the example shown in the
org.eclipse.gmt/AM3/org.eclipse.am3.zoos.atlanticRaster/buil d but I get
the follwing error:
BUILD FAILED
C:\eclipse-workspaces\dev\build.xml:32:
java.lang.IllegalArgumentException: Path must include project and resource
name: /lala.cc
The corresponding lines on the ant build file are
<am3.saveModel model="OUT" path="lala.cc">
<extractor name="atl">
<param name="queryPath" value="atl/B2cc.asm"/>
</extractor>
</am3.saveModel>
where OUT is the output model that is produced correctly (if I save this
model according to its meta-model I get the correct xmi on the
filesystem). The atl/B2cc.atl contains the query and the corresponding
toString() helpers. Note that if I simply add the writeTo('...') and run
with the launch configuration, this serialization works perfectly.
I tried several other alternatives in the path value, but the result is
always the same.
btw, the documentation in the atl_howto for launching an atl
transformation programmatically, even though they are extensive, I believe
they are outdated; I had hard time to installing all prerequisites and
making it all run together, which I only managed to do when I used as only
source the following link in the update manager
http://www.sciences.univ-nantes.fr/lina/atl/www/download/upd ates/
besides the above configuration for ATL/AM3 I'm running eclipse 3.3.2, EMF
2.3.2
any ideas?
thank you in advance.
christos...
|
|
|
Re: [ATL] serializing a model to text from ant [message #85787 is a reply to message #85772] |
Wed, 02 July 2008 14:20 |
Eclipse User |
|
|
|
Originally posted by: christos.sofronis.parades.rm.cnr.it
I forgot to mention that the B2cc.atl is executed correctly when invoked
from the ant, and that I know from a message that is printed on the atl
console when the toString() helper finishes.
christos...
|
|
|
|
Re: [ATL] serializing a model to text from ant [message #85875 is a reply to message #85831] |
Thu, 03 July 2008 10:39 |
Eclipse User |
|
|
|
Originally posted by: Christos.Sofronis.parades.rm.cnr.it
Thank you very much Guillaume, it worked.
I'm pretty much sure I had tried that too, but either I misspelled it or
maybe I tried that with an incompatible set of atl/am3 installations and
it didn't work.
merci,
christos...
Guillaume Doux wrote:
> Christos a écrit :
>> I forgot to mention that the B2cc.atl is executed correctly when
>> invoked from the ant, and that I know from a message that is printed
>> on the atl console when the toString() helper finishes.
>>
>>
>> christos...
>>
>
> Hello,
>
> It seems to be a problem with the path of your output file. You must add
> the project name to the path, so instead of :
>
> <am3.saveModel model="OUT" path="lala.cc">
>
> try
>
> <am3.saveModel model="OUT" path="/YourProjectName/lala.cc">
>
> Hope this helps...
>
>
> Best regards,
>
> Guillaume doux
|
|
|
Powered by
FUDForum. Page generated in 0.02523 seconds