remm        01/05/08 15:12:55

  Modified:    src/webdav/client/src/org/apache/webdav/cmd Slide.java
  Log:
  - Add some aliases for the commands.
    Patch submitted by Dirk Verbeeck <dirk.verbeeck at the-ecorp.com>
  
  Revision  Changes    Path
  1.26      +13 -7     
jakarta-slide/src/webdav/client/src/org/apache/webdav/cmd/Slide.java
  
  Index: Slide.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/cmd/Slide.java,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- Slide.java        2001/05/01 21:29:13     1.25
  +++ Slide.java        2001/05/08 22:12:51     1.26
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/cmd/Slide.java,v 1.25 
2001/05/01 21:29:13 remm Exp $
  - * $Revision: 1.25 $
  - * $Date: 2001/05/01 21:29:13 $
  + * $Header: 
/home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/cmd/Slide.java,v 1.26 
2001/05/08 22:12:51 remm Exp $
  + * $Revision: 1.26 $
  + * $Date: 2001/05/08 22:12:51 $
    *
    * ====================================================================
    *
  @@ -290,7 +290,8 @@
                       params.push(st.nextToken());
                   }
   
  -                if (todo.equalsIgnoreCase("open")) {
  +                if (todo.equalsIgnoreCase("open") ||
  +                    todo.equalsIgnoreCase("connect")) {
                       String inputUrl = null;
                       switch (params.size()) {
                       case 0:
  @@ -383,7 +384,8 @@
                       updatePrompt(getPath());
                   } else
                   if (todo.equalsIgnoreCase("exit") ||
  -                    todo.equalsIgnoreCase("quit")) {
  +                    todo.equalsIgnoreCase("quit") ||
  +                    todo.equalsIgnoreCase("bye")) {
                       break;
                   } else
                   if (todo.equalsIgnoreCase("help") ||
  @@ -814,7 +816,8 @@
                           } // end of switch
                       }
                   } else
  -                if (todo.equalsIgnoreCase("propget")) {
  +                if (todo.equalsIgnoreCase("propget") ||
  +                    todo.equalsIgnoreCase("propfind")) {
                       // FIXME: some work is still needed.
                       int count = params.size();
                       if (count <= 1)
  @@ -849,7 +852,8 @@
                               e.getMessage());
                       }
                   } else
  -                if (todo.equalsIgnoreCase("propput")) {
  +                if (todo.equalsIgnoreCase("propput") ||
  +                    todo.equalsIgnoreCase("proppatch")) {
                       if (params.size() == 3) {
                           String propertyValue = (String) params.pop();
                           String propertyName = (String) params.pop();
  @@ -1116,6 +1120,8 @@
                               }
                           }
                        }
  +                } else {
  +                    System.out.println("Invalid Command.");
                   }
               } while (true);
   
  
  
  

Reply via email to