Antonio Gallardo dijo: > Joerg Heinicke dijo: >> On 29.04.2004 22:12, Ugo Cei wrote: >> >>> I've just committed a new version that: >>> >>> - passes all tests >>> - uses only JDK core classes >>> - has less lines of code than the previous one >>> >>> Hope you all like it. >> >> Very good, but ... first the good news: >> >> The build fails now if a test fails. >> And there is a new target for debugging tests what I find really >> helpful. >> >> Now the bad news: >> >> The mentioned class java.net.URI#normalize() in JDK 1.4 behaves >> different for two cases: >> >> "foo/bar1/bar2/bar3/../../.." results in "foo/" instead of "foo" and >> that's absolutely correct. >> >> "/../" results in "/../" instead of "/" and I don't know ... > > Hi: > > Wonder if there is not already a function for these task in an Apache > commons jar. Would be fine to look for it.
Yep. I found it :-D http://jakarta.apache.org/commons/io/apidocs/org/apache/commons/io/FilenameUtils.html#normalize(java.lang.String) Best Regards, Antonio Gallardo
