You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by pi...@apache.org on 2011/02/05 19:28:52 UTC

svn commit: r1067477 - /karaf/branches/karaf-2.1.x/tooling/features-maven-plugin/src/main/java/org/apache/karaf/tooling/features/AddFeaturesToRepoMojo.java

Author: pieber
Date: Sat Feb  5 18:28:51 2011
New Revision: 1067477

URL: http://svn.apache.org/viewvc?rev=1067477&view=rev
Log:
[KARAF-422] remove jdk6 specific code

Signed-off-by: Andreas Pieber <an...@gmail.com>

Modified:
    karaf/branches/karaf-2.1.x/tooling/features-maven-plugin/src/main/java/org/apache/karaf/tooling/features/AddFeaturesToRepoMojo.java

Modified: karaf/branches/karaf-2.1.x/tooling/features-maven-plugin/src/main/java/org/apache/karaf/tooling/features/AddFeaturesToRepoMojo.java
URL: http://svn.apache.org/viewvc/karaf/branches/karaf-2.1.x/tooling/features-maven-plugin/src/main/java/org/apache/karaf/tooling/features/AddFeaturesToRepoMojo.java?rev=1067477&r1=1067476&r2=1067477&view=diff
==============================================================================
--- karaf/branches/karaf-2.1.x/tooling/features-maven-plugin/src/main/java/org/apache/karaf/tooling/features/AddFeaturesToRepoMojo.java (original)
+++ karaf/branches/karaf-2.1.x/tooling/features-maven-plugin/src/main/java/org/apache/karaf/tooling/features/AddFeaturesToRepoMojo.java Sat Feb  5 18:28:51 2011
@@ -207,8 +207,8 @@ public class AddFeaturesToRepoMojo exten
             			classifier = dep.getClassifier();
                 	}
                 }
-                if (version == null || version.isEmpty()) {
-                	throw new MojoExecutionException("Cannot found version for: " + bundle);
+                if (version == null || version.length() == 0) {
+                    throw new MojoExecutionException("Cannot find version for: " + bundle);
                 }
                 String dir = groupId.replace('.', '/') + "/" + artifactId + "/" + version + "/";
                 String name = artifactId + "-" + version + (classifier != null ? "-" + classifier : "") + "." + type;