Changeset 9055


Ignore:
Timestamp:
2005-02-16T11:58:56+13:00 (19 years ago)
Author:
mdewsnip
Message:

First stab at adding a -collectdir option to the GLI. This is designed for people running the GLI in a network environment -- rather than everyone requiring an installation of Greenstone and the GLI, it can be installed once and each user uses the -collectdir argument to specify their own, private collect directory. Previewing collections would likely require setting up symbolic links to the users collect directories.

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

Legend:

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

    r9039 r9055  
    8686        gatherer.feedback_dialog = dlg;
    8787    }
    88    
     88
     89    if (go.collect_directory_path != null) {
     90        // Use non-standard collect directory (for when running one GLI in a network environment)
     91        Gatherer.setCollectDirectoryPath(go.collect_directory_path);
     92    }
     93
    8994    // Splash screen.
    9095    Splash splash = new Splash();
  • trunk/gli/src/org/greenstone/gatherer/GetOpt.java

    r8629 r9055  
    3838    public boolean no_load = false;
    3939
     40    public String collect_directory_path = null;
    4041    public String extra = null;
    4142    public String filename = null;
     
    174175            servlet_path = argument_value;
    175176            }
     177            // Specify a non-standard collect directory to use (for running one GLI in a network environment)
     178            else if (argument_name.equals(StaticStrings.COLLECTDIR_ARGUMENT)) {
     179            collect_directory_path = argument_value;
     180            System.err.println("Non standard collect directory specified: " + collect_directory_path);
     181            }
    176182            // Specify a collection to load initially. Could be used for file associations.
    177183            else if(argument_name.equals(StaticStrings.LOAD_ARGUMENT)) {
  • trunk/gli/src/org/greenstone/gatherer/util/StaticStrings.java

    r8992 r9055  
    5858    static final public String COLLECT_CFG                                = "collect.cfg";
    5959    static final public String COLLECTCONFIGURATION_XML                   = "CollectionConfig.xml";
     60    static final public String COLLECTDIR_ARGUMENT                        = "-collectdir";
    6061    static final public String COLLECTION_ELEMENT                         = "Collection";
    6162    static final public String COLLECTION_STR                             = "Collection: ";
Note: See TracChangeset for help on using the changeset viewer.