mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[updater] fixes FS case-sensitivity detection
This commit is contained in:
@@ -106,7 +106,8 @@ public class Runner {
|
||||
}
|
||||
|
||||
public static void checkCaseSensitivity(String path) {
|
||||
ourCaseSensitiveFs = new File(path.toUpperCase()).exists() != new File(path.toLowerCase()).exists();
|
||||
boolean orig = new File(path).exists();
|
||||
ourCaseSensitiveFs = orig != new File(path.toUpperCase()).exists() || orig != new File(path.toLowerCase()).exists();
|
||||
}
|
||||
|
||||
private static Map<String, String> buildWarningMap(List<String> warnings) {
|
||||
|
||||
@@ -135,6 +135,8 @@ public class PatchTest extends PatchTestCase {
|
||||
|
||||
@Test
|
||||
public void testValidatingCaseOnlyRenameWithConflict() throws Exception {
|
||||
assertThat(Runner.isCaseSensitiveFs()).isEqualTo(SystemInfo.isFileSystemCaseSensitive);
|
||||
|
||||
Patch patch = createCaseOnlyRenamePatch();
|
||||
FileUtil.writeToFile(new File(myOlderDir, "bin/IDEA.bat"), FileUtil.loadFileBytes(new File(myOlderDir, "bin/idea.bat")));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user