| | |
| | | } |
| | | |
| | | 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()); |
| | |
| | | } |
| | | |
| | | 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 |
| | |
| | | return registry; |
| | | } |
| | | |
| | | private static String unixifyPath(String path) { |
| | | return path.replace("\\", "/"); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * For testing. |