You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by ff...@apache.org on 2008/03/20 14:25:47 UTC
svn commit: r639285 -
/servicemix/smx3/trunk/tooling/jbi-maven-plugin/src/main/java/org/apache/servicemix/maven/plugin/jbi/AbstractJbiMojo.java
Author: ffang
Date: Thu Mar 20 06:25:46 2008
New Revision: 639285
URL: http://svn.apache.org/viewvc?rev=639285&view=rev
Log:
fix checkstyle/pmd error
Modified:
servicemix/smx3/trunk/tooling/jbi-maven-plugin/src/main/java/org/apache/servicemix/maven/plugin/jbi/AbstractJbiMojo.java
Modified: servicemix/smx3/trunk/tooling/jbi-maven-plugin/src/main/java/org/apache/servicemix/maven/plugin/jbi/AbstractJbiMojo.java
URL: http://svn.apache.org/viewvc/servicemix/smx3/trunk/tooling/jbi-maven-plugin/src/main/java/org/apache/servicemix/maven/plugin/jbi/AbstractJbiMojo.java?rev=639285&r1=639284&r2=639285&view=diff
==============================================================================
--- servicemix/smx3/trunk/tooling/jbi-maven-plugin/src/main/java/org/apache/servicemix/maven/plugin/jbi/AbstractJbiMojo.java (original)
+++ servicemix/smx3/trunk/tooling/jbi-maven-plugin/src/main/java/org/apache/servicemix/maven/plugin/jbi/AbstractJbiMojo.java Thu Mar 20 06:25:46 2008
@@ -311,11 +311,12 @@
Manifest manifest = new Manifest();
//manifest.getMainSection().addConfiguredAttribute(new Manifest.Attribute("Bundle-Name", project.getName()));
//manifest.getMainSection().addConfiguredAttribute(new Manifest.Attribute("Bundle-SymbolicName", project.getArtifactId()));
- //manifest.getMainSection().addConfiguredAttribute(new Manifest.Attribute("Bundle-Version", fixBundleVersion(project.getVersion())));
+ //manifest.getMainSection().addConfiguredAttribute(new Manifest.Attribute(
+ //"Bundle-Version", fixBundleVersion(project.getVersion())));
return manifest;
}
- private static String fixBundleVersion(String version) {
+ public static String fixBundleVersion(String version) {
// Maven uses a '-' to separate the version qualifier, while
// OSGi uses a '.', so we need to convert the first '-' to a
// '.' and fill in any missing minor or micro version