This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Problem with directory case from Win to Unix Samba | ||
---|---|---|---|
Product: | platform | Reporter: | sgunfio |
Component: | Filesystems | Assignee: | Jaroslav Tulach <jtulach> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | vv159170 |
Priority: | P3 | ||
Version: | 7.0 | ||
Hardware: | PC | ||
OS: | Windows 7 x64 | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
sgunfio
2011-05-27 10:45:04 UTC
Are you running on a window machine? Your samba server is using some Unix/case sensitive filesystem? If so, then I can imagine the mess... (In reply to comment #1) > Are you running on a window machine? Your samba server is using some Unix/case > sensitive filesystem? If so, then I can imagine the mess... Win7 on an ubuntu box via samba. It's like netbeans is performing an no-case comparison: if is already in the tree don't add / update the information (In reply to comment #2) > Win7 on an ubuntu box via samba. To rephrase: you are running Ubuntu Linux. Inside of VirtualBox you have running Win7 and you are accessing the filesystem of Ubuntu Linux via samba. I can probably create some system property that would define whether files should be case sensitive or not and you could use it to override the defaults. Is there a native API to query the case sensitivity of FS? (In reply to comment #4) > Is there a native API to query the case sensitivity of FS? we do it from Java like: static { boolean caseSenstive; try { File tmpFile = File.createTempFile("CaseSensitiveFile", ".check"); // NOI18N String absPath = tmpFile.getAbsolutePath(); absPath = absPath.toUpperCase(); caseSenstive = !new File(absPath).exists(); tmpFile.delete(); } catch (IOException ex) { caseSenstive = Utilities.isUnix() && !Utilities.isMac(); } TRUE_CASE_SENSITIVE_SYSTEM = caseSenstive; } public static boolean isSystemCaseSensitive() { return TRUE_CASE_SENSITIVE_SYSTEM; } of course you can do the same on any mounted disk without creating temp file, i.e. get existing file from list of existing files and check if Upper/Lower search returns the same java.io.File Finally I managed to do something with this issue: ergonomics#be300d5b00bc. Let me know if it addresses your problem a bit. Integrated into 'main-golden', will be available in build *201205290002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/be300d5b00bc User: Jaroslav Tulach <jtulach@netbeans.org> Log: #198946: Giving users a chance to specify whether their filesystem is 'sensitive' or 'insensitive' using the 'org.netbeans.modules.masterfs.case' property. |