blob: d064548df3e608dfe7509d5c228803823792e37a [file] [log] [blame]
<?xml version="1.0"?>
<!--
Copyright 2002-2004 The Apache Software Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<project default="forrestbar" basedir="../.." name="forrestbar">
<description>Build script for the forrestbar</description>
<!-- Default init values-->
<target name="init">
<property name="build.dir" location="build"/>
<xmlproperty file="properties.xml" keeproot="false" collapseAttributes="true" />
</target>
<!-- =================================================================== -->
<!-- ForrestBar for Mozilla and MozillaFirebird -->
<!-- =================================================================== -->
<target name="forrestbar" depends="init">
<property name="xpi.dir" location="src/forrestbar/xpi"/>
<mkdir dir="${build.dir}" />
<mkdir dir="${build.dir}/work/forrestbar" />
<mkdir dir="${build.dir}/work/forrestbar-jar" />
<copy todir="${build.dir}/work/forrestbar-jar" overwrite="true">
<fileset dir="${xpi.dir}" />
</copy>
<jar jarfile="${build.dir}/work/forrestbar/forrestbar.jar">
<fileset dir="${build.dir}/work/forrestbar-jar" includes="content/**/*" />
</jar>
<copy file="${xpi.dir}/install.js"
todir="${build.dir}/work/forrestbar" overwrite="true">
</copy>
<zip zipfile="${build.dir}/forrestbar.xpi"
basedir="${build.dir}/work/forrestbar" />
</target>
</project>