Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xcore on ANT or MWE workflow
Xcore on ANT or MWE workflow [message #1748533] Thu, 24 November 2016 06:17 Go to next message
chris yo is currently offline chris yoFriend
Messages: 146
Registered: February 2013
Senior Member
Currently, eclipse automatically generates the code from xcore when you save your changes. I have automated the xtext and xtend part of my project using ANT. And I want to add the xcore to jave generation in my ANT task too.

Unfortunately, I haven't found any reference on generating xcore to java from ANT so I guess it's not possible? So I am hoping I can add it to my MWE workflow instead. How can I add it to my workflow?

Re: Xcore on ANT or MWE workflow [message #1748535 is a reply to message #1748533] Thu, 24 November 2016 06:26 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14669
Registered: July 2009
Senior Member
i dont know any mwe option. did you consider to use maven for the xcore part?

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xcore on ANT or MWE workflow [message #1748536 is a reply to message #1748533] Thu, 24 November 2016 07:49 Go to previous messageGo to next message
Karsten Thoms is currently offline Karsten ThomsFriend
Messages: 762
Registered: July 2009
Location: Dortmund, Germany
Senior Member

I have written a post on how to integrate Xcore in a Gradle build: https://blogs.itemis.com/en/using-xtext-with-xcore-and-gradle

For Ant there is no first-level support, but you could also just call Gradle or Maven from Ant.

~Karsten
Re: Xcore on ANT or MWE workflow [message #1748537 is a reply to message #1748535] Thu, 24 November 2016 07:52 Go to previous messageGo to next message
chris yo is currently offline chris yoFriend
Messages: 146
Registered: February 2013
Senior Member
Maven should be okay but I am not very familiar with it. Are there any working examples that I can look into it?
Re: Xcore on ANT or MWE workflow [message #1748539 is a reply to message #1748537] Thu, 24 November 2016 08:11 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14669
Registered: July 2009
Senior Member
maybe this one https://github.com/holgerschill/XtextCon_Xcore_Maven or https://github.com/ghillairet/xcore-maven-example

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xcore on ANT or MWE workflow [message #1748551 is a reply to message #1748539] Thu, 24 November 2016 10:27 Go to previous messageGo to next message
chris yo is currently offline chris yoFriend
Messages: 146
Registered: February 2013
Senior Member
thanks, this is helpful. is it possible to call maven from ant? how to do it?
Re: Xcore on ANT or MWE workflow [message #1748552 is a reply to message #1748551] Thu, 24 November 2016 10:33 Go to previous message
Karsten Thoms is currently offline Karsten ThomsFriend
Messages: 762
Registered: July 2009
Location: Dortmund, Germany
Senior Member

see http://maven.apache.org/ant-tasks/examples/mvn.html
Previous Topic:ID looks like an expression
Next Topic:Set XEpression local scope
Goto Forum:
  


Current Time: Fri Apr 26 19:47:14 GMT 2024

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

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

Back to the top