Changeset 13014


Ignore:
Timestamp:
2006-10-05T17:02:46+13:00 (18 years ago)
Author:
mdewsnip
Message:

Added a "-gsdlos" argument for telling the GLI what GSDLOS is.

Location:
trunk/gli/src/org/greenstone/gatherer
Files:
3 edited

Legend:

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

    r12646 r13014  
    8181    static private String gli_user_directory_path = null;
    8282
     83    static public String client_operating_system = null;
     84
    8385    /** All of the external applications that must exit before we close the Gatherer. */
    8486    static private Vector apps = new Vector();
     
    137139
    138140    GetOpt go = new GetOpt(args);
     141
     142    // Remember the GSDLOS value
     143    client_operating_system = go.client_operating_system;
    139144
    140145    // If feedback is enabled, set up the recorder dialog
  • trunk/gli/src/org/greenstone/gatherer/GetOpt.java

    r12552 r13014  
    4040    public boolean new_set = false;
    4141
     42    public String client_operating_system = null;
    4243    public String collect_directory_path = null;
    4344    public String filename = null;
     
    174175            }
    175176            }
     177            // Client operating system
     178            else if (argument_name.equals(StaticStrings.GSDLOS_ARGUMENT)) {
     179            client_operating_system = argument_value;
     180            }
    176181           
    177182            else if (argument_name.equals(StaticStrings.SITE_ARGUMENT)) {
  • trunk/gli/src/org/greenstone/gatherer/util/StaticStrings.java

    r12840 r13014  
    106106    static final public String GSDL3_ARGUMENT = "-gsdl3";
    107107    static final public String GSDL3_SRC_ARGUMENT = "-gsdl3src";
     108    static final public String GSDLOS_ARGUMENT = "-gsdlos";
    108109    static final public String HFILE_ARGUMENT = "-hfile";
    109110    static final public String HIERARCHY_CLASSIFIER = "Hierarchy";
Note: See TracChangeset for help on using the changeset viewer.