Author: ruwan
Date: Fri Mar  5 17:59:06 2010
New Revision: 919522

URL: http://svn.apache.org/viewvc?rev=919522&view=rev
Log:
Fixing an issue in the serialization

Modified:
    
synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/MultiXMLConfigurationSerializer.java

Modified: 
synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/MultiXMLConfigurationSerializer.java
URL: 
http://svn.apache.org/viewvc/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/MultiXMLConfigurationSerializer.java?rev=919522&r1=919521&r2=919522&view=diff
==============================================================================
--- 
synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/MultiXMLConfigurationSerializer.java
 (original)
+++ 
synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/MultiXMLConfigurationSerializer.java
 Fri Mar  5 17:59:06 2010
@@ -128,48 +128,48 @@
         for (SequenceMediator seq : synCfg.getDefinedSequences().values()) {
             if (seq.getFileName() != null) {
                 deploymentStore.addBackedUpArtifact((new File(rootDirectory,
-                        
MultiXMLConfigurationBuilder.SEQUENCES_DIR)).getCanonicalPath()
-                        + seq.getFileName());
+                        
MultiXMLConfigurationBuilder.SEQUENCES_DIR)).getAbsolutePath() 
+                        + File.separator + seq.getFileName());
             }
         }
 
         for (Endpoint ep : synCfg.getDefinedEndpoints().values()) {
             if (ep.getFileName() != null) {
                 deploymentStore.addBackedUpArtifact((new File(rootDirectory,
-                        
MultiXMLConfigurationBuilder.ENDPOINTS_DIR)).getCanonicalPath()
-                        + ep.getFileName());
+                        
MultiXMLConfigurationBuilder.ENDPOINTS_DIR)).getAbsolutePath()
+                        + File.separator + ep.getFileName());
             }
         }
 
         for (ProxyService proxy : synCfg.getProxyServices()) {
             if (proxy.getFileName() != null) {
                 deploymentStore.addBackedUpArtifact((new File(rootDirectory,
-                        
MultiXMLConfigurationBuilder.PROXY_SERVICES_DIR)).getCanonicalPath()
-                        + proxy.getFileName());
+                        
MultiXMLConfigurationBuilder.PROXY_SERVICES_DIR)).getAbsolutePath()
+                        + File.separator + proxy.getFileName());
             }
         }
 
         for (Entry e : synCfg.getDefinedEntries().values()) {
             if (e.getFileName() != null) {
                 deploymentStore.addBackedUpArtifact((new File(rootDirectory,
-                        
MultiXMLConfigurationBuilder.LOCAL_ENTRY_DIR)).getCanonicalPath()
-                        + e.getFileName());
+                        
MultiXMLConfigurationBuilder.LOCAL_ENTRY_DIR)).getAbsolutePath()
+                        + File.separator + e.getFileName());
             }
         }
 
         for (SynapseEventSource es : synCfg.getEventSources()) {
             if (es.getFileName() != null) {
                 deploymentStore.addBackedUpArtifact((new File(rootDirectory,
-                        
MultiXMLConfigurationBuilder.EVENTS_DIR)).getCanonicalPath()
-                        + es.getFileName());
+                        
MultiXMLConfigurationBuilder.EVENTS_DIR)).getAbsolutePath()
+                        + File.separator + es.getFileName());
             }
         }
 
         for (Startup s : synCfg.getStartups()) {
             if (s.getFileName() != null) {
                 deploymentStore.addBackedUpArtifact((new File(rootDirectory,
-                        
MultiXMLConfigurationBuilder.TASKS_DIR)).getCanonicalPath()
-                        + s.getFileName());
+                        
MultiXMLConfigurationBuilder.TASKS_DIR)).getAbsolutePath()
+                        + File.separator + s.getFileName());
             }
         }
     }


Reply via email to