forked from mozilla/nightlytt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
41 lines (31 loc) · 1.21 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"?>
<project name="nightlytt" default="dev">
<!-- Directories -->
<property name="xpi.dir" value="./xpi"/>
<tstamp>
<format property="build.number" pattern="yyyyMMddHHmm"/>
</tstamp>
<target name="release" depends="version"
description="Builds a release version">
<property name="xpi.filename" value="${ant.project.name}-${build.version}.xpi" />
<antcall target="dev" />
</target>
<target name="dev" depends="clean, version"
description="Builds a development version">
<property name="xpi.filename" value="${ant.project.name}-${build.version}-${build.number}.xpi" />
<mkdir dir="${xpi.dir}" />
<zip destfile="${xpi.dir}/${xpi.filename}"
basedir="extension"
excludesfile=".gitignore"/>
</target>
<target name="clean"
description="Clean-up XPI directory">
<delete dir="${xpi.dir}"/>
</target>
<target name="version" unless="build.version"
description="Shows the current version">
<xmlproperty file="extension/install.rdf" collapseAttributes="true"/>
<property name="build.version" value="${RDF.Description.em:version}"/>
<echo>build.version: ${build.version}</echo>
</target>
</project>