incubator-aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n..@apache.org
Subject svn commit: r917043 - /incubator/aries/trunk/application/application-obr-resolver/src/main/java/org/apache/aries/application/resolver/obr/generator/RepositoryDescriptorGenerator.java
Date Sat, 27 Feb 2010 20:59:11 GMT
Author: not
Date: Sat Feb 27 20:59:11 2010
New Revision: 917043

URL: http://svn.apache.org/viewvc?rev=917043&view=rev
Log:
ARIES-174 Have the OBR generator correctly generate the package capability version to be "0.0.0",
rather than "" when not specified.

Modified:
    incubator/aries/trunk/application/application-obr-resolver/src/main/java/org/apache/aries/application/resolver/obr/generator/RepositoryDescriptorGenerator.java

Modified: incubator/aries/trunk/application/application-obr-resolver/src/main/java/org/apache/aries/application/resolver/obr/generator/RepositoryDescriptorGenerator.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/application/application-obr-resolver/src/main/java/org/apache/aries/application/resolver/obr/generator/RepositoryDescriptorGenerator.java?rev=917043&r1=917042&r2=917043&view=diff
==============================================================================
--- incubator/aries/trunk/application/application-obr-resolver/src/main/java/org/apache/aries/application/resolver/obr/generator/RepositoryDescriptorGenerator.java
(original)
+++ incubator/aries/trunk/application/application-obr-resolver/src/main/java/org/apache/aries/application/resolver/obr/generator/RepositoryDescriptorGenerator.java
Sat Feb 27 20:59:11 2010
@@ -108,7 +108,7 @@
     resource.appendChild(capability);
     
     addProperty(doc, capability, "package", p.getContentName(), null);
-    addProperty(doc, capability, Constants.VERSION_ATTRIBUTE, p.getAttribute("version"),
"version");
+    addProperty(doc, capability, Constants.VERSION_ATTRIBUTE, p.getVersion().toString(),
"version");
     addProperty(doc, capability, Constants.BUNDLE_SYMBOLICNAME_ATTRIBUTE, info.getSymbolicName(),
null);
     addProperty(doc, capability, Constants.BUNDLE_VERSION_ATTRIBUTE, info.getVersion().toString(),
"version");
     



Mime
View raw message