This repository has been archived by the owner on May 25, 2023. It is now read-only.
forked from getodk/aggregate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
installer.gradle
49 lines (43 loc) · 1.98 KB
/
installer.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
import static org.opendatakit.aggregate.gradle.Util.setXmlValue
task installerClean() {
delete 'build/installer'
}
task installerBuild(dependsOn: [installerClean, gaeDownloadSDK], type: Copy) {
into "${buildDir}/installer"
from fileTree(dir: 'installer/installBuilder')
into('files') {
from zipTree('installer/appEngineSDK.zip')
from zipTree('installer/legacyremoval.zip')
from zipTree('installer/other.zip')
from zipTree('installer/gae.zip')
from zipTree('installer/sqljdbc_6.0.zip')
from "${buildDir}/libs/${archivesBaseName}-${version}.war"
}
into('files/conf') {
from fileTree(dir: 'installer/platforms')
from zipTree('installer/ear.zip')
}
into('files/conf/common') {
from files(
'src/main/resources/logging.properties',
'src/main/resources/odk-common-security-settings.xml',
'src/main/resources/odk-security-settings.xml',
'src/main/resources/security.properties'
)
}
doLast {
setXmlValue("${buildDir}/installer/buildWar.xml", "version", version)
file("${buildDir}/installer/files/${archivesBaseName}-${version}.war").renameTo(file("build/installer/files/ODKAggregate.war"))
file("${buildDir}/installer/files/appengine-java-sdk-1.9.63").renameTo(file("build/installer/files/appengine-java-sdk"))
delete "${buildDir}/installer/files/appengine-java-sdk/demos"
delete "${buildDir}/installer/files/appengine-java-sdk/docs/endpoints"
delete "${buildDir}/installer/files/appengine-java-sdk/docs/javadoc"
delete "${buildDir}/installer/files/appengine-java-sdk/docs/remoteapi"
delete "${buildDir}/installer/files/appengine-java-sdk/docs/spi"
delete "${buildDir}/installer/files/appengine-java-sdk/docs/testing"
delete "${buildDir}/installer/files/appengine-java-sdk/docs/tools"
delete "${buildDir}/installer/files/appengine-java-sdk/jetty93"
delete "${buildDir}/installer/files/appengine-java-sdk/jetty93-base"
delete "${buildDir}/installer/files/appengine-java-sdk/src"
}
}