<?xml version="1.0" encoding="utf-8"?>
<project name="testantversion" default="testatleast">

	<target name="testatleast">
		<fail>
			<condition>
				<not>
					<antversion atleast="1.7" />
				</not>
			</condition>
      		Should be at least 1.7
    	</fail>
	</target>

	<target name="testexactly">
		<fail>
			<condition>
				<not>
					<antversion exactly="1.7" />
				</not>
			</condition>
			Should be exactly 1.7
  		</fail>
	</target>

	<target name="testatleastfail">
		<property name="version" value="1.8.9" />
		<fail>
			<condition>
				<not>
					<antversion atleast="1.9.0" />
				</not>
			</condition>
  	  	Should be at least 1.9.0
  		</fail>
	</target>

	<target name="testexactlyfail">
		<property name="version" value="1.8.0" />
		<fail>
			<condition>
				<not>
					<antversion exactly="1.9.0" />
				</not>
			</condition>
	  	  Should be exactly 1.9.0
	  	</fail>
	</target>
</project>