This repository has been archived by the owner on Jul 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.xml
98 lines (87 loc) · 3.2 KB
/
deploy.xml
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
<project name="Install Extensions" default="dist"
basedir=".">
<description>
Install extensions on a Rhythmyx server
</description>
<property environment="env" />
<!-- base directory of Rhythmyx installation -->
<property name="rhythmyx.home" location="${env.RHYTHMYX_HOME}" />
<property name="rhythmyx.WEB-INF"
value="${rhythmyx.home}/AppServer/server/rx/deploy/rxapp.ear/rxapp.war/WEB-INF" />
<property name="rhythmyx.lib" value="${rhythmyx.WEB-INF}/lib" />
<property name="rhythmyx.baselib" value="${rhythmyx.home}/AppServer/server/rx/lib" />
<property name="jetty.webapps" value="${rhythmyx.home}/jetty/base/webapps/Rhythmyx"/>
<!-- relative paths -->
<property name="lib" location="lib" />
<target name="jarcopy" description="copy the jar file">
<fail unless="env.RHYTHMYX_HOME"
message="You must set the RHYTHMYX_HOME environment variable" />
<copy todir="${rhythmyx.lib}" verbose="true">
<fileset dir="${lib}">
<include name="**.jar" />
</fileset>
<fileset dir="${basedir}">
<include name="**.jar" />
</fileset>
</copy>
<copy todir="${jetty.webapps}/WEB-INF/lib" verbose="true">
<fileset dir="${lib}">
<include name="**.jar"/>
</fileset>
<fileset dir="${basedir}">
<include name="**.jar"/>
</fileset>
</copy>
<copy todir="${rhythmyx.WEB-INF}" verbose="true">
<fileset dir="WEB-INF" />
</copy>
<copy todir="${jetty.webapps}/WEB-INF" verbose="true">
<fileset dir="WEB-INF"/>
</copy>
</target>
<target name="installExtensions">
<fail unless="env.RHYTHMYX_HOME"
message="You must set the RHYTHMYX_HOME environment variable" />
<java classname="com.percussion.util.PSExtensionInstallTool"
fork="true">
<arg value="${rhythmyx.home}" />
<arg value="${basedir}" />
<classpath>
<fileset dir="${rhythmyx.home}/jetty/defaults/lib/perc-logging">
<include name="*.jar"/>
</fileset>
<fileset dir="${rhythmyx.home}/jetty/defaults/lib/perc">
<include name="*.jar"/>
</fileset>
<fileset dir="${rhythmyx.home}/jetty/defaults/lib/jdbc">
<include name="*.jar"/>
</fileset>
<fileset dir="${rhythmyx.home}/jetty/base/lib/jdbc">
<include name="*.jar"/>
</fileset>
<fileset dir="${rhythmyx.home}/jetty/base/webapps/Rhythmyx/WEB-INF/lib">
<include name="*.jar"/>
</fileset>
</classpath>
</java>
</target>
<target name="uninstall">
<echo message="Uninstalling previous version..."/>
<delete casesensitive="false" failonerror="false" verbose="true">
<fileset dir="${rhythmyx.home}/AppServer/server/rx/deploy/rxapp.ear/rxapp.war/WEB-INF/lib/">
<include name="Content-rs*.jar"/>
</fileset>
<fileset dir="${rhythmyx.home}/jetty/base/webapps/Rhythmyx/WEB-INF/lib/">
<include name="Content-rs*.jar"/>
</fileset>
</delete>
</target>
<target name="javadoc">
</target>
<target name="dist">
<echo>Installing Content-rs to ${rhythmyx.home}</echo>
<antcall target="uninstall"/>
<antcall target="jarcopy" />
<antcall target="installExtensions" />
</target>
</project>