mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-15 08:18:55 +00:00
[build] Excluded bootstrap project from eclipse-project-layout
This commit is contained in:
parent
02d3787904
commit
eb71f2079a
2 changed files with 22 additions and 1 deletions
|
@ -35,7 +35,10 @@ subprojects {
|
|||
apply from: "${rootDir}/gradle/java-compiler-settings.gradle"
|
||||
apply from: "${rootDir}/gradle/xtend-compiler-settings.gradle"
|
||||
apply from: "${rootDir}/gradle/maven-deployment.gradle"
|
||||
apply from: "${rootDir}/gradle/eclipse-project-layout.gradle"
|
||||
// The bootstrap project uses only the mwe2 source set
|
||||
if (!name.endsWith('bootstrap')) {
|
||||
apply from: "${rootDir}/gradle/eclipse-project-layout.gradle"
|
||||
}
|
||||
apply from: "${rootDir}/gradle/manifest-gen.gradle"
|
||||
apply from: "${rootDir}/gradle/validation.gradle"
|
||||
}
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
/*
|
||||
* Bootstrap project for the Xtext language. It contains an MWE2 generator workflow with
|
||||
* dedicated configuration code. The workflow generates into the core and generic ide projects
|
||||
* as well as the Eclipse and IDEA integration projects, which are defined in different
|
||||
* source repositories. The path to these other repositories is assumed to be ../xtext-eclipse
|
||||
* and ../xtext-idea, respectively.
|
||||
*/
|
||||
|
||||
apply from: "${rootDir}/gradle/mwe2-workflows.gradle"
|
||||
|
||||
dependencies {
|
||||
|
@ -9,6 +17,9 @@ dependencies {
|
|||
}
|
||||
|
||||
sourceSets.main.java.srcDirs = []
|
||||
sourceSets.main.resources.srcDirs = []
|
||||
sourceSets.test.java.srcDirs = []
|
||||
sourceSets.test.resources.srcDirs = []
|
||||
|
||||
sourceSets.mwe2 {
|
||||
java.srcDir 'src'
|
||||
|
@ -25,3 +36,10 @@ sourcesJar.from sourceSets.mwe2.allSource
|
|||
task generateXtextLanguage(type: XtextGeneratorTask) {
|
||||
workflow = file('src/org/eclipse/xtext/xtext/bootstrap/GenerateXtext.mwe2')
|
||||
}
|
||||
|
||||
eclipse {
|
||||
project {
|
||||
natures 'org.eclipse.xtext.ui.shared.xtextNature'
|
||||
buildCommands.add(0,new org.gradle.plugins.ide.eclipse.model.BuildCommand('org.eclipse.xtext.ui.shared.xtextBuilder'))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue