Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: de15f9afa7
Fetching contributors…

Cannot retrieve contributors at this time

63 lines (48 sloc) 2.197 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 ant.properties assumes you have fbug and getfirebug.com directories at the same level -->
<project name="selectbug" basedir="." default="build">
<!-- Directories -->
<property name="build.dir" value="build"/>
<!-- Properties -->
<property file="ant.properties"/>
<!-- Clean -->
<target name="clean">
<delete dir="${build.dir}"/>
</target>
<!-- 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"/>
</fileset>
</copy>
<!-- 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 ant.properties file -->
<replace file="${build.dir}/install.rdf" propertyFile="ant.properties">
<replacefilter token="@VERSION@" property="VERSION"/>
<replacefilter token="@RELEASE@" property="RELEASE"/>
</replace>
<!-- 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="ant.properties">
<replacefilter token="@VERSION@" property="VERSION"/>
<replacefilter token="@RELEASE@" property="RELEASE"/>
</replace>
<delete dir="${build.dir}"/>
<!-- Final version message -->
<echo message="SelectBug version: ${VERSION}${RELEASE} in ${GETFIREBUG}"/>
</target>
</project>
Jump to Line
Something went wrong with that request. Please try again.