Changeset 943 for DCWoRMS/branches/coolemall
- Timestamp:
- 03/11/13 10:19:21 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/branches/coolemall/src/test/DEBBTranslator/src/PLMXMLTranslator.java
r930 r943 15 15 */ 16 16 public class PLMXMLTranslator { 17 private static final String DEFAULT_INPUT_FILE_NAME = "src/test/DEBBTranslator/xml/example/PLMXML_PSNC_RECS_ 3.xml";17 private static final String DEFAULT_INPUT_FILE_NAME = "src/test/DEBBTranslator/xml/example/PLMXML_PSNC_RECS_1.xml"; 18 18 private static final String DEFAULT_OUTPUT_FILE_NAME = DEFAULT_INPUT_FILE_NAME.replace("PLMXML", "DCWORMS"); 19 19 … … 35 35 /** 36 36 * @param args 37 * @throws Exception 37 38 */ 38 public static void main(String[] args) {39 public static void main(String[] args) throws Exception { 39 40 String inputFileName = DEFAULT_INPUT_FILE_NAME; 40 41 String outputFileName = DEFAULT_OUTPUT_FILE_NAME; … … 58 59 } 59 60 61 if (inputFileName.compareTo(outputFileName) == 0) { 62 String errorMessage = "Input and output file cannot be the same"; 63 System.out.println("errorMessage"); 64 throw new Exception(errorMessage); 65 } 66 60 67 // TODO: Check it this is correct! 61 68 // TODO: Move it to configuration file … … 73 80 resourceUnitClasses.put("CoolingDevice", "CoolingDevice"); 74 81 resourceUnitClasses.put("Storage", "Storage"); 82 83 System.out.println("inputFileName=" + inputFileName); 84 System.out.println("outputFileName=" + outputFileName); 75 85 76 86 try {
Note: See TracChangeset
for help on using the changeset viewer.