This repository has been archived by the owner on Apr 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.xml
89 lines (81 loc) · 3.36 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
<project name="PSO Demand Preview Install" default="dist" basedir=".">
<description>
</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="jetty.webapp" value="${rhythmyx.home}/jetty/base/webapps/Rhythmyx" />
<!-- relative paths -->
<property name="lib" location="lib"/>
<target name="jarcopy" description="copy the jar files from the lib folder" >
<fail unless="env.RHYTHMYX_HOME" message="You must set the RHYTHMYX_HOME environment variable"/>
<copy todir="${rhythmyx.lib}">
<fileset dir="${basedir}">
<include name="**.jar" />
</fileset>
</copy>
<copy todir="${jetty.webapp}/WEB-INF/lib/" overwrite="true" verbose="true">
<fileset dir="${basedir}">
<include name="**.jar" />
</fileset>
</copy>
</target>
<target name="WEB-INF" description="Copy any configuration files to the Web App" >
<fail unless="env.RHYTHMYX_HOME" message="You must set the RHYTHMYX_HOME environment variable"/>
<copy todir="${rhythmyx.WEB-INF}" verbose="true">
<fileset dir="WEB-INF" />
</copy>
<copy todir="${jetty.webapp}/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/base/webapps/Rhythmyx/WEB-INF/lib">
<include name="rxserver.jar"/>
<include name="rxclient.jar"/>
<include name="rxutils.jar" />
<include name="rxservices.jar" />
<include name="rxbusiness.jar" />
</fileset>
<fileset dir="${rhythmyx.home}/jetty/defaults/lib/perc">
<include name="commons-lang*.jar"/>
<include name="commons-jexl*.jar"/>
<include name="jcr*.jar" />
<include name="commons-collections*.jar" />
<include name="commons-httpclient*.jar" />
<include name="xml-apis.jar" />
</fileset>
<fileset dir="${rhythmyx.home}/jetty/upstream/lib">
<include name="servlet-api-*.jar" />
</fileset>
<fileset dir="${rhythmyx.home}/jetty/defaults/lib/perc-logging">
<include name="*.jar" />
</fileset>
</classpath>
</java>
</target>
<target name="uninstall">
<echo message="Uninstalling previous version..."/>
<delete casesensitive="false" failonerror="false" verbose="true">
<fileset>
<filename name="${rhythmyx.home}/AppServer/server/rx/rxapp.ear/rxapp.war/WEB-INF/lib/pso-demand-preview*.jar" />
<filename name="${jetty.webapp}/WEB-INF/lib/pso-demand-preview*.jar" />
</fileset>
</delete>
</target>
<target name="dist">
<fail unless="env.RHYTHMYX_HOME" message="You must set the RHYTHMYX_HOME environment variable"/>
<echo>Installing Extensions to ${rhythmyx.home}</echo>
<antcall target="uninstall"/>
<antcall target="jarcopy"/>
<antcall target="WEB-INF" />
<antcall target="installExtensions"/>
</target>
</project>