You could try the pathtofileset task in ant-contrib: http://ant-contrib.sourceforge.net/tasks/tasks/pathtofileset.html Peter
On 10/25/07, Alain ROY <[EMAIL PROTECTED]> wrote: > > Usage of <for> is not possible in my case because if I do so, I can't get a > single checkstyle report for all my java sources. The report file is > overwritten every time I invoke checkstyle. > > Regards > > On Thu, 25 Oct 2007 10:05:37 +0200 > "Rebhan, Gilbert" <[EMAIL PROTECTED]> wrote: > > > > > > > -----Original Message----- > > From: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] > > Sent: Thursday, October 25, 2007 7:49 AM > > To: Ant Users List > > Subject: RE: Fileset group > > > > /* > > i didn't use the checkstyle task but if it works > > like other tasks, you may use = > > > > <path id="checkstyle_all"> > > <fileset id="fileset.prj1.src1" dir="${prj1.src1}"> > > <include name="**/*.java"/> > > </fileset> > > <fileset id="fileset.prj1.src2" dir="${prj1.src2}"> > > ... > > </path> > > > > and later in <checkstyle> task just use the refid, something like = > > .. > > */ > > > > of course it has to be > > > > <checkstyle ...> > > <path refid="checkstyle_all"/> > > ... > > </checkstyle> > > > > if <checkstyle> task doesn't support path (as for example the copy task) > > then use antcontrib <for> like that = > > > > <for param="fileset" list="fileset.prj1.src1,fileset.prj1.src2, ..."> > > <sequential> > > <checkstyle ...> > > <fileset refid="@{fileset}"/> > > </checkstyle> > > </sequential> > > </for> > > > > > > Regards, Gilbert > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > Alain ROY <[EMAIL PROTECTED]> > > --------------------------------------------------------------------- > 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]