forked from LAL/xtremweb-hep
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathwindows.gradle
107 lines (83 loc) · 2.74 KB
/
windows.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
import org.apache.tools.ant.filters.ReplaceTokens
apply from: 'common.gradle'
task copyWindowsClient(type: Copy) {
into project.dist + "/installers/win32/xwhep.client"
into("/conf") {
from project.templates + '/xtremweb.client.conf.in'
rename { fileName -> fileName.replace('.in', '') }
filter(ReplaceTokens, tokens: [LAUNCHERURL: 'http://nohost/',
LOGIN : '',
PASSWORD : ''])
}
into("/lib") {
from project.libXtremWeb + "/bcprov-jdk15on-151.jar"
}
into("/lib") {
from project.libXtremWeb + "/bcpkix-jdk15on-151.jar"
}
}
task copyWindowsWorker(type: Copy) {
into project.dist + '/installers/win32/xwhep.worker'
into(".") {
from project.res + "/installers/win32/innoSetup"
}
into("/conf") {
from project.templates + 'xtremweb.worker.conf.in'
rename { fileName -> fileName.replace('.in', '') }
filter(ReplaceTokens, tokens: [LAUNCHERURL: 'http://nohost/',
LOGIN : '${xtremweb.worker.login}',
PASSWORD : '${xtremweb.worker.password}'])
}
into("/conf") {
from project.res + "/wrapper/conf/wrapper-worker.conf"
}
into("/misc") {
from project.res + "/misc/xwwrk.ico"
}
into("/doc") {
from project.misc + "/worker-start.html"
}
into("/bin") {
from project.res + "/wrapper/bin"
}
into("/lib") {
from project.installers + "/win32/cygwin1.dll"
}
into("/lib") {
from project.res + "/wrapper/lib/"
}
}
task copyWindowsVWorker(type: Copy) {
into project.dist + '/installers/win32/xwhep.vworker'
into(".") {
from project.res + "/installers/win32/innoSetup"
}
into("/conf") {
from project.templates + 'xtremweb.worker.conf.in'
rename { fileName -> fileName.replace('.in', '') }
filter(ReplaceTokens, tokens: [LAUNCHERURL: 'http://nohost/',
LOGIN : '${xtremweb.vworker.login}',
PASSWORD : '${xtremweb.vworker.password}'])
}
into("/conf") {
from project.res + "/wrapper/conf/wrapper-worker.conf"
}
into("/lib") {
from project.installers + "/win32/cygwin1.dll"
}
into("/lib") {
from project.res + "/wrapper/lib/"
}
into("/misc") {
from project.res + "/misc/xwwrk.ico"
}
into("/doc") {
from project.misc + "/worker-start.html"
}
into("/bin") {
from project.res + "/wrapper/bin"
}
}
task copyWindowsInstaller {
dependsOn( copyWindowsClient, copyWindowsWorker, copyWindowsVWorker )
}