Browse Source

Merge pull request #294 in BA/design from ~DANIEL/finereport_design:dev to dev

* commit 'cdb5e7515c24d8948017582dddc60f70747bb369':
  1
master
superman 8 years ago
parent
commit
ef02774826
  1. 5
      designer_base/src/com/fr/design/formula/FunctionConstants.java

5
designer_base/src/com/fr/design/formula/FunctionConstants.java

@ -122,7 +122,10 @@ public abstract class FunctionConstants {
String[] arr = filePath.split("!/");
String jarPath = arr[0].substring(6); // alex:substring(6)去掉前面的file:/这六个字符
String classPath = arr[1];
if (OperatingSystem.isMacOS()){
if(classPath.endsWith("/")){
classPath = classPath.substring(0, classPath.length() - 1);
}
if (!OperatingSystem.isWindows()){
//windows里substring后是d:\123\456, mac下substring后是Application/123/456
jarPath = StringUtils.perfectStart(jarPath, "/");
}

Loading…
Cancel
Save