Changeset 10049


Ignore:
Timestamp:
2005-06-13T11:18:53+12:00 (19 years ago)
Author:
chi
Message:

If the buildtype does not contain any value, it means that buildtype was not
selected. Thus, we don't want to write it into collect.cfg file.

File:
1 edited

Legend:

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

    r10006 r10049  
    498498                command = toString(command_element, false);
    499499                }
    500                 if(command != null && command.length() > 0) {
    501                 write(buffered_writer, command);
    502                 buffered_writer.newLine();
    503                 just_wrote_newline = false;
     500                if(command != null && command.length()> 0 ) {
     501                /* if command contains buildtype only, it means that the none of
     502                 * buildtype has been selected, so we don't want to write into
     503                 * collect.cfg file*/
     504                if (!command.matches("^buildtype\\s*")){
     505                    write(buffered_writer, command);
     506                    buffered_writer.newLine();
     507                    just_wrote_newline = false;
     508                }
    504509                }
    505510            }
Note: See TracChangeset for help on using the changeset viewer.