Changeset 9092
- Timestamp:
- 2005-02-18T10:49:48+13:00 (19 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/GathererApplet.java
r9058 r9092 28 28 package org.greenstone.gatherer; 29 29 30 import java.applet.*; 30 31 import java.awt.event.ActionEvent; 31 32 import java.awt.event.ActionListener; 32 import java.io.*;33 33 import java.net.*; 34 34 import javax.swing.JApplet; 35 import java.applet.*;36 35 37 36 import java.awt.*; 37 import java.io.*; 38 38 import java.util.*; 39 39 import javax.swing.*; … … 95 95 UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); 96 96 } 97 catch (Exception exception) {97 catch (Exception exception) { 98 98 exception.printStackTrace(); 99 } 100 101 // Ensure the GLI user directory exists 102 File gli_user_directory = Utility.getGLIUserFolder(); 103 if (!gli_user_directory.exists()) { 104 gli_user_directory.mkdirs(); 99 105 } 100 106 … … 106 112 gatherer = new Gatherer(); 107 113 108 String gli_user_folder = Utility.getGLIUserFolder().toString(); 109 110 String[] args = { "-gsdl", gli_user_folder, 114 String[] args = { "-gsdl", gli_user_directory.toString(), 111 115 "-library", library_cgi, 112 116 }; … … 138 142 Configuration.GS3_CONFIG_XML = "config3Remote.xml"; 139 143 140 File gli_user_dir = new File(gli_user_folder);141 if (!gli_user_dir.exists()) {142 gli_user_dir.mkdirs();143 }144 145 144 Gatherer.setCollectDirectoryPath(go.gsdl_path + "collect" + File.separator); 146 145 File col_dir = new File(Gatherer.getCollectDirectoryPath()); … … 152 151 if (!metadata_directory.exists()) { 153 152 // digout metadata.zip from JAR file and unzip it 154 Utility.unzipFromJar(Utility.METADATA_ZIP, gli_user_folder);153 Utility.unzipFromJar(Utility.METADATA_ZIP, gli_user_directory.toString()); 155 154 } 156 155 … … 166 165 } 167 166 168 169 167 g_man = gatherer.init(size, go.gsdl_path, go.gsdl3_path, go.local_library_path, 170 168 go.library_url_string, go.debug, go.perl_path, -
trunk/gli/src/org/greenstone/gatherer/GathererProg.java
r9058 r9092 29 29 30 30 import java.awt.*; 31 import java.io.*; 31 32 import java.util.*; 32 33 import javax.swing.*; 33 34 import org.greenstone.gatherer.feedback.ActionRecorderDialog; 34 35 import org.greenstone.gatherer.gui.GUIManager; 36 import org.greenstone.gatherer.util.Utility; 35 37 36 38 … … 54 56 * @see org.greenstone.gatherer.Dictionary 55 57 * @see org.greenstone.gatherer.Gatherer 56 * @see org.greenstone.gatherer.Gatherer57 58 */ 58 59 static public void main(String[] args) { … … 67 68 UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); 68 69 } 69 catch (Exception exception) {70 catch (Exception exception) { 70 71 exception.printStackTrace(); 71 72 } 72 73 74 // Ensure the GLI user directory exists 75 File gli_user_directory = Utility.getGLIUserFolder(); 76 if (!gli_user_directory.exists()) { 77 gli_user_directory.mkdirs(); 78 } 79 73 80 Gatherer gatherer = new Gatherer(); 74 81
Note:
See TracChangeset
for help on using the changeset viewer.