Build XML Issue

I wanted to generate a seperate documentation for my testcases and can't find the prob about it.

maybe u can see what's wrong in here



<?xml version="1.0"?>

<project name="Builder" default="compile" basedir=".">

<description>Ant build file</description>



<property name="dir.src" value="src"/>

<property name="dir.build" value="build"/>

<property name="dir.dist" value="dist"/>

<property name="dir.doc" value="doc"/>

<property name="dir.testdoc" value="testdoc"/>



<!-- Project classpath -->

<path id="classpath">

<fileset dir="lib">

<include name=".jar" />

</fileset>

<pathelement path="${class}" />

</path>



<!-- version 0 of clean -->

<target name="clean" description="Remove all generated files.">

<delete dir="${dir.build}" />

<delete dir="${dir.dist}" />

<delete dir="${dir.doc}" />

<delete dir="${dir.testdoc}" />

</target>



<!-- build main folders -->

<target name="prepare" depends="clean">

<mkdir dir="${dir.build}"/>

<mkdir dir="${dir.dist}"/>

<mkdir dir="${dir.doc}"/>

<mkdir dir="${dir.testdoc}"/>

</target>



<!-- most important compile measure -->

<target name="compile" depends="prepare" description="Compile all source code.">

<javac srcdir="src" destdir="build" classpathref="classpath"/>

</target>



<!-- basic ant jar task -->

<target name="jar" depends="compile" description="Make a jar.">

<jar jarfile="${dir.dist}/aigama.jar">

<fileset dir="${dir.build}"

includes="**/
.class"

excludes="/Test*.class"/>

<fileset dir="${dir.src}"

includes="
/.properties"/>

</jar>

</target>



<!-- Generats javadoc -->

<target name="doc" depends="compile" description="generate the javadoc documentation">

<javadoc destdir="doc" useExternalFile="yes" classpathref="classpath" author="true" version="true" use="true" package="yes" windowtitle="API" maxmemory="256m">

<fileset dir="${dir.src}">

<include name="**/
.java" />

<exclude name="/Test*.java"/>

</fileset>

</javadoc>

</target>



<target name="testdoc" depends="compile" description="generate the javadoc documentation">

<javadoc destdir="testdoc" useExternalFile="yes" classpathref="classpath" author="true" version="true" use="true" package="yes" windowtitle="Tester API" maxmemory="256m">

<fileset dir="${dir.src}">

<include name="
/Test*.java"/>

<exclude name="/*.java" />

</fileset>

</javadoc>

</target>



<!-- JUnit Test classpath -->

<path id="test.classpath">

  <pathelement location="build" /> 

  <fileset dir="lib">

    <include name="
/.jar"/>

  </fileset>

</path>



<!-- JUnit Tests -->

<target name="junit" depends="compile">

  <junit printsummary="on"

fork="false"

haltonfailure="true"

failureproperty="tests.failed"

showoutput="true">

<classpath refid="test.classpath"/>

<formatter type="brief" usefile="false"/>



<batchtest>

<fileset dir="${dir.src}">

<include name="**/Test
.java"/>

</fileset>

</batchtest>

  </junit>



  <fail if="tests.failed">

*********************************************

*********************************************

One or more tests failed. Check the output…

*********************************************

*********************************************

  </fail>

</target>



</project>





if i try to call testdoc it throws

build.xml:62: No source files and no packages have been specified.



but there are Testfiles which are excluded by the doc command very well.

line 62 is marked red as u can see



as it is not an jme related issue i put it in here.

thx for answers