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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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)) {
Note: See TracChangeset for help on using the changeset viewer.