|XtextGradlePlugin configuration problem [message #1755067]
||Mon, 27 February 2017 18:30
| Nicolas Rouquette
Registered: December 2014
Unfortunately, I posted my question on the EMF forum:|
I managed to replicate the Xtext validation error by building on a linux box.
Comparing the differences with my local environment (macos), I see that there are some differences:
- on macosx, all the generated sources are in the build folder per the gradle settings:
java.srcDirs = ['src', 'build/xcore/main/']
resources.srcDirs = ['model']
xtendOutputDir = 'build/xcore/main/'
java.srcDirs = 
resources.srcDirs = 
on linux, some generated sources are in the "default" locations (src-gen, xtend-gen).
Looking at the doc (http://xtext.github.io/xtext-gradle-plugin/xtext-builder.html), I've been wondering whether I need something along the lines of the example:
//you can add additional folders that are not Java source folders here
//adjust output directories per sourceSet and outlet
//the syntax for this will improve in future releases
//default here would be 'build/herolang/heroes/main'
I tried this but it doesn't work anymore with gradle 3.4 because output is read-only.
So, how do we configure non-default output directories for generated files for Xcore, Xtext and Xtend?
Powered by FUDForum
. Page generated in 0.02400 seconds