Changeset 5:12144f04801b for core
- Timestamp:
- 07/02/10 21:34:09 (14 years ago)
- Branch:
- default
- Convert:
- svn:f819dc9c-ca78-df11-852c-0018fe7759ca/trunk@6
- Location:
- core/src/org/webstrips/core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
core/src/org/webstrips/core/ComicManager.java
r1 r5 274 274 } else { 275 275 276 bundle.unpack(StorageManager.getStorageManager().getStorageDirectory()); 276 bundle.unpack(StorageManager.getStorageManager().getStorageDirectory(), installed.getComicIdentifier()); 277 278 reloadComic(installed); 277 279 278 280 return true; … … 306 308 l.comicRemoved(this, comic); 307 309 } catch (Exception e) { 308 // TODO: log310 WebStrips.getLogger().report(e); 309 311 } 310 312 } -
core/src/org/webstrips/core/bundle/ComicBundle.java
r1 r5 198 198 } 199 199 200 public String unpack(File destination) throws ComicBundleException { 201 202 UUID uuid = UUID.randomUUID(); 203 204 String identifier = description.getShortName() + "-" + uuid.toString(); 205 206 return unpack(destination, identifier); 207 } 208 200 209 /** 201 210 * Unpack. 202 211 * 203 * @param destination 204 * 212 * @param destination the destination directory 213 * @param identifier the identifier (comic id + "-" + uuid) 205 214 * 206 215 * @throws ComicBundleException 207 216 * the comic bundle exception 208 217 */ 209 public String unpack(File destination) throws ComicBundleException { 210 211 UUID uuid = UUID.randomUUID(); 212 213 String identifier = description.getShortName() + "-" + uuid.toString(); 218 public String unpack(File destination, String identifier) throws ComicBundleException { 219 220 214 221 215 222 if (!destination.isDirectory())
Note: See TracChangeset
for help on using the changeset viewer.