axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dee...@apache.org
Subject svn commit: r419192 - /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/ConfigurationContext.java
Date Wed, 05 Jul 2006 09:12:22 GMT
Author: deepal
Date: Wed Jul  5 02:12:21 2006
New Revision: 419192

URL: http://svn.apache.org/viewvc?rev=419192&view=rev
Log:
fixed http://issues.apache.org/jira/browse/AXIS2-799

Modified:
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/ConfigurationContext.java

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/ConfigurationContext.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/ConfigurationContext.java?rev=419192&r1=419191&r2=419192&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/ConfigurationContext.java
(original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/ConfigurationContext.java
Wed Jul  5 02:12:21 2006
@@ -34,11 +34,8 @@
 import org.apache.commons.logging.LogFactory;
 
 import java.io.File;
-import java.util.Date;
-import java.util.HashMap;
-import java.util.Hashtable;
-import java.util.Iterator;
-import java.util.Map;
+import java.net.URL;
+import java.util.*;
 
 /**
  * This contains all the configuration information for Axis2.
@@ -54,7 +51,6 @@
     private Hashtable serviceGroupContextMap = new Hashtable();
     private Hashtable applicationSessionServiceGroupContextTable = new Hashtable();
     private transient AxisConfiguration axisConfiguration;
-    private File rootDir;
     private transient ThreadFactory threadPool;
     //To keep TransportManager instance
     private ListenerManager listenerManager;
@@ -241,11 +237,12 @@
      * @param path
      */
     public File getRealPath(String path) {
-        if (rootDir == null) {
-            return new File(path);
-        } else {
-            return new File(rootDir, path);
+        URL repository = axisConfiguration.getRepository();
+        if (repository != null) {
+            File repo = new File(repository.getFile());
+            return new File(repo, path);
         }
+        return null;
     }
 
     public synchronized ServiceGroupContext getServiceGroupContext(String serviceGroupContextId,
@@ -309,13 +306,6 @@
      */
     public void setAxisConfiguration(AxisConfiguration configuration) {
         axisConfiguration = configuration;
-    }
-
-    /**
-     * @param file
-     */
-    public void setRootDir(File file) {
-        rootDir = file;
     }
 
     /**



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message