-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
44 lines (35 loc) · 1.43 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
<?xml version="1.0" ?>
<!-- Run ant in the extension's directory and look for: fireaccess-0.5.1.xpi -->
<project name="fireaccess" basedir="." default="build">
<!-- Properties -->
<property file="ant.properties"/>
<property name="build.dir" value="./release"/>
<property name="file-name" value="fireaccess-${VERSION}${RELEASE}.xpi"/>
<!-- Clean -->
<target name="clean">
<delete dir="${build.dir}"/>
</target>
<!-- Build -->
<target name="build" depends="clean">
<!-- Copy files -->
<copy todir="${build.dir}">
<fileset dir=".">
<include name="**/*.js"/>
<include name="**/*.xul"/>
<include name="**/*.properties"/>
<include name="**/*.css"/>
<include name="**/*.manifest"/>
<include name="**/*.rdf"/>
<include name="**/*.txt"/>
</fileset>
</copy>
<!-- Copy install.rdf with updated release version info -->
<replace file="${build.dir}/install.rdf" propertyFile="ant.properties">
<replacefilter token="@VERSION@" property="VERSION"/>
<replacefilter token="@RELEASE@" property="RELEASE"/>
</replace>
<!-- Compress files (ZIP) -->
<zip destfile="${file-name}" basedir="${build.dir}" update="true" />
<echo message="FireAccess version: ${VERSION}${RELEASE} created!"/>
</target>
</project>