Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo 3] Update in Model reflects regeneration
[Acceleo 3] Update in Model reflects regeneration [message #653102] Tue, 08 February 2011 09:07 Go to next message
Peter  is currently offline Peter
Messages: 2
Registered: February 2011
Junior Member
Hi,

I am having a situation that at one time I added a UMLClass, for e.g ClassA, in the Model and run the generation, it will generate ClassA.java

Now if I remove ClassA in the Model and rerun the generation to the same output location, I expected that ClassA.java should be deleted, but it didn't. Will Acceleo handle this case automatically or I have to manually compare and delete the file myself?

Thanks for any response,
Peter
Re: [Acceleo 3] Update in Model reflects regeneration [message #653118 is a reply to message #653102] Tue, 08 February 2011 09:57 Go to previous messageGo to next message
Laurent Goubet is currently offline Laurent Goubet
Messages: 1625
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------070400000900050309040102
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

This is expected. Acceleo knows where it generates code... It doesn't
know anything else. In the case you are describing, Acceleo would need
to know that "before, there was a Class named 'ClassA', where is it
now?"... not to mention the case where you are deleting a class that
didn't generate anything (let's say you had a filter and didn't generate
anything for the class named "ClassA" for example).

Acceleo cannot infer such information by itself, as it does not keep
track of the "previous" generations.

This is in the scope of another of our projects, Obeo Traceability
(http://obeo.fr/pages/obeo-traceability), which would be able to tell
you that "ClassA.java hasn't been generated"... With Acceleo alone,
you'll have to manually delete the "not generated" file.

Laurent Goubet
Obeo

On 08/02/2011 15:07, Peter wrote:
> Hi,
>
> I am having a situation that at one time I added a UMLClass, for e.g
> ClassA, in the Model and run the generation, it will generate ClassA.java
> Now if I remove ClassA in the Model and rerun the generation to the same
> output location, I expected that ClassA.java should be deleted, but it
> didn't. Will Acceleo handle this case automatically or I have to
> manually compare and delete the file myself?
>
> Thanks for any response,
> Peter


--------------070400000900050309040102
Content-Type: text/x-vcard; charset=utf-8;
name="laurent_goubet.vcf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="laurent_goubet.vcf"

YmVnaW46dmNhcmQNCmZuOkxhdXJlbnQgR291YmV0DQpuOkdvdWJldDtMYXVy ZW50DQpvcmc6
PGEgaHJlZj0iaHR0cDovL3d3dy5vYmVvLmZyIj5PYmVvPC9hPg0KZW1haWw7 aW50ZXJuZXQ6
bGF1cmVudC5nb3ViZXRAb2Jlby5mcg0KdXJsOmh0dHA6Ly93d3cub2Jlby5m cg0KdmVyc2lv
bjoyLjENCmVuZDp2Y2FyZA0KDQo=
--------------070400000900050309040102--
Re: [Acceleo 3] Update in Model reflects regeneration [message #653267 is a reply to message #653118] Wed, 09 February 2011 01:59 Go to previous message
Peter  is currently offline Peter
Messages: 2
Registered: February 2011
Junior Member
Thanks Laurent,

The Obeo Traceability is very interesting. My question: Is Obeo Traceability compatible with Acceleo 3x?

Regards,
Peter
Previous Topic:Binary code generation with Xtend/Xpand/Xtend2?
Next Topic:From UML2 to Java Code
Goto Forum:
  


Current Time: Thu Aug 28 01:36:00 EDT 2014

Powered by FUDForum. Page generated in 0.02027 seconds