> Hi,
> 
> I have an xml file with the following structure:
> 
> <suite filename='MyApplicationTestSet'>
>     <testcases filename='MyModule'>
>         <testcase name='testMyMethod'/>
>     </testcases>
>     <testcases filename='MyModule1'>
>         <testcase name='testMyMethod'/>
>     </testcases>
> </suite>
> 
> 
> What I am interested is to retrieve all the testcase filenames append
> '.java' at the end and compile these java files by using javac. 
> 
> My ant target looks like this:
> 
> 
> <target name="compile" depends="init">
>   <xmlproperty file="${xmlfile}" collapseAttributes="true"/>
> 
>   <javac srcdir="${src.dir}" destdir="${cls.dir}" >
>        <include name="${suite.testcases.filename}.java"/> 
>   </javac>
> </target>
> 
> When i compile, it compiles only the first file (MyModule.java), but does
> not compile (MyModule1.java). 
> 
> Is there a way by which I can achieve this?
> 
> 
> Thanks in advance,
> Dharnidhar
> 

Reply via email to