Changeset 10370
- Timestamp:
- 2005-08-01T13:40:37+12:00 (19 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer
- Files:
-
- 1 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/Configuration.java
r10368 r10370 674 674 } 675 675 676 /** Retrieve the path to the PERL scripts within the Greenstone directory.677 * @return A <strong>String</strong> containing the path.678 */679 static public String getScriptPath() {680 return gsdl_path + "bin" + File.separator + "script" + File.separator;681 }682 683 676 static public String getGS3ScriptPath() { 684 677 return gsdl3_src_path + "bin" + File.separator + "script" + File.separator; 685 }686 687 static public String getTmpDirectoryPath()688 {689 return gsdl_path + "tmp" + File.separator;690 678 } 691 679 -
trunk/gli/src/org/greenstone/gatherer/Gatherer.java
r10369 r10370 144 144 } 145 145 146 // We have a local Greenstone 147 if (!isGsdlRemote) { 148 LocalGreenstone.setDirectoryPath(go.gsdl_path); 149 } 150 146 151 // Users may specify a non-standard collect directory (eg. when running one GLI in a network environment) 147 152 if (go.collect_directory_path != null) { -
trunk/gli/src/org/greenstone/gatherer/cdm/ClassifierManager.java
r10343 r10370 40 40 import org.greenstone.gatherer.Dictionary; 41 41 import org.greenstone.gatherer.Gatherer; 42 import org.greenstone.gatherer.LocalGreenstone; 42 43 import org.greenstone.gatherer.gui.GComboBox; 43 44 import org.greenstone.gatherer.gui.GLIButton; … … 330 331 args[0] = "Perl.exe"; 331 332 } 332 args[1] = Configuration.gsdl_path + "bin" + File.separator + "script" + File.separator+ "classinfo.pl";333 args[1] = LocalGreenstone.getBinScriptDirectoryPath() + "classinfo.pl"; 333 334 args[2] = "-xml"; 334 335 args[3] = "-language"; … … 408 409 409 410 // Retrieve the gsdl home directory... 410 String directory = Configuration.gsdl_path;411 String directory = LocalGreenstone.getDirectoryPath(); 411 412 directory = directory + "perllib" + File.separator + "classify" + File.separator; 412 413 -
trunk/gli/src/org/greenstone/gatherer/cdm/PluginManager.java
r10342 r10370 41 41 import org.greenstone.gatherer.Dictionary; 42 42 import org.greenstone.gatherer.Gatherer; 43 import org.greenstone.gatherer.LocalGreenstone; 43 44 import org.greenstone.gatherer.collection.CollectionContentsChangedListener; 44 45 import org.greenstone.gatherer.gui.GComboBox; … … 462 463 args[0] = "Perl.exe"; 463 464 } 464 args[1] = Configuration.gsdl_path + "bin" + File.separator + "script" + File.separator+ "pluginfo.pl";465 args[1] = LocalGreenstone.getBinScriptDirectoryPath() + "pluginfo.pl"; 465 466 args[2] = "-xml"; 466 467 args[3] = "-language"; … … 536 537 else { 537 538 // Retrieve the gsdl home directory... 538 String directory = Configuration.gsdl_path;539 String directory = LocalGreenstone.getDirectoryPath(); 539 540 directory = directory + "perllib" + File.separator + "plugins" + File.separator; 540 541 loadPlugins(new File(directory)); -
trunk/gli/src/org/greenstone/gatherer/collection/CollectionManager.java
r10345 r10370 47 47 import org.greenstone.gatherer.Dictionary; 48 48 import org.greenstone.gatherer.Gatherer; 49 import org.greenstone.gatherer.LocalGreenstone; 49 50 import org.greenstone.gatherer.LocalLibraryServer; 50 51 import org.greenstone.gatherer.ServletConfiguration; … … 144 145 command_parts_list.add("-S"); 145 146 } 146 command_parts_list.add( Configuration.getScriptPath() + "buildcol.pl");147 command_parts_list.add(LocalGreenstone.getBinScriptDirectoryPath() + "buildcol.pl"); 147 148 command_parts_list.add("-gli"); 148 149 command_parts_list.add("-language"); … … 655 656 command_parts_list.add("-S"); 656 657 } 657 command_parts_list.add( Configuration.getScriptPath() + "import.pl");658 command_parts_list.add(LocalGreenstone.getBinScriptDirectoryPath() + "import.pl"); 658 659 command_parts_list.add("-gli"); 659 660 command_parts_list.add("-language"); … … 913 914 command_parts_list.add("-S"); 914 915 } 915 command_parts_list.add( Configuration.getScriptPath() + "mkcol.pl");916 command_parts_list.add(LocalGreenstone.getBinScriptDirectoryPath() + "mkcol.pl"); 916 917 917 918 command_parts_list.add("-collectdir"); -
trunk/gli/src/org/greenstone/gatherer/collection/ScriptOptions.java
r10006 r10370 9 9 import org.greenstone.gatherer.DebugStream; 10 10 import org.greenstone.gatherer.Gatherer; 11 import org.greenstone.gatherer.LocalGreenstone; 11 12 import org.greenstone.gatherer.cdm.Argument; 12 13 import org.greenstone.gatherer.util.ArrayTools; … … 305 306 args[0] = Configuration.perl_path; 306 307 args[1] = "-S"; 307 args[2] = Configuration.getScriptPath() + filename;308 args[2] = LocalGreenstone.getBinScriptDirectoryPath() + filename; 308 309 args[3] = "-xml"; 309 310 args[4] = "-language"; … … 312 313 else { 313 314 args = new String[4]; 314 args[0] = Configuration.getScriptPath() + filename;315 args[0] = LocalGreenstone.getBinScriptDirectoryPath() + filename; 315 316 args[1] = "-xml"; 316 317 args[2] = "-language"; -
trunk/gli/src/org/greenstone/gatherer/gui/ExplodeMetadataPrompt.java
r10239 r10370 40 40 import org.greenstone.gatherer.Configuration; 41 41 import org.greenstone.gatherer.Gatherer; 42 import org.greenstone.gatherer.LocalGreenstone; 42 43 import org.greenstone.gatherer.cdm.Argument; 43 44 import org.greenstone.gatherer.cdm.CollectionDesignManager; … … 238 239 command_parts_list.add("-S"); 239 240 } 240 command_parts_list.add( Configuration.getScriptPath() + "explode_metadata_database.pl");241 command_parts_list.add(LocalGreenstone.getBinScriptDirectoryPath() + "explode_metadata_database.pl"); 241 242 command_parts_list.add("-plugin"); 242 243 command_parts_list.add(plugin_name); -
trunk/gli/src/org/greenstone/gatherer/gui/ExportAsPrompt.java
r10368 r10370 47 47 import org.greenstone.gatherer.Dictionary; 48 48 import org.greenstone.gatherer.Gatherer; 49 import org.greenstone.gatherer.LocalGreenstone; 49 50 import org.greenstone.gatherer.collection.BasicCollectionConfiguration; 50 51 import org.greenstone.gatherer.shell.GShell; … … 288 289 command_parts_list.add("-S"); 289 290 } 290 command_parts_list.add( Configuration.getScriptPath() + "export.pl");291 command_parts_list.add(LocalGreenstone.getBinScriptDirectoryPath() + "export.pl"); 291 292 command_parts_list.add("-gli"); 292 293 command_parts_list.add("-language"); … … 296 297 command_parts_list.add(export_type); 297 298 command_parts_list.add("-exportdir"); 298 command_parts_list.add( Configuration.getTmpDirectoryPath());299 command_parts_list.add(LocalGreenstone.getTmpDirectoryPath()); 299 300 300 301 if (cd_title.equals("")) { … … 344 345 args[0] = coll_names.toString(); 345 346 346 args[1] = Configuration.getTmpDirectoryPath();347 args[1] = LocalGreenstone.getTmpDirectoryPath(); 347 348 if(cd_title.equals("")) { 348 349 String export_type = (String)saveas_combobox.getSelectedItem(); -
trunk/gli/src/org/greenstone/gatherer/gui/WriteCDImagePrompt.java
r10368 r10370 47 47 import org.greenstone.gatherer.Dictionary; 48 48 import org.greenstone.gatherer.Gatherer; 49 import org.greenstone.gatherer.LocalGreenstone; 49 50 import org.greenstone.gatherer.collection.BasicCollectionConfiguration; 50 51 import org.greenstone.gatherer.shell.GShell; … … 256 257 command_parts_list.add("-S"); 257 258 } 258 command_parts_list.add( Configuration.getScriptPath() + "exportcol.pl");259 command_parts_list.add(LocalGreenstone.getBinScriptDirectoryPath() + "exportcol.pl"); 259 260 260 261 if (Gatherer.isGsdlRemote) { … … 318 319 319 320 args[0] = coll_names.toString(); 320 args[1] = Configuration.getTmpDirectoryPath();321 args[1] = LocalGreenstone.getTmpDirectoryPath(); 321 322 if(cd_title.equals("")) { 322 323 args[1] += "exported_collections";
Note:
See TracChangeset
for help on using the changeset viewer.