Changeset 672 for AE/installer2/src/net/oni2/aeinstaller/backend/packages
- Timestamp:
- Feb 23, 2013, 6:40:47 PM (12 years ago)
- Location:
- AE/installer2/src/net/oni2/aeinstaller/backend/packages
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
AE/installer2/src/net/oni2/aeinstaller/backend/packages/Mod_Info.java
r671 r672 27 27 28 28 private File exeFile = null; 29 private EExeType exeType = EExeType.OSBINARY; 29 30 private File iconFile = null; 30 31 private String workingDir = "Base"; … … 111 112 } else if (sName.equalsIgnoreCase("ExeName")) { 112 113 exeFile = new File(Paths.getEditionBasePath(), sVal); 114 } else if (sName.equalsIgnoreCase("ExeType")) { 115 if (sVal.equalsIgnoreCase("OSBinary")) 116 exeType = EExeType.OSBINARY; 117 else if (sVal.equalsIgnoreCase("DotNet")) 118 exeType = EExeType.DOTNET; 119 else if (sVal.equalsIgnoreCase("Jar")) 120 exeType = EExeType.JAR; 113 121 } else if (sName.equalsIgnoreCase("WorkingDir")) { 114 122 workingDir = sVal; … … 116 124 iconFile = new File(Paths.getEditionBasePath(), sVal); 117 125 } 126 } 127 if (exeFile != null) { 128 if (exeFile.getName().toLowerCase().endsWith(".jar")) 129 exeType = EExeType.JAR; 118 130 } 119 131 } catch (FileNotFoundException e) { … … 203 215 204 216 /** 217 * @return the exeType 218 */ 219 public EExeType getExeType() { 220 return exeType; 221 } 222 223 /** 205 224 * @return the iconFile 206 225 */ -
AE/installer2/src/net/oni2/aeinstaller/backend/packages/Package.java
r670 r672 44 44 45 45 private File exeFile = null; 46 private EExeType exeType = EExeType.OSBINARY; 46 47 private File iconFile = null; 47 48 private String workingDir = "Base"; … … 124 125 125 126 exeFile = mi.getExeFile(); 127 exeType = mi.getExeType(); 126 128 workingDir = mi.getWorkingDir(); 127 129 iconFile = mi.getIconFile(); … … 387 389 388 390 /** 391 * @return Executable type of this tool 392 */ 393 public EExeType getExeType() { 394 return exeType; 395 } 396 397 /** 389 398 * @return Icon file of this tool 390 399 */
Note:
See TracChangeset
for help on using the changeset viewer.