Author: indika
Date: Tue Jun 24 01:43:52 2008
New Revision: 18594
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=18594

Log:
changes folder and file content type to a vliad one

Modified:
   
trunk/esb/java/modules/core/src/main/java/org/wso2/esb/ServiceBusConstants.java
   
trunk/esb/java/modules/core/src/main/java/org/wso2/esb/services/RegistryAdmin.java
   trunk/esb/java/pom.xml

Modified: 
trunk/esb/java/modules/core/src/main/java/org/wso2/esb/ServiceBusConstants.java
URL: 
http://wso2.org/svn/browse/wso2/trunk/esb/java/modules/core/src/main/java/org/wso2/esb/ServiceBusConstants.java?rev=18594&r1=18593&r2=18594&view=diff
==============================================================================
--- 
trunk/esb/java/modules/core/src/main/java/org/wso2/esb/ServiceBusConstants.java 
    (original)
+++ 
trunk/esb/java/modules/core/src/main/java/org/wso2/esb/ServiceBusConstants.java 
    Tue Jun 24 01:43:52 2008
@@ -16,6 +16,8 @@
 
 package org.wso2.esb;
 
+import javax.mail.internet.ContentType;
+import javax.mail.internet.ParseException;
 import java.net.URI;
 import java.io.File;
 
@@ -50,12 +52,11 @@
     public static final String LOCAL_REGISTRY_ROOT = "registry/";
     public static final String REGISTRY_FILE = "file";
     public static final String REGISTRY_FOLDER = "folder";
-    public static final URI folder =
-            URI.create("http://wso2.org/projects/esb/registry/types/folder";);
+    public static final String folder =
+            "esb.registry.types/folder";
     // use if the exact file type is not known
-    public static final URI file =
-            URI.create("http://wso2.org/projects/esb/registry/types/file";);
-
+    public static final String file =
+            "esb.registry.types/file";
 
     public static final String WSO2ESB_HB_CONFIG_KEY = 
"wso2esb_hb_configuration_key";
 

Modified: 
trunk/esb/java/modules/core/src/main/java/org/wso2/esb/services/RegistryAdmin.java
URL: 
http://wso2.org/svn/browse/wso2/trunk/esb/java/modules/core/src/main/java/org/wso2/esb/services/RegistryAdmin.java?rev=18594&r1=18593&r2=18594&view=diff
==============================================================================
--- 
trunk/esb/java/modules/core/src/main/java/org/wso2/esb/services/RegistryAdmin.java
  (original)
+++ 
trunk/esb/java/modules/core/src/main/java/org/wso2/esb/services/RegistryAdmin.java
  Tue Jun 24 01:43:52 2008
@@ -123,7 +123,8 @@
                     entryElement.addChild(keyElement);
 
                     OMElement typeElement = fac.createOMElement("type", null);
-                    if (entries[i].getType() != null && entries[i].getType() 
== ServiceBusConstants.folder) {
+                    if (entries[i].getType() != null
+                            && 
ServiceBusConstants.folder.equals(entries[i].getType())) {
                         typeElement.setText("folder");
                     } else {
                         typeElement.setText("file");

Modified: trunk/esb/java/pom.xml
URL: 
http://wso2.org/svn/browse/wso2/trunk/esb/java/pom.xml?rev=18594&r1=18593&r2=18594&view=diff
==============================================================================
--- trunk/esb/java/pom.xml      (original)
+++ trunk/esb/java/pom.xml      Tue Jun 24 01:43:52 2008
@@ -877,8 +877,8 @@
         <smack.version>2.2.1</smack.version>
 
         <!-- Axis2 1.2 and its dependencies -->
-        <axis2.version>1.4</axis2.version>
-        <axiom.version>1.2.7</axiom.version>
+        <axis2.version>SNAPSHOT</axis2.version>
+        <axiom.version>SNAPSHOT</axiom.version>
         <xml_schema.version>1.4.2</xml_schema.version>
         <wsdl4j.version>1.6.2</wsdl4j.version>
         <commons.logging.version>1.1</commons.logging.version>

_______________________________________________
Esb-java-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev

Reply via email to