Mercurial > jhg
comparison src/org/tmatesoft/hg/internal/FileSystemHelper.java @ 713:661e77dc88ba tip
Mac support: respect Mac alternatives of command-line arguments for common unix tools
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Sun, 03 Aug 2014 18:09:00 +0200 |
parents | 4e6179bde4fc |
children |
comparison
equal
deleted
inserted
replaced
712:a864fb309e4b | 713:661e77dc88ba |
---|---|
44 ctx = sessionContext; | 44 ctx = sessionContext; |
45 if (Internals.runningOnWindows()) { | 45 if (Internals.runningOnWindows()) { |
46 linkCmd = Arrays.asList("mklink", "%1", "%2"); | 46 linkCmd = Arrays.asList("mklink", "%1", "%2"); |
47 chmodCmd = Collections.emptyList(); | 47 chmodCmd = Collections.emptyList(); |
48 statCmd = Collections.emptyList(); | 48 statCmd = Collections.emptyList(); |
49 } else if (Internals.runningOnMac()) { | |
50 linkCmd = Arrays.asList("/bin/ln", "-s", "%2", "%1"); | |
51 chmodCmd = Arrays.asList("/bin/chmod", "+x", "%1"); | |
52 statCmd = Arrays.asList("stat", "-f", "%p", "%1"); | |
49 } else { | 53 } else { |
50 linkCmd = Arrays.asList("/bin/ln", "-s", "%2", "%1"); | 54 linkCmd = Arrays.asList("/bin/ln", "-s", "%2", "%1"); |
51 chmodCmd = Arrays.asList("/bin/chmod", "+x", "%1"); | 55 chmodCmd = Arrays.asList("/bin/chmod", "+x", "%1"); |
52 statCmd = Arrays.asList("stat", "--format=%a", "%1"); | 56 statCmd = Arrays.asList("stat", "--format=%a", "%1"); |
53 } | 57 } |