axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dee...@apache.org
Subject svn commit: r291917 - /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/repository/util/ArchiveReader.java
Date Tue, 27 Sep 2005 11:56:32 GMT
Author: deepal
Date: Tue Sep 27 04:56:27 2005
New Revision: 291917

URL: http://svn.apache.org/viewcvs?rev=291917&view=rev
Log:
fixing a bug in ArchiveReader.java , there was a bug when reading a module from resources.


Modified:
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/repository/util/ArchiveReader.java

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/repository/util/ArchiveReader.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/repository/util/ArchiveReader.java?rev=291917&r1=291916&r2=291917&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/repository/util/ArchiveReader.java
(original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/repository/util/ArchiveReader.java
Tue Sep 27 04:56:27 2005
@@ -344,22 +344,26 @@
                 String userHome = System.getProperty("user.home");
                 File userHomedir = new File(userHome);
                 File repository = new File(userHomedir, ".axis2home");
-                if (!repository.exists()) {
-                    repository.mkdirs();
-                    modules = new File(repository, "modules");
-                    modules.mkdirs();
-                } else {
-                    modules = new File(repository, "modules");
-                    if (!modules.exists()) {
-                        modules.mkdirs();
-                    }
-                }
+                modules = new File(repository, "modules");
+
+//
+//
+//                if (!repository.exists()) {
+//                    repository.mkdirs();
+//                    modules = new File(repository, "modules");
+//                    modules.mkdirs();
+//                } else {
+//                    modules = new File(repository, "modules");
+//                    if (!modules.exists()) {
+//                        modules.mkdirs();
+//                    }
+//                }
             } else {
                 modules = new File(axis2repository, "modules");
-                if (!modules.exists()) {
-                    modules = new File(axis2repository, "modules");
-                    modules.mkdirs();
-                }
+//                if (!modules.exists()) {
+//                    modules = new File(axis2repository, "modules");
+//                    modules.mkdirs();
+//                }
             }
             String modulearchiveName = moduleName + ".mar";
             modulearchiveFile = new File(modules, modulearchiveName);
@@ -379,6 +383,9 @@
             if (in == null) {
                 throw new DeploymentException(moduleName + " module is not found");
             } else {
+                if(!modules.exists()) {
+                    modules.mkdirs();
+                }
                 modulearchiveFile.createNewFile();
                 FileOutputStream dest = new
                         FileOutputStream(modulearchiveFile);



Mime
View raw message