Changeset 9049


Ignore:
Timestamp:
2005-02-15T17:23:48+13:00 (19 years ago)
Author:
mdewsnip
Message:

(Applet) Now only downloads build.cfg file rather than entire building directory, by Matthew Whyte.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/shell/GShell.java

    r9045 r9049  
    534534            }
    535535
    536 
    537536            Utility.delete(Gatherer.c_man.getCollectionArchivesDirectoryPath()); // remove current archives
    538537            GathererApplet.download_url_zip(col_name,"archives");
     
    558557            }
    559558
    560             Utility.delete(Gatherer.c_man.getCollectionBuildingDirectoryPath()); // remove current build dir
    561             GathererApplet.download_url_zip(col_name,"building");
     559            File buildDir = new File(Gatherer.c_man.getCollectionBuildingDirectoryPath());
     560            Utility.delete(buildDir); // remove current build dir
     561            buildDir.mkdir(); //Make a clean dir
     562            GathererApplet.download_url_zip(col_name,"building/build.cfg"); //Only need build.cfg
    562563            Utility.unzip(Gatherer.getCollectDirectoryPath(), col_name);
    563564
Note: See TracChangeset for help on using the changeset viewer.