<?xml version="1.0"?>

<project name="available-test" basedir="." default="test1">

  <target name="test1">
    <available/>
  </target>

  <target name="test2">
    <available property="test"/>
  </target>

  <target name="test3">
    <available file="test"/>
  </target>

  <target name="test4">
    <available property="test" 
               file="src/etc/testcases/taskdefs/this_file_does_not_exist"/>
  </target>

  <target name="test5">
    <available property="test" 
               file="available.xml"/>
  </target>

  <target name="test6">
    <available property="test" 
               resource="org/apache/tools/ant/taskdefs/this_resource_does_not_exist"/>
  </target>

  <target name="test7">
    <available property="test" 
               resource="org/apache/tools/ant/taskdefs/defaults.properties"/>
  </target>

  <target name="test8">
    <available property="test" 
               classname="org.apache.tools.ant.taskdefs.this_class_does_not_exist"/>
  </target>

  <target name="test9">
    <available property="test" 
               classname="org.apache.tools.ant.taskdefs.Ant"/>
  </target>

  <target name="test10">
    <available property="test" 
               file="available.xml"
               resource="org/apache/tools/ant/taskdefs/defaults.properties"
               classname="org.apache.tools.ant.taskdefs.Ant"/>
  </target>
  
  <target name="test11">
    <available property="test" 
               file="src/etc/testcases/taskdefs/available.xml"
               resource="org/apache/tools/ant/taskdefs/defaults.properties"
               classname="org.apache.tools.ant.taskdefs.this_class_does_not_exist"/>
  </target>  
  
  <target name="test12">
    <available property="" 
               file="available.xml"/>
  </target>

  <target name="test13">
    <available property="test" 
               file=""/>
  </target>

  <target name="test14">
    <available property="test" 
               resource=""/>
  </target>

  <target name="test15">
    <available property="test" 
               classname="org.apache.tools.ant.taskdefs.this_class_does_not_exist"/>
  </target>

</project>
