tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billbar...@apache.org
Subject cvs commit: jakarta-tomcat-catalina/webapps/manager/WEB-INF/classes/org/apache/catalina/manager HTMLManagerServlet.java
Date Wed, 04 Jun 2003 07:58:59 GMT
billbarker    2003/06/04 00:58:59

  Modified:    webapps/manager/WEB-INF/classes/org/apache/catalina/manager
                        HTMLManagerServlet.java
  Log:
  Update to use the commons-fileupload-rc1 interface.
  
  Submitted by: Martin Cooper martinc@apache.org
  
  Revision  Changes    Path
  1.2       +7 -7      jakarta-tomcat-catalina/webapps/manager/WEB-INF/classes/org/apache/catalina/manager/HTMLManagerServlet.java
  
  Index: HTMLManagerServlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/manager/WEB-INF/classes/org/apache/catalina/manager/HTMLManagerServlet.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- HTMLManagerServlet.java	26 Mar 2003 09:49:18 -0000	1.1
  +++ HTMLManagerServlet.java	4 Jun 2003 07:58:58 -0000	1.2
  @@ -84,7 +84,7 @@
   import org.apache.catalina.Host;
   import org.apache.catalina.util.ServerInfo;
   import org.apache.commons.fileupload.FileItem;
  -import org.apache.commons.fileupload.FileUpload;
  +import org.apache.commons.fileupload.DiskFileUpload;
   import org.apache.commons.fileupload.FileUploadException;
   
   /**
  @@ -195,7 +195,7 @@
           String message = "";
   
           // Create a new file upload handler
  -        FileUpload upload = new FileUpload();
  +        DiskFileUpload upload = new DiskFileUpload();
   
           // Get the tempdir
           File tempdir = (File) getServletContext().getAttribute
  @@ -259,7 +259,7 @@
                           ("htmlManagerServlet.installUploadWarExists",war);
                       break;
                   }
  -                warUpload.write(file.getCanonicalPath());
  +                warUpload.write(file);
                   try {
                       URL url = file.toURL();
                       war = url.toString();
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message