Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
63 lines (48 sloc) 2.15 KB
<?xml version="1.0" ?>
<!-- In order to build selectbug extension run: $ant build
The final xpi file should be located in release directory
GETFIREBUG in assumes you have fbug and directories at the same level -->
<project name="selectbug" basedir="." default="build">
<!-- Directories -->
<property name="build.dir" value="build"/>
<!-- Properties -->
<property file=""/>
<!-- Clean -->
<target name="clean">
<delete dir="${build.dir}"/>
<!-- Build -->
<target name="build" depends="clean">
<!-- Copy directory -->
<copy todir="${build.dir}">
<fileset dir=".">
<include name="**/*.js"/>
<include name="**/*.xul"/>
<include name="**/*.properties"/>
<include name="**/*.css"/>
<!-- Copy extension installation files and licence.txt -->
<copy file="chrome.manifest" todir="${build.dir}"/>
<copy file="install.rdf" todir="${build.dir}"/>
<copy file="license.txt" todir="${build.dir}"/>
<!-- Update release version from file -->
<replace file="${build.dir}/install.rdf" propertyFile="">
<replacefilter token="@VERSION@" property="VERSION"/>
<replacefilter token="@RELEASE@" property="RELEASE"/>
<!-- Create final selectbug.xpi file -->
<zip destfile="${GETFIREBUG}/selectbug-${VERSION}${RELEASE}.xpi"
basedir="${build.dir}" update="true" />
<!-- Generate update.rdf file -->
<delete file="${GETFIREBUG}/update.rdf"/>
<copy file="update.rdf" todir="${GETFIREBUG}"/>
<replace file="${GETFIREBUG}/update.rdf" propertyFile="">
<replacefilter token="@VERSION@" property="VERSION"/>
<replacefilter token="@RELEASE@" property="RELEASE"/>
<delete dir="${build.dir}"/>
<!-- Final version message -->
<echo message="SelectBug version: ${VERSION}${RELEASE} in ${GETFIREBUG}"/>