Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 361620

Summary: epsilon.eugenia ant task has problems with ecore models that have packages in packages
Product: [Modeling] Epsilon Reporter: Ralph Gerbig <ralphgerbig>
Component: CoreAssignee: Dimitris Kolovos <dkolovos>
Status: CLOSED FIXED QA Contact:
Severity: blocker    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

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