Conversion.java (5f863819) | Conversion.java (9dae0b27) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 58 unchanged lines hidden (view full) --- 67 + "-f .*\\.((doc)|(dot)|(docx)|(docm)|(dotx)|(dotm))$ writer8 odt " 68 + "-f .*\\.((xls)|(xlt)|(xlsx)|(xltx)|(xlsm)|(xltm))$ calc8 ods " 69 + "-f .*\\.((ppt)|(pot)|(pptx)|(pptm)|(potm)|(potx))$ impress8 odp " 70 + "-f .*\\.((odt)|(ott))$ 'MS Word 97' doc " 71 + "-f .*\\.((ods)|(ots))$ 'MS Excel 97' xls " 72 + "-f .*\\.((odp)|(otp))$ 'MS PowerPoint 97' ppt"); 73 74 @FileRepeat | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 58 unchanged lines hidden (view full) --- 67 + "-f .*\\.((doc)|(dot)|(docx)|(docm)|(dotx)|(dotm))$ writer8 odt " 68 + "-f .*\\.((xls)|(xlt)|(xlsx)|(xltx)|(xlsm)|(xltm))$ calc8 ods " 69 + "-f .*\\.((ppt)|(pot)|(pptx)|(pptm)|(potm)|(potx))$ impress8 odp " 70 + "-f .*\\.((odt)|(ott))$ 'MS Word 97' doc " 71 + "-f .*\\.((ods)|(ots))$ 'MS Excel 97' xls " 72 + "-f .*\\.((odp)|(otp))$ 'MS PowerPoint 97' ppt"); 73 74 @FileRepeat |
75 public static int repeat = 8; | 75 public static int repeat = Integer.parseInt(System.getProperty("conversion.repeat", "8")); |
76 77 private static UnoApp app = new UnoApp(); 78 79 private static PrintStream result; 80 81 private static int counter = 0; 82 83 @BeforeClass --- 50 unchanged lines hidden (view full) --- 134 log.info("Start [File: " + sourceFileId + "] [Size: " + (sourceFile.length() / 1024) + "KB] [Scenario: " + scenario + "]"); 135 app.start(); 136 } 137 138 @After 139 public void after() throws Exception{ 140 result.println(sourceFileId + "," + scenario + "," + closeTime + "," + saveTime + "," + loadTime); 141 log.info("Result [After Closing: " + closeTime + "] [After Saving: " + saveTime + "] [After Loading: " + loadTime + "]"); | 76 77 private static UnoApp app = new UnoApp(); 78 79 private static PrintStream result; 80 81 private static int counter = 0; 82 83 @BeforeClass --- 50 unchanged lines hidden (view full) --- 134 log.info("Start [File: " + sourceFileId + "] [Size: " + (sourceFile.length() / 1024) + "KB] [Scenario: " + scenario + "]"); 135 app.start(); 136 } 137 138 @After 139 public void after() throws Exception{ 140 result.println(sourceFileId + "," + scenario + "," + closeTime + "," + saveTime + "," + loadTime); 141 log.info("Result [After Closing: " + closeTime + "] [After Saving: " + saveTime + "] [After Loading: " + loadTime + "]"); |
142 if (counter % 8 == 0) { | 142 if (counter % repeat == 0) { |
143 app.close(); 144 } 145 } 146 147 private PropertyValue propertyValue(String name, Object value) { 148 PropertyValue p = new PropertyValue(); 149 p.Name = name; 150 p.Value= value; --- 24 unchanged lines hidden --- | 143 app.close(); 144 } 145 } 146 147 private PropertyValue propertyValue(String name, Object value) { 148 PropertyValue p = new PropertyValue(); 149 p.Name = name; 150 p.Value= value; --- 24 unchanged lines hidden --- |