This repository has been archived by the owner on Apr 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
118 lines (96 loc) · 3.21 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
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
108
109
110
111
112
113
114
115
116
117
118
apply plugin: 'java'
group='com.percussion'
version='7.0.0'
configurations {
deploy
}
sourceSets {
deploy {}
}
repositories {
flatDir {
dirs "${System.getenv('RHYTHMYX_HOME')}/jetty/base/webapps/Rhythmyx/WEB-INF/lib"
dirs "${System.getenv('RHYTHMYX_HOME')}/jetty/base/webapps/RxServices/WEB-INF/lib"
dirs "${System.getenv('RHYTHMYX_HOME')}/jetty/defaults/lib/perc"
dirs "${System.getenv('RHYTHMYX_HOME')}/jetty/defaults/lib/perc-logging"
dirs "lib"
}
jcenter()
}
dependencies {
compile 'org.slf4j:slf4j-api:1.7.22'
testCompile 'junit:junit:4.12'
compile('org.apache.xmlgraphics:fop:2.2') {
exclude group: 'org.apache.avalon.framework'
}
compile 'avalon-framework:avalon-framework:4.1.5'
compile name: 'commons-lang-2.4'
compile name: 'commons-jexl-1.1.1-patched'
compile name: 'rxclient'
compile name: 'rxservices'
compile name: 'rxutils'
compile name: 'rxbusiness'
deployCompile name: 'rxclient'
deployCompile name: 'rxserver'
deployCompile name: 'rxbusiness'
deployCompile name: 'rxutils'
deployCompile name: 'commons-lang-2.4'
deployCompile name: 'commons-logging-1.2'
deployCompile name: 'log4j-1.2-api-2.12.1'
deployCompile name: 'log4j-api-2.12.1'
deployCompile name: 'log4j-appserver-2.12.1'
deployCompile name: 'log4j-core-2.12.1'
deployCompile name: 'log4j-jcl-2.12.1'
deployCompile name: 'log4j-jul-2.12.1'
deployCompile name: 'log4j-slf4j-impl-2.12.1'
deployCompile name: 'log4j-web-2.12.1'
deployCompile name: 'rxservices'
deployCompile name: 'jcr-1.0'
deployCompile name: 'servlet'
deployCompile name: 'commons-httpclient-3.1'
deployCompile name: 'commons-collections-3.2.2'
deployCompile name: 'commons-jexl-1.1.1-patched'
}
task copyFopAndJexlToServer(type: Copy) {
fileMode = 0750
from('lib') {
include "commons-jexl-1.1.1-patched.jar"
}
from findJar('fop')
from findJar('avalon-framework')
from findJar('xmlgraphics')
from findJar('batik')
into "${System.getenv('RHYTHMYX_HOME')}/jetty/defaults/lib/perc"
}
def findJar(String prefix) {
configurations.compile.filter {
it.name.startsWith(prefix)
}
}
task deploySamples(type: Copy) {
fileMode = 0750
from('Samples') {
include '**/*.xsl'
include '**/*.jpg'
include '**/*.png'
}
into "${System.getenv('RHYTHMYX_HOME')}/rx_resources"
}
task installExtensions(type: JavaExec, dependsOn: 'jar') {
classpath = sourceSets.deploy.runtimeClasspath
main = 'com.percussion.util.PSExtensionInstallTool'
args System.getenv('RHYTHMYX_HOME'), '.'
}
task installJars(type: Copy) {
from "build/libs/${rootProject.name}-${version}.jar"
into "${System.getenv('RHYTHMYX_HOME')}/jetty/base/webapps/Rhythmyx/WEB-INF/lib"
}
task cleanConfig(type: Delete) {
delete "${System.getenv('RHYTHMYX_HOME')}/rxconfig/Server/fop.config"
}
task installConfig(type: Copy, dependsOn: cleanConfig) {
from "rxconfig"
into "${System.getenv('RHYTHMYX_HOME')}/rxconfig"
}
task deployServer(dependsOn: ['installJars', 'installConfig'])
task install(dependsOn: ['copyFopAndJexlToServer', 'installExtensions', 'deployServer'])