Changeset 9020


Ignore:
Timestamp:
2005-02-14T11:54:04+13:00 (19 years ago)
Author:
mdewsnip
Message:

Changed the plugin suggestion code to only look at the process_exp, rather than process_exp and block_exp.

File:
1 edited

Legend:

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

    r9014 r9020  
    169169
    170170
    171     /** Checks whether this plugin instance will process the specified file (given its process_exp and block_exp). */
     171    /** Checks whether this plugin instance will process the specified file (given its process_exp). */
    172172    public boolean doesProcessFile(File file)
    173173    {
    174     // Check the filename against the plugin's process_exp and block_exp values
     174    // Check the filename against the plugin's process_exp value
    175175    ArrayList arguments = getArguments(true, true);
    176176    for (int i = 0; i < arguments.size(); i++) {
    177177        Argument argument = (Argument) arguments.get(i);
    178         if (argument.getName().equals("process_exp") || argument.getName().equals("block_exp")) {
     178        if (argument.getName().equals("process_exp")) {
    179179        // Try the assigned value first, for when the user has manually set the value
    180180        String regular_expression = argument.getValue();
Note: See TracChangeset for help on using the changeset viewer.