Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Problem running ETL using Epsilon/ANT
Problem running ETL using Epsilon/ANT [message #571846] Thu, 30 July 2009 21:04
Ali Gondal is currently offline Ali Gondal
Messages: 13
Registered: July 2009
Junior Member
Hi;

I'm trying to run my ETL rule using launch.xml (see below). There seems to
be a problem at:
'<epsilon.loadModel name="Ecore" type="EMF">'.

I think I am not sure how to specifiy URI based model and none of the
given examples do so. My etl works fine when I go through "Run
Configuration...".


<?xml version="1.0"?>

<project default="main">
<target name="init">
<property name="models" location="${basedir}/models"/>
<property name="metamodels" location="${basedir}/metamodels"/>
</target>

<target name="loadModels">
<epsilon.loadModel name="EM" type="EMF">
<parameter name="modelFile" value="${models}/car.ecore"/>
<parameter name="metamodelUri"
value="http://www.eclipse.org/emf/2002/Ecore"/>
<parameter name="isMetamodelFileBased" value="false"/>
<parameter name="readOnLoad" value="true"/>
<parameter name="storeOnDisposal" value="false"/>
</epsilon.loadModel>


<epsilon.loadModel name="FM" type="EMF">
<parameter name="modelFile" value="${models}/car.fmm"/>
<parameter name="metamodelFile" value="${metamodels}/fmm.ecore"/>
<parameter name="isMetamodelFileBased" value="true"/>
<parameter name="readOnLoad" value="true"/>
<parameter name="storeOnDisposal" value="false"/>
</epsilon.loadModel>

<epsilon.loadModel name="Ecore" type="EMF">
<parameter name="metamodelUri"
value="http://www.eclipse.org/emf/2002/Ecore"/>
<parameter name="isMetamodelFileBased" value="false"/>
<parameter name="readOnLoad" value="false"/>
<parameter name="storeOnDisposal" value="false"/>
</epsilon.loadModel>

</target>

<target name="main" depends="init,loadModels">
<epsilon.etl src="${basedir}/fmm2ecore.etl">
<model ref="FM"/>
<model ref="EM"/>
<model ref="Ecore"/>
</epsilon.etl>
</target>
</project>


Any help would be great:)
cheers

--Ali
Previous Topic:[ETL][Newbie] how to execute ETL script
Next Topic:[ETL][Newbie] how to execute ETL script
Goto Forum:
  


Current Time: Sat Sep 20 20:20:52 GMT 2014

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

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