Changeset 16130
- Timestamp:
- 2008-06-24T17:32:06+12:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gli/trunk/src/org/greenstone/gatherer/collection/Collection.java
r14974 r16130 62 62 /** A reference to the import ScriptOptions. */ 63 63 public ScriptOptions import_options; 64 /** A reference to the schedule ScriptOptions */ 65 public ScriptOptions schedule_options; 64 66 /** true if an error has occurred during construction */ 65 67 public boolean error = false; … … 86 88 /** The name of the import element. */ 87 89 static final private String IMPORT = "Import"; 88 /** The name of the import element. */ 90 /** The name of the schedule element. */ 91 static final private String SCHEDULE = "Schedule"; 92 /** The name of the export element. */ 89 93 static final private String EXPORT = "Export"; 90 94 /** The name of the imported attribute. */ … … 121 125 build_options = new ScriptOptions(getBuildValues(), "buildcol.pl"); 122 126 import_options = new ScriptOptions(getImportValues(), "import.pl"); 127 schedule_options = new ScriptOptions(getScheduleValues(), "schedule.pl"); 123 128 } 124 129 } … … 376 381 } 377 382 383 private Element getScheduleValues() { 384 Element schedule_values_element = null; 385 try { 386 Element document_element = document.getDocumentElement(); 387 Element build_config_element = (Element) XMLTools.getNodeFromNamed(document_element, BUILD_CONFIG); 388 schedule_values_element = (Element) XMLTools.getNodeFromNamed(build_config_element, SCHEDULE); 389 build_config_element = null; 390 document_element = null; 391 } 392 catch (Exception error) { 393 DebugStream.printStackTrace(error); 394 } 395 return schedule_values_element; 396 } 378 397 379 398 /** Count either documents or folders, depending on the state of the given boolean. */
Note:
See TracChangeset
for help on using the changeset viewer.