Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Eugenia Ant Task does not generate Model Project(Ant generator task cannot be used in CI)
Eugenia Ant Task does not generate Model Project [message #1843835] Fri, 20 August 2021 05:37 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

It seems that Eugenia, when called from ant as shown below, is not able to generate the model plugin and model test code.

<?xml version="1.0" encoding="UTF-8"?>
<project name="project" default="default">
<target name="default">
<epsilon.eugenia src="common/entity.emf" firstStep="emfcode" lastStep="emfcode" />
</target>
</project>

If the genModelDirectory is not set, the model code is generated in the current directory relative to the ant execution base directory.

If the genModelDirectory is set, but the directory does not exist, or does not contain a project file, or the project is not open, generation fails.

If the genModelDirectory is set, but and the directory does contains a project file, and the project open, generation partially succeeds, but does not produce or amend the following files, required for compilation:

* .settings/org.eclipse.jdt.core.prefs
* .classpath
* .project

The project file needs the plugin compiler options set.

Without these, Tycho is not able to build the plugins.

This limitation does not allow for the automated use of Eugenia in CI, which effectively excludes automated maintenance of compiled model artifacts.


genModel.modelDirectory = "com.codebots.model.emf.commonEntity/src";
Re: Eugenia Ant Task does not generate Model Project [message #1843839 is a reply to message #1843835] Fri, 20 August 2021 07:02 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2165
Registered: July 2009
Location: York, UK
Senior Member

Hi Jörn,

The following ANT buildfile and EOL polishing transformation seem to be running as expected within Eclipse for me

<?xml version="1.0" encoding="UTF-8"?>
<project name="project" default="default">
  <target name="default">
    <epsilon.eugenia src="filesystem.emf" firstStep="ecore" lastStep="genmodel" />
    <epsilon.eugenia src="filesystem.emf" firstStep="emfcode" lastStep="emfcode" />
  </target>
</project>


GenModel!GenModel.all.first().modelDirectory = "/filesystem2/src";


and generate all the EMF plugins for the metamodel in filesystem2* projects (which did not exist before running the buildfile).

If this doesn't work for you, could you please prepare a minimal example that I can use to reproduce the issue you're encountering?

Best,
Dimitris
Re: Eugenia Ant Task does not generate Model Project [message #1843843 is a reply to message #1843839] Fri, 20 August 2021 11:06 Go to previous message
Jörn Guy Süß is currently offline Jörn Guy SüßFriend
Messages: 320
Registered: July 2009
Location: Anstead, Brisbane, Queens...
Senior Member

Turns out the leading / or /filesystem2/src is very significant and the cause of all the issues. Hard to believe, but true.
Previous Topic:Cannot set the JDK compliance level in polishing transformation
Next Topic:Missing ContentTypes.dtd in maven repository
Goto Forum:
  


Current Time: Sat Apr 27 12:13:29 GMT 2024

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

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

Back to the top