
<!--
IVY Settings for single team usage on a single project
 - One "project" repository for publication of project's artefacts
 - One "external" repository for third-party dependancies
-->
<ivysettings>
	
	<!-- Common configuration elements -->
	<property name="my.ivy.pattern" value="[organisation]/[module]/[revision]/[type]s/[artifact](-[classifier]).[ext]" override="false"/>
	<property name="my.artifact.pattern" value="[organisation]/[module]/[revision]/[type]s/[artifact](-[classifier]).[ext]" override="false"/>

	<!-- Default value for IvyDE (@see %HOME%\antrc_pre.bat) -->
	<property name="ivy.data.dir" value="D:/_/java/ApacheIvy" override="false"/>
	
	<!-- Resolvers configuration -->
	<property name="my.ivy.project.root" value="${ivy.data.dir}/myIvy/02-dev/_repository/_project" override="false"/>
	<property name="my.ivy.external.root" value="http://localhost:8150/myivyexternalrepo" override="false"/>

	<!-- Cache configuration -->
	<property name="my.ivy.cache.dir" value="${ivy.data.dir}/myIvy/02-dev/_cache" override="false"/>
	<caches default="my.ivy.cache.dev"
		resolutionCacheDir="${my.ivy.cache.dir}/resolution-cache"
		repositoryCacheDir="${my.ivy.cache.dir}/repository-cache"
	>
		<cache name="my.ivy.cache.dev"/>
	</caches>
	
	<!-- Resolvers in use and order of invocation -->
	<settings defaultCacheDir="${ivy.data.dir}/myIvy/02-dev/_cache/default" defaultResolver="default"/>
	
	<resolvers>
		<filesystem name="project" >
			<ivy pattern="${my.ivy.project.root}/${my.ivy.pattern}" />
			<artifact pattern="${my.ivy.project.root}/${my.artifact.pattern}" />
		</filesystem>
		<url name="external">
			<ivy pattern="${my.ivy.external.root}/${my.ivy.pattern}" />
			<artifact pattern="${my.ivy.external.root}/${my.artifact.pattern}" />
		</url>
		<chain name="default" returnFirst="true" checkmodified="true">
			<resolver ref="project"/>
			<resolver ref="external"/>
		</chain>
	</resolvers>
	
</ivysettings>
