Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » [URGENT] Help Me Please(I need some help to merge XML files.)
icon4.gif  [URGENT] Help Me Please [message #1282832] Wed, 02 April 2014 20:54 Go to next message
André Albuquerque is currently offline André Albuquerque
Messages: 2
Registered: March 2014
Junior Member
Im trying to set up a build.xml file:

<project default="merge">

<target name="loadModels">

<epsilon.emf.register file="SimpleOO.ecore"/>

<epsilon.loadModel name="BaseModel" type="EMF">
<parameter name="modelFile" file="BaseModel.model"/>
<parameter name="metamodelUri" value="SimpleOO"/>
<parameter name="readOnLoad" value="true"/>
</epsilon.loadModel>

<epsilon.loadModel name="DeltaModel" type="EMF">
<parameter name="modelFile" file="DeltaModel.model"/>
<parameter name="metamodelUri" value="SimpleOO"/>
<parameter name="readOnLoad" value="true"/>
</epsilon.loadModel>

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

</target>

<target name="merge" depends="compare">
<epsilon.eml src="MergeSimpleOO.eml"
usematchtrace="matchTrace">
<model ref="BaseModel" alias="Source"/>
<model ref="DeltaModel" alias="Source"/>
<model ref="ComposedModel"/>
</epsilon.eml>
</target>

<target name="compare" depends="loadModels">
<epsilon.ecl src="CompareSimpleOO.ecl"
exportmatchtrace="matchTrace">

<model ref="BaseModel" alias="Source"/>
<model ref="DeltaModel" alias="Source"/>
</epsilon.ecl>
</target>

<target name="validate" depends="compare">
<epsilon.evl src="ValidateSimpleOO.evl">
<model ref="BaseModel" alias="SimpleOO"/>
<model ref="DeltaModel" alias="SimpleOO"/>
<uses ref="matchTrace"/>
</epsilon.evl>
</target>

</project>
_____________________________________________________________________________________

But im getting the following error message (the error is in the image below).
Please help me with it, and have some pacient because im still a beginner.
  • Attachment: erroc.png
    (Size: 32.78KB, Downloaded 11 times)
Re: [URGENT] Help Me Please [message #1282884 is a reply to message #1282832] Wed, 02 April 2014 22:08 Go to previous message
Dimitris Kolovos is currently offline Dimitris Kolovos
Messages: 867
Registered: July 2009
Senior Member
Hi,

As mentioned in [1], when running an ANT workflow that involves Epsilon tasks, please make sure you select the "Run in the same JRE as the workspace" option under the JRE tab of your launch configuration.

Cheers,
Dimitris

[1] http://www.eclipse.org/epsilon/doc/workflow/
Previous Topic:Collection Type Specification
Next Topic:Profile not recognized in ETL when started from standalone plug-in
Goto Forum:
  


Current Time: Wed Sep 24 04:37:41 GMT 2014

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

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