Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Run EMG in workflow(Can ant generate model samples)
Run EMG in workflow [message #1856266] Wed, 30 November 2022 06:32 Go to next message
Jörn Guy Süß is currently offline Jörn Guy SüßFriend
Messages: 320
Registered: July 2009
Location: Anstead, Brisbane, Queens...
Senior Member

How do I call EMG using ant?
Re: Run EMG in workflow [message #1856279 is a reply to message #1856266] Thu, 01 December 2022 00:07 Go to previous messageGo to next message
Jörn Guy Süß is currently offline Jörn Guy SüßFriend
Messages: 320
Registered: July 2009
Location: Anstead, Brisbane, Queens...
Senior Member

For those searching: It is run via EPL:

<?xml version="1.0" encoding="UTF-8"?>
<project name="project" default="generateModel">

	<eclipse.convertPath resourcePath="models"
	                     property="modelsProjectPath"
	                     description="Convert the Eclipse path to a filepath." />



	<target name="generateModel">

		<property name="metaModelPath"
		          location="${modelsProjectPath}/metamodel/metamodel.emf" />

		<epsilon.emf.loadModel name="source"
		                       modelfile="generated.model"
		                       metamodelfile="${metaModelPath}"
		                       read="false"
		                       store="true"
		                       validate="true" />

		<epsilon.epl src="makeSequence.emg">
			<model ref="source" />
		</epsilon.epl>

	</target>

</project>
Re: Run EMG in workflow [message #1856280 is a reply to message #1856279] Thu, 01 December 2022 00:15 Go to previous messageGo to next message
Jörn Guy Süß is currently offline Jörn Guy SüßFriend
Messages: 320
Registered: July 2009
Location: Anstead, Brisbane, Queens...
Senior Member

Actually, that executes the module but does not store the result, oddly. I can show that it calls methods, but it writes an empty file.
Re: Run EMG in workflow [message #1856282 is a reply to message #1856280] Thu, 01 December 2022 00:32 Go to previous messageGo to next message
Jörn Guy Süß is currently offline Jörn Guy SüßFriend
Messages: 320
Registered: July 2009
Location: Anstead, Brisbane, Queens...
Senior Member

That does not work. It parses it as an EPL module, as which an EMG is syntactically valid, but it does not invoke the create() semantics or other constructs. A task for IEplModule is required, and there is no such task. At the moment EMG cannot be used in DevOps and CI/CD, as far as I can see.

[Updated on: Thu, 01 December 2022 00:33]

Report message to a moderator

Re: Run EMG in workflow [message #1856291 is a reply to message #1856282] Thu, 01 December 2022 14:08 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2162
Registered: July 2009
Location: York, UK
Senior Member

You're right; Epsilon is missing an <epsilon.emg> task. I've created an issue to keep track of our progress on this.

Thanks,
Dimitris
Re: Run EMG in workflow [message #1856311 is a reply to message #1856291] Fri, 02 December 2022 00:48 Go to previous messageGo to next message
Jörn Guy Süß is currently offline Jörn Guy SüßFriend
Messages: 320
Registered: July 2009
Location: Anstead, Brisbane, Queens...
Senior Member

Thank you! I really like EMG. It has a great balance between automation and control. Thank you so much. I am looking forward to its interaction with EUnit.
Re: Run EMG in workflow [message #1856318 is a reply to message #1856311] Fri, 02 December 2022 11:55 Go to previous message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2162
Registered: July 2009
Location: York, UK
Senior Member

Thanks for the positive feedback! I've pushed an epsilon.emg task and added some documentation to the website.

Thanks,
Dimitris
Previous Topic:EMG built in operations fail
Next Topic:Querying tool
Goto Forum:
  


Current Time: Fri Apr 19 07:40:23 GMT 2024

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

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

Back to the top