Changeset 12813 for trunk/gli/src/org/greenstone/gatherer
- Timestamp:
- 2006-09-21T16:11:36+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/cdm/CollectionConfiguration.java
r12811 r12813 472 472 String saved_collect_cfg_string = saved_collect_cfg_string_buffer.toString(); 473 473 if (collect_cfg_string.equals(saved_collect_cfg_string)) { 474 System.err.println("Collect.cfg file hasn't changed so no save necessary...");474 DebugStream.println("Collect.cfg file hasn't changed so no save necessary..."); 475 475 return; 476 476 } 477 477 478 System.err.println("Collect.cfg file has changed, saving now...");478 DebugStream.println("Collect.cfg file has changed, saving now..."); 479 479 480 480 // If we're using the Local Library we must release the collection before writing to the collect.cfg file … … 532 532 text.append(TAB_CHARACTER); 533 533 text.append(command_element.getAttribute(TYPE_ATTRIBUTE)); 534 text.append(SPACE_CHARACTER);535 534 NodeList option_elements = command_element.getElementsByTagName(OPTION_ELEMENT); 536 535 int option_elements_length = option_elements.getLength(); … … 538 537 Element option_element = (Element) option_elements.item(j); 539 538 if(option_element.getAttribute(ASSIGNED_ATTRIBUTE).equals(TRUE_STR)) { 539 text.append(SPACE_CHARACTER); 540 540 text.append(StaticStrings.MINUS_CHARACTER); 541 541 text.append(option_element.getAttribute(NAME_ATTRIBUTE)); … … 575 575 } 576 576 value_str = null; 577 if(j < option_elements_length - 1) {578 text.append(SPACE_CHARACTER);579 }580 577 } 581 578 option_element = null; … … 1624 1621 int option_elements_length = option_elements.getLength(); 1625 1622 if(option_elements_length > 0) { 1626 text.append(SPACE_CHARACTER);1627 1623 for(int j = 0; j < option_elements_length; j++) { 1628 1624 Element option_element = (Element) option_elements.item(j); 1629 1625 if(option_element.getAttribute(ASSIGNED_ATTRIBUTE).equals(TRUE_STR)) { 1626 text.append(SPACE_CHARACTER); 1630 1627 text.append(StaticStrings.MINUS_CHARACTER); 1631 1628 text.append(option_element.getAttribute(NAME_ATTRIBUTE)); … … 1646 1643 } 1647 1644 value_str = null; 1648 if(j < option_elements_length - 1) {1649 text.append(SPACE_CHARACTER);1650 }1651 1645 } 1652 1646 option_element = null;
Note:
See TracChangeset
for help on using the changeset viewer.