Changeset 12552


Ignore:
Timestamp:
2006-08-25T10:34:20+12:00 (18 years ago)
Author:
shaoqun
Message:

added new argument for GEMS

File:
1 edited

Legend:

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

    r10540 r12552  
    3838    public boolean no_load = false;
    3939    public boolean use_remote_greenstone = false;
     40    public boolean new_set = false;
    4041
    4142    public String collect_directory_path = null;
     
    5152    public String servlet_path = null;
    5253    public String wget_path = null;
    53 
     54    public String metadata_path = null;
    5455
    5556    public GetOpt(String[] args)
     
    140141            use_remote_greenstone = true;
    141142            }
     143            else if (argument_name.equals(StaticStrings.NEW_METADATASET)) {
     144            new_set = true;
     145            }
    142146        }
    143147        // 3b. Now for those that do
     
    231235            }
    232236            }
     237                    else if(argument_name.equals(StaticStrings.METADATA_PATH)){
     238            if (argument_value != null && !argument_value.equals("")) {
     239                File metadata_file = new File(argument_value);
     240                if (metadata_file.exists()) {
     241                metadata_path = argument_value;
     242                }
     243            }
     244            }
     245                 
    233246        }
    234247        }
Note: See TracChangeset for help on using the changeset viewer.