geronimo-xbean-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r652439 - in /geronimo/xbean/trunk/xbean-spring: pom.xml src/main/java/org/apache/xbean/spring/generator/XmlMetadataGenerator.java
Date Thu, 01 May 2008 06:40:08 GMT
Author: gnodet
Date: Wed Apr 30 23:40:08 2008
New Revision: 652439

URL: http://svn.apache.org/viewvc?rev=652439&view=rev
Log:
Fix spring.schemas generation so that the uri ends with .xsd, else spring does not recognize
it

Modified:
    geronimo/xbean/trunk/xbean-spring/pom.xml
    geronimo/xbean/trunk/xbean-spring/src/main/java/org/apache/xbean/spring/generator/XmlMetadataGenerator.java

Modified: geronimo/xbean/trunk/xbean-spring/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/xbean/trunk/xbean-spring/pom.xml?rev=652439&r1=652438&r2=652439&view=diff
==============================================================================
--- geronimo/xbean/trunk/xbean-spring/pom.xml (original)
+++ geronimo/xbean/trunk/xbean-spring/pom.xml Wed Apr 30 23:40:08 2008
@@ -37,8 +37,8 @@
 		<xbean.osgi.import.pkg>
 			com.thoughtworks.qdox*;resolution:=optional,
 			org.apache.tools.ant*;resolution:=optional,
-			org.springframework.core;resolution:=optional,
-			org.springframework.web;resolution:=optional,
+			org.springframework.core*;resolution:=optional,
+			org.springframework.web*;resolution:=optional,
 			*
 		</xbean.osgi.import.pkg>
 	</properties>

Modified: geronimo/xbean/trunk/xbean-spring/src/main/java/org/apache/xbean/spring/generator/XmlMetadataGenerator.java
URL: http://svn.apache.org/viewvc/geronimo/xbean/trunk/xbean-spring/src/main/java/org/apache/xbean/spring/generator/XmlMetadataGenerator.java?rev=652439&r1=652438&r2=652439&view=diff
==============================================================================
--- geronimo/xbean/trunk/xbean-spring/src/main/java/org/apache/xbean/spring/generator/XmlMetadataGenerator.java
(original)
+++ geronimo/xbean/trunk/xbean-spring/src/main/java/org/apache/xbean/spring/generator/XmlMetadataGenerator.java
Wed Apr 30 23:40:08 2008
@@ -126,7 +126,11 @@
             }
 
             // add property
-            properties.put(namespace,  cp);
+            String uri = namespace;
+            if (!uri.endsWith("/")) {
+                uri += "/";
+            }
+            properties.put(uri + cp,  cp);
 
             // write properties
             OutputStream fout = new FileOutputStream(file);



Mime
View raw message