com.waveset.msgcat
Class MessageSyncUtil

java.lang.Object
  extended bycom.waveset.msgcat.MessageSyncUtil

public class MessageSyncUtil
extends java.lang.Object

A utility that helps to ensure that files containing translated messages are in sync. In most cases this means non-destructively weaving missing keys into a properties file that contains translated messages.


Field Summary
static java.lang.String code_id
           
 
Constructor Summary
MessageSyncUtil()
           
 
Method Summary
static void main(java.lang.String[] args)
          The main function.
static void syncFiles(java.lang.String master_path, java.lang.String subject_path, java.lang.String result_path)
          Synchronizes the second file with the first.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

code_id

public static final java.lang.String code_id
See Also:
Constant Field Values
Constructor Detail

MessageSyncUtil

public MessageSyncUtil()
Method Detail

syncFiles

public static void syncFiles(java.lang.String master_path,
                             java.lang.String subject_path,
                             java.lang.String result_path)
Synchronizes the second file with the first.

Parameters:
master_path - Path to file that contains the "correct" list of messages.
subject_path - Path to file that needs to be updated.
result_path - Path to write the resulting file.

main

public static void main(java.lang.String[] args)
The main function. Takes two command line arguments. The first argument is expected to be the path to the file containing the "correct" set of keys. The second is the path to the file that will likely already have translated messages.