emf.ecore2Java and templatepath [message #508297] |
Mon, 18 January 2010 10:51 |
|
Hi,
I'm trying to use custom template for emf generation in an ant script.
In local, the generation take care of my templates.
But using emf.ecore2java, I can't make it working. I used the templatepath parameter :
<emf.Ecore2Java
modelproject="${buildDirectory}/plugins/${modelsFolder}/process.ecore"
model="${buildDirectory}/plugins/${modelsFolder}/process.ecore"
genmodel="${buildDirectory}/plugins/${modelsFolder}/process.genmodel"
modelprojectfragmentpath="src"
reconcilegenmodel="keep"
generatejavacode="true"
generatemodelproject="true"
generateeditproject="true"
generateeditorproject="false"
templatepath="${buildDirectory}/plugins/${modelsFolder}/EMFTemplates"/>
I checked that the template path is the right one.
i didn't see in the trace of the build any issue. It didn't tell me that it didn't find the templates nor if it tried to use them.
What kind of issue can it be?
Is there an option in the genmodel to allow it?
thanks by advance,
Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
[Updated on: Mon, 18 January 2010 11:02] Report message to a moderator
|
|
|
|
Re: emf.ecore2Java and templatepath [message #508397 is a reply to message #508297] |
Mon, 18 January 2010 16:20 |
|
Thanks for your answer Ed.
but it's working locally.
In properties-> Templates & merge,
I set the template directory and dynamic templates to true.
If I don't precise the templatepath it doesn't work also.
Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
|
|
|
|
Re: emf.ecore2Java and templatepath [message #508417 is a reply to message #508297] |
Mon, 18 January 2010 17:21 |
|
it doesn't seem to work more :
Quote: | The specifed 'templatePath' attribute is not a valid directory.
|
Do you know the name class responsible to use this attribute? (in order to take a look directly into it what it will)
Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
|
|
|
Re: emf.ecore2Java and templatepath [message #508421 is a reply to message #508417] |
Mon, 18 January 2010 17:47 |
Ed Merks Messages: 33137 Registered: July 2009 |
Senior Member |
|
|
Aurelien,
Ultimately it's passed to the JETCompiler. The GenBaseGeneratorAdapter
passes it there. The GeneratorTask does processing of arguments.
Aurelien Pupier wrote:
> it doesn't seem to work more :
>
> Quote:
>> The specifed 'templatePath' attribute is not a valid directory.
>
>
> Do you know the name class responsible to use this attribute? (in
> order to take a look directly into it what it will)
>
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.02133 seconds