Ant Problem: Could Not Load Definitions From Resource tasks.properties. It Could Not Be Found.

problem is : Could not load definitions from resource tasks.properties. It could not be found. error code in build.xml
 
1
2
3
4
5
6
7
<path id="xx.classpath">
<fileset dir="lib">
<include name="a.jar" />
<include name="b.jar" />
</fileset>
</path>
<taskdef classpathref="xx.classpath" resource="tasks.properties" />
 
1
2
 

correct code in build.xml:

1
2
3
4
5
6
7
<path id="xx.classpath">
<fileset dir="lib">
<include name="${basedir}/lib/a.jar" />
<include name="${basedir}/lib/b.jar" />
</fileset>
</path>
<taskdef classpathref="xx.classpath" resource="tasks.properties" />