ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alain ROY ...@sylob.com>
Subject Re: Fileset group
Date Thu, 25 Oct 2007 10:15:24 GMT

Hi,

Thanks for your answer.

Problem : <checkstyle> type doesn't support the nested "path" element.

Regards

On Thu, 25 Oct 2007 10:05:37 +0200
"Rebhan, Gilbert" <Gilbert.Rebhan@huk-coburg.de> wrote:

>  
> 
> -----Original Message-----
> From: Rebhan, Gilbert [mailto:Gilbert.Rebhan@huk-coburg.de] 
> 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: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 


-- 
Alain ROY <ar@sylob.com>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message