-
Notifications
You must be signed in to change notification settings - Fork 7
/
build_svg.xml
41 lines (31 loc) · 1.08 KB
/
build_svg.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
<project default="save">
<property file="build.properties"/>
<tstamp>
<format property="DSTAMP" pattern="yyyy-MM-dd" />
</tstamp>
<property name="dest_dir" value="../(backup)/${DSTAMP}" />
<property name="zip_file" value="${dest_dir}/${project.name}-${DSTAMP}-${TSTAMP}.zip" />
<!-- ============================================================================== -->
<target name="save" >
<echo message="Project name : ${project.name} " />
<echo message="DSTAMP : ${DSTAMP} TSTAMP : ${TSTAMP} " />
<echo message="Create dir : ${dest_dir} " />
<mkdir dir="${dest_dir}"/>
<echo message="Zip file : ${zip_file} " />
<!--
<delete file="${zip_file}" />
-->
<zip destfile="${zip_file}" >
<zipfileset dir="./src" prefix="src" excludes="**/*.class" />
<!--
<zipfileset dir="./doc" prefix="doc" />
-->
<zipfileset dir="." >
<filename name="*.xml"/> <!-- build*.xml, pom.xml -->
</zipfileset>
<zipfileset dir="." >
<filename name="*.properties"/>
</zipfileset>
</zip>
</target>
</project>