-----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]

Reply via email to