Please use the Apache issue tracking system for new NetBeans issues (https://issues.apache.org/jira/projects/NETBEANS0/issues) !!
View | Details | Raw Unified | Return to bug 160390 | Differences between
and this patch

Collapse All | Expand All

(-)openide.filesystems/src/org/openide/filesystems/XMLFileSystem.java (-14 / +1 lines)
 Lines 1044-1063    Link Here 
1044
            
1044
            
1045
            if (url != null) {
1045
            if (url != null) {
1046
                String protocol = url.getProtocol();
1046
                String protocol = url.getProtocol();
1047
                if ("jar".equals(protocol)) {//NOI18N
1047
                if (!NETWORK_PROTOCOLS.contains(protocol)) {
1048
                    URL tmp = FileUtil.getArchiveFile(url);
1049
                    url = (tmp != null) ? tmp : url;
1050
                    protocol = url.getProtocol();
1051
                }
1052
                
1053
                if ("file".equals(protocol)) { //NOI18N
1054
                    try {
1055
                        File f = new File(URI.create(url.toExternalForm()));
1056
                        retval = (f.exists()) ? new Date(f.lastModified()) : null;
1057
                    } catch (IllegalArgumentException x) {
1058
                        Logger.getLogger(XMLFileSystem.class.getName()).log(Level.FINE, "#121777: " + url, x);
1059
                    }
1060
                } else /* #96928 */ if (!NETWORK_PROTOCOLS.contains(protocol)) {
1061
                    retval = timeFromDateHeaderField(url);
1048
                    retval = timeFromDateHeaderField(url);
1062
                }
1049
                }
1063
            }
1050
            }

Return to bug 160390
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo