mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

davidely
16.28.2007 a3c6a00ccc8664aeda0610c17a26f11838dcc358
Small fixes to have the message generation stuff work on Windows
1 files modified
8 ■■■■ changed files
opends/src/build-tools/org/opends/build/tools/GenerateMessageFile.java 8 ●●●● patch | view | raw | blame | history
opends/src/build-tools/org/opends/build/tools/GenerateMessageFile.java
@@ -645,7 +645,7 @@
  }
  private String getBase() {
    String srcPath = source.getAbsolutePath();
    String srcPath = unixifyPath(source.getAbsolutePath());
    String base = srcPath.substring(srcPath.lastIndexOf("messages/"));
    if (base.endsWith(".properties")) {
      base = base.substring(0, base.length() - ".properties".length());
@@ -654,7 +654,7 @@
  }
  private String getPackage() {
    String destPath = dest.getAbsolutePath();
    String destPath = unixifyPath(dest.getAbsolutePath());
    String c = destPath.substring(destPath.indexOf("org/opends"));
    c = c.replace('/', '.');
    c = c.substring(0, c.lastIndexOf(".")); // strip .java
@@ -739,6 +739,10 @@
    return registry;
  }
  private static String unixifyPath(String path) {
    return path.replace("\\", "/");
  }
  /**
   * For testing.