Re: Cannot connect to a webDAV server

2009-02-10 Thread Ralph Goers
You should be building with Maven 2. I have not tested the ant build to actually see what it does. On Feb 10, 2009, at 7:07 PM, Manish Saroha wrote: Hi, I did an update and saw that the webdav providers have been removed from the vfs-provider.xml and moved to the default provider.xml. I

Re: JXPath over Generic Collection, How?

2009-02-10 Thread Andrew Hughes
Yeah, that makes sense. The part that was confusing me is that if I have... public class Thing { private List children; } I was assuming I would need to prefix all of my expressions "steps" with '/children'. From what you said earlier this is not the case as collections are "auto traversed/l

Re: JXPath over Generic Collection, How?

2009-02-10 Thread Matt Benson
It should be as simple as Thing _containing_ a List rather than _being_ a List. Composition over inheritance, do you see? HTH, Matt --- On Tue, 2/10/09, Andrew Hughes wrote: > From: Andrew Hughes > Subject: Re: JXPath over Generic Collection, How? > To: "Commons Users List" , gudnabr...@ya

[IO]Should I use LockableFileWriter?

2009-02-10 Thread 李锐
Hey guys! I want to create a file using commons-io-LockableFileWriter. I found that java.io.File.deleteOnExit() is used for file-locking. Java API says that: this method should not be used for file-locking, as the resulting protocol cannot be made to work reliably. So, should I use LockableFile

Re: Cannot connect to a webDAV server

2009-02-10 Thread Manish Saroha
Hi, I did an update and saw that the webdav providers have been removed from the vfs-provider.xml and moved to the default provider.xml. I builded a new jar file and am using that but still the same error message. Also, I cant locate the provider.xml in the jar file. do I need to modify the

Re: JXPath over Generic Collection, How?

2009-02-10 Thread Andrew Hughes
Matt, Thank You. Is there any other data structure I can use that would work with JXPath? My requirement is that... a "Thing" can have contain multiple child "Thing(s)" (and the children are allowed to be non-unique). This is equivalent to an XML element as it can contain multiple child elements,

Re: In-place matrix operations?

2009-02-10 Thread Ted Dunning
I think you are dead on. Unfortunately, based on the experience with JAMA and Colt, in-place updates have two known outcomes ... either the API becomes enormous because of the factorial nature of the required operations or it becomes fairly abstract as in the case with Colt. In the abstract case,

Re: JXPath over Generic Collection, How?

2009-02-10 Thread Matt Benson
I admit I hadn't looked at this with a highly critical eye, but this business of Thing extending ArrayList seems quite strange to me. JXPath basically functions by "opening up" collections automatically, so the very fact that Thing is itself a Collection implies that a Thing will be opened up,

Re: In-place matrix operations?

2009-02-10 Thread Dan F
My mistake, you probably can't do multiple in place. However, there are other operations which you can (e.g., scalar multiply), and those also create copies. Dan On Mon, Feb 9, 2009 at 12:05 PM, Dan F wrote: > Folks, > > Thanks for your work on Apache commons. > > It seems to me that Apache com

Fwd: ApacheCon Training info - please forward to your user lists

2009-02-10 Thread sebb
-- Forwarded message -- From: Lars Eilebrecht Date: 10 Feb 2009 01:42 Subject: ApacheCon Training info - please forward to your user lists To: p...@apache.org Dear PMC chair and members, please help us advertise ApacheCon and send the following announcement to your project's u

Re: JXPath over Generic Collection, How?

2009-02-10 Thread Andrew Hughes
Still busted. Example is now simplified. As soon as a generic Collection becomes involved BOOM! The Main Method to exec: public class App { public static void main( String[] args ){ JXPathContext context = JXPathContext.newContext(new ThingRoot()); System.out.println(((Thing)co