ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Karich <peat...@yahoo.de>
Subject Re: minor bug?
Date Mon, 05 Apr 2010 00:49:09 GMT
Why not:
URI uri = url.toURI();
which would fix the problem, I think.

Instead you are doing:

URI uri = new URI(url.getProtocol(), url.getUserInfo(), url.getHost(),
                     url.getPort(), url.getPath(), url.getQuery(), url.getRef());


> Hi!
>
> In org/apache/*ivy*/util/url/AbstractURLHandler.java
> the method normalizeToString will fail in situations where urls have _
>
> E.g. try with http://peat_hal.users.sourceforge.net/m2repository/
> and you will get  Illegal character in hostname at index 11
>
> How can I nevertheless use that repository with the underscore?
> Renaming this awkward username is a bit complicated ...
>
> Regards,
> Peter.

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


Mime
View raw message