This repository was archived by the owner on Apr 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdeploy.xml
More file actions
97 lines (90 loc) · 4.1 KB
/
Copy pathdeploy.xml
File metadata and controls
97 lines (90 loc) · 4.1 KB
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
<project name="Rhythmyx 6 Install Extensions" default="dist" basedir=".">
<description>
Install extensions on a Rhythmyx 6 server
The RHYTHMYX_HOME environment variable must be set
</description>
<property environment="env"/>
<!-- base directory of Rhythmyx installation -->
<property name="rhythmyx.home" location="${env.RHYTHMYX_HOME}"/>
<property name="rhythmyx.rxapp" location="${rhythmyx.home}/AppServer/server/rx/deploy/rxapp.ear/rxapp.war" />
<property name="rhythmyx.WEB-INF" value="${rhythmyx.rxapp}/WEB-INF"/>
<property name="rhythmyx.lib" value="${rhythmyx.WEB-INF}/lib"/>
<property name="rhythmyx.spring" value="${rhythmyx.WEB-INF}/config/user/spring" />
<property name="rhythmyx.user.pages" value="${rhythmyx.WEB-INF}/user/addins/PSOSmartPreview/pages" />
<!-- relative paths -->
<property name="lib" location="lib"/>
<property name="pages" location="WEB-INF/addins/PSOSmartPreview/pages" />
<property name="stylesheet" location="addProp.xslt" />
<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="${lib}">
<include name="**.jar" />
</fileset>
<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>
</target>
<target name="pages" description="deploy jsp pages">
<fail unless="env.RHYTHMYX_HOME" message="You must set the RHYTHMYX_HOME environment variable"/>
<copy todir="${rhythmyx.user.pages}" >
<fileset dir="${pages}" />
</copy>
</target>
<target name="addProperty" description="adds the necessary property to the UserDispatcher-servlet and copies the new file">
<fail unless="env.RHYTHMYX_HOME" message="You must set the RHYTHMYX_HOME environment variable"/>
<echo>Transforming web.xml</echo>
<copy file="${rhythmyx.WEB-INF}/web.xml" todir=""/>
<xslt in="web.xml" style="${stylesheet}" out="Output.xml" force="yes" />
<!-- echo>Deleted extraneous files</echo -->
<!-- delete file="${stylesheet}"/ -->
<!-- delete file="UserDispatcher-servlet.xml"/ -->
<echo>Updated web.xml</echo>
<copy file="Output.xml" tofile="web.xml" />
<copy file="web.xml" todir="${rhythmyx.WEB-INF}" />
</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.lib}">
<include name="rxserver.jar"/>
<include name="rxclient.jar"/>
<include name="rxutils.jar" />
<include name="rxservices.jar" />
<include name="rxbusiness.jar" />
<include name="commons-jexl*.jar" />
<include name="commons-lang*.jar"/>
<include name="jcr*.jar" />
<include name="commons-logging*.jar" />
<include name="commons-collections*.jar" />
<include name="commons-httpclient*.jar" />
</fileset>
<fileset dir="${rhythmyx.home}/AppServer/lib/endorsed" >
<include name="xml-apis.jar" />
</fileset>
<fileset dir="${rhythmyx.home}/AppServer/server/rx/lib">
<include name="javax.servlet.jar" />
</fileset>
</classpath>
</java>
</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="jarcopy"/>
<antcall target="WEB-INF" />
<antcall target="pages" />
<antcall target="addProperty" />
<antcall target="installExtensions"/>
</target>
</project>