Changeset 6744


Ignore:
Timestamp:
2004-02-09T10:44:45+13:00 (20 years ago)
Author:
kjdon
Message:

when loading plugins in windows, check for DBPlug and dont attempt to load it

File:
1 edited

Legend:

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

    r6389 r6744  
    452452    private void loadPlugIns(File directory) {
    453453    File files[] = directory.listFiles();
     454    boolean is_windows = Utility.isWindows();
    454455    if(files != null) {
    455456        // Create a progress indicator.
     
    458459        // We only want to check Perl Modules.
    459460        if(files[i].getName().endsWith(".pm")) {
    460             loadPlugIn(files[i]);
     461            if (is_windows && files[i].getName().equals("DBPlug.pm")) {
     462            // don't load DBPlug for windows
     463            } else {
     464            loadPlugIn(files[i]);
     465            }
    461466        }
    462467        progress.inc();
Note: See TracChangeset for help on using the changeset viewer.