Hi,
-----Original Message-----
From: Alain ROY [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 24, 2007 12:40 PM
To: [email protected]
Subject: Fileset group
/*
I want to use a <checkstyle ...> task which accepts <fileset> nested
elements.
I have up to 20 Java projects I want to process with checkstyle in one
time. I'd like to define a fileset which is the composition of filesets
with *.java source files of several source directories of my 20 projects
(a sort of group of filesets), so I could reference only one fileset in
the checkstyle task.
<fileset id="fileset.prj1.src1" dir="${prj1.src1}">
<include name="**/*.java"/>
</fileset>
<fileset id="fileset.prj1.src2" dir="${prj1.src2}">
<include name="**/*.java"/>
</fileset>
<fileset id="fileset.prj2.src1" dir="${prj2.src1}">
<include name="**/*.java"/>
</fileset>
.....
Is there a way to do that ?
*/
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}">
<include name="**/*.java"/>
</fileset>
<fileset id="fileset.prj2.src1" dir="${prj2.src1}">
<include name="**/*.java"/>
</fileset></path>
and later in <checkstyle> task just use the refid, something like =
<checkstyle ...>
<fileset refid="checkstyle_all"/>
...
</checkstyle>
Regards, Gilbert
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]