57 |
57 |
58 public static void main(String[] args) throws Exception { |
58 public static void main(String[] args) throws Exception { |
59 // If we are on MacOSX, test if JMap tool is signed, otherwise return |
59 // If we are on MacOSX, test if JMap tool is signed, otherwise return |
60 // since test will fail with privilege error. |
60 // since test will fail with privilege error. |
61 if (Platform.isOSX()) { |
61 if (Platform.isOSX()) { |
62 String jmapToolPath = JDKToolFinder.getCurrentJDKTool("jmap"); |
62 String jmapToolPath = JDKToolFinder.getTestJDKTool("jmap"); |
63 ProcessBuilder codesignProcessBuilder = new ProcessBuilder( |
63 ProcessBuilder codesignProcessBuilder = new ProcessBuilder( |
64 "codesign", "-v", jmapToolPath); |
64 "codesign", "-v", jmapToolPath); |
65 Process codesignProcess = codesignProcessBuilder.start(); |
65 Process codesignProcess = codesignProcessBuilder.start(); |
66 OutputAnalyzer analyser = new OutputAnalyzer(codesignProcess); |
66 OutputAnalyzer analyser = new OutputAnalyzer(codesignProcess); |
67 try { |
67 try { |