-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.xml
59 lines (47 loc) · 1.86 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?xml version="1.0" ?>
<!-- In order to build the extension run: $ant build
The final xpi file should be located in release directory -->
<project name="ccdump" basedir="." default="build">
<!-- Directories -->
<property name="build.dir" value="release"/>
<!-- Properties -->
<property file="app.properties"/>
<!-- Clean -->
<target name="clean">
<delete dir="${build.dir}"/>
</target>
<!-- Build -->
<target name="build" depends="clean">
<!-- Copy content directory -->
<copy todir="${build.dir}/content">
<fileset dir="content">
<include name="**/*.js"/>
<include name="**/*.html"/>
<include name="**/*.png"/>
</fileset>
</copy>
<!-- Copy skin directory -->
<copy todir="${build.dir}/skin">
<fileset dir="skin">
<include name="**/*.css"/>
<include name="**/*.gif"/>
<include name="**/*.png"/>
</fileset>
</copy>
<!-- Copy extension installation files and licence.txt -->
<copy file="bootstrap.js" todir="${build.dir}"/>
<copy file="install.rdf" todir="${build.dir}"/>
<copy file="license.txt" todir="${build.dir}"/>
<copy file="README.md" todir="${build.dir}"/>
<copy file="app.properties" todir="${build.dir}"/>
<!-- Update release version from ant.properties file -->
<replace file="${build.dir}/install.rdf" propertyFile="app.properties">
<replacefilter token="@VERSION@" property="VERSION"/>
</replace>
<!-- Create final xpi file -->
<zip destfile="${build.dir}/ccdump-${VERSION}.xpi"
basedir="${build.dir}" update="true"/>
<!-- Final version message -->
<echo message="CCDump version: ${VERSION}"/>
</target>
</project>