Peter, It still takes the first java file, It does not compile the second file at all
-----Original Message----- From: peter reilly [mailto:[EMAIL PROTECTED] Sent: Monday, May 12, 2003 17:25 To: Ant Developers List Subject: Re: FW: Retrieve all the nodes in an XML file using xmlproperty You would probally change the input to include the .java in the filename. and use the "includes" attribute of javac and not the include sub-element. <suite filename='MyApplicationTestSet'> <testcases filename='MyModule.java'> <testcase name='testMyMethod'/> </testcases> <testcases filename='MyModule1.java'> <testcase name='testMyMethod'/> </testcases> </suite> <javac srcdir="${src.dir}" destdir="${cls.dir}" includes="${suite.testcases.filename}"/> > On Monday 12 May 2003 12:12, Dharnidhar Vemuri wrote: > > 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 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]