Re: ResourceCollections

2005-05-24 Thread Stefan Bodewig
On Mon, 23 May 2005, Matt Benson [EMAIL PROTECTED] wrote: Whew! Thanks. Now I need to find a few hours to see how it all works ;-) Any chance for a quick start guide? Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: ResourceCollections

2005-05-24 Thread Matt Benson
--- Stefan Bodewig [EMAIL PROTECTED] wrote: Any chance for a quick start guide? Hmmm. I actually don't know what else to say beyond the updates to the manual under Concepts and Types, and the modified tasks: pathconvert, concat, length + resourcecount. Let me know what further information you

Re: ResourceCollections

2005-05-24 Thread Stefan Bodewig
On Tue, 24 May 2005, Matt Benson [EMAIL PROTECTED] wrote: Hmmm. I actually don't know what else to say beyond the updates to the manual under Concepts and Types, and the modified tasks: pathconvert, concat, length + resourcecount. This answer is exactly what I needed. Thanks

Re: ResourceCollections

2005-05-23 Thread Matt Benson
Whew! --- Matt Benson [EMAIL PROTECTED] wrote: Here we go... __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -

RE: ResourceCollections

2005-04-19 Thread Matt Benson
--- Jose Alberto Fernandez [EMAIL PROTECTED] wrote: From: Matt Benson [mailto:[EMAIL PROTECTED] --- Jose Alberto Fernandez [EMAIL PROTECTED] wrote: All this discussion about roles brings me back to the proposal/implementation of Roles that I made a long time ago and that

RE: ResourceCollections

2005-04-19 Thread Jose Alberto Fernandez
From: Matt Benson [mailto:[EMAIL PROTECTED] --- Jose Alberto Fernandez [EMAIL PROTECTED] wrote: From: Matt Benson [mailto:[EMAIL PROTECTED] --- Jose Alberto Fernandez [EMAIL PROTECTED] wrote: All this discussion about roles brings me back to the

RE: ResourceCollections

2005-04-18 Thread Jose Alberto Fernandez
to disambiguate: ant:role=ant.Condition or ant.class=ant.pack.selector.And which are used by Introspection in case of ambiguity. Jose Alberto -Original Message- From: Matt Benson [mailto:[EMAIL PROTECTED] Sent: 15 April 2005 22:22 To: Ant Developers List Subject: RE: ResourceCollections

RE: ResourceCollections

2005-04-18 Thread Matt Benson
--- Jose Alberto Fernandez [EMAIL PROTECTED] wrote: All this discussion about roles brings me back to the proposal/implementation of Roles that I made a long time ago and that was rejected. If it works and solves this problem, it's okay with me. My only concern was the complexity of the

RE: ResourceCollections

2005-04-18 Thread Jose Alberto Fernandez
From: Matt Benson [mailto:[EMAIL PROTECTED] --- Jose Alberto Fernandez [EMAIL PROTECTED] wrote: All this discussion about roles brings me back to the proposal/implementation of Roles that I made a long time ago and that was rejected. If it works and solves this problem, it's

Re: ResourceCollections

2005-04-16 Thread Martijn Kruithof
Matt Benson wrote: --- Martijn Kruithof [EMAIL PROTECTED] wrote: [SNIP] Apart from the variands A and B further below, would the following also work? project name=foo default=bar resourcecollection id=blah xmlns=ant:set and files dir=foo name=**/*.java/ date select=newer

Re: ResourceCollections

2005-04-16 Thread Matt Benson
--- Martijn Kruithof [EMAIL PROTECTED] wrote: I'll use your example below to ask what will be (im)possible The question is not whether the resourcecollection themselve need a namespace, but if it would be allowed to address elements from the same namespace, so that the default namespace

Re: ResourceCollections

2005-04-15 Thread Matt Benson
--- Stefan Bodewig [EMAIL PROTECTED] wrote: On Mon, 11 Apr 2005, Matt Benson [EMAIL PROTECTED] wrote: Please don't. If I'm going to dump this ResourceCollection stuff into HEAD I'd rather have this resolved first, and right now only five committers have shown any interest in this

Re: ResourceCollections

2005-04-15 Thread Martijn Kruithof
Matt Benson wrote: --- Stefan Bodewig [EMAIL PROTECTED] wrote: On Mon, 11 Apr 2005, Matt Benson [EMAIL PROTECTED] wrote: Please don't. If I'm going to dump this ResourceCollection stuff into HEAD I'd rather have this resolved first, and right now only five committers have shown any

Re: ResourceCollections

2005-04-15 Thread Matt Benson
You are using my preferred syntax. Also available would be, e.g.: and xmlns=ant:conditions / and xmlns=ant:fileselectors / and xmlns=ant:resourceselectors / date xmlns=ant:resourceselectors / date xmlns=ant:resourcecomparators / -Matt --- Martijn Kruithof [EMAIL PROTECTED] wrote: Matt Benson

Re: ResourceCollections

2005-04-15 Thread Martijn Kruithof
Well that would be up to the user. Would it mean for us that the code must be in different libraries, or is it enough if the classes are defined in separate property files / marked with special values, while the classes can still be blended in in core ant. Martijn Matt Benson wrote: You are

RE: ResourceCollections

2005-04-15 Thread Dominique Devienne
From: Martijn Kruithof [mailto:[EMAIL PROTECTED] Is this te direction we are going with roles: project name=foo default=bar xmlns:co=ant:condition xmlns:set=ant:resourceselector resourcecollection id=blah set:and set:files dir=foo name=**/*.java/ set:date

Re: ResourceCollections

2005-04-15 Thread Matt Benson
--- Martijn Kruithof [EMAIL PROTECTED] wrote: Well that would be up to the user. Would it mean for us that the code must be in different libraries, or is it enough if the classes are defined in separate property files / marked with special values, while the classes can still be blended

RE: ResourceCollections

2005-04-15 Thread Matt Benson
--- Dominique Devienne [EMAIL PROTECTED] wrote: Martijn, Matt, the example above would be necessary if and only if resourcecollection only had a add(ResourceSelector). In practice, we'll likely have specialized addAnd(ResourceSelector) and co so that if can be written just: oh, that's

Re: ResourceCollections

2005-04-15 Thread Martijn Kruithof
Dominique Devienne wrote: snip with namespaces Martijn, Matt, the example above would be necessary if and only if resourcecollection only had a add(ResourceSelector). In practice, we'll likely have specialized addAnd(ResourceSelector) and co so that if can be written just: snip without

Re: ResourceCollections

2005-04-15 Thread Martijn Kruithof
But wouldn't that defeat the whole purpose of the fill in role-type here I thought the whole point was avoiding having addConcrete in favour of having add(Role). What basically is that what Matt just stated. Apart from the variands A and B further below, would the following also work? project

RE: ResourceCollections

2005-04-15 Thread Dominique Devienne
From: Martijn Kruithof [mailto:[EMAIL PROTECTED] snip with namespaces Martijn, Matt, the example above would be necessary if and only if resourcecollection only had a add(ResourceSelector). In practice, we'll likely have specialized addAnd(ResourceSelector) and co so that if can be written

Re: ResourceCollections

2005-04-15 Thread Matt Benson
--- Martijn Kruithof [EMAIL PROTECTED] wrote: [SNIP] Apart from the variands A and B further below, would the following also work? project name=foo default=bar resourcecollection id=blah xmlns=ant:set and files dir=foo name=**/*.java/ date select=newer

Re: ResourceCollections

2005-04-14 Thread Stefan Bodewig
On Mon, 11 Apr 2005, Matt Benson [EMAIL PROTECTED] wrote: Please don't. If I'm going to dump this ResourceCollection stuff into HEAD I'd rather have this resolved first, and right now only five committers have shown any interest in this aspect! :) For the record, I'd like some explicit way

Re: ResourceCollections

2005-04-11 Thread Stefan Bodewig
On Thu, 07 Apr 2005, Peter Reilly [EMAIL PROTECTED] wrote: We should be able to make all the current conditions, selectors and filters be typedefs. +1 There are only a few name over-laps: and, or, not (selectors and conditions) and we need to solve them - there will be more to come, in

RE: ResourceCollections

2005-04-11 Thread Dominique Devienne
From: Stefan Bodewig [mailto:[EMAIL PROTECTED] On Thu, 07 Apr 2005, Peter Reilly [EMAIL PROTECTED] wrote: We should be able to make all the current conditions, selectors and filters be typedefs. +1 As I wrote on the same thread, I'm starting to think that adding roles* as typedefs in the

RE: ResourceCollections

2005-04-11 Thread Matt Benson
--- Dominique Devienne [EMAIL PROTECTED] wrote: [SNIP] Don't worry, I'll stop rambling on this topic ;-) --DD Please don't. If I'm going to dump this ResourceCollection stuff into HEAD I'd rather have this resolved first, and right now only five committers have shown any interest in this

RE: ResourceCollections

2005-04-08 Thread Matt Benson
This was so well put-together I have little to add, though I will say that after having had time to absorb Peter's proposed alternative container, I am probably not as negative about about it as Dominique. The point that this type of fix would require maintenance however certainly seems valid.

Re: ResourceCollections

2005-04-07 Thread Peter Reilly
I meant to reply earlier... I do not like ant:mappers, etc This does not use the method antlib:package name that antlibs are meant to be identified by. If ant:whatever core wants is used to identify ant's antlibs', then there is ample reason for thirdparty antlibs authors to ask for easy to use

RE: ResourceCollections

2005-04-07 Thread Dominique Devienne
From: Peter Reilly [mailto:[EMAIL PROTECTED] I do not like ant:mappers, etc I don't have much of a problem with it myself now. It's been argued, winning me over, that the ant: prefix is already reserved, and thus it's an acceptable solution solution to this problem, and Matt idea of loading

Re: ResourceCollections

2005-04-06 Thread Matt Benson
--- Stefan Bodewig [EMAIL PROTECTED] wrote: IIRC we've reserved ant as protocol as well as antlib, even though I can't find any reference to that in out manual. Using that we certainly could shorten things: ant:mappers ant:fileselectors ant:resourceselectors ant:conditions I'd like to

Re: ResourceCollections

2005-04-04 Thread Stefan Bodewig
On Fri, 1 Apr 2005, Dominique Devienne [EMAIL PROTECTED] wrote: What's difficult already? It's like a Java import basically. You declare what you're using. What's wrong with that? --DD hmm... using the project attributes: project name=foo default=bar

Re: ResourceCollections

2005-04-04 Thread Matt Benson
--- Stefan Bodewig [EMAIL PROTECTED] wrote: IIRC we've reserved ant as protocol as well as antlib, even though I can't find any reference to that in out manual. Using that we certainly could shorten things: ant:mappers ant:fileselectors ant:resourceselectors ant:conditions I wondered

Re: ResourceCollections

2005-04-04 Thread Matt Benson
--- Stefan Bodewig [EMAIL PROTECTED] wrote: IIRC we've reserved ant as protocol as well as antlib, even though I can't find any reference to that in out manual. [SNIP] ant:current is declared in oata.ProjectHelper , so there's the precedent for the protocol and whatever follows to mean

Re: ResourceCollections

2005-04-02 Thread Jesse Glick
Matt Benson wrote: Could we auto-alias the uris so that the user setup might be like project name=foo default=bar xmlns:fs=ant.fileselectors xmlns:rs=ant.resourceselectors ? -0.5 for anything which makes the XMLNS rules for Ant scripts more complicated (and divergent from the

RE: ResourceCollections

2005-04-02 Thread Phil Weighill-Smith
] http://java.sun.com/xml/jaxp/dist/1.1/docs/tutorial/glossary.html#wellFormed -Original Message- From: Dominique Devienne [mailto:[EMAIL PROTECTED] Sent: Fri 01/04/2005 20:11 To: Ant Developers List Cc: Subject: RE: ResourceCollections From: Peter Reilly [mailto:[EMAIL

Re: ResourceCollections

2005-04-01 Thread Stefan Bodewig
On Thu, 31 Mar 2005, Matt Benson [EMAIL PROTECTED] wrote: We are adding getInputStream to Resource. However, without changing the FileSelector interface (bad), more than bad. its ability to interact with Resources is limited. We could possibly create a new ResourceSelector interface. I

Re: ResourceCollections

2005-04-01 Thread Matt Benson
--- Stefan Bodewig [EMAIL PROTECTED] wrote: On Thu, 31 Mar 2005, Matt Benson [EMAIL PROTECTED] wrote: We are adding getInputStream to Resource. However, without changing the FileSelector interface (bad), more than bad. its ability to interact with Resources is limited. We could

RE: ResourceCollections

2005-04-01 Thread Dominique Devienne
From: Matt Benson [mailto:[EMAIL PROTECTED] 3) I'd rather not hard-code selector types. what other options exist? A built-in Antlib for namespacing the ResourceSelector types? A DynamicElement ResourceSelectorContainer? Yeah, I'm surprised we don't have these built-in AntLibs already for

RE: ResourceCollections

2005-04-01 Thread Matt Benson
I also like the idea of using antlibs, but do we then indicate that the user must explicitly set up the namespace prefixes or do we assign them automagically? If the former, will anybody use them? If the latter, what prefixes to use? -Matt --- Dominique Devienne [EMAIL PROTECTED] wrote:

Re: ResourceCollections

2005-04-01 Thread Peter Reilly
Matt Benson wrote: I also like the idea of using antlibs, but do we then indicate that the user must explicitly set up the namespace prefixes or do we assign them automagically? If the former, will anybody use them? If the latter, what prefixes to use? The user must explicitly set them up.

RE: ResourceCollections

2005-04-01 Thread Dominique Devienne
From: Peter Reilly [mailto:[EMAIL PROTECTED] Matt Benson wrote: I also like the idea of using antlibs, but do we then indicate that the user must explicitly set up the namespace prefixes or do we assign them automagically? If the former, will anybody use them? If the latter, what prefixes

Re: ResourceCollections

2005-04-01 Thread Matt Benson
--- Matt Benson [EMAIL PROTECTED] wrote: --- Peter Reilly [EMAIL PROTECTED] wrote: Matt Benson wrote: I also like the idea of using antlibs, but do we then indicate that the user must explicitly set up the namespace prefixes or do we assign them automagically? The user must

Re: ResourceCollections

2005-04-01 Thread Peter Reilly
Matt Benson wrote: what other things could we do to increase ease-of-setup for antlibs? Not use xml namespaces ;-) Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: ResourceCollections

2005-04-01 Thread Dominique Devienne
From: Peter Reilly [mailto:[EMAIL PROTECTED] what other things could we do to increase ease-of-setup for antlibs? Not use xml namespaces ;-) Jokes apart, is that possible or desirable? Are you having second thoughts about their use Peter? I'm using them extensively, and like them, maybe

RE: ResourceCollections

2005-04-01 Thread Dominique Devienne
What's difficult already? It's like a Java import basically. You declare what you're using. What's wrong with that? --DD hmm... using the project attributes: project name=foo default=bar xmlns:fs=antlib:org.apache.tools.ant.types.selectors

Re: ResourceCollections

2005-03-31 Thread Stefan Bodewig
On Wed, 30 Mar 2005, Matt Benson [EMAIL PROTECTED] wrote: Update: I have been rolling this stuff around and I am nearly ready to have something to show. I really like what you've described. I have also modified fileset, dirset, filelist and path to implement ResourceCollection. Have you

Re: ResourceCollections

2005-03-31 Thread Kev Jackson
1) a name for a ResourceCollection that acts like a Union without removing duplicates. What would it be used for? It is not a set operation that way and I'm not familiar enough (at least the english terms of) with list theory (if there is something like that at all). append? join?

Re: ResourceCollections

2005-03-31 Thread Matt Benson
--- Stefan Bodewig [EMAIL PROTECTED] wrote: On Wed, 30 Mar 2005, Matt Benson [EMAIL PROTECTED] wrote: Update: I have been rolling this stuff around and I am nearly ready to have something to show. I really like what you've described. well, hey! :) I have also modified fileset,

Re: ResourceCollections

2005-03-31 Thread Stefan Bodewig
On Thu, 31 Mar 2005, Matt Benson [EMAIL PROTECTED] wrote: --- Stefan Bodewig [EMAIL PROTECTED] wrote: Have you modified AbstractFileSet or the individual subclasses? Good question; I almost answered it in the original mail. I figured we had little control over what happens to AFS

Re: ResourceCollections

2005-03-31 Thread Matt Benson
--- Stefan Bodewig [EMAIL PROTECTED] wrote: On Thu, 31 Mar 2005, Matt Benson [EMAIL PROTECTED] wrote: --- Stefan Bodewig [EMAIL PROTECTED] wrote: Have you modified AbstractFileSet or the individual subclasses? Good question; I almost answered it in the original mail. I figured

Re: ResourceCollections

2005-03-31 Thread Matt Benson
To stay on the same thread, I have been developing in oata.types . So far I have probably about 15 classes to add to this package. Any opinions on whether we need oata.types.resource ? -Matt __ Do you Yahoo!? Yahoo! Small Business - Try our

Re: ResourceCollections

2005-03-31 Thread Matt Benson
--- Matt Benson [EMAIL PROTECTED] wrote: To stay on the same thread, I have been developing in oata.types . So far I have probably about 15 classes to add to this package. Any opinions on whether we need oata.types.resource ? or more probably, resources so we don't freak out Windows for

Re: ResourceCollections

2005-03-31 Thread Antoine Levy-Lambert
I find this interesting. I wonder whether resources should not provide an InputStream or something like that. Because of selectors. Cheers, Antoine --- Matt Benson [EMAIL PROTECTED] wrote: To stay on the same thread, I have been developing in oata.types . So far I have probably about 15

Re: ResourceCollections

2005-03-31 Thread Matt Benson
--- Antoine Levy-Lambert [EMAIL PROTECTED] wrote: I find this interesting. I wonder whether resources should not provide an InputStream or something like that. Because of selectors. We are adding getInputStream to Resource. However, without changing the FileSelector interface (bad), its