Newer
Older
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
if (System.getProperty("openbis.development-build") != null) {
configurations.gwt {
transitive = false
}
dependencies {
gwt 'reveregroup:gwt-image-loader:+',
'google:gwt-dev:+',
'google:gwt-user:+',
'google:gwt-debug-panel:+',
'sencha:gxt:+',
'cisd:cisd-base:+',
'fasterxml:jackson-annotations:+',
project(':common'),
project(path:':common', configuration: 'archives'),
project(path:':openbis_api'),
project(path:':openbis_api', configuration: 'archives'),
project(path:':openbis-common'),
project(path:':openbis-common', configuration: 'archives'),
project(path:':openbis'),
project(path:':openbis', configuration: 'archives'),
project(path:':screening', configuration: 'archives')
}
}
task deleteGWT(type: Delete) {
delete '.gwt-cache', 'targets/www'
}
task prepareGWT(type:Copy, dependsOn: [deleteGWT, compileJava]) {
from 'resource/server'
from files('../common/resource/server') {
exclude 'gwt.xml'
}
from file('../openbis/resource/server/bis-common.xml')
into 'targets/www/WEB-INF'
from (project.configurations.runtime.files) {
into 'lib'
exclude 'cisd-cifex*'
exclude 'common-*'
exclude 'authentication-*'
exclude 'dbmigration-*'
exclude 'openbis-common-*'
exclude 'openbis_api-*'
exclude 'openbis-*'
exclude 'datastore_server-*'
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
}
from (sourceSets.main.output.plus
(project(':openbis').sourceSets.main.output).plus
(project(':common').sourceSets.main.output).plus
(project(':openbis-common').sourceSets.main.output).plus
(project(':openbis_api').sourceSets.main.output)) {
into 'classes'
}
doLast {
file("targets/www/WEB-INF/gwt.xml").createNewFile()
}
}
task compileGWTToTemp(type: JavaExec, dependsOn: prepareGWT) {
inputs.source sourceSets.main.java.srcDirs
inputs.dir sourceSets.main.output.resourcesDir
outputs.dir 'targets/www/gwt-temp'
main = 'com.google.gwt.dev.Compiler'
maxHeapSize = '1024m'
classpath { configurations.getByName('gwt') }
args = [ '-war',
'targets/www/gwt-temp',
"ch.systemsx.cisd.openbis.plugin.screening.OpenBISSafari",
'-draftCompile',
'-style', 'PRETTY',
'-logLevel', 'INFO']
}
task compileGWT(type: Copy, dependsOn: compileGWTToTemp) {
from "targets/www/gwt-temp/ch.systemsx.cisd.openbis.plugin.screening.OpenBIS"
into "targets/www/openbis-test-screening"
}