| | |
| | | log("Generating " + dest.getName() + " from " + source.getName()); |
| | | } |
| | | |
| | | stubReader = new BufferedReader(new FileReader(MESSAGES_FILE_STUB)); |
| | | stubReader = new BufferedReader(new FileReader(getStubFile())); |
| | | destWriter = new PrintWriter(new FileOutputStream(dest)); |
| | | |
| | | String stubLine; |
| | |
| | | } |
| | | |
| | | static private File getRegistryFile() throws IOException { |
| | | File registry = new File(REGISTRY_FILE_NAME); |
| | | File registry = new File(System.getProperty("user.dir"), REGISTRY_FILE_NAME); |
| | | if (!registry.exists()) { |
| | | File parent = registry.getParentFile(); |
| | | if (!parent.exists()) { |
| | |
| | | return path.replace("\\", "/"); |
| | | } |
| | | |
| | | private File getStubFile() { |
| | | return new File(System.getProperty("user.dir"), MESSAGES_FILE_STUB); |
| | | } |
| | | |
| | | /** |
| | | * For testing. |