Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Modeling (top-level project) » EMF Ant task - no java code generated
EMF Ant task - no java code generated [message #617451] Thu, 25 June 2009 05:50
Aurelien Pupier is currently offline Aurelien Pupier
Messages: 551
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

Hi,

I'm trying to use ant task for generate code from genmodel.

I put this :

<emf.Ecore2Java
modelproject="${buildDirectory}/plugins/org.ow2.jasmine.design "
generatejavacode="true"
generatemodelproject="true"

genmodel=" ${buildDirectory}/plugins/org.ow2.jasmine.design/model/jasmi ne.genmodel "
modelprojectfragmentpath="src"

model=" ${buildDirectory}/plugins/org.ow2.jasmine.design/model/jasmi ne.ecore "
></emf.Ecore2Java>


I have this trace :

[java] [emf.Ecore2Java] >>> Generating
D:\build\plugins\org.ow2.jasmine.design\model\jasmine.genmod el
[java] [emf.Ecore2Java] >> Examining project
'org.ow2.jasmine.design'
[java] [emf.Ecore2Java] >> Refreshing '/org.ow2.jasmine.design'.
[java] [emf.Ecore2Java] >> Opening 'org.ow2.jasmine.design'.
[java] [emf.Ecore2Java] >> Generating code
[java] [emf.Ecore2Java] >> Generating packages
[java] [emf.Ecore2Java] >> Generating model plugin.properties
[java] [emf.Ecore2Java] >> Generating file
/org.ow2.jasmine.design/plugin.properties
[java] [emf.Ecore2Java] >> Opening folder /org.ow2.jasmine.design
[java] [emf.Ecore2Java] >> Examining old
/org.ow2.jasmine.design/plugin.properties
[java] [emf.Ecore2Java] >> Preparing new
/org.ow2.jasmine.design/plugin.properties
[java] [emf.Ecore2Java] >> Generating model build.properties
[java] [emf.Ecore2Java] >> Generating model plugin.properties
[java] [emf.Ecore2Java] >> Generating file
/org.ow2.jasmine.design/build.properties
[java] [emf.Ecore2Java] >> Opening folder /org.ow2.jasmine.design
[java] [emf.Ecore2Java] >> Generating model META-INF/MANIFEST.MF
[java] [emf.Ecore2Java] >> Generating file
/org.ow2.jasmine.design/META-INF/MANIFEST.MF
[java] [emf.Ecore2Java] >> Opening folder
/org.ow2.jasmine.design/META-INF
[java] [emf.Ecore2Java] >> Generating model plugin.xml
[java] [emf.Ecore2Java] >> Generating file
/org.ow2.jasmine.design/plugin.xml
[java] [emf.Ecore2Java] >> Opening folder /org.ow2.jasmine.design


So no problem appears and it told that it is "Generating code" but no
*.java file generated :(

I'm wondering something else : my genmodel is based on multiple .ecore,
how can we specified all these models? Is my problem related to that?

Thanks by advance,

Aurelien Pupier


Aurélien Pupier - BonitaSoft S.A.
My blog
My company Eclipse-related blog
Previous Topic:[Announce] Xtext Webinar - Jul. 15
Next Topic:New and Noteworthy?
Goto Forum:
  


Current Time: Wed Apr 16 23:52:19 EDT 2014

Powered by FUDForum. Page generated in 0.01445 seconds