[stringtemplate-interest] Way to merge/save changes to generated code
Richard Catlin
richard.m.catlin at gmail.com
Fri Mar 26 14:16:26 PDT 2010
I am using Antlr/StringTemplate to generate a SessionFacde class. I then
need to fill in some of the methods. Is there a way to merge/save the user
hand written code, if the file is regenerated. I thought using SVN would at
least allow me to diff the file and cut and paste the user hand written
code, but was wondering if anyone has a better strategy for automating.
Other tools like Acceleo have a merge/lost feature. "lost" is user code
that could not be merged due to a change in the generated code, such as a
method deletion.
For instance, a Session Facade may be:
public class SessionFacade1 {
public String method1() {
/* User hand-written code */
return "hello";
/* end User hand-written code */
}
}
Thanks for any help.
Richard Catlin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/stringtemplate-interest/attachments/20100326/4031b498/attachment.html
More information about the stringtemplate-interest
mailing list