XtextGradlePlugin configuration problem [message #1755067] |
Mon, 27 February 2017 18:30 |
Nicolas Rouquette Messages: 40 Registered: December 2014 |
Member |
|
|
Unfortunately, I posted my question on the EMF forum:
https://www.eclipse.org/forums/index.php/t/1084665/
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:
sourceSets {
main {
java.srcDirs = ['src', 'build/xcore/main/']
resources.srcDirs = ['model']
xtendOutputDir = 'build/xcore/main/'
resources {
exclude '**/*.xcore'
}
}
test {
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:
sourceSets {
main {
//you can add additional folders that are not Java source folders here
srcDir 'src/main/heroes'
output {
//adjust output directories per sourceSet and outlet
//the syntax for this will improve in future releases
//default here would be 'build/herolang/heroes/main'
dir(xtext.languages.herolang.HEROES, 'build/someSpecialDir')
}
}
}
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?
- Nicolas.
|
|
|
Re: XtextGradlePlugin configuration problem [message #1755070 is a reply to message #1755067] |
Mon, 27 February 2017 18:53 |
|
questions on the plugin are best asked as github issue on the plugin itself.
(stefan, the author, does not read here)
unfortunelty your code is blown up way to much to do a reasonable analysis.
=> an example that does build the language only and not all the other stuff would be really helpful.
what strikes me is that you use a stoneage old version of the xtext/idea* gradle plugin. i dont know if this plays a role.
in the log i see that xtext 2.9 stuff is downloaded etc
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Day Job: https://www.everest-systems.com
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03583 seconds