~ubuntu-branches/ubuntu/saucy/ivy/saucy-proposed

« back to all changes in this revision

Viewing changes to src/java/org/apache/ivy/plugins/repository/url/URLRepository.java

  • Committer: Package Import Robot
  • Author(s): tony mancill
  • Date: 2013-05-15 17:44:57 UTC
  • mfrom: (3.1.2 experimental)
  • Revision ID: package-import@ubuntu.com-20130515174457-ogntd0vxluwalq11
Tags: 2.3.0-2
* Team upload.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
109
109
        } else if (parent.startsWith("file")) {
110
110
            String path;
111
111
            try {
112
 
                path = new URI(parent).getPath();
 
112
                URI uri = new URI(parent);
 
113
                if (uri.isOpaque()) {
 
114
                    path = uri.getSchemeSpecificPart();
 
115
                } else {
 
116
                    path = uri.getPath();
 
117
                }
113
118
            } catch (URISyntaxException e) {
114
119
                IOException ioe = new IOException("Couldn't list content of '" + parent + "'");
115
120
                ioe.initCause(e);