Ignore:
Timestamp:
07/02/10 21:34:09 (14 years ago)
Author:
lukacu
Branch:
default
Convert:
svn:f819dc9c-ca78-df11-852c-0018fe7759ca/trunk@6
Message:

Bundle import fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/src/org/webstrips/core/bundle/ComicBundle.java

    r1 r5  
    198198    } 
    199199     
     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     
    200209    /** 
    201210     * Unpack. 
    202211     *  
    203      * @param destination 
    204      *           the identifier (comic id + "-" + uuid) 
     212     * @param destination the destination directory 
     213     * @param identifier the identifier (comic id + "-" + uuid) 
    205214     *  
    206215     * @throws ComicBundleException 
    207216     *             the comic bundle exception 
    208217     */ 
    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 
    214221 
    215222        if (!destination.isDirectory()) 
Note: See TracChangeset for help on using the changeset viewer.