File:  [mozdev] / googlebar / build.xml
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Tue Nov 30 07:34:46 2004 UTC (15 years, 6 months ago) by fernandes
Branches: MAIN
CVS tags: HEAD
Added ignore of failure to deletion of files/dirs

    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: 	
    9: 	<property name="gb_dl"    location="downloads"/>
   10: 	<property name="gb_inst"  location="googlebar"/>
   11: 	<property name="gb_src"   location="googlebar/googlebar"/>
   12: 	
   13: 	<property name="xpi_file" location="${gb_dl}/XPI-rimental.xpi"/>
   14: 
   15: 	<target name="build">
   16: 		<delete file="${xpi_file}" failonerror="false"/>
   17: 		<zip destfile="${xpi_file}" basedir="${gb_inst}"/>
   18: 	</target>
   19: 	
   20: 	<target name="deploy">
   21: 		<delete includeEmptyDirs="true" failonerror="false">
   22: 			<fileset dir="${moz_gb}"/>
   23: 		</delete>
   24: 		<mkdir dir="${moz_gb}"/>
   25: 		<copy todir="${moz_gb}" overwrite="true">
   26: 			<fileset dir="${gb_src}" excludes="**/googlebarIsNew"/>
   27: 		</copy>
   28: 	</target>
   29: 	
   30: 	<target name="install">
   31: 		<antcall target="deploy"/>
   32: 		<antcall target="run"/>
   33: 	</target>
   34: 	
   35: 	<target name="run">
   36: 		<exec dir="${moz_dir}" executable="${moz_dir}/${moz_exe}" spawn="true"/>
   37: 	</target>
   38: </project>

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