-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
186 lines (165 loc) · 6.58 KB
/
Copy pathbuild.xml
File metadata and controls
186 lines (165 loc) · 6.58 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<project name="PSO Paginator" default="dist" basedir="." xmlns:ivy="antlib:org.apache.ivy.ant">
<description>
PSO Paginator code
</description>
<!-- set global properties for this build -->
<property environment="env"/>
<!-- base directory of Rhythmyx installation -->
<property name="rx.home" location="${env.RHYTHMYX_HOME}"/>
<!-- name of Rhythmyx Service -->
<property name="rx.service" value="${env.RHYTHMYX_SERVICE}"/>
<!-- base of Axis Path -->
<property name="axis_home" location="${env.AXIS_HOME}"/>
<!-- name of our output jar -->
<property name="jarname" value="PSOPaginator.jar" />
<!-- name of our distribution zip -->
<property name="distfile" value="PSOPaginator.zip" />
<!-- Spring configuration for ContentListServlet -->
<property name="spring.contentlist" value="paginatorContentListServlet.xml"/>
<property name="rx.lib"
value="${rx.home}/AppServer/server/rx/deploy/rxapp.ear/rxapp.war/WEB-INF/lib"/>
<property name="rx.spring"
value="${rx.home}/AppServer/server/rx/deploy/rxapp.ear/rxapp.war/WEB-INF/config/user/spring"/>
<property name="jboss.lib"
value="${rx.home}/AppServer/server/rx/lib" />
<!-- relative paths -->
<property name="src" location="src"/>
<property name="lib" location="lib"/>
<property name="bin" location="bin"/>
<property name="apidoc" location="apidoc" />
<!-- more relative paths. Make sure these are not in Subversion -->
<property name="ivylib" location="ivylib" />
<property name="apidoc" location="apidoc" />
<!-- used for running Windows commands -->
<property name="comspec" location="${env.ComSpec}"/>
<property name="cdrive" location="${env.USERPROFILE}"/>
<!-- Rhythmyx classpath -->
<!-- Rhythmyx classpath -->
<path id="rx.class.path">
<fileset dir="${ivylib}">
<include name="**.jar"/>
</fileset>
</path>
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
</target>
<!--
load the ivy configuration. See ivysettings.xml
-->
<target name="ivy-configure">
<ivy:settings />
</target>
<!-- resolve dependencies -->
<target name="ivy-resolve" depends="ivy-configure" >
<!-- if you have more configurations, you may need to change this line -->
<ivy:resolve conf="test"/>
</target>
<!-- retrieve all dependency JARs to the local ivylib folder -->
<target name="ivy-retrieve" depends="ivy-resolve">
<!-- if you have more configurations, you may need to change this line -->
<ivy:retrieve pattern="${ivylib}/[artifact].[ext]" />
</target>
<!--
You should only publish this project to Ivy if it produces
JARs that will be used by other projects.
-->
<!-- Uncomment this target to enable publishing
<target name="ivy-publish" depends="ivy-resolve" >
<ivy:publish resolver="foo-shared-sftp" forcedeliver="true"
pubrevision="1.0" overwrite="true"
conf="default" status="integration" >
<artifacts pattern="${lib}/[artifact]-[revision].[ext]" />
</ivy:publish>
</target>
-->
<target name="compile" description="compile the source ">
<!-- Compile the java code from ${src} into ${bin} -->
<javac srcdir="${src}" destdir="${bin}" debug="true" source="1.5" target="1.5" classpathref="rx.class.path" />
<copy todir="${bin}">
<fileset dir="${src}">
<include name="**/*.xml"/>
<include name="**/*.properties" />
</fileset>
</copy>
</target>
<target name="javadoc" depends="compile">
<mkdir dir="apidoc"/>
<javadoc destdir="apidoc" protected="true" use="yes"
windowtitle="${ant.project.name}">
<packageset dir="${src}" defaultexcludes="yes">
<include name="com/percussion/pso/**"/>
</packageset>
<classpath refid="rx.class.path"/>
<link href="http://java.sun.com/j2se/1.5.0/docs/api/" />
<link href="file:///d:/RxRhino/Docs/Rhythmyx/Javadocs" />
</javadoc>
</target>
<target name="jarbuilder" description="just build the jar, no server">
<delete file="${bin}/log4j.properties" />
<propertyfile file="${bin}/build.properties">
<entry key="build.number" value="${build.number}"/>
<entry key="build.date" type="date" pattern="EEEE MMM dd yyyy" value="now"/>
</propertyfile>
<jar jarfile="${jarname}" basedir="bin">
<include name="org/**" />
<include name="javax/**" />
<include name="com/percussion/pso/**"/>
<exclude name="log4j.properties" />
<exclude name="log4j.xml" />
<include name="build.properties" />
<!-- <include name="readme.txt" /> -->
</jar>
</target>
<target name="testbuild" depends="compile" description="build for local test">
<echo>Stopping ${rx.service}</echo>
<exec executable="net.exe" failonerror="false">
<arg line="stop ${rx.service}"/>
<env key="COMSPEC" path="${comspec}"/>
</exec>
<property name="build.number" value="test build" />
<antcall target="jarbuilder"/>
<copy file="${jarname}" todir="${rx.lib}" verbose="true" />
<copy todir="${rx.spring}" verbose="true">
<fileset dir="spring" />
</copy>
<echo>waiting for shutdown...</echo>
<sleep seconds="15" />
<delete file="${rx.home}/AppServer/server/rx/log/server.log" />
<echo>Restarting ${rx.service}</echo>
<exec executable="net.exe" failonerror="true">
<arg line="start ${rx.service}"/>
<env key="COMSPEC" path="${comspec}"/>
</exec>
</target>
<target name="dist" depends="init,compile" description="generate the distribution">
<buildnumber/>
<antcall target="jarbuilder"/>
<antcall target="javadoc" />
<zip destfile="${distfile}">
<zipfileset dir="." includes="${jarname}" />
<zipfileset dir="Rx_Resources_Ephox/rx_resources/ephox" includes="**.*"
prefix="Rx_Resources_Ephox/rx_resources/ephox"/>
<zipfileset dir="Rx_Resources_Ephox/rx_resources/ephox/images" includes="**.*"
prefix="Rx_Resources_Ephox/rx_resources/ephox/images/"/>
<zipfileset dir="spring" prefix="spring" />
<fileset dir="." includes="readme.txt, build.number" />
<fileset dir="." includes="deploy.xml *.xslt"/>
<fileset dir="." includes="Extensions.xml InstallExtensions.bat InstallExtensions.sh" />
<zipfileset dir="${apidoc}" prefix="javadoc"/>
<!--<fileset dir="Rhythmyx" includes="**"/>-->
</zip>
</target>
<!--
clean the ivy cache and throw away any local copies of downloaded JARs
-->
<target name="ivy-clean" depends="ivy-configure">
<ivy:cleancache />
<delete dir="${ivylib}" />
<mkdir dir="${ivylib}" />
</target>
<target name="clean" description="clean up">
<delete dir="${bin}"/>
<mkdir dir="${bin}"/>
</target>
</project>