File:  [mozdev] / securelogin / src / build.xml
Revision 1.16: download - view: text, annotated - select for diffs - revision graph
Sat Oct 25 11:03:13 2008 UTC (11 years, 3 months ago) by sebastian
Branches: MAIN
CVS tags: HEAD
Added Macedonian locale - Thanks to Ivan Jonoski at babelzilla.org

<?xml version="1.0" ?>

<project name="Secure Login" default="xpi">
	<property name="version.number" value="0.9.3.1" />
	<property name="jar.name" value="securelogin" />
	<property name="xpi.name" value="secure_login-${version.number}-fx" />
	<property name="src.dir" value="." />
	<property name="chrome.dir" value="chrome" />
	<property name="dist.dir" value="../downloads" />

	<condition property="jar.present">
		<and>
			<available file="${chrome.dir}/${jar.name}.jar" type="file" />
		</and>
	</condition>

	<condition property="xpi.present">
		<and>
			<available file="${dist.dir}/${xpi.name}.xpi" type="file" />
		</and>
	</condition>
	
	<target name="jar">
		<zip destfile="${chrome.dir}/${jar.name}.jar" level="9">
			<fileset dir="${chrome.dir}">
				<include name="content/**" />
				<include name="locale/**" />
				<include name="skin/**" />
				<exclude name="**/.*" />
				<exclude name="**/CVS/**" />
			</fileset>
		</zip>
	</target>
	
	<target name="xpi" depends="jar">
		<copy file="${src.dir}/chrome.manifest.jar.txt" tofile="${src.dir}/chrome.manifest" overwrite="true" />
		<mkdir dir="${dist.dir}" />
		<zip destfile="${dist.dir}/${xpi.name}.xpi" level="9">
			<zipfileset file="${chrome.dir}/${jar.name}.jar" prefix="chrome"/>
			<fileset dir="${src.dir}">
				<include name="chrome.manifest" />
				<include name="install.rdf" />
				<include name="defaults/**" />
				<exclude name="**/.*" />
				<exclude name="**/CVS/**" />
			</fileset>
		</zip>
		<copy file="${src.dir}/chrome.manifest.extracted.txt" tofile="${src.dir}/chrome.manifest" overwrite="true" />
	</target>

	<target name="clean.jar" if="jar.present">
		<delete file="${chrome.dir}/${jar.name}.jar" failonerror="false" />
	</target>
	
	<target name="clean.xpi" if="xpi.present">
		<delete file="${dist.dir}/${xpi.name}.xpi" failonerror="false" />
	</target>

</project>

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