Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » [ETL][Newbie] how to execute ETL script
[ETL][Newbie] how to execute ETL script [message #571764] Thu, 30 July 2009 16:58
Darren  is currently offline Darren Friend
Messages: 40
Registered: September 2009
Hello all,

I have a meta-model crafted in EMF (myModel.ecore), and I have several xml
files with data. Ihave used the EMF project wizard to create the ECore
meta-model from the XSD for the data. I have written a simple ETL script
to copy a couple of items of data. I therefore have:
data.model (XML file renamed to .model)
newData.model (empty model file based on myModel.ecore)

I have tried using the run as ETL config, declaring the models, however I
keep getting a "Type 'xmlModel!xmlClass' not found " error. I have also
tried to copy the ANT scripts form the OO2DB example but get the error
"testETL.xml:15: java.lang.NullPointerException", The ANT file is shown at

I assume it's something simple I'm not understanding if anyone has any
suggestions that would be great.


<?xml version="1.0"?>
<project default="main">
<target name="loadModels">

<epsilon.emf.register file="DocumentModel.ecore"/>
<epsilon.emf.register file="tdl.ecore"/>

<epsilon.loadModel name="DocumentStructure" type="EMF">
<parameter name="modelFile" file="populated.model"/>
<parameter name="metamodelUri" value="DocumentStructure"/>
<parameter name="readOnLoad" value="true"/>
<parameter name="storeOnDisposal" value="true"/>

<epsilon.loadModel name="DocumentModel" type="EMF">
<parameter name="modelFile" file="XMF_Prep_Main_Section_4.model"/>
<parameter name="metamodelUri" value="DocumentModel"/>
<parameter name="readOnLoad" value="true"/>
<parameter name="storeOnDisposal" value="false"/>

<target name="main" depends="loadModels">
<epsilon.etl src="DocXML.etl">
<model ref="DocumentModel"/>
<model ref="DocumentStructure"/>

Previous Topic:[EGL] [newbie] Multiple input models problem
Next Topic:Problem running ETL using Epsilon/ANT
Goto Forum:

Current Time: Thu Jun 21 22:18:28 GMT 2018

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

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

Back to the top