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, 11 months ago) by fernandes
Branches: MAIN
CVS tags: HEAD
Version 0.9.14.01 web site update, mirrors appear to be up to date.

    1: <project name="Googlebar" default="all" basedir=".">
    2: 	<description>Googlebar Ant Build File</description>
    3: 
    4: 	<!-- update this value to point to your personal profile -->
    5: 	<property name="moz_prof" location="${user.home}/Application Data/Mozilla/Firefox/Profiles/default.b3a"/>
    6: 	
    7: 	<!-- set global properties for this build -->
    8: 	<property name="moz_exe"  value="firefox.exe"/>
    9: 	<property name="moz_dir"  location="/program files/mozilla firefox"/>
   10: 	<property name="moz_gb"   location="${moz_dir}/chrome/googlebar"/>
   11: 	<property name="moz_tmp"  location="/temp/"/>
   12: 	
   13: 	<property name="gb_ext"   location="${moz_prof}/extensions/{6b6601f1-361e-4b9f-bb6d-f8305000e4f6}"/>
   14: 	<property name="gb_dl"    location="downloads"/>
   15: 	<property name="gb_inst"  location="install"/>
   16: 	<property name="gb_src"   location="googlebar"/>
   17: 	
   18: 	<property name="firefox_jar" location="${moz_tmp}/googlebar.jar"/>
   19: 	<property name="firefox_xpi" location="${gb_dl}/XPI-rimental-ff.xpi"/>
   20: 	<property name="mozilla_xpi" location="${gb_dl}/XPI-rimental.xpi"/>
   21: 
   22: 	<target name="build">
   23: 		<delete file="${firefox_jar}" failonerror="false"/>
   24: 		<zip destfile="${firefox_jar}" basedir="${gb_src}" excludes="CVS"/>
   25: 		
   26: 		<delete file="${firefox_xpi}" failonerror="false"/>
   27: 		<zip destfile="${firefox_xpi}">
   28: 		    <zipfileset dir="${gb_inst}/firefox" prefix=""/>
   29: 		    <zipfileset dir="${gb_inst}/common" includes="googlebar.js" prefix="defaults/preferences"/>
   30: 		    <zipfileset dir="${moz_tmp}" includes="googlebar.jar" prefix="chrome"/>
   31: 		</zip>
   32: 		
   33: 		<delete file="${mozilla_xpi}" failonerror="false"/>
   34: 		<zip destfile="${mozilla_xpi}">
   35: 		    <zipfileset dir="${gb_inst}/mozilla" prefix=""/>
   36: 		    <zipfileset dir="${gb_inst}/common" includes="googlebar.js" prefix=""/>
   37: 		    <zipfileset dir="${gb_src}" excludes="CVS" prefix="googlebar"/>
   38: 		</zip>
   39: 	</target>
   40: 		
   41: 	<target name="install">
   42: 		<antcall target="deploy"/>
   43: 		<antcall target="run"/>
   44: 	</target>
   45: 	
   46: 	<target name="deploy">
   47: 		<!--
   48: 		<delete includeEmptyDirs="true" failonerror="false">
   49: 			<fileset dir="${moz_gb}"/>
   50: 		</delete>
   51: 		<mkdir dir="${moz_gb}"/>
   52: 		<copy todir="${moz_gb}" overwrite="true">
   53: 			<fileset dir="${gb_src}" excludes="**/googlebarIsNew"/>
   54: 		</copy>
   55: 		-->
   56: 		<unzip src="${firefox_xpi}" dest="${gb_ext}"/>
   57: 	</target>
   58: 	
   59: 	<target name="run">
   60: 		<exec dir="${moz_dir}" executable="${moz_dir}/${moz_exe}" spawn="true"/>
   61: 	</target>
   62: 	
   63: 	<target name="all">
   64: 		<antcall target="build"/>
   65: 		<antcall target="install"/>
   66: 	</target>
   67: </project>

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