Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 313759

Summary: epsilon.loadModel readOnLoad failure
Product: [Modeling] Epsilon Reporter: Chris Holmes <holmeschrisk>
Component: CoreAssignee: Dimitris Kolovos <dkolovos>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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.