Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EEF] How do i call the generator programatically (e.g. from maven)
[EEF] How do i call the generator programatically (e.g. from maven) [message #1585960] Mon, 26 January 2015 15:35 Go to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13409
Registered: July 2009
Senior Member
Hi,

how do i call the generator for EEF programmatically.
EEFLauncher.main(new String[]{
				"model/extlibrary.eefgen","../src-gen2"
		});

does not seem to work


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: [EEF] How do i call the generator programatically (e.g. from maven) [message #1585975 is a reply to message #1585960] Mon, 26 January 2015 15:48 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13409
Registered: July 2009
Senior Member
The Following seems to run through (leveraging mwe) - but i dont know if this is the preferred way - and it produces invalid java code

StandaloneSetup standaloneSetup = new StandaloneSetup();
		standaloneSetup.setPlatformUri("../");
		new EEFLauncher(
				URI.createURI("platform:/resource/org.eclipse.emf.examples.library.edit/model/extlibrary.eefgen"),
				new File("src-gen2"),Lists.newArrayList("src-gen2") );


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Mon, 26 January 2015 15:49]

Report message to a moderator

Re: [EEF] How do i call the generator programatically (e.g. from maven) [message #1585976 is a reply to message #1585975] Mon, 26 January 2015 15:49 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13409
Registered: July 2009
Senior Member
P.S: it does not work, the java code produced is not valid

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:ECP/EMForms and pictures
Next Topic:EMFStore and Edapt
Goto Forum:
  


Current Time: Sun Mar 29 15:29:18 GMT 2020

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

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

Back to the top