forked from liferay/liferay-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-test-cas.xml
67 lines (56 loc) · 2.13 KB
/
build-test-cas.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
<?xml version="1.0"?>
<project basedir="." name="portal-test-cas" xmlns:antelope="antlib:ise.antelope.tasks">
<import file="build-test.xml" />
<macrodef name="deploy-cas">
<sequential>
<delete dir="${app.server.deploy.dir}/cas-web" />
<if>
<not>
<available file="${app.server.dir}/cas-web.war" />
</not>
<then>
<mirrors-get
dest="${app.server.dir}/cas-web.war"
src="http://files.liferay.com/private/apps/jasig/cas/3.3.5/cas-web.war"
verbose="true"
/>
<move
file="${app.server.dir}/cas-web.war"
tofile="${app.server.deploy.dir}/cas-web.war"
/>
</then>
</if>
<unzip
dest="${app.server.deploy.dir}/cas-web"
src="${app.server.deploy.dir}/cas-web.war"
/>
<delete dir="${app.server.deploy.dir}/cas-web.war" />
<echo file="${app.server.deploy.dir}/cas-web/META-INF/context.xml"><![CDATA[<Context>
<JarScanner>
<JarScanFilter className="com.liferay.support.tomcat.util.scan.LiferayJarScanFilter" pluggabilityScan="*" pluggabilitySkip="" tldScan="*" tldSkip="" />
</JarScanner>
</Context>]]></echo>
<replace
file="${app.server.deploy.dir}/cas-web/WEB-INF/deployerConfigContext.xml"
>
<replacetoken><![CDATA[<entry key="uid" value="uid" />]]></replacetoken>
<replacevalue><![CDATA[<entry key="uid"><list><value>uid</value></list></entry>]]></replacevalue>
</replace>
<replace
file="${app.server.deploy.dir}/cas-web/WEB-INF/deployerConfigContext.xml"
>
<replacetoken><![CDATA[<entry key="eduPersonAffiliation" value="eduPersonAffiliation" />]]></replacetoken>
<replacevalue><![CDATA[<entry key="eduPersonAffiliation"><list><value>eduPersonAffiliation</value></list></entry>]]></replacevalue>
</replace>
<replace
file="${app.server.deploy.dir}/cas-web/WEB-INF/deployerConfigContext.xml"
>
<replacetoken><![CDATA[<entry key="groupMembership" value="groupMembership" />]]></replacetoken>
<replacevalue><![CDATA[<entry key="groupMembership"><list><value>groupMembership</value></list></entry>]]></replacevalue>
</replace>
</sequential>
</macrodef>
<target name="setup-cas">
<deploy-cas />
</target>
</project>