Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Headless Xcore generation with edit plug-in
Headless Xcore generation with edit plug-in [message #1413021] Wed, 27 August 2014 15:24 Go to next message
Axel Guckelsberger is currently offline Axel GuckelsbergerFriend
Messages: 354
Registered: July 2009
Senior Member
Hi all,


I am trying to get Xcore generation working headlessly using a mwe2
workflow.

The xcore file has the following package annotation:

@GenModel(
    modelDirectory="org.example.mydsl/emf-gen",
    editPluginID="org.example.mydsl.edit",
    editDirectory="org.example.mydsl.edit/src-gen",
    forceOverwrite="true",
    updateClasspath="false",
    complianceLevel="5.0",
    operationReflection="false",
    runtimePlatform="RCP")


Inside the IDE everything works as expected with this.

The mwe2 workflow looks as follows:

var projectName = "org.example.mydsl"
var runtimeProject = "../${projectName}"

Workflow {

    bean = StandaloneSetup {
        scanClassPath = true
        platformUri = "${runtimeProject}/.."

        registerGenModelFile = 
"platform:/resource/org.eclipse.emf.ecore/model/Ecore.genmodel"
    }

    component = org.eclipse.emf.mwe.utils.DirectoryCleaner {
        directory = 'emf-gen'
    }

    component = de.itemis.xcore2java.XcoreReader {
        register = org.eclipse.emf.ecore.xcore.XcoreStandaloneSetup {}
        path = 'model'
        slot = 'model'
    }

    component = org.eclipse.xtext.generator.GeneratorComponent {
        register = org.eclipse.emf.ecore.xcore.XcoreStandaloneSetup {}
        slot = 'model'
        outlet = {
            path = 'emf-gen'
        }
    }
}


While the actual meta classes are generated properly in Jenkins the edit
plug-in's classes seem to be ignored (or generated to somewhere unexpected).

Any idea what needs to be done here? Is a second outlet required maybe?

TIA,

Axel
Re: Headless Xcore generation with edit plug-in [message #1416096 is a reply to message #1413021] Thu, 04 September 2014 09:59 Go to previous message
Axel Guckelsberger is currently offline Axel GuckelsbergerFriend
Messages: 354
Registered: July 2009
Senior Member
Hi again,

as a workaround I just added the generated edit classes to Git temporarily.

If anybody knows a way to generate them headlessly some hints about how to
achieve that would be greatly appreciated though.

Regards,
Axel
Previous Topic:XTEXT Features with fixed length
Next Topic:Errors while running Xtext Junit from command line
Goto Forum:
  


Current Time: Thu Apr 25 22:48:11 GMT 2024

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

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

Back to the top