Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo] Protect entire java file?
[Acceleo] Protect entire java file? [message #844642] Sat, 14 April 2012 07:18 Go to next message
Ian Warwick is currently offline Ian WarwickFriend
Messages: 44
Registered: April 2012
Member
Is there a way to protect an entire java file with [protected] ? If I wrap it round hte outside of a [file] block then it wipes over the file, If I put it inside it protects the entire file but adds the protected comments.

Is there a way to protect a file without the protected comments?

Regards,

Ian
Re: [Acceleo] Protect entire java file? [message #846608 is a reply to message #844642] Mon, 16 April 2012 08:20 Go to previous messageGo to next message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1902
Registered: July 2009
Senior Member
Hi Ian,

Unfortunately, this is not possible yet as we were limited by the specification. This needs an update of the MOF Model-to-Text Language specification to support a third generation strategy "once" (or whatever we'd name it) with which we would never generate again a file that already exists. Currently, only "append" or "overwrite" strategies are supported ... and they are through a boolean in the file block signature which prevents us from adding a third choice.

I never got to raise the enhancement request against the specification since the rtf seems to be non-existent (see http://www.omg.org/issues/mtt-rtf.open.html). Though not important in term of code, this change requires a change in the core of Acceleo that can only be done when we get to Acceleo 4.0.

Laurent Goubet
Obeo
Re: [Acceleo] Protect entire java file? [message #865348 is a reply to message #846608] Mon, 30 April 2012 11:00 Go to previous message
Ian Warwick is currently offline Ian WarwickFriend
Messages: 44
Registered: April 2012
Member
Hi Laurent,

Thanks for the detailed response and a fantastic product.

Best Regards,

Ian
Previous Topic:Acceleo: Cannot make c.id() works.
Next Topic:[Acceleo] Problem when splitting templates into different plugins
Goto Forum:
  


Current Time: Fri Apr 26 04:46:10 GMT 2024

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

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

Back to the top