Skip to main content



      Home
Home » Modeling » Epsilon » Run EMG in workflow(Can ant generate model samples)
Run EMG in workflow [message #1856266] Wed, 30 November 2022 01:32 Go to next message
Eclipse UserFriend
How do I call EMG using ant?
Re: Run EMG in workflow [message #1856279 is a reply to message #1856266] Wed, 30 November 2022 19:07 Go to previous messageGo to next message
Eclipse UserFriend
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] Wed, 30 November 2022 19:15 Go to previous messageGo to next message
Eclipse UserFriend
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] Wed, 30 November 2022 19:32 Go to previous messageGo to next message
Eclipse UserFriend
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: Wed, 30 November 2022 19:33] by Moderator

Re: Run EMG in workflow [message #1856291 is a reply to message #1856282] Thu, 01 December 2022 09:08 Go to previous messageGo to next message
Eclipse UserFriend
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] Thu, 01 December 2022 19:48 Go to previous messageGo to next message
Eclipse UserFriend
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 06:55 Go to previous message
Eclipse UserFriend
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: Wed Jul 16 09:59:40 EDT 2025

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

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

Back to the top