Commit f51f2d1f authored by Mickaël Guessant's avatar Mickaël Guessant

OSX: fix Info.plist path

git-svn-id: https://svn.code.sf.net/p/davmail/code/trunk@2484 3d1905a2-6b24-0410-a738-b14d5a86fcbd
parent fd2cf150
......@@ -31,7 +31,7 @@ import java.io.IOException;
*/
public class OSXInfoPlist {
protected static final Logger LOGGER = Logger.getLogger(OSXInfoPlist.class);
protected static final String INFO_PLIST_PATH = "Contents/Info.plist";
protected static final String INFO_PLIST_PATH = "../Info.plist";
private OSXInfoPlist() {
}
......@@ -103,14 +103,6 @@ public class OSXInfoPlist {
if (file.exists()) {
return INFO_PLIST_PATH;
}
// failover for Java7
String libraryPath = System.getProperty("java.library.path");
if (libraryPath != null && libraryPath.endsWith("Contents/MacOS")) {
file = new File(libraryPath.replace("Contents/MacOS", INFO_PLIST_PATH));
if (file.exists()) {
return INFO_PLIST_PATH;
}
}
throw new IOException("Info.plist file not found");
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment