Re: OS Independent file strings in resourcecollections

2009-09-17 Thread Stefan Bodewig
On 2009-09-17, Raja Nagendra Kumar nagendra.r...@tejasoft.com wrote: Hi, I am using ResourceCollections such as Union etc. However when ever I iterate, I am seeing the file names be as per the OS conventions. e.g if the file on windows matches to the collections and it is located in f

Re: OS Independent file strings in resourcecollections

2009-09-17 Thread Raja Nagendra Kumar
Hi Stefan as suggested I have filed the issue and the same is found at https://issues.apache.org/bugzilla/show_bug.cgi?id=47858 Regards, Nagendra -- View this message in context: http://www.nabble.com/OS-Independent-file-strings-in-resourcecollections-tp25486284p25489409.html Sent from

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: copy + ResourceCollections

2005-05-24 Thread Stefan Bodewig
On Mon, 23 May 2005, Matt Benson [EMAIL PROTECTED] wrote: So by that token, you would similarly add a Deletable (?) interface for FileResource to implement. So then move could fail when encountering a Resource that does not implement Deletable... Let's turn this around. Do we really want

Re: copy + ResourceCollections

2005-05-24 Thread Stefan Bodewig
On Mon, 23 May 2005, Matt Benson [EMAIL PROTECTED] wrote: My proposal regarding copy is that any FileResource with a base directory is processed according to BC, +1 but any other Resource is copied with implicit flattening (and an appropriate warning message) unless a nested mapper element

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

ResourceCollections WAS Re: AW: cvs commit: ant/src/testcases/org/apache/tools/ant/types/opti onal/depend ClassFileSetTest.java

2005-05-24 Thread Matt Benson
--- [EMAIL PROTECTED] wrote: src/resources/org/apache/tools/ant/types/resources/selectors Do you mean, we have to rewrite our file-selectors? Any fileselector continues to work with fileset/dirset as well as files. Most fileselectors should still be relevant as resourceselectors, and in

AW: ResourceCollections WAS Re: AW: cvs commit: ant/src/testcases /org/apache/tools/ant/types/opti onal/depend ClassFileSetTest.java

2005-05-24 Thread Jan . Materne
: Matt Benson [mailto:[EMAIL PROTECTED] Gesendet am: Dienstag, 24. Mai 2005 17:43 An: Ant Developers List Betreff: ResourceCollections WAS Re: AW: cvs commit: ant/src/testcases/org/apache/tools/ant/types/opti onal/depend ClassFileSetTest.java --- [EMAIL PROTECTED] wrote:h src

Re: AW: ResourceCollections WAS Re: AW: cvs commit: ant/src/testcases /org/apache/tools/ant/types/opti onal/depend ClassFileSetTest.java

2005-05-24 Thread Matt Benson
--- [EMAIL PROTECTED] wrote: I think about that by myself :) You said that a Resource could could give Input/OutputStream. So it would be possible just to add another Cache implementiation based on that. I thought of implementing the ResourceSelector interface additionally ... You

ResourceCollections

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

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 -

copy + ResourceCollections

2005-05-23 Thread Matt Benson
Now that ResourceCollections have been added to CVS, I (and anyone who wants to help) need to add support for ResourceCollections anywhere that it makes sense to do so. As I have mentioned in some bugreps tasks that operate on paths and should only get real-filesystem-files should work by adding

Re: copy + ResourceCollections

2005-05-23 Thread Alexey N. Solofnenko
Can it be - copy+delete in that case? - Alexey. Matt Benson wrote: ... Regarding the Move task, I don't see that we could move non-file resources in a predictable way so I would recommend failing on ResourceCollections that do not return true from isFilesystemOnly(). Thoughts? -Matt

Re: copy + ResourceCollections

2005-05-23 Thread Matt Benson
to support Resource deletion. -Matt - Alexey. Matt Benson wrote: ... Regarding the Move task, I don't see that we could move non-file resources in a predictable way so I would recommend failing on ResourceCollections that do not return true from isFilesystemOnly(). Thoughts

Re: copy + ResourceCollections

2005-05-23 Thread Alexey Solofnenko
in a predictable way so I would recommend failing on ResourceCollections that do not return true from isFilesystemOnly(). Thoughts? -Matt -- Alexey N. Solofnenko trelony at gmail.com http://gmail.com home: http://trelony.cjb.net/ Pleasant Hill, CA (GMT-8 hours usually)

Re: copy + ResourceCollections

2005-05-23 Thread Matt Benson
Resource deletion. -Matt - Alexey. Matt Benson wrote: ... Regarding the Move task, I don't see that we could move non-file resources in a predictable way so I would recommend failing on ResourceCollections that do not return true from isFilesystemOnly

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
you are imagining the ResourceCollections to look, while I know what they look like. :) I'll use your example below to ask what will be (im)possible I don't see that the ResourceCollections themselves need a namespace. The question is not whether the resourcecollection themselve need

Re: ResourceCollections

2005-04-16 Thread Matt Benson
pattern=/MM/dd xmlns=ant:resourceselectors/ /restrict /project Equivalent to above. C1 (difference now allos restric allowed / mandated to be in rs namespace, maybe a better name would in that case be resourcecollections) I see where this is going. First, I don't

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
you are imagining the ResourceCollections to look, while I know what they look like. :) I don't see that the ResourceCollections themselves need a namespace. I have modified FileSet and similar existing types to implement ResourceCollection. Really the whole problem goes back to and/or/not, etc

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
children so I implemented the new interface in FileSet and DirSet directly. So ZipFileSet and ClassFileSet are not ResourceCollections right now? There certainly may be AFS children that are no good candidates for ResourceCollections so your choice seems logical, still people may expect to have

Re: ResourceCollections

2005-03-31 Thread Matt Benson
we had little control over what happens to AFS children so I implemented the new interface in FileSet and DirSet directly. So ZipFileSet and ClassFileSet are not ResourceCollections right now? Most *FileSet types actually extend FileSet. I forgot to include ZipFileSet in the list

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

ResourceCollections

2005-03-30 Thread Matt Benson
(); // to allow quick distinction for file-centric tasks: boolean isFilesystemOnly(); } Some of the ResourceCollections I have implemented: files (dir-less fileset) union, difference, intersect (set operations) sort (sort Resources before returning) restrict (with selectors) I have also modified