lenya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e...@apache.org
Subject cvs commit: cocoon-lenya/src/java/org/apache/lenya/cms/cocoon/acting DeleteDocumentAction.java
Date Tue, 27 May 2003 14:59:54 GMT
egli        2003/05/27 07:59:54

  Modified:    src/java/org/apache/lenya/cms/cocoon/acting
                        DeleteDocumentAction.java
  Log:
  Replace deprecated usage of
  org.apache.cocoon.environment.Source
  
  Revision  Changes    Path
  1.11      +4 -3      cocoon-lenya/src/java/org/apache/lenya/cms/cocoon/acting/DeleteDocumentAction.java
  
  Index: DeleteDocumentAction.java
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/java/org/apache/lenya/cms/cocoon/acting/DeleteDocumentAction.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- DeleteDocumentAction.java	24 Apr 2003 13:52:38 -0000	1.10
  +++ DeleteDocumentAction.java	27 May 2003 14:59:54 -0000	1.11
  @@ -60,6 +60,7 @@
   
   import java.util.Map;
   import org.apache.cocoon.environment.ObjectModelHelper;
  +import org.apache.excalibur.source.Source;
   
   
   /**
  @@ -103,8 +104,8 @@
        */
       public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String
src,
           Parameters parameters) throws Exception {
  -        org.apache.cocoon.environment.Source input_source = resolver.resolve("");
  -        String sitemapParentPath = input_source.getSystemId();
  +        Source input_source = resolver.resolveURI("");
  +        String sitemapParentPath = input_source.getURI();
           sitemapParentPath = sitemapParentPath.substring(5); // Remove "file:" protocoll
           getLogger().debug("PARENT PATH OF SITEMAP: " + sitemapParentPath);
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org


Mime
View raw message