ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: DO NOT REPLY [Bug 37085] - problem refering jars specfied by Class-Path attribute in manifest of a ant task jar file, when this ant task jar file is located in a directory with space
Date Wed, 19 Oct 2005 20:31:12 GMT
--- Antoine Levy-Lambert <antoine@gmx.de> wrote:

> Hi,
> maybe the simplest solution would be to change this
> line :
> 
> < File libraryFile = new File(libraryURL.getFile());
> to
> 
> > File  libraryFile = new
> File(URLDecoder.decode(libraryURL.getFile()));
> 
> Comments ?

It looks reasonable.  Does it fix the problem?

-Matt
> 
> Cheers,
> 
> Antoine
> bugzilla@apache.org wrote:
> 
> >DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR
> BUGĀ·
> >RELATED COMMENTS THROUGH THE WEB INTERFACE
> AVAILABLE AT
>
><http://issues.apache.org/bugzilla/show_bug.cgi?id=37085>.
> >ANY REPLY MADE TO THIS MESSAGE WILL NOT BE
> COLLECTED ANDĀ·
> >INSERTED IN THE BUG DATABASE.
> >
>
>http://issues.apache.org/bugzilla/show_bug.cgi?id=37085
> >
> >
> >
> >
> >
> >------- Additional Comments From antoine@apache.org
>  2005-10-19 21:54 -------
> >I have done a little bit of debugging and used the
> findings of Ritesh Adval.
> >Line 503 of AntClassLoader is the one which might
> be doing the wrong assumptions.
> >It says :                 File libraryFile = new
> File(libraryURL.getFile());
> >This returns a file located in
>
>/C:/Dokumente%20und%20Einstellungen/antoine/ext/AntTaskDepedentLibrary.jar
> >
> >for C:/Dokumente und
>
Einstellungen/antoine/ext/AntTaskDependentLibrary.jar.
> >
> >
> >The wrong assumption is that java.net.URL#getFile()
> returns a string with which
> >one can instantiate a java.io.File.
> >
> >I am wondering whether it is not possible to
> simplify the loop between the lines
> >491 and 506 of AntClassLoader, by not converting 
> >String (representing a path) -> URL
> >then URL -> String (representing a path)
> >but working with java.io.File or String all the
> way.
> >
> >Or is there a reason why we do this all this walk ?
> >
> >Cheers,
> >Antoine
> >
> >  
> >
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> dev-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> dev-help@ant.apache.org
> 
> 



		
__________________________________ 
Start your day with Yahoo! - Make it your home page! 
http://www.yahoo.com/r/hs

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message