Changeset 10293


Ignore:
Timestamp:
2005-07-25T16:12:09+12:00 (19 years ago)
Author:
kjdon
Message:

gsdl3_home now comes from GlobalProperties, not config_params

Location:
trunk/gsdl3/src/java/org/greenstone/gsdl3/core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/core/Receptionist.java

    r9874 r10293  
    7676
    7777    // find the config file containing a list of actions
    78     File interface_config_file = new File(GSFile.interfaceConfigFile(GSFile.interfaceHome((String)this.config_params.get(GSConstants.GSDL3_HOME), (String)this.config_params.get(GSConstants.INTERFACE_NAME))));
     78    File interface_config_file = new File(GSFile.interfaceConfigFile(GSFile.interfaceHome(GlobalProperties.getGSDL3Home(), (String)this.config_params.get(GSConstants.INTERFACE_NAME))));
    7979    if (!interface_config_file.exists()) {
    8080        System.err.println("Receptionist: interface config file: "+interface_config_file.getPath()+" not found!");
     
    224224    while (!base_interface.equals("")) {
    225225        // find the base interface config file
    226         File base_interface_config_file = new File(GSFile.interfaceConfigFile(GSFile.interfaceHome((String)this.config_params.get(GSConstants.GSDL3_HOME), base_interface)));
     226        File base_interface_config_file = new File(GSFile.interfaceConfigFile(GSFile.interfaceHome(GlobalProperties.getGSDL3Home(), base_interface)));
    227227        if (!base_interface_config_file.exists()) {
    228228        System.err.println("Receptionist: base interface config file: "+base_interface_config_file.getPath()+" not found!");
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/core/TransformingReceptionist.java

    r9874 r10293  
    4747   
    4848    // find the config file containing a list of actions
    49     File interface_config_file = new File(GSFile.interfaceConfigFile(GSFile.interfaceHome((String)this.config_params.get(GSConstants.GSDL3_HOME), (String)this.config_params.get(GSConstants.INTERFACE_NAME))));
     49    File interface_config_file = new File(GSFile.interfaceConfigFile(GSFile.interfaceHome(GlobalProperties.getGSDL3Home(), (String)this.config_params.get(GSConstants.INTERFACE_NAME))));
    5050    if (!interface_config_file.exists()) {
    5151        System.err.println("TransformingReceptionist: interface config file: "+interface_config_file.getPath()+" not found!");
     
    174174        ///ystem.err.println("format elem="+this.converter.getPrettyString(format_elem));
    175175        // need to transform the format info
    176         String stylesheet_file = GSFile.stylesheetFile((String)this.config_params.get(GSConstants.GSDL3_HOME), (String)this.config_params.get(GSConstants.SITE_NAME), collection, (String)this.config_params.get(GSConstants.INTERFACE_NAME), base_interfaces,   "config_format.xsl");
     176        String stylesheet_file = GSFile.stylesheetFile(GlobalProperties.getGSDL3Home(), (String)this.config_params.get(GSConstants.SITE_NAME), collection, (String)this.config_params.get(GSConstants.INTERFACE_NAME), base_interfaces,   "config_format.xsl");
    177177        Document stylesheet_doc = this.converter.getDOM(new File(stylesheet_file));
    178178        if (stylesheet_doc != null) {
     
    193193   
    194194    // there is a thing called a URIResolver which you can set for a transformer or transformer factory. may be able to use this instead of this absoluteIncludepaths hack
    195     GSXSLT.absoluteIncludePaths(style_doc, (String)this.config_params.get(GSConstants.GSDL3_HOME), (String)this.config_params.get(GSConstants.SITE_NAME), collection, (String)this.config_params.get(GSConstants.INTERFACE_NAME), base_interfaces);
     195    GSXSLT.absoluteIncludePaths(style_doc, GlobalProperties.getGSDL3Home(), (String)this.config_params.get(GSConstants.SITE_NAME), collection, (String)this.config_params.get(GSConstants.INTERFACE_NAME), base_interfaces);
    196196    // put the page into a document - this is necessary for xslt to get the paths right if you have paths relative to the document root eg /page.
    197197    Document doc = this.converter.newDOM();
     
    213213    }
    214214    // now find the absolute path
    215     String stylesheet = GSFile.stylesheetFile((String)this.config_params.get(GSConstants.GSDL3_HOME), (String)this.config_params.get(GSConstants.SITE_NAME), collection, (String)this.config_params.get(GSConstants.INTERFACE_NAME), base_interfaces, name);
     215    String stylesheet = GSFile.stylesheetFile(GlobalProperties.getGSDL3Home(), (String)this.config_params.get(GSConstants.SITE_NAME), collection, (String)this.config_params.get(GSConstants.INTERFACE_NAME), base_interfaces, name);
    216216    if (stylesheet==null) {
    217217        System.out.println("TransformingReceptionist: cant find stylesheet for "+name);
Note: See TracChangeset for help on using the changeset viewer.