[jboss-dev-forums] [JBoss OSGi Development] - Fixed version parsing and added initial split package suppor

thomas.diesler@jboss.com do-not-reply at jboss.com
Tue Aug 25 16:09:15 EDT 2009


  |       Version version = null;
  |       if (versionString != null)
  |       {
  |          // Handle version strings with quotes 
  |          if (versionString.startsWith("\"") && versionString.endsWith("\""))
  |             versionString = versionString.substring(1, versionString.length() - 1);
  |          
  |          version = Version.parseVersion(versionString);
  |       }
  | 


  |       OSGiPackageCapability capability = new OSGiPackageCapability(name, version, metadata, exportPackage);
  |       capability.setSplitPackagePolicy(SplitPackagePolicy.First);
  | 

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4251639#4251639

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4251639



More information about the jboss-dev-forums mailing list