forked from liferay/liferay-portal
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build-test-content-security-policy.xml
45 lines (36 loc) · 1.38 KB
/
build-test-content-security-policy.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
<?xml version="1.0"?>
<project basedir="." name="portal-test-content-security-policy" xmlns:antelope="antlib:ise.antelope.tasks">
<import file="build-test.xml" />
<target name="prepare-content-security-policy-osgi-configuration">
<property name="osgi.dependency.dir" value="${project.dir}/portal-web/test/functional/com/liferay/portalweb/tests/coreinfrastructure/security/contentsecuritypolicy/dependencies" />
<copy
file="${osgi.dependency.dir}/${osgi.config.file.name}"
todir="${liferay.home}"
/>
<replace
file="${liferay.home}/${osgi.config.file.name}"
token="companyId=L"20096""
value="companyId=L"${companyId}""
/>
<move
file="${liferay.home}/${osgi.config.file.name}"
todir="${liferay.home}/osgi/configs"
/>
</target>
<target name="prepare-content-security-policy-osgi-site-configuration">
<property name="osgi.dependency.dir" value="${project.dir}/portal-web/test/functional/com/liferay/portalweb/tests/coreinfrastructure/security/contentsecuritypolicy/dependencies" />
<copy
file="${osgi.dependency.dir}/${osgi.config.file.name}"
todir="${liferay.home}"
/>
<replace
file="${liferay.home}/${osgi.config.file.name}"
token="groupId=L"20122""
value="groupId=L"${groupId}""
/>
<move
file="${liferay.home}/${osgi.config.file.name}"
todir="${liferay.home}/osgi/configs"
/>
</target>
</project>