- Timestamp:
- Mar 31, 2013, 6:02:09 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
java/installer2/src/net/oni2/aeinstaller/backend/oni/OniSplit.java
r720 r767 35 35 * @return OniSplit output 36 36 */ 37 public static ApplicationInvocationResult export(File targetFolder, File input) { 37 public static ApplicationInvocationResult export(File targetFolder, 38 File input) { 38 39 return export(targetFolder, input, null); 39 40 } … … 50 51 * @return OniSplit output 51 52 */ 52 public static ApplicationInvocationResult export(File targetFolder, File input,53 Vector<String> patterns) {53 public static ApplicationInvocationResult export(File targetFolder, 54 File input, Vector<String> patterns) { 54 55 if (!targetFolder.exists()) 55 56 targetFolder.mkdir(); … … 66 67 ApplicationInvocationResult res = null; 67 68 try { 68 res = ApplicationInvoker.executeAndWait(EExeType.DOTNET, null, getProgramFile(), params); 69 res = ApplicationInvoker.executeAndWait(EExeType.DOTNET, null, 70 getProgramFile(), params, false); 69 71 } catch (IOException e) { 70 72 e.printStackTrace(); … … 84 86 * @return OniSplit output 85 87 */ 86 public static ApplicationInvocationResult importLevel( Vector<File> sourceFolders,87 File targetFile) {88 public static ApplicationInvocationResult importLevel( 89 Vector<File> sourceFolders, File targetFile) { 88 90 Vector<String> params = new Vector<String>(); 89 91 params.add(getImportParam()); … … 93 95 ApplicationInvocationResult res = null; 94 96 try { 95 res = ApplicationInvoker.executeAndWait(EExeType.DOTNET, null, getProgramFile(), params); 97 res = ApplicationInvoker.executeAndWait(EExeType.DOTNET, null, 98 getProgramFile(), params, false); 96 99 } catch (IOException e) { 97 100 e.printStackTrace(); … … 113 116 * @return OniSplit output 114 117 */ 115 public static ApplicationInvocationResult packLevel( Vector<File> sourceFoldersFiles,116 File targetFile) {118 public static ApplicationInvocationResult packLevel( 119 Vector<File> sourceFoldersFiles, File targetFile) { 117 120 Vector<String> params = new Vector<String>(); 118 121 params.add(getPackParam()); … … 124 127 ApplicationInvocationResult res = null; 125 128 try { 126 res = ApplicationInvoker.executeAndWait(EExeType.DOTNET, null, getProgramFile(), params); 129 res = ApplicationInvoker.executeAndWait(EExeType.DOTNET, null, 130 getProgramFile(), params, false); 127 131 } catch (IOException e) { 128 132 e.printStackTrace(); … … 145 149 * @return OniSplit output 146 150 */ 147 public static ApplicationInvocationResult move(File targetFolder, String input,148 String moveParameter) {151 public static ApplicationInvocationResult move(File targetFolder, 152 String input, String moveParameter) { 149 153 if (!targetFolder.exists()) 150 154 targetFolder.mkdir(); 151 155 152 156 Vector<String> params = new Vector<String>(); 153 params.add("-move" 154 + (moveParameter != null ? ":" + moveParameter : "")); 157 params.add("-move" + (moveParameter != null ? ":" + moveParameter : "")); 155 158 params.add(targetFolder.getPath()); 156 159 params.add(input); 157 160 ApplicationInvocationResult res = null; 158 161 try { 159 res = ApplicationInvoker.executeAndWait(EExeType.DOTNET, null, getProgramFile(), params); 162 res = ApplicationInvoker.executeAndWait(EExeType.DOTNET, null, 163 getProgramFile(), params, false); 160 164 } catch (IOException e) { 161 165 e.printStackTrace(); … … 175 179 * @return OniSplit output 176 180 */ 177 public static ApplicationInvocationResult convertOniToXML( File targetFolder,178 Vector<File> inputFiles) {181 public static ApplicationInvocationResult convertOniToXML( 182 File targetFolder, Vector<File> inputFiles) { 179 183 if (!targetFolder.exists()) 180 184 targetFolder.mkdirs(); … … 188 192 ApplicationInvocationResult res = null; 189 193 try { 190 res = ApplicationInvoker.executeAndWait(EExeType.DOTNET, null, getProgramFile(), params); 194 res = ApplicationInvoker.executeAndWait(EExeType.DOTNET, null, 195 getProgramFile(), params, false); 191 196 } catch (IOException e) { 192 197 e.printStackTrace(); … … 206 211 * @return OniSplit output 207 212 */ 208 public static ApplicationInvocationResult convertXMLtoOni( File targetFolder,209 Vector<File> inputFiles) {213 public static ApplicationInvocationResult convertXMLtoOni( 214 File targetFolder, Vector<File> inputFiles) { 210 215 if (!targetFolder.exists()) 211 216 targetFolder.mkdirs(); … … 219 224 ApplicationInvocationResult res = null; 220 225 try { 221 res = ApplicationInvoker.executeAndWait(EExeType.DOTNET, null, getProgramFile(), params); 226 res = ApplicationInvoker.executeAndWait(EExeType.DOTNET, null, 227 getProgramFile(), params, false); 222 228 } catch (IOException e) { 223 229 e.printStackTrace();
Note:
See TracChangeset
for help on using the changeset viewer.