<project name="test" basedir=".">
  
  <property name="c" value="org.apache.tools.ant.types.PolyTest"/>
  
  <path id="test-c">
    <pathelement location="../../../../build/testcases" />
    <pathelement path="${java.class.path}" />
  </path>

  <target name="init">
    <typedef loaderref="poly"   classpathref="test-c"
             name = "myfileset" classname="${c}$MyFileSet"/>

    <typedef loaderref="poly" classpathref="test-c"
             name = "mypath"  classname="${c}$MyPath"/>

    <typedef loaderref="poly" classpathref="test-c"
             name = "mytask"  classname="${c}$MyTask"/>
  </target>

  <target name="fileset" depends="init">
    <mytask>
      <fileset dir="."/>
    </mytask>
  </target>

  <target name="fileset-ant-type" depends="init">
    <mytask>
      <fileset ant-type="myfileset" dir="."/>
    </mytask>
  </target>

  <target name="path" depends="init">
    <mytask>
      <path path="."/>
    </mytask>
  </target>

  <target name="path-ant-type" depends="init">
    <mytask>
      <path ant-type="mypath" path="."/>
    </mytask>
  </target>

</project>
