diff options
Diffstat (limited to 'org.eclipse.viatra.solver.language.parent/gradle/source-layout.gradle')
-rw-r--r-- | org.eclipse.viatra.solver.language.parent/gradle/source-layout.gradle | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/org.eclipse.viatra.solver.language.parent/gradle/source-layout.gradle b/org.eclipse.viatra.solver.language.parent/gradle/source-layout.gradle new file mode 100644 index 00000000..d347fb13 --- /dev/null +++ b/org.eclipse.viatra.solver.language.parent/gradle/source-layout.gradle | |||
@@ -0,0 +1,28 @@ | |||
1 | sourceSets { | ||
2 | main { | ||
3 | java.srcDirs = ['src/main/java', 'src/main/xtext-gen'] | ||
4 | resources.srcDirs = ['src/main/resources', 'src/main/xtext-gen'] | ||
5 | xtendOutputDir = 'src/main/xtend-gen' | ||
6 | } | ||
7 | test { | ||
8 | java.srcDirs = ['src/test/java', 'src/test/xtext-gen'] | ||
9 | resources.srcDirs = ['src/test/resources', 'src/test/xtext-gen'] | ||
10 | xtendOutputDir = 'src/test/xtend-gen' | ||
11 | } | ||
12 | } | ||
13 | |||
14 | jar { | ||
15 | from('model') { | ||
16 | into('model') | ||
17 | } | ||
18 | from(sourceSets.main.allSource) { | ||
19 | include '**/*.xtext' | ||
20 | } | ||
21 | manifest { | ||
22 | attributes 'Bundle-SymbolicName': project.name | ||
23 | } | ||
24 | } | ||
25 | |||
26 | plugins.withId('war') { | ||
27 | webAppDirName = "src/main/webapp" | ||
28 | } | ||