Xtext Gradle Plugin and Xtext Builder [message #1791166] |
Mon, 25 June 2018 12:15 |
Tobias Blaufuß Messages: 4 Registered: June 2018 |
Junior Member |
|
|
Goal
Hi, I'm currently trying to use the Xtext Builder of the Xtext gradle plugin (Can't post link to github here, because it's my first post) to trigger the generator of a project that uses the grammar of my DSL. (mainly for continuous deployment)
Current situation
My project consists of several DSLs that can be built via a gradle script and one project that uses all of these languages to define some models. At the moment i start a new Eclipse Application, generate the source code of my model with the help of eclipse and deploy the generated artifacts afterwards.
Problem
I want to get rid of this manual step by using the Xtext Builder but i can't apply the maven/gradle example of the Xtext Builder documentation to my pure gradle project structure... I've tried a lot of things but now i'm a little bit frustrated because i'm not making any progress and i have to admit i'm kind of stuck...
Gradle project structure
This is the overall project structure (Gradle project with subprojects):
root
|- build.gradle
|- settings.gradle
|- ... (Other gradle stuff)
|- dsl1 (File extension: dsl1)
|-|- dsl1 (gradle)
|-|-|- src/dsl1.Dsl1.xtext
|-|-|- src/dsl1.Dsl1StandaloneSetup.xtend
|-|-|- ... (It's basically the general Xtext project structure)
|-|- dsl1.ide (gradle)
|-|- dsl1.target
|-|- dsl1.tests (gradle)
|-|- dsl1.ui
|-|- dsl1.ui.tests
|- dsl2 (File extension: dsl2)
|-|- ... (same as dsl1)
|- dsl3 (File extension: dsl3)
|-|- ... (same as dsl1)
|- dsl-models (Just a folder to hold some projects)
|-|- model1 (DSL project, that uses dsl1, dsl2, dsl3, gradle)
|-|-|- src (*.dsl1, *.dsl2, *.dsl3 files)
|-|-|- src-gen (output directory for generator)
Question
When i call 'gradle build' inside the root directory all my languages will be built with gradle and then gradle should execute all generators of dsl1, dsl2 and dsl3.
Has anyone an idea how to achieve this? Just let me know if you need some more information on my project structure, source files or builds. My intention was to create a small and simple thread without information that is not necessary, so it might be possible that something is missing.
Thank you in advance
Tobias
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04591 seconds