forked from alexonbalangue/joomla-component-mapx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
executable file
·41 lines (32 loc) · 1.18 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="com_xmap" basedir="." default="build">
<target name="build">
<if>
<not>
<isset property="path" />
</not>
<then>
<input message="Please enter a Path:" propertyName="path" />
</then>
</if>
<property name="tmp" value="${project.basedir}/_tmp" />
<exec command="git rev-list --count HEAD" dir="." outputProperty="revision" />
<property name="zip" value="${path}${phing.project.name}.rev.${revision}.zip" />
<delete dir="${tmp}" quiet="true" />
<delete file="${zip}" quiet="true" />
<copy todir="${tmp}">
<fileset dir=".">
<include name="**" />
<exclude name="build.xml" />
<exclude name=".**" />
</fileset>
<filterchain>
<replacetokens>
<token key="REVISION" value="rev ${revision}" />
</replacetokens>
</filterchain>
</copy>
<zip basedir="${tmp}" destfile="${zip}" />
<delete dir="${tmp}" quiet="true" />
</target>
</project>