forked from liferay/liferay-portal
-
Notifications
You must be signed in to change notification settings - Fork 5
/
build-test-liferay-theme.xml
41 lines (33 loc) · 969 Bytes
/
build-test-liferay-theme.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
<?xml version="1.0"?>
<project basedir="." name="portal-test-liferay-theme" xmlns:antelope="antlib:ise.antelope.tasks">
<import file="build-test.xml" />
<target name="prepare-liferay-theme">
<execute>
npm install -g generator-liferay-theme
</execute>
<delete dir="${selenium.output.dir.name}/${themeId}" />
<copy
file="${test.base.dir.name}/dependencies/${themeId}/config.json"
overwrite="true"
todir="${selenium.output.dir.name}"
/>
<execute dir="${selenium.output.dir.name}">
yo liferay-theme:classic --config config.json
</execute>
<copy
overwrite="true"
todir="${selenium.output.dir.name}/${themeId}/src"
>
<fileset
dir="${test.base.dir.name}/dependencies/${themeId}/src"
/>
</copy>
<execute dir="${selenium.output.dir.name}/${themeId}">
gulp build
</execute>
<copy
file="${selenium.output.dir.name}/${themeId}/dist/${themeId}.war"
todir="${liferay.home}/deploy"
/>
</target>
</project>