-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.xml
61 lines (49 loc) · 2.33 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
<project name="Rhino Dynamic Delivery Deploy" default="dist" basedir=".">
<description>
Deployment Script Rhino Dynamic Delivery
</description>
<property environment="env"/>
<!-- base directory of Rhythmyx installation -->
<property name="rhino.home" location="${env.RHYTHMYX_HOME}"/>
<!-- name of our output jar -->
<property name="jarname" value="dynreorg-server.jar" />
<property name="lib" location="lib"/>
<property name="rhino.deploy" value="${rhino.home}/AppServer/server/rx/deploy" />
<property name="rhino.rxapp" value="${rhino.deploy}/rxapp.ear/rxapp.war" />
<property name="rhino.rxpub" value="${rhino.deploy}/RxServices.war"/>
<property name="rhino.rxapp.lib" value="${rhino.rxapp}/WEB-INF/lib"/>
<property name="rhino.rxapp.spring-config"
value="${rhino.rxapp}/WEB-INF/config/user/spring" />
<property name="rhino.rxpub.lib" value="${rhino.rxpub}/WEB-INF/lib" />
<property name="rhino.rxpub.spring-config" value="${rhino.rxpub}/WEB-INF/config/spring" />
<target name="installExtensions">
<fail unless="rhino.home" message="You must set the RHYTHMYX_HOME environment variable" />
<java classname="com.percussion.util.PSExtensionInstallTool" fork="true">
<arg value="${rhino.home}" />
<arg value="${basedir}" />
<classpath>
<fileset dir="${rhino.rxapp.lib}"/>
<fileset dir="${rhino.home}/AppServer/lib/endorsed" />
<fileset dir="${rhino.home}/AppServer/server/rx/lib" />
</classpath>
</java>
</target>
<target name="deployServer" description="deployment of server jars and config">
<fail unless="rhino.rxapp.lib" message="You must set the RHYTHMYX_HOME environment variable" />
<copy todir="${rhino.rxapp.lib}" verbose="true">
<fileset dir="${lib}">
<include name="${jarname}"/>
</fileset>
</copy>
<chmod perm="755" verbose="true">
<fileset dir="${rhino.rxapp.lib}">
<include name="${jarname}"/>
</fileset>
</chmod>
</target>
<target name="dist" description="Default target deploys all">
<fail unless="rhino.home" message="You must set the RHYTHMYX_HOME environment variable" />
<antcall target="installExtensions"/>
<antcall target="deployServer" />
</target>
</project>