You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by aj...@apache.org on 2005/02/17 05:29:51 UTC

svn commit: r154123 - webservices/axis/trunk/java/dev/scratch/prototype2/src/html/upload.jsp

Author: ajith
Date: Wed Feb 16 20:29:51 2005
New Revision: 154123

URL: http://svn.apache.org/viewcvs?view=rev&rev=154123
Log:
Changed the init method to create a new services directory to if there is nothing at the start

Modified:
    webservices/axis/trunk/java/dev/scratch/prototype2/src/html/upload.jsp

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/html/upload.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/html/upload.jsp?view=diff&r1=154122&r2=154123
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/html/upload.jsp (original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/html/upload.jsp Wed Feb 16 20:29:51 2005
@@ -29,8 +29,13 @@
 <%!
     public void jspInit(){
         ServletContext context = this.getServletConfig().getServletContext();
-        String repoDir = context.getRealPath("/WEB-INF"+ DeploymentConstants.SERVICE_PATH);
-        deploymentDirectory = new File(repoDir);
+        File repoDir = new File(context.getRealPath("/WEB-INF"));
+        File serviceDir = new File(repoDir,DeploymentConstants.SERVICE_PATH);
+
+        if (!serviceDir.exists()) {
+            serviceDir.mkdir();
+        }
+        deploymentDirectory = serviceDir;
     }
 
     protected static final String SUBMIT_NAME = "upload";