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 ArticleImageUploadCreatorAction.java
Date Fri, 30 May 2003 09:23:14 GMT
egli        2003/05/30 02:23:14

  Modified:    src/java/org/apache/lenya/cms/cocoon/acting
                        ArticleImageUploadCreatorAction.java
  Log:
  Replace deprecated usage of
  org.apache.cocoon.environment.Source by
  org.apache.excalibur.source.Source
  
  Revision  Changes    Path
  1.33      +20 -13    cocoon-lenya/src/java/org/apache/lenya/cms/cocoon/acting/ArticleImageUploadCreatorAction.java
  
  Index: ArticleImageUploadCreatorAction.java
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/java/org/apache/lenya/cms/cocoon/acting/ArticleImageUploadCreatorAction.java,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- ArticleImageUploadCreatorAction.java	2 May 2003 16:31:48 -0000	1.32
  +++ ArticleImageUploadCreatorAction.java	30 May 2003 09:23:14 -0000	1.33
  @@ -43,35 +43,42 @@
    */
   package org.apache.lenya.cms.cocoon.acting;
   
  +import java.io.BufferedOutputStream;
  +import java.io.File;
  +import java.io.FileOutputStream;
  +import java.io.IOException;
  +import java.io.InputStream;
  +import java.io.OutputStream;
  +import java.util.Collections;
  +import java.util.HashMap;
  +import java.util.Iterator;
  +import java.util.List;
  +import java.util.Map;
  +import java.util.Properties;
  +
   import org.apache.avalon.framework.configuration.Configuration;
   import org.apache.avalon.framework.configuration.ConfigurationException;
   import org.apache.avalon.framework.parameters.Parameters;
   import org.apache.avalon.framework.thread.ThreadSafe;
  -
   import org.apache.cocoon.acting.AbstractConfigurableAction;
   import org.apache.cocoon.environment.Context;
  +import org.apache.cocoon.environment.ObjectModelHelper;
   import org.apache.cocoon.environment.Redirector;
   import org.apache.cocoon.environment.Request;
  -import org.apache.cocoon.environment.Source;
   import org.apache.cocoon.environment.SourceResolver;
  +import org.apache.cocoon.servlet.multipart.MultipartHttpServletRequest;
  +import org.apache.cocoon.servlet.multipart.Part;
  +import org.apache.excalibur.source.Source;
   
   import org.dom4j.Document;
   import org.dom4j.DocumentException;
   import org.dom4j.DocumentHelper;
   import org.dom4j.Element;
   import org.dom4j.Node;
  -
   import org.dom4j.io.OutputFormat;
   import org.dom4j.io.SAXReader;
   import org.dom4j.io.XMLWriter;
   
  -import java.io.*;
  -
  -import java.util.*;
  -import org.apache.cocoon.environment.ObjectModelHelper;
  -import org.apache.cocoon.servlet.multipart.MultipartHttpServletRequest;
  -import org.apache.cocoon.servlet.multipart.Part;
  -
   
   /**
    * The class <code>ArticleImageUploadCreatorAction</code> implements an action
that allows for
  @@ -166,8 +173,8 @@
   
           // find the absolute path (so we know where to put images and
           // meta data)
  -        Source inputSource = resolver.resolve("");
  -        String sitemapPath = inputSource.getSystemId();
  +        Source inputSource = resolver.resolveURI("");
  +        String sitemapPath = inputSource.getURI();
           sitemapPath = sitemapPath.substring(5); // Remove "file:" protocol
           getLogger().debug("sitemapPath: " + sitemapPath);
   
  
  
  

---------------------------------------------------------------------
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