ace-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r1483948 - /ace/trunk/org.apache.ace.obr/src/org/apache/ace/obr/storage/file/BundleFileStore.java
Date Fri, 17 May 2013 18:48:26 GMT
Author: bramk
Date: Fri May 17 18:48:26 2013
New Revision: 1483948

URL: http://svn.apache.org/r1483948
Log:
ACE-350 Strip BSN parameters before using BSN as path/filename

Modified:
    ace/trunk/org.apache.ace.obr/src/org/apache/ace/obr/storage/file/BundleFileStore.java

Modified: ace/trunk/org.apache.ace.obr/src/org/apache/ace/obr/storage/file/BundleFileStore.java
URL: http://svn.apache.org/viewvc/ace/trunk/org.apache.ace.obr/src/org/apache/ace/obr/storage/file/BundleFileStore.java?rev=1483948&r1=1483947&r2=1483948&view=diff
==============================================================================
--- ace/trunk/org.apache.ace.obr/src/org/apache/ace/obr/storage/file/BundleFileStore.java
(original)
+++ ace/trunk/org.apache.ace.obr/src/org/apache/ace/obr/storage/file/BundleFileStore.java
Fri May 17 18:48:26 2013
@@ -259,6 +259,10 @@ public class BundleFileStore implements 
                     String bundleSymbolicName = attributes.getValue(Constants.BUNDLE_SYMBOLICNAME);
                     String bundleVersion = attributes.getValue(Constants.BUNDLE_VERSION);
                     if (bundleSymbolicName != null) {
+                    	// ACE-350 strip BSN parameters 
+                    	if(bundleSymbolicName.indexOf(";") > 0){
+                    		bundleSymbolicName = bundleSymbolicName.substring(0, bundleSymbolicName.indexOf(";"));
+                    	}
                         if (bundleVersion == null) {
                             bundleVersion = "0.0.0";
                         }



Mime
View raw message