Changeset 5757 for trunk


Ignore:
Timestamp:
2003-10-29T12:21:05+13:00 (21 years ago)
Author:
jmt12
Message:

Made sure the assigned attribute was correct added to commands that were parsed from the collect.cfg file

File:
1 edited

Legend:

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

    r5655 r5757  
    11021102        String default_language_str = tokenizer.nextToken();
    11031103        command_element.setAttribute(NAME_ATTRIBUTE, default_language_str);
     1104        command_element.setAttribute(ASSIGNED_ATTRIBUTE, StaticStrings.TRUE_STR);
    11041105        default_language_str = null;
    11051106        }
     
    12161217    Element command_element = null;
    12171218    boolean use_metadata_files = false;
     1219    boolean show_progress = false;
    12181220    try {
    12191221        CommandTokenizer tokenizer = new CommandTokenizer(command_str);
     
    12371239            use_metadata_files = true;
    12381240            }
     1241            else if(name.substring(1).equals(SHOW_PROGRESS_ARGUMENT)) {
     1242               show_progress = true;
     1243            }
    12391244            option_element.setAttribute(NAME_ATTRIBUTE, name.substring(1));
    12401245            option_element.setAttribute(ASSIGNED_ATTRIBUTE, TRUE_STR);
     
    12691274            option_element = null;
    12701275            }
    1271             Element option_element = document.createElement(OPTION_ELEMENT);
    1272             option_element.setAttribute(NAME_ATTRIBUTE, SHOW_PROGRESS_ARGUMENT);
    1273             option_element.setAttribute(ASSIGNED_ATTRIBUTE, TRUE_STR);
    1274             option_element.setAttribute(CUSTOM_ATTRIBUTE, TRUE_STR);
    1275             command_element.appendChild(option_element);
    1276             option_element = null;
     1276            if(!show_progress) {
     1277               Element option_element = document.createElement(OPTION_ELEMENT);
     1278               option_element.setAttribute(NAME_ATTRIBUTE, SHOW_PROGRESS_ARGUMENT);
     1279               option_element.setAttribute(ASSIGNED_ATTRIBUTE, TRUE_STR);
     1280               option_element.setAttribute(CUSTOM_ATTRIBUTE, TRUE_STR);
     1281               command_element.appendChild(option_element);
     1282               option_element = null;
     1283            }
    12771284        }
    12781285        type = null;
Note: See TracChangeset for help on using the changeset viewer.