Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 313759 - epsilon.loadModel readOnLoad failure
Summary: epsilon.loadModel readOnLoad failure
Status: CLOSED INVALID
Alias: None
Product: Epsilon
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Dimitris Kolovos CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-20 12:18 EDT by Chris Holmes CLA
Modified: 2013-04-27 05:25 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Holmes CLA 2010-05-20 12:18:48 EDT
If epsilon.loadModel attribute 'readOnLoad' is set to 'true' and there is no model to read the task fails (crashes). The task should create (but not store unless directed to do so) an empty model in memory and continue processing.

Bug demonstrable with Epsilon 0.8.9.

Example task:
<epsilon.loadModel name="${MessageSet}" type="EMF">
	<parameter name="expand"          value="true"/>
	<parameter name="modelFile"       file="${TargetFile}"/>
	<parameter name="metamodelUri"    value="${TargetMessageSetUri}"/>
	<parameter name="readOnLoad"      value="true"/>
	<parameter name="storeOnDisposal" value="true"/>
</epsilon.loadModel>
Comment 1 Dimitris Kolovos CLA 2013-04-17 07:18:26 EDT
A problem with the proposed solution is that then any wrong/mistyped filenames would be silently accepted. As such, I'd be inclined to keep the existing behaviour.
Comment 2 Dimitris Kolovos CLA 2013-04-27 05:25:13 EDT
Closing as invalid.