Community
Participate
Working Groups
GMF Tooling should provide a Tycho plugin to generate code during a Tycho build. Then same way as an Ant task is supported.
Dear gmf tooling community, such plugin would be great. Here some comments (that could be migrated to the bug 473742 if more appropriate) We have been trying to develop also an initial maven plugin to generate code at build time for genmodel. It is located here: https://git.eclipse.org/c/papyrus/org.eclipse.papyrus.tools.git/tree/emfgen You could also have a look to this gerrit for an integration example in the project papyrus: https://git.eclipse.org/r/#/c/41167/ The following pom shows the integration of the plugin: https://git.eclipse.org/r/#/c/41167/12/plugins/infra/constraints/org.eclipse.papyrus.infra.constraints.edit/pom.xml I do not know if it could help. Francois
Gerrit change https://git.eclipse.org/r/52203 was merged to [master]. Commit: http://git.eclipse.org/c/gmf-tooling/org.eclipse.gmf-tooling.git/commit/?id=9e8c38134eb666d6a5679615e777721819b72f5e
Hello I have look to your patch. Would it be possible to add also a specifc documentation directly inside the plugin (with maven doc for instance?) Would it possible also to add a unit test with an example ? Thanks
New Gerrit change created: https://git.eclipse.org/r/61118
Gerrit change https://git.eclipse.org/r/61118 was merged to [master]. Commit: http://git.eclipse.org/c/gmf-tooling/org.eclipse.gmf-tooling.git/commit/?id=dd878ae9a77bee481549bd68515d201d4c03dff5
New Gerrit change created: https://git.eclipse.org/r/61121
New Gerrit change created: https://git.eclipse.org/r/61271
New Gerrit change created: https://git.eclipse.org/r/62388
Gerrit change https://git.eclipse.org/r/62388 was merged to [master]. Commit: http://git.eclipse.org/c/gmf-tooling/org.eclipse.gmf-tooling.git/commit/?id=14ed41c5e22a4e8e3906a6b9fcc07612c6f66f0b
New Gerrit change created: https://git.eclipse.org/r/62721
New Gerrit change created: https://git.eclipse.org/r/62757
Mickael, I would like to know if you succeed in this hard task but very benefit for the Eclipse community. Is there a way to test the feature? Francois
Hi, I didn't do anything and don't plan to do anything on this topic. However, did you have the opportunity to try Syatoslav's patches that are attached to this bug as Gerrit reviews?
@Francois, Actually this is almost completed. The last version of the gerrit https://git.eclipse.org/r/#/c/61271 has 2 samples generated as part of the build. The build results including generated code are available http://download.eclipse.org/modeling/gmp/gmf-tooling/updates/dev-snapshots/gerrit-61271/ and looks good. There is also a related gerrit specifically for Papyrus that regenerates the ClassD using the results of the first gerrit: https://git.eclipse.org/r/#/c/62191/ The Papyrus gerrit build had been already deleted, but you probably can retrigger it, and in any case I have attached the build log from that old build which also looks good. The remaining problems: - manifest ΠΈ build.properties can't be regenerated as part of the build
Created attachment 259298 [details] log from the Papyrus build for https://git.eclipse.org/r/#/c/62191/ : ClassD generated
Thanks for this element. I will test the compilation/generation in gmf-tooling. Then I will test the generation in papyrus. I keep you in touch. Francois
So my tests have consist on downloading gmf-tooling, checkout the patch https://git.eclipse.org/r/#/c/61271 For pins-example, I was able to regenerate the xtend folder completly with all java classes; Just a question should it generate also code in the some code directly inside /pins-example/org.eclipse.gmf.tooling.examples.pins and /pins-example/org.eclipse.gmf.tooling.examples.pins.edit ? perhaps adding a comment inside the test could help me to verify exactly the status of test. nevertheless this patch add really a good feature ! Good job.