forked from liferay/liferay-portal
-
Notifications
You must be signed in to change notification settings - Fork 5
/
build-test-openid-connect.xml
51 lines (41 loc) · 1.6 KB
/
build-test-openid-connect.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
<?xml version="1.0"?>
<project basedir="." name="portal-test-openid-connect" xmlns:antelope="antlib:ise.antelope.tasks">
<import file="build-test.xml" />
<target name="prepare-openid-connect-json-configuration">
<property name="osgi.dependency.dir" value="${project.dir}/portal-web/test/functional/com/liferay/portalweb/tests/coreinfrastructure/security/openidconnect/dependencies" />
<copy
file="${osgi.dependency.dir}/${osgi.config.file.name}"
todir="${liferay.home}"
/>
<replace
file="${liferay.home}/${osgi.config.file.name}"
token=""client_secret": """
value=""client_secret": "${openIdConnectClientSecret}""
/>
<move
file="${liferay.home}/${osgi.config.file.name}"
todir="${osgi.dependency.dir}"
/>
</target>
<target name="prepare-openid-connect-osgi-configuration">
<property name="osgi.dependency.dir" value="${project.dir}/portal-web/test/functional/com/liferay/portalweb/tests/coreinfrastructure/security/openidconnect/dependencies" />
<copy
file="${osgi.dependency.dir}/${osgi.config.file.name}"
todir="${liferay.home}"
/>
<replace
file="${liferay.home}/${osgi.config.file.name}"
token="openIdConnectClientId="""
value="openIdConnectClientId="${openIdConnectClientId}""
/>
<replace
file="${liferay.home}/${osgi.config.file.name}"
token="openIdConnectClientSecret="""
value="openIdConnectClientSecret="${openIdConnectClientSecret}""
/>
<move
file="${liferay.home}/${osgi.config.file.name}"
todir="${liferay.home}/osgi/configs"
/>
</target>
</project>