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

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

	<!-- 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="gb_dl"    location="downloads"/>
	<property name="gb_inst"  location="googlebar"/>
	<property name="gb_src"   location="googlebar/googlebar"/>
	
	<property name="xpi_file" location="${gb_dl}/XPI-rimental.xpi"/>

	<target name="build">
		<delete file="${xpi_file}" failonerror="false"/>
		<zip destfile="${xpi_file}" basedir="${gb_inst}"/>
	</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>
	</target>
	
	<target name="install">
		<antcall target="deploy"/>
		<antcall target="run"/>
	</target>
	
	<target name="run">
		<exec dir="${moz_dir}" executable="${moz_dir}/${moz_exe}" spawn="true"/>
	</target>
</project>

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