Changeset 26453

Show
Ignore:
Timestamp:
09.11.2012 17:42:34 (7 years ago)
Author:
ak19
Message:

Committing the changes necessary to get Library2.java working again: it takes library cgi args and produces a page.

Files:
1 modified

Legend:

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

    r25727 r26453  
    2121import org.greenstone.gsdl3.core.*; 
    2222import org.greenstone.gsdl3.util.*; 
     23import org.greenstone.util.GlobalProperties; 
    2324 
    2425import org.w3c.dom.Document; 
     
    6768        config_params.put(GSConstants.SITE_NAME, site_name); 
    6869        config_params.put(GSConstants.INTERFACE_NAME, interface_name); 
     70        config_params.put(GSConstants.ALLOW_CLIENT_SIDE_XSLT, false); 
     71 
    6972        // new message router - create it and pass a handle to recept. 
    7073        // the servlet wont use this directly 
     
    8083    } 
    8184 
     85    /* 
     86     *  On Linux, run as: 
     87     *  GS3> java -classpath "web/WEB-INF/lib/*":"lib/jni/*" org.greenstone.gsdl3.Library2 localsite default 
     88     *  Press enter to accept the default cgi-args to pass in. 
     89     *  
     90     *  For how to include all jars in a folder, see: 
     91     *  http://stackoverflow.com/questions/6780678/run-class-in-jar-file 
     92     */ 
    8293    public static void main(String args[]) 
    8394    { 
     
    8899            System.exit(1); 
    89100        } 
     101 
     102        // force GlobalProperties to default GSDL3HOME to GSDL3SRCHOME/web if not already set 
     103        GlobalProperties.loadGlobalProperties(""); 
    90104 
    91105        Library2 library = new Library2();