Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 361620 - epsilon.eugenia ant task has problems with ecore models that have packages in packages
Summary: epsilon.eugenia ant task has problems with ecore models that have packages in...
Status: CLOSED FIXED
Alias: None
Product: Epsilon
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 blocker (vote)
Target Milestone: ---   Edit
Assignee: Dimitris Kolovos CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-21 04:39 EDT by Ralph Gerbig CLA
Modified: 2013-09-01 08:32 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ralph Gerbig CLA 2011-10-21 04:39:49 EDT
I have the following .ecore model structure:

Package1
 |-Package2

I use the following ant task to generate the genmodel:

<epsilon.eugenia src="../my.plugin.name/model.ecore" firststep="genmodel" laststep="genmodel"></epsilon.eugenia>

The generated genmodel has the following structure:

Package1
 |-Package2
Package2
Comment 1 Dimitris Kolovos CLA 2011-11-10 18:30:43 EST
Ralph,

Thanks for reporting this. Using nested packages in Ecore is generally not a very good idea (Ed Merks himself has in several occasions advised against using this feature - I can dig out concrete pointers if needed). Would it be an option to flatten your Ecore model?
Comment 2 Ralph Gerbig CLA 2011-11-28 04:06:12 EST
Hi,

I currently do not have this option. I would like to have to packages. Usually I would put these two in seperate meta-models. But in this case the elements from both packages reference each other. Hence, I would creare a circle dependency.

Ralph
Comment 3 Dimitris Kolovos CLA 2013-04-07 14:16:59 EDT
Fixed in the SVN - r2193
Comment 4 Dimitris Kolovos CLA 2013-04-27 05:45:57 EDT
Fixed in the latest interim version (1.0.0.201304211529).
Comment 5 Dimitris Kolovos CLA 2013-09-01 08:32:29 EDT
Fixed in 1.1