Changeset 26497


Ignore:
Timestamp:
2012-11-22T12:48:19+13:00 (11 years ago)
Author:
ak19
Message:

In previous commit, forgot to rename references to Library2 into LibraryCommandline. Previous commit message: More descriptive name for Library 2, as it can be run from the commandline, taking the CGI params in a Greenstone url as input

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/LibraryCommandline.java

    r26496 r26497  
    11/*
    2  *    Library2.java
     2 *    LibraryCommandline.java
    33 *    Copyright (C) 2002 New Zealand Digital Library, http://www.nzdl.org
    44 *
     
    4242 */
    4343
    44 final public class Library2
     44final public class LibraryCommandline
    4545{
    4646
     
    5252    protected DefaultReceptionist recept = null;
    5353
    54     public Library2()
     54    public LibraryCommandline()
    5555    {
    5656        this.converter = new XMLConverter();
     
    8585    /*
    8686     *  On Linux, run as:
    87      *  GS3> java -classpath "web/WEB-INF/lib/*":"lib/jni/*" org.greenstone.gsdl3.Library2 localsite default
     87     *  GS3> java -classpath "web/WEB-INF/lib/*":"lib/jni/*" org.greenstone.gsdl3.LibraryCommandline localsite default
    8888     *  Press enter to accept the default cgi-args to pass in.
    8989     *
     
    102102        if (args.length != 2)
    103103        {
    104             System.out.println("Usage: Library2 <site name> <interface name>");
     104            System.out.println("Usage: LibraryCommandline <site name> <interface name>");
    105105            System.exit(1);
    106106        }
     
    109109        GlobalProperties.loadGlobalProperties("");
    110110
    111         Library2 library = new Library2();
     111        LibraryCommandline library = new LibraryCommandline();
    112112        library.configure(args[0], args[1]);
    113113
     
    124124            catch (Exception e)
    125125            {
    126                 System.err.println("Library2 exception:" + e.getMessage());
     126                System.err.println("LibraryCommandline exception:" + e.getMessage());
    127127            }
    128128            if (query.startsWith("exit"))
Note: See TracChangeset for help on using the changeset viewer.