cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Washeim <esa...@canuck.com>
Subject patch for XSPProcessor to have hasChanged work
Date Wed, 12 Jul 2000 19:05:15 GMT
Ok, I humbly submit my first patch.

The filename as per:

    // Determine source document's absolute pathname
    String filename = Utils.getBasename(request, servletContext);

requires the check, at least with my install of Tomcat 3.1 . . .

Alex, if you'd like, I can send you a build. I've added, for the sake of
clarity, a hashChanged() method to XSPPage, too . . .

In any case, this compiles and now XSPPage caching works  . .

This is a patch to the 7/11/2000, 1.7.5-dev branch:
Index: ./processor/xsp/XSPProcessor.java
===================================================================
RCS file: 
/home/cvspublic/xml-cocoon/src/org/apache/cocoon/processor/xsp/XSPProcessor.
java,v
retrieving revision 1.22
diff -r1.22 XSPProcessor.java

<SNIP>
>     
>     // Determine source document's absolute pathname
613a619,625
>     File sourceFile = new File(filename);
>     try {
>       filename = sourceFile.getCanonicalPath();
>     } catch (IOException e) {
>       filename = sourceFile.getAbsolutePath();
>     }
>     
616c628,629
< 
<SNIP>



-- 
Mark (Poetaster) Washeim

'On the linen wrappings of certain mummified remains
found near the Etrurian coast are invaluable writings
that await translation.

Quem colorem habet sapientia?'

Evan S. Connell

 



Mime
View raw message