ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dharnidhar Vemuri <dvem...@arsin.com>
Subject FW: Retrieve all the nodes in an XML file using xmlproperty
Date Mon, 12 May 2003 11:12:34 GMT
> 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
> 

Mime
View raw message