aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eji...@apache.org
Subject svn commit: r1417229 - /aries/trunk/versioning/versioning-plugin/src/main/java/org/apache/aries/versioning/mojo/VersionCheckerMojo.java
Date Tue, 04 Dec 2012 22:50:50 GMT
Author: ejiang
Date: Tue Dec  4 22:50:50 2012
New Revision: 1417229

URL: http://svn.apache.org/viewvc?rev=1417229&view=rev
Log:
ARIES-979: Integrate semantic versioning maven plugin in aries modules

Modified:
    aries/trunk/versioning/versioning-plugin/src/main/java/org/apache/aries/versioning/mojo/VersionCheckerMojo.java

Modified: aries/trunk/versioning/versioning-plugin/src/main/java/org/apache/aries/versioning/mojo/VersionCheckerMojo.java
URL: http://svn.apache.org/viewvc/aries/trunk/versioning/versioning-plugin/src/main/java/org/apache/aries/versioning/mojo/VersionCheckerMojo.java?rev=1417229&r1=1417228&r2=1417229&view=diff
==============================================================================
--- aries/trunk/versioning/versioning-plugin/src/main/java/org/apache/aries/versioning/mojo/VersionCheckerMojo.java
(original)
+++ aries/trunk/versioning/versioning-plugin/src/main/java/org/apache/aries/versioning/mojo/VersionCheckerMojo.java
Tue Dec  4 22:50:50 2012
@@ -129,11 +129,11 @@ extends AbstractMojo
         String bundleElement = bundleCompatibility.getBundleElement();
         String pkgElement = bundleCompatibility.getPkgElements().toString();
         boolean failed = false;
-        if (bundleElement.trim().length() >0){
+        if ((bundleElement != null) && (bundleElement.trim().length() >0)){
           getLog().error(bundleElement + "\r\n");
           failed = true;
         }
-        if (pkgElement.trim().length() >0 ) {
+        if ((pkgElement != null) && (pkgElement.trim().length() >0 )) {
           getLog().error(pkgElement);
           failed = true;
         }



Mime
View raw message