-
Notifications
You must be signed in to change notification settings - Fork 2
/
assets.xml
31 lines (27 loc) · 950 Bytes
/
assets.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
<?xml version="1.0" encoding="UTF-8"?>
<project name="assets">
<property name="assets.dir" value="assets"/>
<property name="assets.list.name" value="assets.lst"/>
<property name="assets.hash.type" value="md5"/>
<property name="assets.ctl.files"
value="**/*.${assets.hash.type},${assets.list.name}"/>
<fileset id="assets" dir="${assets.dir}" excludes="${assets.ctl.files}"/>
<target name="clean">
<delete>
<fileset dir="assets" includes="${assets.ctl.files}"/>
</delete>
</target>
<target name="list">
<pathconvert
dirsep="/" pathsep="${line.separator}"
refid="assets" property="asset.list">
<map from="${basedir}/${assets.dir}/" to=""/>
</pathconvert>
<echo message="${asset.list}" file="${assets.dir}/${assets.list.name}"/>
</target>
<target name="checksum">
<checksum algorithm="${assets.hash.type}">
<fileset refid="assets"/>
</checksum>
</target>
</project>