<project name="miniMAKS" basedir="." xmlns:ivy="antlib:org.apache.ivy.ant">
	<property name="ivy.cache.dir" value="${user.home}/.ivy2/cache"/>
	<property name="ivy.settings.file" value="${basedir}/ivysettings.xml"/>
	<property environment="env" />
	<property name="lib.dir" location="lib" />
	<property name="ivy.home" value="${env.IVY_HOME}" />
	<property name="lib.nonapp" location="lib-non-app" />
	<property name="build.dir" location="build" />
	<property name="basedir" location="" />

	<target name="init-ivy" description="Sets up Ivy">
		<echo message="IVY_HOME=${ivy.home}" />

		<path id="ivy.lib.path">
			<fileset dir="${ivy.home}" includes="**/*.jar"/>
		</path>

		<taskdef resource="org/apache/ivy/ant/antlib.xml" uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path"/>

		<ivy:settings file="${ivy.settings.file}">
			<credentials host="api.bitbucket.org" realm="Bitbucket.org HTTP" username="username" passwd="password"/>
			<credentials host="ivytry.free.beeceptor.com" realm="Basic" username="username" passwd="password"/>
		</ivy:settings>
	</target>

	<target name="retrieve" depends="init-ivy" description="Retrieves the dependencies using Ivy">
		<ivy:retrieve pattern="lib-non-app-ivy/[conf]/[artifact]-[revision].[ext]" conf="bb"/>
	</target>

</project>
