| AW: Using <union > | AW: Using <union > 2007-07-31 - By Jan.Materne@(protected)
These are two different kinds of datatypes.
<union> is a new resource collection. <fileset> (ok is also one) is an "old" datatype.
The handling (iterating over) these is completely different. You could compare handling <fileset> and <path> in http://ant.apache.org/manual/tutorial-tasks-filesets-properties.html * http://ant.apache.org/manual/tutorial-tasks-filesets-properties.html#filesets * http://ant.apache.org/manual/tutorial-tasks-filesets-properties.html#path
Jan
>-----Urspr?ngliche Nachricht----- >Von: Miroslav ?ulc [mailto:miroslav.sulc@(protected)] >Gesendet: Montag, 30. Juli 2007 19:33 >An: Ant Users List >Betreff: Re: Using <union> > >thx, at least now I know it's not possible :-) > >-- >Miroslav ?ulc > > >Peter Reilly napsal(a): >> I do not think that this is currently possible. >> >> Peter >> >> >> On 7/30/07, Miroslav ?ulc <miroslav.sulc@(protected)> wrote: >> >>> Hi, >>> >>> I am not very experienced with ant. I have several targets, each for >>> source code checks. These targets are 'pmd', 'cpd' and >'checkstyle'. All >>> the corresponding tasks support <fileset> element. My >project consists >>> of tens of subprojects. What I want to achieve is to define >the set of >>> sources at one place and then just reference it from those ><pmd>, <cpd> >>> and <checkstyle> tasks. What is the correct way? I thought I can use >>> something like this: >>> >>> <union id="all.source.files"> >>> <fileset dir="..." includes="..."/> >>> <fileset dir="..." includes="..."/> >>> <fileset dir="..." includes="..."/> >>> <fileset dir="..." includes="..."/> >>> ... >>> </union> >>> >>> <target name="pmd"> >>> <pmd> >>> <fileset refid="all.source.files"/> >>> </pmd> >>> </target> >>> >>> but that doesn't work. I tried even other things that came >to my mind >>> but none of them worked. I'm not even sure that what I want >to achieve >>> is achievable with current <pmd>, <cpd> and <checkstyle> >tasks or they >>> have to be enhanced to support unions or sets of filesets. >>> >>> Thanks for any suggestions. >>> >>> -- >>> Miroslav ?ulc > >--------------------------------------------------------------------- >To unsubscribe, e-mail: user-unsubscribe@(protected) >For additional commands, e-mail: user-help@(protected) > >
--------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@(protected) For additional commands, e-mail: user-help@(protected)
|
|
 |