99 } |
99 } |
100 |
100 |
101 boolean ok = true; |
101 boolean ok = true; |
102 /* Original usage */ |
102 /* Original usage */ |
103 if (args.length == 2 && args[0].charAt(0) != '-' ) { |
103 if (args.length == 2 && args[0].charAt(0) != '-' ) { |
104 ok = createFile(args[0], args[1], "ListResourceBundle"); |
104 ok = createFile(args[0], args[1], "java.util.ListResourceBundle"); |
105 } else if (args.length == 3) { |
105 } else if (args.length == 3) { |
106 ok = createFile(args[0], args[1], args[2]); |
106 ok = createFile(args[0], args[1], args[2]); |
107 } else if (args.length == 0) { |
107 } else if (args.length == 0) { |
108 usage(log); |
108 usage(log); |
109 ok = false; |
109 ok = false; |
283 log.info(" java CompileProperties path_to_properties_file path_to_java_output_file [super_class]"); |
283 log.info(" java CompileProperties path_to_properties_file path_to_java_output_file [super_class]"); |
284 log.info(" -OR-"); |
284 log.info(" -OR-"); |
285 log.info(" java CompileProperties {-compile path_to_properties_file path_to_java_output_file super_class} -or- -optionsfile filename"); |
285 log.info(" java CompileProperties {-compile path_to_properties_file path_to_java_output_file super_class} -or- -optionsfile filename"); |
286 log.info(""); |
286 log.info(""); |
287 log.info("Example:"); |
287 log.info("Example:"); |
288 log.info(" java CompileProperties -compile test.properties test.java ListResourceBundle"); |
288 log.info(" java CompileProperties -compile test.properties test.java java.util.ListResourceBundle"); |
289 log.info(" java CompileProperties -optionsfile option_file"); |
289 log.info(" java CompileProperties -optionsfile option_file"); |
290 log.info("option_file contains: -compile test.properties test.java ListResourceBundle"); |
290 log.info("option_file contains: -compile test.properties test.java java.util.ListResourceBundle"); |
291 } |
291 } |
292 |
292 |
293 private static String escape(String theString) { |
293 private static String escape(String theString) { |
294 // This is taken from Properties.saveConvert with changes for Java strings |
294 // This is taken from Properties.saveConvert with changes for Java strings |
295 int len = theString.length(); |
295 int len = theString.length(); |