-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.xml
34 lines (28 loc) · 1.07 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
<project name="jsonutil" default="make-dist-zip" basedir=".">
<description>jsonutil build file</description>
<property name="dist.dir" location="dist" />
<property name="version" value="1.5" />
<target name="clean" description="clean up">
<!-- Delete the ${dist.dir} directory trees -->
<delete dir="${dist.dir}" />
</target>
<target name="set-up-dist" depends="clean" description="sets up dist directory">
<mkdir dir="${dist.dir}" />
</target>
<target name="make-dist" depends="set-up-dist" description="copy the files for distribution">
<copy todir="${dist.dir}">
<fileset dir="${basedir}" includes="*.txt,*.cfc,*.cfm" excludes="tests/**"/>
<filterchain>
<replacetokens>
<token key="VERSION" value="${version}"/>
</replacetokens>
</filterchain>
</copy>
</target>
<target name="make-dist-zip" depends="make-dist" description="zip up the distribution">
<mkdir dir="${dist.dir}/zip" />
<zip destfile="${dist.dir}/zip/jsonutil_v${version}.zip">
<zipfileset dir="${dist.dir}" includes="**" excludes="zip/**" />
</zip>
</target>
</project>