File:  [mozdev] / googlebar / build.xml
Revision 1.6: download - view: text, annotated - select for diffs - revision graph
Tue Jun 14 04:58:46 2005 UTC (14 years, 5 months ago) by fernandes
Branches: MAIN
CVS tags: HEAD
Version 0.9.14.01 web site update, mirrors appear to be up to date.

<project name="Googlebar" default="all" basedir=".">
	<description>Googlebar Ant Build File</description>

	<!-- update this value to point to your personal profile -->
	<property name="moz_prof" location="${user.home}/Application Data/Mozilla/Firefox/Profiles/default.b3a"/>
	
	<!-- set global properties for this build -->
	<property name="moz_exe"  value="firefox.exe"/>
	<property name="moz_dir"  location="/program files/mozilla firefox"/>
	<property name="moz_gb"   location="${moz_dir}/chrome/googlebar"/>
	<property name="moz_tmp"  location="/temp/"/>
	
	<property name="gb_ext"   location="${moz_prof}/extensions/{6b6601f1-361e-4b9f-bb6d-f8305000e4f6}"/>
	<property name="gb_dl"    location="downloads"/>
	<property name="gb_inst"  location="install"/>
	<property name="gb_src"   location="googlebar"/>
	
	<property name="firefox_jar" location="${moz_tmp}/googlebar.jar"/>
	<property name="firefox_xpi" location="${gb_dl}/XPI-rimental-ff.xpi"/>
	<property name="mozilla_xpi" location="${gb_dl}/XPI-rimental.xpi"/>

	<target name="build">
		<delete file="${firefox_jar}" failonerror="false"/>
		<zip destfile="${firefox_jar}" basedir="${gb_src}" excludes="CVS"/>
		
		<delete file="${firefox_xpi}" failonerror="false"/>
		<zip destfile="${firefox_xpi}">
		    <zipfileset dir="${gb_inst}/firefox" prefix=""/>
		    <zipfileset dir="${gb_inst}/common" includes="googlebar.js" prefix="defaults/preferences"/>
		    <zipfileset dir="${moz_tmp}" includes="googlebar.jar" prefix="chrome"/>
		</zip>
		
		<delete file="${mozilla_xpi}" failonerror="false"/>
		<zip destfile="${mozilla_xpi}">
		    <zipfileset dir="${gb_inst}/mozilla" prefix=""/>
		    <zipfileset dir="${gb_inst}/common" includes="googlebar.js" prefix=""/>
		    <zipfileset dir="${gb_src}" excludes="CVS" prefix="googlebar"/>
		</zip>
	</target>
		
	<target name="install">
		<antcall target="deploy"/>
		<antcall target="run"/>
	</target>
	
	<target name="deploy">
		<!--
		<delete includeEmptyDirs="true" failonerror="false">
			<fileset dir="${moz_gb}"/>
		</delete>
		<mkdir dir="${moz_gb}"/>
		<copy todir="${moz_gb}" overwrite="true">
			<fileset dir="${gb_src}" excludes="**/googlebarIsNew"/>
		</copy>
		-->
		<unzip src="${firefox_xpi}" dest="${gb_ext}"/>
	</target>
	
	<target name="run">
		<exec dir="${moz_dir}" executable="${moz_dir}/${moz_exe}" spawn="true"/>
	</target>
	
	<target name="all">
		<antcall target="build"/>
		<antcall target="install"/>
	</target>
</project>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>