|
Re: [Acceleo 3] Update in Model reflects regeneration [message #653118 is a reply to message #653102] |
Tue, 08 February 2011 14:57   |
|
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--
|
|
|
|
Powered by
FUDForum. Page generated in 0.02274 seconds