Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
45 lines (35 sloc) 1.43 KB
<?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=""/>
<property name="build.dir" value="./release"/>
<property name="file-name" value="fireaccess-${VERSION}${RELEASE}.xpi"/>
<!-- Clean -->
<target name="clean">
<delete dir="${build.dir}"/>
<!-- 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"/>
<!-- Copy install.rdf with updated release version info -->
<replace file="${build.dir}/install.rdf" propertyFile="">
<replacefilter token="@VERSION@" property="VERSION"/>
<replacefilter token="@RELEASE@" property="RELEASE"/>
<!-- Compress files (ZIP) -->
<zip destfile="${file-name}" basedir="${build.dir}" update="true" />
<echo message="FireAccess version: ${VERSION}${RELEASE} created!"/>