commit 82fc53087bbafbf5e732f262234cb61595451ed5 Author: Cristiano Gavião <cvgav...@gmail.com> AuthorDate: Mon Apr 2 18:11:18 2012 -0300 Commit: Cristiano Gavião <cvgav...@gmail.com> CommitDate: Mon Apr 2 18:11:18 2012 -0300
removed unecessary dependencie of apache commons and lang. diff --git a/jbehave-osgi-equinox/org.jbehave.osgi.equinox.commands/META-INF/MANIFEST.MF b/jbehave-osgi-equinox/org.jbehave.osgi.equinox.commands/META-INF/MANIFEST.MF index 2cbf10e..9cd84c4 100644 --- a/jbehave-osgi-equinox/org.jbehave.osgi.equinox.commands/META-INF/MANIFEST.MF +++ b/jbehave-osgi-equinox/org.jbehave.osgi.equinox.commands/META-INF/MANIFEST.MF @@ -7,8 +7,6 @@ Service-Component: OSGI-INF/*.xml Bundle-ActivationPolicy: lazy Bundle-RequiredExecutionEnvironment: JavaSE-1.6 Export-Package: org.jbehave.osgi.equinox.commands -Import-Package: org.apache.commons.collections, - org.apache.commons.lang, - org.eclipse.osgi.framework.console, +Import-Package: org.eclipse.osgi.framework.console, org.jbehave.osgi.services diff --git a/jbehave-osgi-equinox/org.jbehave.osgi.equinox.commands/src/org/jbehave/osgi/equinox/commands/CoreCommandProvider.java b/jbehave-osgi-equinox/org.jbehave.osgi.equinox.commands/src/org/jbehave/osgi/equinox/commands/CoreCommandProvider.java index c4c5608..79afcb6 100644 --- a/jbehave-osgi-equinox/org.jbehave.osgi.equinox.commands/src/org/jbehave/osgi/equinox/commands/CoreCommandProvider.java +++ b/jbehave-osgi-equinox/org.jbehave.osgi.equinox.commands/src/org/jbehave/osgi/equinox/commands/CoreCommandProvider.java @@ -3,8 +3,6 @@ package org.jbehave.osgi.equinox.commands; import java.util.ArrayList; import java.util.List; -import org.apache.commons.collections.CollectionUtils; -import org.apache.commons.lang.StringUtils; import org.eclipse.osgi.framework.console.CommandInterpreter; import org.eclipse.osgi.framework.console.CommandProvider; import org.jbehave.osgi.services.EmbedderService; @@ -36,7 +34,7 @@ public class CoreCommandProvider implements EmbedderService embedderService = getEmbedderService(); if (embedderService.isStarted()) { - if (CollectionUtils.isNotEmpty(includes)) { + if (!includes.isEmpty()) { embedderService.runStoriesWithAnnotatedEmbedderRunner(includes); } else { intp.println("One or more Annotated Embedder class should be informed."); @@ -62,7 +60,7 @@ public class CoreCommandProvider implements List<String> list = new ArrayList<String>(); if (csv != null) { for (String string : csv.split(",")) { - if (StringUtils.isNotEmpty(string)) { + if (!string.isEmpty()) { list.add(string); } }