Skip to main content
aboutsummaryrefslogblamecommitdiffstats
blob: 56985dddeb7bd0575bf269a7cc4980041d934ed5 (plain) (tree)


































                                                    

                                                                                                     



                         
def xtextProjects = [
	'org.eclipse.etrice.core.common',
	'org.eclipse.etrice.core.config',
	'org.eclipse.etrice.core.etmap',
	'org.eclipse.etrice.core.etphys',
	'org.eclipse.etrice.core.fsm',
	'org.eclipse.etrice.core.room'
].collect { project it }

subprojects {
	apply plugin: 'java'
	apply plugin: 'org.xtext.xtend'
	
	apply from: "$rootDir/gradle/publish.gradle"
	
	sourceSets {
		main {
			java {
				srcDir 'src'
			}
		}
	}
	
	tasks.withType(JavaCompile) {
		options.encoding = 'cp1252'
	}
}

configure(xtextProjects) {
	sourceSets {
		main {
			java {
				srcDir 'src-gen'
			}
			resources {
				srcDirs = ['src', 'src-gen', 'model']
				include '**/*.xtextbin', '**/*.tokens', '**/*.genmodel', '**/*.ecore'
			}
		}
	}
}

Back to the top