Ignore:
Timestamp:
2005-08-01T13:40:37+12:00 (19 years ago)
Author:
mdewsnip
Message:

Added a new LocalGreenstone class which contains functions that only make sense with a local Greenstone.

Location:
trunk/gli/src/org/greenstone/gatherer/cdm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/cdm/ClassifierManager.java

    r10343 r10370  
    4040import org.greenstone.gatherer.Dictionary;
    4141import org.greenstone.gatherer.Gatherer;
     42import org.greenstone.gatherer.LocalGreenstone;
    4243import org.greenstone.gatherer.gui.GComboBox;
    4344import org.greenstone.gatherer.gui.GLIButton;
     
    330331            args[0] = "Perl.exe";
    331332            }
    332             args[1] = Configuration.gsdl_path + "bin" + File.separator + "script" + File.separator + "classinfo.pl";
     333            args[1] = LocalGreenstone.getBinScriptDirectoryPath() + "classinfo.pl";
    333334            args[2] = "-xml";
    334335            args[3] = "-language";
     
    408409
    409410        // Retrieve the gsdl home directory...
    410         String directory = Configuration.gsdl_path;
     411        String directory = LocalGreenstone.getDirectoryPath();
    411412        directory = directory + "perllib" + File.separator + "classify" + File.separator;
    412413
  • trunk/gli/src/org/greenstone/gatherer/cdm/PluginManager.java

    r10342 r10370  
    4141import org.greenstone.gatherer.Dictionary;
    4242import org.greenstone.gatherer.Gatherer;
     43import org.greenstone.gatherer.LocalGreenstone;
    4344import org.greenstone.gatherer.collection.CollectionContentsChangedListener;
    4445import org.greenstone.gatherer.gui.GComboBox;
     
    462463            args[0] = "Perl.exe";
    463464            }
    464             args[1] = Configuration.gsdl_path + "bin" + File.separator + "script" + File.separator + "pluginfo.pl";
     465            args[1] = LocalGreenstone.getBinScriptDirectoryPath() + "pluginfo.pl";
    465466            args[2] = "-xml";
    466467            args[3] = "-language";
     
    536537        else {
    537538        // Retrieve the gsdl home directory...
    538         String directory = Configuration.gsdl_path;
     539        String directory = LocalGreenstone.getDirectoryPath();
    539540        directory = directory + "perllib" + File.separator + "plugins" + File.separator;
    540541        loadPlugins(new File(directory));
Note: See TracChangeset for help on using the changeset viewer.