Ignore:
Timestamp:
2015-02-11T21:09:47+13:00 (9 years ago)
Author:
ak19
Message:

The second and final part of the commits to getting GLI running again and parsing web.xml, after the changes to commit r29687, where web.xml was split into two and included server.xml. In this commit: 1. GLI uses an EntityResolver to resolve entities in web.xml that are defined in the included servlets.xml file. In order to keep XMLTools.java tidy and hopefully make the GLI entity resolver more reusable, the new GLIEntityResolver.java class checks default search paths first when asked to resolve entities. web/WEB-INF, where web.xml and servlets.xml live, has been added to the default search paths, as also the gli user dir where the web.xml and server.xml will be in a client-gli situation. 2. Small tidy up to Greenstone runtime's GSEntityResolver. 3. Remote Greenstone gliserver.pl needs to also transfer the new server.xml file when zipping up web.xml. 4. Minor touchups to the new README on apache.jar.

File:
1 edited

Legend:

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

    r29728 r29730  
    6161        return new InputSource(system_id);
    6262        } else {
    63         temp_id = temp_id.substring(temp_id.lastIndexOf("/")+1);
     63        temp_id = f.getName(); //temp_id = temp_id.substring(temp_id.lastIndexOf("/")+1);
    6464        }
    65     } else {
     65    } else { // not a file
    6666        if (temp_id.indexOf("/")!= -1) {
    6767        temp_id = temp_id.substring(temp_id.lastIndexOf("/")+1);
Note: See TracChangeset for help on using the changeset viewer.