<?xml version="1.0"?>
<project name="Build Index of the OBR Local Mirror"
	default="all"
	>
<!-- 
Usage
obr -u file:G:\devtools\oscar-osgi.sourceforge.net\br\bundlerepository.localmirror.txt http://www-adele.imag.fr/~donsez/dev/osgi/obr.txt

Author: Didier Donsez, 2004/03/05
-->
	<property name="local.mirror.dir" value="G:\devtools\oscar-osgi.sourceforge.net\br"/>
	<property name="local.mirror.obr.index.file" value="${local.mirror.dir}/bundlerepository.localmirror.txt"/>
	<property name="obr.url" value="http://oscar-osgi.sf.net/br"/>
	<property name="obr.index.file" value="${local.mirror.dir}/bundlerepository.txt"/>
	
	<target name="all">
		<!-- create a local mirror of the obr.url with JoBo task -->
		<copy file="${obr.index.file}" tofile="${local.mirror.obr.index.file}"
			overwrite="yes"/>
		<replace file="${local.mirror.obr.index.file}" token="${obr.url}/" value="file:${local.mirror.dir}\"
			summary="yes"
		/>
		<echo><![CDATA[
Usage
obr -u file:G:\devtools\oscar-osgi.sourceforge.net\br\bundlerepository.localmirror.txt http://www-adele.imag.fr/~donsez/dev/osgi/obr.txt
		]]></echo>
	</target>
</project>
