-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.xml
66 lines (54 loc) · 1.8 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
61
62
63
64
65
66
<project name="contentcart" default="dist" basedir=".">
<property name="VERSION" value="2.0.0"/>
<tstamp>
<format property="DATE" pattern="%d.%m.%Y" />
</tstamp>
<property name="build" value="_build" />
<property name="dist" value="_dist" />
<property name="filename" value="pkg_jlcontentcart_v${VERSION}_j4.zip" />
<target name="init" depends="clean">
<mkdir dir="${build}" />
<mkdir dir="${dist}" />
</target>
<target name="replacemodule">
<copy todir="${build}/mod_contentcart">
<fileset dir="mod_contentcart" />
<filterchain>
<replacetokens>
<token key="version" value="${VERSION}" />
<token key="date" value="${DATE}" />
</replacetokens>
</filterchain>
</copy>
<copy todir="${build}/plg_contentcart">
<fileset dir="plg_contentcart" />
<filterchain>
<replacetokens>
<token key="version" value="${VERSION}" />
<token key="date" value="${DATE}" />
</replacetokens>
</filterchain>
</copy>
</target>
<target name="pack-plugins">
<copy file="pkg_contentcart.xml" todir="${build}">
<filterchain>
<replacetokens>
<token key="version" value="${VERSION}" />
<token key="date" value="${DATE}" />
</replacetokens>
</filterchain>
</copy>
</target>
<target name="dist" depends="init, replacemodule, pack-plugins">
<zip destfile="${dist}/${filename}">
<fileset dir="${build}/" >
<include name="**/**" />
</fileset>
</zip>
</target>
<target name="clean" description="clean up">
<delete dir="${build}" />
<delete dir="${dist}" />
</target>
</project>