forked from liferay/liferay-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
60 lines (51 loc) · 1.35 KB
/
build.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"?>
<!DOCTYPE project>
<project name="themes" basedir="." default="deploy">
<property name="project.dir" value=".." />
<import file="../build-common-plugins.xml" />
<target name="create">
<if>
<or>
<not>
<isset property="theme.name" />
</not>
<not>
<isset property="theme.display.name" />
</not>
</or>
<then>
<echo message="This task must be called by create.bat." />
</then>
<else>
<if>
<not>
<isset property="theme.parent.dir" />
</not>
<then>
<property name="theme.parent.dir" value="${basedir}" />
</then>
</if>
<property name="theme.dir" value="${theme.parent.dir}/${theme.name}-theme" />
<if>
<available file="${theme.dir}" />
<then>
<fail>${theme.name}-theme already exists.</fail>
</then>
</if>
<copy todir="${theme.dir}">
<fileset
dir="${project.dir}/tools/theme_tmpl"
/>
</copy>
<mkdir dir="${theme.dir}/docroot/_diffs" />
<replace dir="${theme.dir}">
<replacefilter token="@theme.name@" value="${theme.name}" />
<replacefilter token="@theme.display.name@" value="${theme.display.name}" />
</replace>
</else>
</if>
</target>
<target name="merge">
<echo message="${theme.name}-theme" />
</target>
</project>