-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.xml
45 lines (42 loc) · 1.36 KB
/
package.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
43
44
45
<project>
<macrodef name="do-dist-jar">
<sequential>
<tstamp>
<format property="time.now"
timezone="UTC"
pattern="yyyy-MM-dd HH:mm:ss Z"/>
</tstamp>
<property name="downloadDir" value="build/sitecontent/download"/>
<mkdir dir="${downloadDir}"/>
<jar destfile="${downloadDir}/${ant.project.name}-${version}.jar"
basedir="build/classes"
includes="**">
<manifest>
<attribute name="svn-revision" value="${svn.revision}" />
<attribute name="timestamp" value="${time.now}" />
<attribute name="version" value="${version}" />
</manifest>
</jar>
</sequential>
</macrodef>
<macrodef name="do-src-zip">
<sequential>
<property name="srcname" value="${ant.project.name}-src-${version}"/>
<delete dir="build/${srcname}"/>
<exec executable="svn" dir="build">
<arg value="export"/>
<arg value="-q"/>
<arg value="--ignore-keywords"/>
<arg value="-r"/>
<arg value="head"/>
<arg value=".."/>
<arg value="${srcname}"/>
</exec>
<zip destfile="build/sitecontent/download/${srcname}.zip"
basedir="build"
includes="${srcname}/**"
whenempty="fail"/>
<delete dir="build/${srcname}"/>
</sequential>
</macrodef>
</project>