Newer
Older
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
configurations.create('gwt')
if (System.getProperty("openbis.development-build") != null) {
configurations.gwt {
transitive = false
}
dependencies {
gwt 'reveregroup:gwt-image-loader:1.1.4',
'google:gwt-dev:2.4',
'google:gwt-user:2.4',
'google:gwt-debug-panel:1.0',
'sencha:gxt:2.2.5',
'sis:sis-base:18.09.0',
'fasterxml:jackson-annotations:2.9.10',
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: ':server-application-server', configuration: 'archives')
}
}
task deleteGWT(type: Exec) {
executable "rm"
args "-rf", "${project.projectDir.absolutePath}/.gwt-cache", "${project.projectDir.absolutePath}/targets/www"
}
task prepareGWT(type: Copy, dependsOn: [deleteGWT, compileJava]) {
from 'resource/server'
into 'targets/www/WEB-INF'
from(project.configurations.runtimeOnly.files) {
into '../lib'
exclude 'cisd-cifex*'
exclude 'common-*'
exclude 'authentication-*'
exclude 'dbmigration-*'
exclude 'openbis-common-*'
exclude 'openbis_api-*'
}
from('source/java/service.properties') {
into 'classes'
}
}
task compileGWTToTempJDK8(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 {
[
sourceSets.main.java.srcDirs,
project(":openbis").sourceSets.main.java.srcDirs,
project(":openbis").sourceSets.main.output.resourcesDir,
project(":openbis").sourceSets.main.output.classesDirs,
project(":openbis").sourceSets.main.compileClasspath,
project(":common").sourceSets.main.java.srcDirs,
project(":openbis_api").sourceSets.main.java.srcDirs,
configurations.gwt
]
}
args = ['-war',
'targets/www/gwt-temp',
"ch.systemsx.cisd.openbis.OpenBISSafari",
'-draftCompile',
'-style', 'PRETTY',
'-logLevel', 'INFO']
}
task compileGWT(type: Copy, dependsOn: compileGWTToTempJDK8) {
from "targets/www/gwt-temp/ch.systemsx.cisd.openbis.OpenBIS"
into "targets/www/openbis-test"
}
task untarGwt(type: Copy, dependsOn: prepareGWT) {
from tarTree(resources.gzip("../openbis_standard_technologies/resource/gwt.tar.gz"))
into "${project.projectDir.absolutePath}/targets/www/gwt-temp"
}
task compileGWTToTempJDK11(type: Copy, dependsOn: untarGwt) {
from "${project.projectDir.absolutePath}/source/java/ch/systemsx/cisd/openbis/public"
into "${project.projectDir.absolutePath}/targets/www/gwt-temp/ch.systemsx.cisd.openbis.OpenBIS"
}
task openBISDevelopementEnvironmentASPrepare(type: Copy, dependsOn: compileGWTToTempJDK11) {
from "targets/www/gwt-temp/ch.systemsx.cisd.openbis.OpenBIS"
into "targets/www/openbis-test"
}