-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
56 lines (46 loc) · 1.22 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
def generationGroup = "Generation"
task copyGeneratedCpp(type: Copy) {
doLast {
println "Copied c++ files"
}
from 'units_generator/generated/cpp/'
into 'units_cpp/src/'
include '**/*.h'
include '**/*.cc'
exclude { details -> details.file.name.endsWith('.swp')}
group generationGroup
description = "Copy c++ generated files into units_cpp project"
}
task copyGeneratedJava(type: Copy) {
doLast {
println "Copied java files"
}
from 'units_generator/generated/java/'
into 'units_java/src/'
include '**/*.java'
exclude { details -> details.file.name.endsWith('.swp')}
group generationGroup
description = "Copy java generated files into units_java project"
}
task copyGeneratedDocs(type: Copy) {
doLast {
println "Copied docs files"
}
from 'units_generator/generated/docs/'
into 'docs/'
group generationGroup
description = "Copy general generated files into units project"
}
task generate {
doFirst {
rootProject.project('units_generator').run.execute()
copyGeneratedCpp.execute()
copyGeneratedJava.execute()
copyGeneratedDocs.execute()
}
doLast {
println "Finished generating!"
}
group generationGroup
description = "Generate units files"
}