felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickh...@apache.org
Subject svn commit: r419046 - /incubator/felix/trunk/org.apache.felix.ipojo.plugin/src/main/java/org/apache/felix/ipojo/plugin/OsgiJarMojo.java
Date Tue, 04 Jul 2006 16:11:42 GMT
Author: rickhall
Date: Tue Jul  4 09:11:41 2006
New Revision: 419046

URL: http://svn.apache.org/viewvc?rev=419046&view=rev
Log:
Applied patch (FELIX-90) for support for spaces in inside attribute values.

Modified:
    incubator/felix/trunk/org.apache.felix.ipojo.plugin/src/main/java/org/apache/felix/ipojo/plugin/OsgiJarMojo.java

Modified: incubator/felix/trunk/org.apache.felix.ipojo.plugin/src/main/java/org/apache/felix/ipojo/plugin/OsgiJarMojo.java
URL: http://svn.apache.org/viewvc/incubator/felix/trunk/org.apache.felix.ipojo.plugin/src/main/java/org/apache/felix/ipojo/plugin/OsgiJarMojo.java?rev=419046&r1=419045&r2=419046&view=diff
==============================================================================
--- incubator/felix/trunk/org.apache.felix.ipojo.plugin/src/main/java/org/apache/felix/ipojo/plugin/OsgiJarMojo.java
(original)
+++ incubator/felix/trunk/org.apache.felix.ipojo.plugin/src/main/java/org/apache/felix/ipojo/plugin/OsgiJarMojo.java
Tue Jul  4 09:11:41 2006
@@ -985,10 +985,10 @@
 		
 		for(int i = 0; i < element.getAttributes().length; i++) {
 			if(element.getAttributes()[i].getNameSpace().equals("")) { 
-				result = result + "$" + element.getAttributes()[i].getName() + "="+element.getAttributes()[i].getValue()
+ " ";
+				result = result + "$" + element.getAttributes()[i].getName() + "=\""+element.getAttributes()[i].getValue()
+ "\" ";
 			}
 			else {
-				result = result + "$" + element.getAttributes()[i].getNameSpace()+ ":" + element.getAttributes()[i].getName()
+ "="+element.getAttributes()[i].getValue() + " ";
+				result = result + "$" + element.getAttributes()[i].getNameSpace()+ ":" + element.getAttributes()[i].getName()
+ "=\""+element.getAttributes()[i].getValue() + "\" ";
 			}
 		}
 		for(int i = 0; i < element.getElements().length; i++) {



Mime
View raw message