|Re: Acceleo : Skip code generation [message #756816 is a reply to message #755899]
||Tue, 15 November 2011 04:15
| Laurent Goubet
Registered: July 2009
There is currently no simple way to achieve this. It is a known bug (... though I did not find it on the bugzilla; submitted https://bugs.eclipse.org/bugs/show_bug.cgi?id=363782 for the record).
The only workaround I can think of for now is to encapsulate your "file" block inside of an "if", and make the condition of the "if" a call to a Java service that will return either "true" or "false" depending on whether the file already exists or not.
Or if you are trying this for files that support comments, use protected areas or JMerge to prevent Acceleo from overwriting "protected" regions of the code.
Powered by FUDForum
. Page generated in 0.01693 seconds