well, you might have done it a different way that i would have. :)
here's what i'd do. using the etch distribution, unjar the
etch-java-compiler-<ver>.jar, edit the main.vm, then
rejar the file, then try.
but NOTE! while the main file is generated as an example, and while in
simple cases you might want to use
it directly, it is mainly created as an example for you to then modify.
in other words, just edit it like you want,
no need to change the compiler, unless it is broken somehow.
scott out
On 6/1/2010 11:24 AM, Aditi S wrote:
Sorry for the flood of messages - didn't see the messages appearing on the
mailer archives. :)
Thank you for your quick response!
So, I think the Etchmain program invokes Compiler.java to generate the
files? Which in turn uses Velocity? I'm pretty sure I set the path in
Compiler.java to the right location, I just don't think it gets called. Am I
missing something?
On Tue, Jun 1, 2010 at 9:35 PM, scott comer<[email protected]> wrote:
On 6/1/2010 10:55 AM, Aditi S wrote:
Hi,
How does one modify templates used by the Etch source code for code
generation?
I tried modifying the main.vm file by adding a simple line to it, and
saved
and rebuilt. However, could not see changes reflected in generated code.
The
main.vm file I used was in
etch//etch-1.0.1/binding-java/compiler/src/main/resources/etch/bindings/java/compiler.
Thanks!
Aditi
uh, i think that should have done it. i'm going to go out on a limb and
guess that maybe there are path problems with your use. perhaps you are
using an installed version rather than the version you built?
scott out