forked from Joomline/JlContentFieldsFilter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
76 lines (63 loc) · 2.24 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
67
68
69
70
71
72
73
74
75
76
<project name="jlcontentfieldsfilter" default="dist" basedir=".">
<property name="VERSION" value="1.6.2"/>
<tstamp>
<format property="DATE" pattern="%d.%m.%Y" />
</tstamp>
<property name="build" value="_build" />
<property name="dist" value="_dist" />
<property name="filename" value="pkg_jlcontentfieldsfilter_v${VERSION}_j3.zip" />
<target name="init" depends="clean">
<mkdir dir="${build}" />
<mkdir dir="${dist}" />
</target>
<target name="replacemodule">
<copy todir="${build}/mod_jlcontentfieldsfilter">
<fileset dir="mod_jlcontentfieldsfilter" />
<filterchain>
<replacetokens>
<token key="version" value="${VERSION}" />
<token key="date" value="${DATE}" />
</replacetokens>
</filterchain>
</copy>
<copy todir="${build}/file_jlcomponent_ajax">
<fileset dir="file_jlcomponent_ajax" />
<filterchain>
<replacetokens>
<token key="version" value="${VERSION}" />
<token key="date" value="${DATE}" />
</replacetokens>
</filterchain>
</copy>
<copy todir="${build}/plg_system_jlcontentfieldsfilter">
<fileset dir="plg_system_jlcontentfieldsfilter" />
<filterchain>
<replacetokens>
<token key="version" value="${VERSION}" />
<token key="date" value="${DATE}" />
</replacetokens>
</filterchain>
</copy>
</target>
<target name="pack-plugins">
<copy file="pkg_jlcontentfieldsfilter.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>