-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.xml
More file actions
87 lines (63 loc) · 1.82 KB
/
build.xml
File metadata and controls
87 lines (63 loc) · 1.82 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<project name="home"
default="dist"
basedir=".">
<property name="VERSION"
value="4.0.1" />
<tstamp>
<format property="DATE"
pattern="%d.%m.%Y" />
</tstamp>
<property name="build"
value="build" />
<property name="dist"
value="dist" />
<property name="filename"
value="com_home_v${VERSION}.zip" />
<target name="init"
depends="clean">
<mkdir dir="${build}" />
<mkdir dir="${dist}" />
</target>
<target name="replace">
<copy file="home.xml"
todir="${build}">
<filterchain>
<replacetokens>
<token key="version"
value="${VERSION}" />
<token key="date"
value="${DATE}" />
</replacetokens>
</filterchain>
</copy>
</target>
<target name="copy">
<copy todir="${build}/views">
<fileset dir="views">
<include name="**" />
</fileset>
</copy>
<copy file="controller.php"
todir="${build}" />
<copy file="home.php"
todir="${build}" />
<copy file="home.xml"
todir="${build}" />
<copy file="metadata.xml"
todir="${build}" />
<copy file="router.php"
todir="${build}" />
</target>
<target name="dist"
depends="init, replace, copy">
<zip destfile="${dist}/${filename}">
<fileset dir="${build}/">
<include name="**/*" />
</fileset>
</zip>
<delete dir="${build}" />
</target>
<target name="clean">
<delete dir="${build}" />
</target>
</project>