Changeset 8231 for trunk/gli/src/org/greenstone/gatherer/util
- Timestamp:
- 2004-10-07T16:44:32+13:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/util/Utility.java
r8148 r8231 46 46 import org.apache.xerces.parsers.*; 47 47 import org.apache.xml.serialize.*; 48 import org.greenstone.gatherer.Configuration; 48 49 import org.greenstone.gatherer.Dictionary; 49 50 import org.greenstone.gatherer.Gatherer; … … 498 499 499 500 if (Gatherer.GS3) { 500 this_col_dir = getCollectionDir( Gatherer.config.gsdl3_path, Gatherer.config.site_name, col_name);501 this_col_dir = getCollectionDir(Configuration.gsdl3_path, Configuration.site_name, col_name); 501 502 } else { 502 this_col_dir = getCollectionDir( Gatherer.config.gsdl_path, col_name);503 this_col_dir = getCollectionDir(Configuration.gsdl_path, col_name); 503 504 504 505 } … … 584 585 static public String getHelpFolder() { 585 586 586 String help_folder = "help/" + Gatherer.config.getLanguage() + "/";587 String help_folder = "help/" + Configuration.getLanguage() + "/"; 587 588 588 589 // Try in the JAR/classes directory first … … 813 814 814 815 // set up output stream for zip download 815 String col_dir = Utility.getCollectDir( Gatherer.config.gsdl_path);816 String col_dir = Utility.getCollectDir(Configuration.gsdl_path); 816 817 String zip_fname = col_dir + col_name + ".zip"; 817 818 FileOutputStream zip_fos = new FileOutputStream(zip_fname); … … 842 843 final int maxBufferSize = 1024; 843 844 844 String col_dir = Utility.getCollectDir( Gatherer.config.gsdl_path);845 String col_dir = Utility.getCollectDir(Configuration.gsdl_path); 845 846 String zip_fname = col_dir + col_name + ".zip"; 846 847 String upload_cgi = Gatherer.cgiBase + "upload"; … … 1027 1028 static public void zipup(String col_name, String dir_or_file) 1028 1029 { 1029 String col_dir = Utility.getCollectDir( Gatherer.config.gsdl_path);1030 String col_dir = Utility.getCollectDir(Configuration.gsdl_path); 1030 1031 int prefix_strip = col_dir.length(); 1031 1032 … … 1080 1081 static public void unzip(String col_name) 1081 1082 { 1082 String col_dir = Utility.getCollectDir( Gatherer.config.gsdl_path);1083 String col_dir = Utility.getCollectDir(Configuration.gsdl_path); 1083 1084 String zip_fname = col_dir + col_name + ".zip"; 1084 1085 int zip_mode = ZipFile.OPEN_READ | ZipFile.OPEN_DELETE;
Note:
See TracChangeset
for help on using the changeset viewer.