cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From un...@apache.org
Subject cvs commit: cocoon-2.1/src/blocks/webdav/java/org/apache/cocoon/components/source/impl WebDAVSource.java
Date Fri, 02 Jul 2004 12:32:37 GMT
unico       2004/07/02 05:32:37

  Modified:    src/blocks/webdav/java/org/apache/cocoon/components/source/impl
                        WebDAVSource.java
  Log:
  fix copyTo and moveTo
  
  Revision  Changes    Path
  1.32      +5 -1      cocoon-2.1/src/blocks/webdav/java/org/apache/cocoon/components/source/impl/WebDAVSource.java
  
  Index: WebDAVSource.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/webdav/java/org/apache/cocoon/components/source/impl/WebDAVSource.java,v
  retrieving revision 1.31
  retrieving revision 1.32
  diff -u -r1.31 -r1.32
  --- WebDAVSource.java	30 Jun 2004 08:39:04 -0000	1.31
  +++ WebDAVSource.java	2 Jul 2004 12:32:36 -0000	1.32
  @@ -954,7 +954,9 @@
        */
       public void moveTo(Source source) throws SourceException {
           if (source instanceof WebDAVSource) {
  +            initResource(WebdavResource.NOACTION, DepthSupport.DEPTH_0);
               WebDAVSource destination = (WebDAVSource)source;
  +            destination.initResource(WebdavResource.BASIC, DepthSupport.DEPTH_0);
               try {            
                    this.resource.moveMethod(destination.resource.getHttpURL().getPath());
               } catch (HttpException e) {
  @@ -976,7 +978,9 @@
        */
       public void copyTo(Source source) throws SourceException {
           if (source instanceof WebDAVSource) {
  +            initResource(WebdavResource.BASIC, DepthSupport.DEPTH_0);
               WebDAVSource destination = (WebDAVSource)source;
  +            destination.initResource(WebdavResource.NOACTION, DepthSupport.DEPTH_0);
               try {
                   this.resource.copyMethod(destination.resource.getHttpURL().getPath());
               } catch (HttpException e) {
  
  
  

Mime
View raw message