Eugenia Ant Task does not generate Model Project [message #1843835] |
Fri, 20 August 2021 05:37 |
|
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 |
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.02766 seconds