Ignore:
Timestamp:
2003-12-19T14:54:25+13:00 (20 years ago)
Author:
jmt12
Message:

Rewrote GImportProgressMonitor to use the new GLI argument based messages from the import script - which are separate from multilingual issues. This required several changes to GShell, GShellEvents, and everything that makes use of them

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

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/collection/Collection.java

    r6204 r6325  
    309309        count++;
    310310    }
    311     for(int i = 0; i < node.getChildCount(); i++) {
     311    for(int i = 0; !file.getName().equals("CVS") && i < node.getChildCount(); i++) {
    312312        count = count + getCount(node.getChildAt(i), count_folders, count_files);
    313313    }
  • trunk/gli/src/org/greenstone/gatherer/collection/CollectionManager.java

    r6317 r6325  
    745745        String args[];
    746746        if(Utility.isWindows()) {
    747         args = new String[6];
     747        args = new String[7];
    748748        args[0] = Gatherer.config.perl_path;
    749749        args[1] = "-S";
    750750        args[2] = Gatherer.config.getScriptPath() + "import.pl";
    751         args[3] = "-importdir";
    752         args[4] = collection_import;
    753         args[5] = collection.getName();
     751        args[3] = "-gli";
     752        args[4] = "-importdir";
     753        args[5] = collection_import;
     754        args[6] = collection.getName();
    754755        }
    755756        else {
    756         args = new String[4];
     757        args = new String[5];
    757758        args[0] = Gatherer.config.getScriptPath() + "import.pl";
    758         args[1] = "-importdir";
    759         args[2] = collection_import;
    760         args[3] = collection.getName();
     759        args[1] = "-gli";
     760        args[2] = "-importdir";
     761        args[3] = collection_import;
     762        args[4] = collection.getName();
    761763        }
    762764        collection_import = null;
     
    10911093        }
    10921094        WarningDialog collection_built_warning_dialog = new WarningDialog("warning.CollectionBuilt", false);
     1095        collection_built_warning_dialog.setMessageOnly(true); // Not a warning
    10931096        collection_built_warning_dialog.display();
    10941097        collection_built_warning_dialog.dispose();
Note: See TracChangeset for help on using the changeset viewer.