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: 14665
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


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: 14665
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") );


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: 14665
Registered: July 2009
Senior Member
P.S: it does not work, the java code produced is not valid

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:ECP/EMForms and pictures
Next Topic:EMFStore and Edapt
Goto Forum:
  


Current Time: Wed Apr 24 13:55:40 GMT 2024

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

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

Back to the top