forked from liferay/liferay-portal
-
Notifications
You must be signed in to change notification settings - Fork 5
/
build-test-saml.xml
60 lines (50 loc) · 1.66 KB
/
build-test-saml.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
<?xml version="1.0"?>
<project basedir="." name="portal-test-saml" xmlns:antelope="antlib:ise.antelope.tasks">
<import file="build-test.xml" />
<target name="check-keystore-path">
<property name="keystoreDirectoryPattern" value="${liferay.home}/data/document_library" />
<dirset
dir="${keystoreDirectoryPattern}"
id="keystoreDirSet"
includes="*/0/saml/keystore.jks"
/>
<condition property="keystoreDirectoryExists">
<resourcecount count="0" refid="keystoreDirSet" when="greater" />
</condition>
<if>
<equals arg1="${keystoreDirectoryExists}" arg2="true" />
<then>
<echo file="${liferay.home}/result.txt">
The certificate file is saved to DL root folder.
</echo>
</then>
<else>
<echo file="${liferay.home}/result.txt">
The certificate file isn't saved to DL root folder.
</echo>
</else>
</if>
</target>
<target name="deploy-keystore-file">
<copy
file="${project.dir}/portal-web/test/functional/com/liferay/portalweb/tests/coreinfrastructureee/security/dependencies/keystore.jks"
todir="${liferay.home}/data"
/>
</target>
<target name="prepare-saml-keystore-osgi-configuration">
<property name="osgi.dependency.dir" value="${project.dir}/portal-web/test/functional/com/liferay/portalweb/tests/coreinfrastructureee/security/dependencies" />
<copy
file="${osgi.dependency.dir}/${osgi.config.file.name}"
todir="${liferay.home}"
/>
<replace
file="${liferay.home}/${osgi.config.file.name}"
token="FileSystemKeyStoreManagerImpl"
value="DLKeyStoreManagerImpl"
/>
<move
file="${liferay.home}/${osgi.config.file.name}"
todir="${liferay.home}/osgi/configs"
/>
</target>
</project>