You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by "Wannheden, Knut" <kn...@paranor.ch> on 2002/06/20 10:18:16 UTC
selectors in myrmidon's vfs
I was just browsing through some of the documentation of Myrmidon and came
to think of something when reading about the VFS. Currently it seems like a
<v-fileset> in VFS is pretty much the same thing as a <fileset> in Ant1,
only that instead of <include> and <exclude> nodes it supports a variety of
selectors. To get to the point: I think there should be some way of
grouping selectors inside a <selector-set> datatype which can be referenced
from <v-fileset>s. This would somehow merge the concepts of patternsets and
selectors, or am I getting something wrong here? As a pseudo example:
<selector-set id="java-sources">
<basename pattern="*.java"/>
<is-file/>
</selector-set>
<javac destdir="build/classes">
<src-fileset dir="src">
<selector-set refid="java-sources"/>
</src-fileset>
</javac>
Similar to the <v-fileset> the <selector-set> would form an implicit <and>
selector (my assumption anyways). <selector-set>s could also contain
further nested <selector-set>s in addition to regular selectors.
I suppose <selector-set>s could be used as a complement to other selectors
in a <v-fileset> as in:
<v-fileset dir="foo">
<name pattern=""/>
<selector-set refid="java-sources"/>
</v-fileset>
I think being able to reuse a set of selectors in different places can come
in very handy indeed. But this was just an idea, and as I don't have any
deeper knowledge of myrmidon, this may be complete nonsense.
Cheers,
--
knut
Re: selectors in myrmidon's vfs
Posted by Adam Murdoch <ad...@apache.org>.
On Thu, 20 Jun 2002 18:18, Wannheden, Knut wrote:
> I was just browsing through some of the documentation of Myrmidon and came
> to think of something when reading about the VFS. Currently it seems like
> a <v-fileset> in VFS is pretty much the same thing as a <fileset> in Ant1,
> only that instead of <include> and <exclude> nodes it supports a variety of
> selectors. To get to the point: I think there should be some way of
> grouping selectors inside a <selector-set> datatype which can be referenced
> from <v-fileset>s. This would somehow merge the concepts of patternsets
> and selectors, or am I getting something wrong here?
No, you're absolutely spot on. The plan is to add something like a
<selector-set> datatype, and turn <patternset> (and <include> and <exclude>,
probably) into selectors (or axe them altogether).
--
Adam
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>