Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » can't generate file in another project
can't generate file in another project [message #570717] Tue, 14 July 2009 11:35
St is currently offline StFriend
Messages: 77
Registered: July 2009

I'm trying to generate files in another eclipse project.

I have two projects, one named "meta-modeling-tools"(1), the other named

In the first there is an egl program, in the second, there is an ecore

I have coded an egl program that create a basic directory structure for
all epackages and eclasses inside the ecore model to create "places" where
to put "epsilon" programs (wizards, etc) and such.

At this point I can't make my egl program generating files in another
project, from project 1 to project 2.

Here is the egl program :



for( p in EPackage.allInstances() )

operation EPackage createEpsilonToolsDirectoryStructure() : null
var t : Template; t =
TemplateFactory.load('./createEpsilonTools/createEpsilonBasi cDirectory.egl');
t.populate('p', self);

operation EPackage getDirectory() : String
var ret: String;
ret = self.eSuperPackage.getDirectory() + '/';
ret = ret + + '/';
return ret;

operation EPackage getFile() : String
return self.getDirectory() + '.' +;
the loaded template contains simply a []

the launch file :

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
type=" org.epsilon.egl.eclipse.dt.launching.EglLaunchConfigurationD elegate ">
<booleanAttribute key="appendToFile" value="false"/>
<intAttribute key="generateTo" value="1"/>
<listAttribute key="models">
<listEntry value="#&#10;#Sun Jul 12 09:48:20 CEST
2009&#10;isMetamodelFileBased=false&#10;name=model&a mp;#10;readOnLoad=true&#10;storeOnDisposal=true&#10; aliases=model&#10;metamodelUri=http\:// ;type=EMF&#10;modelFile=/sfDoctrine-1.1.2/model/sfDoctri ne.ecore&#10;expand=true&#10;metamodelFile=&#10; "/>
<stringAttribute key="outputFilePath" value=""/>
<stringAttribute key="source"
value=" /meta-modeling-tools/src/tools/EPackage/createEpsilonTools.e gl "/>

Then I tried to copy/paste the launcher in the project 2 but still not
I have tried with "setOuputRoot('./src-gen/tools') but generate things in
the project 1 (where the egl file resides).

So how can I do to generate files from one project to another ?
Is this possible ? If not, why ?

Thanks :-)
Previous Topic:Euginia: Synchronize GMF Gen Model produce an Error
Next Topic:can't generate file in another project
Goto Forum:

Current Time: Tue Oct 06 23:06:31 GMT 2015

Powered by FUDForum. Page generated in 0.09474 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software