mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-15 16:28:56 +00:00

https://github.com/eclipse/xtext/issues/1548 Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
24 lines
575 B
Groovy
24 lines
575 B
Groovy
/*
|
|
* Configuration of Xtend compiler.
|
|
*/
|
|
|
|
if (findProperty('compileXtend') == 'true') {
|
|
[generateXtext, generateTestXtext].each { gen ->
|
|
gen.xtextClasspath = rootProject.configurations.getByName('xtendCompiler')
|
|
}
|
|
|
|
// Defer the sources jar configuration to later when the source sets are set up completely
|
|
afterEvaluate {
|
|
sourcesJar {
|
|
dependsOn generateTestXtext
|
|
from (sourceSets.main.xtendOutputDir) {
|
|
include '**/*._trace'
|
|
}
|
|
if (name.endsWith('tests')) {
|
|
from (sourceSets.test.xtendOutputDir) {
|
|
include '**/*._trace'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|