forked from Zimbra/zm-ajax
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
45 lines (40 loc) · 1.65 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
42
43
44
45
<project name="zm-ajax" default="jar">
<import file="../zm-zcs/ant-global.xml"/>
<target name='init' >
<!-- build dir initialization -->
<property name='properties.file' value='${build.dir}/build.properties'/>
<mkdir dir='${build.dir}'/>
<if>
<or>
<not>
<available file='${properties.file}'/>
</not>
<isset property='build.prod'/>
</or>
<then>
<propertyfile file="${properties.file}">
<entry key="build.number" type="int" default="1" operation="+" pattern="00000"/>
<entry key="build.date" type="date" value="now" pattern="yyyy-MM-dd HH:mm:ss"/>
<entry key="build.simpleDate" type="date" value="now" pattern="yyMMddHHmmss"/>
<entry key="date.format" value="yyyyMMddHHmmss"/>
</propertyfile>
<property file="${properties.file}"/>
</then>
<else>
<tstamp>
<format property="build.simpleDate" pattern="yyMMddHHmmss" />
</tstamp>
</else>
</if>
</target>
<!-- modify all.java.path, as by default it includes src.java.dir which points to src/java, but we don't have java directory here -->
<path id="all.java.path">
<pathelement location="${src.dir}" />
</path>
<!-- Jar target to produce jar output, depends on compile target of zm-ajax build.xml. -->
<target name="jar" depends="compile" description="Creates the jar file">
<antcall target="zimbra-jar">
<param name="implementation.title" value="Zimbra Ajax"/>
</antcall>
</target>
</project>