File:  [mozdev] / googlebar / build.xml
Revision 1.3: download - view: text, annotated - select for diffs - revision graph
Wed Feb 16 06:42:07 2005 UTC (15 years, 3 months ago) by fernandes
Branches: MAIN
CVS tags: ver_0_9_9_01, ver_0_9_8_01, ver_0_9_7_01, ver_0_9_6_03, ver_0_9_5_06, HEAD
Refactored the new stylesheet for the web page into a single external css file.  Also updated the format of some missed html pages.  Updated the logo and added the disclaimer to the main googlebar options page.  Last but not least, finally created an experimental installer for Firefox and added the ability to create that installer from the ant build file.

    1: <project name="Googlebar" default="install" basedir=".">
    2: 	<description>Googlebar Ant Build File</description>
    3: 
    4: 	<!-- set global properties for this build -->
    5: 	<property name="moz_exe"  value="firefox.exe"/>
    6: 	<property name="moz_dir"  location="/program files/mozilla firefox"/>
    7: 	<property name="moz_gb"   location="${moz_dir}/chrome/googlebar"/>
    8: 	<property name="moz_tmp"   location="/temp/"/>
    9: 	
   10: 	<property name="gb_dl"    location="downloads"/>
   11: 	<property name="gb_inst"  location="install"/>
   12: 	<property name="gb_src"   location="googlebar"/>
   13: 	
   14: 	<property name="firefox_jar" location="${moz_tmp}/googlebar.jar"/>
   15: 	<property name="firefox_xpi" location="${gb_dl}/XPI-rimental-ff.xpi"/>
   16: 	<property name="mozilla_xpi" location="${gb_dl}/XPI-rimental.xpi"/>
   17: 
   18: 	<target name="build">
   19: 		<delete file="${firefox_jar}" failonerror="false"/>
   20: 		<zip destfile="${firefox_jar}" basedir="${gb_src}/googlebar" excludes="CVS"/>
   21: 		
   22: 		<delete file="${firefox_xpi}" failonerror="false"/>
   23: 		<zip destfile="${firefox_xpi}">
   24: 		    <zipfileset dir="${gb_inst}/firefox" prefix=""/>
   25: 		    <zipfileset dir="${gb_inst}/common" includes="googlebar.js" prefix="defaults/preferences"/>
   26: 		    <zipfileset dir="${moz_tmp}" includes="googlebar.jar" prefix="chrome"/>
   27: 		</zip>
   28: 		
   29: 		<delete file="${mozilla_xpi}" failonerror="false"/>
   30: 		<zip destfile="${mozilla_xpi}">
   31: 		    <zipfileset dir="${gb_inst}/mozilla" prefix=""/>
   32: 		    <zipfileset dir="${gb_inst}/common" includes="googlebar.js" prefix=""/>
   33: 		    <zipfileset dir="${gb_src}" excludes="CVS" prefix=""/>
   34: 		</zip>
   35: 	</target>
   36: 	
   37: 	<target name="deploy">
   38: 		<delete includeEmptyDirs="true" failonerror="false">
   39: 			<fileset dir="${moz_gb}"/>
   40: 		</delete>
   41: 		<mkdir dir="${moz_gb}"/>
   42: 		<copy todir="${moz_gb}" overwrite="true">
   43: 			<fileset dir="${gb_src}/googlebar" excludes="**/googlebarIsNew"/>
   44: 		</copy>
   45: 	</target>
   46: 	
   47: 	<target name="install">
   48: 		<antcall target="deploy"/>
   49: 		<antcall target="run"/>
   50: 	</target>
   51: 	
   52: 	<target name="run">
   53: 		<exec dir="${moz_dir}" executable="${moz_dir}/${moz_exe}" spawn="true"/>
   54: 	</target>
   55: </project>

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