-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
71 lines (53 loc) · 1.6 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
// imaging build script
apply plugin: 'java'
project.ext.set("tomcatHome", "$System.env.CATALINA_HOME")
task startTomcat(type:Exec) {
workingDir "$tomcatHome/bin"
commandLine 'sh', './startup.sh'
}
task stopTomcat(type:Exec) {
workingDir "$tomcatHome/bin"
commandLine 'sh', './shutdown.sh'
}
task createServerBundle (dependsOn: [':tileviewer:createTileViewer', ':iengine:createCache', ':iworker:createWorker'])<< {
copy {
from "$tomcatHome/webapps/iManage"
into "build/distributions/OpenImaDis/WebApps/iManage"
}
copy {
from "iclient/build/uploadservice"
into "build/distributions/OpenImaDis/WebApps/iManage/downloads"
}
copy {
from "web/solr"
into "build/distributions/OpenImaDis/WebApps/solr"
}
copy {
from "tileviewer/build/distributions/tileviewer-deploy/tileviewer"
into "build/distributions/OpenImaDis/WebApps/tileviewer"
}
copy {
from "iengine/cache/cache-deploy"
into "build/distributions/OpenImaDis/ServerApps/cache-deploy"
}
copy {
from "iworker/build/distributions/worker-deploy"
into "build/distributions/OpenImaDis/ServerApps/worker-deploy"
}
copy {
from "resources/db"
into "build/distributions/OpenImaDis/ServerApps/db"
}
copy {
from "resources/solr_data"
into "build/distributions/OpenImaDis/ServerApps/solr_data"
}
copy {
from "scripts/deploy.sh"
into "build/distributions/OpenImaDis"
}
copy {
from "scripts/server.properties"
into "build/distributions/OpenImaDis"
}
}