Changeset 12588


Ignore:
Timestamp:
2006-08-29T14:20:16+12:00 (18 years ago)
Author:
kjdon
Message:

use getGLIUserCacheDirectoryPath to get cache_dir instead of working it out from scratch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/download/DownloadJob.java

    r12529 r12588  
    209209    command_list.add(mode);
    210210    command_list.add("-cache_dir");
    211 
    212     String user_home = System.getProperty("user.home");     
    213     if (Utility.isWindows()){
    214         command_list.add(user_home + File.separator+"gli"+File.separator + "cache");
    215     }
    216     else{
    217         command_list.add(user_home + File.separator+".gli"+File.separator +"cache");
    218     }
     211    command_list.add(Gatherer.getGLIUserCacheDirectoryPath());
    219212   
    220213    ArrayList all_arg = download.getArguments(true,false);
Note: See TracChangeset for help on using the changeset viewer.