incubator-etch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scott comer <wer...@mac.com>
Subject Re: Modifying templates?
Date Tue, 01 Jun 2010 16:38:17 GMT
oh, important safety tip. if the generated main file exists when you run 
the compiler, it won't overwrite it.

that might be why you don't see your change. remove the generated main 
first, then try again.

scott out

On 6/1/2010 11:25 AM, Aditi S wrote:
> Also, I am not using the installed version - I am using the Etch source code
> I downloaded from the Apache Etch site.
>
> On Tue, Jun 1, 2010 at 9:54 PM, Aditi S<aditi.s.87@gmail.com>  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<wert1y@mac.com>  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
>>>
>>>
>>>        
>>      
>    


Mime
View raw message