-
Notifications
You must be signed in to change notification settings - Fork 8
/
updateConfiguration.xml
450 lines (416 loc) · 26.1 KB
/
updateConfiguration.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
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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
<?xml version="1.0" encoding="UTF-8"?>
<project name="updateConfiguration" default="updateConfiguration">
<target name="updateConfiguration">
<echo>Updating configuration files...</echo>
<property file="${install.dir}/Version.properties" prefix="version"/>
<if>
<equals arg1="" arg2="${version.optionalId}"/>
<then>
<property name="optionalId" value=""/>
</then>
<else>
<property name="optionalId" value="-${version.optionalId}"/>
</else>
</if>
<property name="buildversion" value="${version.majorVersion}.${version.minorVersion}.${version.microVersion}${optionalId}"/>
<echoproperties/>
<!-- i18n -->
<delete file="${install.dir}/rxconfig/I18n/ResourceBundle.tmx.bak" failonerror="false" verbose="true"/>
<echo>Backing up i18n resource bundle...</echo>
<copy overwrite="true" force="true"
file="${install.dir}/rxconfig/I18n/ResourceBundle.tmx" tofile="${install.dir}/rxconfig/I18n/ResourceBundle.tmx.bak" failonerror="false" />
<delete file="${install.dir}/rxconfig/I18n/ResourceBundle.tmx" failonerror="false" verbose="true"/>
<copy todir="${install.dir}/rxconfig/Server" overwrite="true" force="true"
file="${install.src}/rxconfig/Server/RequestHandlers.xml"/>
<copy todir="${install.dir}/rxconfig/Server/ContentEditors" overwrite="true" force="true"
file="${install.src}/rxconfig/Server/ContentEditors/ContentEditorSystemDef.xml"/>
<copy todir="${install.dir}/rxconfig/Server" overwrite="true" force="true"
file="${install.src}/rxconfig/Server/sys_DatabaseFunctionDefs.xml"/>
<!-- TODO: This may need to be a property file update on upgrade -->
<copy todir="${install.dir}/rxconfig/Server" overwrite="true" force="true"
file="${install.src}/rxconfig/Server/startupProcessManager.properties"/>
<!-- i18n always install or upgrade -->
<echo>Updating i18n property file...</echo>
<propertyfile file="${install.dir}/rxconfig/I18n/rxlt.properties">
<entry key="runAtStartup" value="true" default="true" />
</propertyfile>
<!-- Always update the sys_ schema files with latest -->
<echo>Refreshing master schema files...</echo>
<delete file="${install.dir}/rxconfig/Server/sys_cmstableDef.xml" casesensitive="true" failonerror="false"/>
<copy file="${install.src}/rxconfig/Installer/data/cmsTableDef.xml" force="true" overwrite="true" verbose="true" tofile="${install.dir}/rxconfig/Server/sys_cmsTableDef.xml"/>
<copy file="${install.src}/rxconfig/Installer/data/cmsTableData.xml" force="true" overwrite="true" verbose="true" tofile="${install.dir}/rxconfig/Server/sys_cmsTableData.xml"/>
<echo>Updating mimemap.properties</echo>
<propertyfile file="${install.dir}/rxconfig/Server/mimemap.properties">
<entry key="aspx" default="text/html"/>
<entry key="asp" default="text/html"/>
<entry key="jsp" default="text/html"/>
<entry key="php" default="text/html"/>
<entry key="cfm" default="text/html"/>
<entry key="cfml" default="text/html"/>
<entry key="cfc" default="text/html"/>
<entry key="cfr" default="text/html"/>
<entry key="cfswf" default="text/html"/>
<entry key="dhtml" default="text/html"/>
<entry key="acgi" operation="del"/>
</propertyfile>
<echo>Updating rxworflow.properties</echo>
<propertyfile file="${install.dir}/rxconfig/Workflow/rxworkflow.properties">
<entry key="NOTIFICATION_ENABLE" default="N"/>
<entry key="ENABLE_TEST_RUN_MODE" default="N"/>
<entry key="RX_SERVER_HOST_NOTIFICATION" default=""/>
<entry key="RX_SERVER_PORT_NOTIFICATION" default=""/>
<entry key="RX_SERVER_IS_SSLLINK_NOTIFICATION" default="no"/>
<entry key="MAIL_DOMAIN" default=""/>
<entry key="SMTP_HOST" default=""/>
<entry key="SMTP_USERNAME" default=""/>
<entry key="SMTP_PASSWORD" default=""/>
<entry key="SMTP_PORT" default=""/>
<entry key="SMTP_TLSENABLED" default=""/>
<entry key="SMTP_SSLPORT" default=""/>
<entry key="SMTP_BOUNCEADDR" default=""/>
<entry key="SMTP_DEFAULTFROM" default=""/>
<entry key="APP_FILE_LIST" default=""/>
<entry key="BLOCKNOTIFICATIONSFORNAVONS" default="true"/>
<entry key="DATA_TYPE_MAP_FILE" default="../rxwfdatatypemaps.xml"/>
<entry key="DB_SCHEMA" default=""/>
<entry key="DB_BACKEND" default=""/>
<entry key="MSACCESS_CURRENTTIMESTAMP" default="Now"/>
<entry key="ORACLE_CURRENTTIMESTAMP" default="SYSDATE"/>
<entry key="MSSQL_CURRENTTIMESTAMP" default="getDate()"/>
<entry key="DB_SERVER" default=""/>
<entry key="HTML_PARAM_USER_FULLNAME" default="htmlParamUserFullName"/>
<entry key="HTML_PARAM_USER_ROLELIST" default="htmlParamRoleList"/>
<entry key="TABLE_DEF_FILE" default="../rxcmsconfig.xml\"/>
<entry key="CUSTOM_MAIL_CLASS" default="com.percussion.workflow.mail.PSSecureMailProgram"/>
<entry key="DB_DRIVER_VERSION" default="*"/>
<entry key="TABLE_DATA_FILE" default="../rxwftabledata.xml"/>
<entry key="DB_DRIVER_CLASS_NAME" default=""/>
<entry key="TRIGGER_FORCE_CHECK_IN" default="forcecheckin"/>
<entry key="TRIGGER_CHECK_IN" default="checkin"/>
<entry key="TRIGGER_CHECK_OUT" default="checkout"/>
<entry key="MAIL_NOTIFY_LINK_COMPONENT_NAME" default="item_action_panel"/>
<entry key="MAIL_NOTIFY_LINK_GEN_EXIT" default="global/percussion/contentassembler/perc_casGenerateReadOnlyLink"/>
<entry key="DEFAULT_WORKFLOW" default="Default Workflow"/>
</propertyfile>
<echo>Updating server.properties file</echo>
<propertyfile file="${install.dir}/rxconfig/Server/server.properties" >
<entry key="maxUsersAllowed" default="0"/>
<entry key="compressOutput" value="false"/>
<entry key="AUTO_MANAGE_LOCAL_PATHS" value="true"/>
<entry key="enabledCiphers" value="TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_RSA_WITH_AES_128_GCM_SHA256,TLS_RSA_WITH_AES_256_GCM_SHA384"/>
<entry key="isWidgetBuilderActive" value="true"/>
<entry key="publishNonPageMetadata" default="true"/>
<entry key="requireContentSecurityPolicy" value="true" default="true"/>
<entry key="contentSecurityPolicy" value="default-src * data: blob: http: https: *.percussion.com *.percussion.marketing *.percussion.services ; img-src * 'self' data: blob: http: https: 'unsafe-inline' 'unsafe-eval'; font-src * 'unsafe-inline' 'unsafe-eval' data: blob: https:; script-src * 'unsafe-inline' 'unsafe-eval' *.siteimprove.net data: blob:; style-src * 'unsafe-inline' 'unsafe-eval' data: blob:; frame-src * 'self' data: blob: https: *.percussion.com *.percussion.marketing *.percussion.services 'unsafe-inline' 'unsafe-eval'; frame-ancestors * 'self' ;"/>
<entry key="requireStrictTransportSecurity" default="false"/>
<entry key="stricttransportsecuritymaxage" default="300"/>
<entry key="requireXFrameOptions" value="false" default="false"/>
<entry key="xFrameOptions" default="SAMEORIGIN"/>
<entry key="requireXXSSProtection" default="true"/>
<entry key="xXSSProtection" default="1; mode=block"/>
<entry key="requireXContentTypeOptions" default="true"/>
<entry key="xContentTypeOptions" default="nosniff"/>
<entry key="requireCacheControl" default="true"/>
<entry key="cacheControl" default="no-cache='Set-Cookie, Set-Cookie2',must-revalidate"/>
<entry key="autotuneCachePercentage" default="60"/>
<entry key="brokenManagedLinkBehavior" default="deadLink"/>
<entry key="caseSensitiveUrl" default="true"/>
<entry key="communities_enabled" value="yes" default="yes" operation="="/>
<entry key="forceSockets" default="true"/>
<entry key="requireUniqueFieldNames" default="true"/>
<entry key="responseCloseDelay" default="10"/>
<entry key="catalogPageMax" default="-1"/>
<entry key="importPageMax" default="-1"/>
<entry key="importTimeOut" default="30"/>
<entry key="assignmentTypeCalculationFilterCommunityRoles" default="false"/>
<entry key="loginAutoComplete" default="off" value="off"/>
<entry key="sendErrorStackToClient" default="false"/>
<entry key="disableCrossSiteRequestForgeryCheck" default="false"/>
<entry key="clientSessionWarning" default="5"/>
<entry key="useXMLAssemblerCache" default="false"/>
<entry key="requireHTTPS" default="false"/>
<entry key="imageThumbnailWidth" default="50"/>
<entry key="publicCmsHostname" default=""/>
<entry key="requestBehindProxy" default="false"/>
<entry key="proxyScheme" default="http"/>
<entry key="proxyPort" default="9992"/>
<entry key="enablePagination" default="false"/>
<entry key="auditLogConfigurationFile" default="perc-auditlog.properties"/>
<entry key="enableAuditLogging" default="true"/>
<entry key="optimizePublishWithChecksum" default="false"/>
<entry key="allowPurgeRevisionsScheduledTask" value="true" default="true"/>
<entry key="enableDebugTools" default="false"/>
<entry key="sameSiteCookieMode" value="Lax"/>
<entry key="allowedOrigins" default="*"/>
<entry key="allowedMethods" default="GET,POST,OPTIONS,HEAD,PUT,DELETE,PATCH"/>
<entry key="allowedHeaders" default="Content-Type, Access-Control-Allow-Origin, Access-Control-Allow-Headers, Authorization, X-Requested-With, X-UA-Compatible, OWASP-CSRFTOKEN,User-Agent"/>
<entry key="allowCredentials" default="false"/>
<entry key="secureKeyRotationTime" default="0"/>
<entry key="noCacheTemplates" default=""/>
<entry key="compressOutput" default="false"/>
<entry key="allowLinksToOrphans" value="true" default="true" operation="="/>
<entry key="screenshotCommandLine" default=""/>
<!-- Properties to remove if present -->
<entry key="optimizePublishWithMD5Check" operation="del"/>
<entry key="enableSQLTool" operation="del"/>
<entry key="enableJCRTool" operation="del"/>
<entry key="enableLogTool" operation="del"/>
</propertyfile>
<echo>Updating Navigation.properties file...</echo>
<copy file="${install.dir}/rxconfig/Server/Navigation.properties" tofile="${install.dir}/rxconfig/Server/Navigation.properties.backup" overwrite="true"/>
<propertyfile file="${install.dir}/rxconfig/Server/Navigation.properties" >
<entry key="navimage.content_types" value="percNavImage,rffNavImage"/>
<entry key="navimage.field.selector" value="selector"/>
<entry key="navon.content_types" value="percNavon,rffNavon"/>
<entry key="navon.field.displaytitle" value="displaytitle"/>
<entry key="navon.field.namefield" value="sys_title"/>
<entry key="navon.field.propagate" value="no_propagate"/>
<entry key="navon.field.selector" value="no_selector"/>
<entry key="navon.field.variable" value="no_variable"/>
<entry key="navon.landingpage.required" value="false"/>
<entry key="navon.slot.images" value="perc.nav.image,rffNavImage"/>
<entry key="navon.slot.landingpages" value="perc.nav.landingPage,rffNavLandingPage"/>
<entry key="navon.slot.submenus" value="perc.nav.subMenu,rffNavSubmenu"/>
<entry key="navon.slotnames" value="perc.nav.slot,rffNav"/>
<entry key="navtree.content_types" value="percNavTree,rffNavTree"/>
<entry key="navtree.field.theme" value="nt_theme"/>
<entry key="navtree.theme.default" value="DefaultTheme"/>
<entry key="navtree.variable" value="rxs_navbase"/>
<entry key="navtree.param.theme" value="nav_theme"/>
<entry key="navtree.variant.info" value="NavTreeInfo"/>
<entry key="navon.variant.info" value="NavonInfo"/>
<entry key="navon.variant.navlink" value="NavonLink"/>
<entry key="navon.variant.tree" value="NavonXML"/>
<entry key="navimage.variant.info" value="NavImageInfo"/>
<entry key="navon.title.template" value="{0}"/>
<entry key="navon.displaytitle.template" value="{0}"/>
</propertyfile>
<echo>Setting default velocity.properties...</echo>
<copy failonerror="false" verbose="true" overwrite="false" todir="${install.dir}/rxconfig/Server" file="${install.dir}/rxconfig/velocity/2.3/config/*.properties" />
<!-- Specify the rxdir in jetty default jvm -->
<echo>Specifying rxdeploydir in jvm.ini files...</echo>
<!-- Convert path so that all slashes are forward -->
<pathconvert pathsep="/" property="normalized.install.dir" targetos="unix">
<path location="${install.dir}"/>
</pathconvert>
<if>
<isset property="isWindows"/>
<then>
<property name="lead.slash" value="/"/>
</then>
<else>
<property name="lead.slash" value=""/>
</else>
</if>
<if>
<available file="${install.dir}/jetty/defaults/start.d/jvm.ini"/>
<then>
<replace file="${install.dir}/jetty/defaults/start.d/jvm.ini" token="@@rxdir@@" value="${normalized.install.dir}" />
</then>
</if>
<if>
<available file="${install.dir}/jetty/base/start.d/jvm.ini"/>
<then>
<replace file="${install.dir}/jetty/base/start.d/jvm.ini" token="@@rxdir@@" value="${normalized.install.dir}" />
<replace file="${install.dir}/jetty/base/start.d/jvm.ini" token="-Djavax.xml.transform.TransformerFactory" value="#-Djavax.xml.transform.TransformerFactory" />
<replace file="${install.dir}/jetty/base/start.d/jvm.ini" token="-Djavax.xml.parsers.SAXParserFactory" value="#-Djavax.xml.parsers.SAXParserFactory" />
<replace file="${install.dir}/jetty/base/start.d/jvm.ini" token="-Djavax.xml.datatype.DatatypeFactory" value="#-Djavax.xml.datatype.DatatypeFactory" />
<replace file="${install.dir}/jetty/base/start.d/jvm.ini" token="-Djavax.xml.parsers.DocumentBuilderFactory" value="#-Djavax.xml.parsers.DocumentBuilderFactory" />
</then>
</if>
<replace file="${install.dir}/PercussionXMLCatalog.xml" token="@@rxdir@@" value="${lead.slash}${normalized.install.dir}" />
<replace file="${install.dir}/var/config/CustomXMLCatalog.xml" token="@@rxdir@@" value="${lead.slash}${normalized.install.dir}" />
<if>
<available file="${install.dir}/sys_resources/ant/copy-resources.xml"/>
<then>
<replace file="${install.dir}/sys_resources/ant/copy-resources.xml" token="@@perc.version@@" value="${buildversion}" />
</then>
</if>
<macrodef name="add-config-if-missing">
<attribute name="srcFile"/>
<attribute name="value"/>
<sequential>
<local name="setting.test" />
<loadfile property="setting.test" srcFile="@{srcFile}">
<filterchain>
<linecontains>
<contains value="@{value}"/>
</linecontains>
</filterchain>
</loadfile>
<if>
<not>
<equals arg1="${setting.test}" arg2="@{value}" trim="true" forcestring="true" />
</not>
<then>
<echo file="@{srcFile}" append="true" message="
@{value}" />
</then>
</if>
</sequential>
</macrodef>
<echo>Updating user spring configuration...</echo>
<replace dir="${install.dir}/jetty/base/webapps/Rhythmyx/WEB-INF/config/user/spring" value=" bean=" token=" local=">
<include name="*.xml"/>
</replace>
<replace dir="${install.dir}/jetty/base/webapps/Rhythmyx/WEB-INF/config/user/spring" value="" token="<property name="diskStorePath" value="user.dir/perc-image-cache" />">
<include name="*.xml"/>
</replace>
<replace dir="${install.dir}/jetty/base/webapps/Rhythmyx/WEB-INF/config/user/spring" >
<include name="*.xml"/>
<replacetoken><![CDATA[<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd">
]]></replacetoken>
<replacevalue><![CDATA[<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-4.2.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-4.2.xsd">]]></replacevalue>
</replace>
<replace dir="${install.dir}/jetty/base/webapps/Rhythmyx/WEB-INF/config/user/spring" >
<include name="*.xml"/>
<replacetoken><![CDATA[<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd">
]]></replacetoken>
<replacevalue><![CDATA[<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-4.2.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-4.2.xsd">]]></replacevalue>
</replace>
<replace dir="${install.dir}/jetty/base/webapps/Rhythmyx/WEB-INF/config/user/spring" >
<include name="*.xml"/>
<replacetoken><![CDATA[<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:psx="http://www.percussion.com/schema/config"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd
http://www.percussion.com/schema/config http://www.percussion.com/schema/config/ConfigPropertyValue.xsd"
>
]]></replacetoken>
<replacevalue><![CDATA[<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-4.2.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-4.2.xsd">]]></replacevalue>
</replace>
<replace dir="${install.dir}/jetty/base/webapps/Rhythmyx/WEB-INF/config/user/spring" >
<include name="*.xml"/>
<replacetoken><![CDATA[
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
"http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
]]></replacetoken>
<replacevalue><![CDATA[<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-4.2.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-4.2.xsd">]]></replacevalue>
</replace>
<replace dir="${install.dir}/jetty/base/webapps/Rhythmyx/WEB-INF/config/user/spring" >
<include name="UserDispatcher-servlet.xml"/>
<replacetoken><![CDATA[<!-- add mappings here -->
<bean id="urlMapping"
class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
<property name="mappings">
<props>
<!-- Add a prop for each mapping -->
<!-- A sample mapping for /Rhythmyx/user/apps/myPage.htm to use the
myController bean
<prop key="myPage.htm">myController</prop>
-->
<!-- A sample mapping for /Rhythmyx/user/apps/disp/myDispPage.htm to use the
myDispatchController bean
<prop key="disp/myDispPage.htm">myDispatchController</prop>
-->
</props>
</property>
</bean>
]]></replacetoken>
<replacevalue><![CDATA[<!-- add mappings here
<bean id="urlMapping"
class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
<property name="mappings">
<props>
<prop key="myPage.htm">myController</prop>
<prop key="disp/myDispPage.htm">myDispatchController</prop>
</props>
</property>
</bean>
-->
]]></replacevalue>
</replace>
<echo>Copying percSystem.xml Resources...</echo>
<!-- percSystem.xml Resources -->
<PSCopy tofile="${install.dir}/rxconfig/Resources/percSystem.xml" file="${install.src}/rxconfig/Resources/percSystem.xml" replaceType="always"/>
<echo>Updating Publisher Beans files...</echo>
<if>
<available file="${install.dir}/jetty/base/webapps/Rhythmyx/WEB-INF/config/user/spring/publisher-beans.xml" type="file"/>
<then>
<copy file="${install.dir}/jetty/base/webapps/Rhythmyx/WEB-INF/config/user/spring/publisher-beans.xml" tofile="${install.dir}/jetty/base/webapps/Rhythmyx/WEB-INF/config/user/spring/publisher-beans.xml_copy" />
<if>
<available file="publisherBeans.xsl" type="file"/>
<then>
<xslt force="true" style="publisherBeans.xsl"
in="${install.dir}/jetty/base/webapps/Rhythmyx/WEB-INF/config/user/spring/publisher-beans.xml_copy"
out="${install.dir}/jetty/base/webapps/Rhythmyx/WEB-INF/config/user/spring/publisher-beans.xml" />
</then>
<else>
<echo>publisherBeans.xsl Not Found</echo>
</else>
</if>
<delete file="${install.dir}/jetty/base/webapps/Rhythmyx/WEB-INF/config/user/spring/publisher-beans.xml_copy"/>
</then>
<else>
<echo>${install.dir}/jetty/base/webapps/Rhythmyx/WEB-INF/config/user/spring/publisher-beans.xml Not Found</echo>
</else>
</if>
<echo message="Removing old jetty console logs to free disk space..." />
<delete verbose="true" failonerror="false">
<fileset dir="${install.dir}/jetty/base/logs">
<include name="**/*.jetty.log" />
</fileset>
</delete>
<echo message="Removing retired ant dependencies..."/>
<delete verbose="true" failonerror="false" includeemptydirs="true">
<fileset dir="${install.dir}/sys_resources/ant/lib">
<include name="**/*"/>
</fileset>
</delete>
</target>
</project>