-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.xml
42 lines (42 loc) · 1.17 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
<project name="jlsitemap" 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_jlsitemap_v${VERSION}_j4_j5.zip"/>
<target name="init" depends="clean">
<mkdir dir="${build}"/>
<mkdir dir="${dist}"/>
</target>
<target name="replacemodule">
<copy todir="${build}/jlsitemap">
<fileset dir="./">
<exclude name="${dist}"/>
<exclude name="${build}"/>
<exclude name=".idea/**"/>
<exclude name="build.xml"/>
<exclude name="README.md"/>
<exclude name="README.ru-RU.md"/>
</fileset>
<filterchain>
<replacetokens>
<token key="version" value="${VERSION}"/>
<token key="date" value="${DATE}"/>
</replacetokens>
</filterchain>
</copy>
</target>
<target name="dist" depends="init, replacemodule">
<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>