Skip to content

Commit

Permalink
Merge pull request ome#3893 from bramalingam/ImageJ_Bioformats_depend…
Browse files Browse the repository at this point in the history
…ency_check

OMEROIJ_Bioformats_dependency_check
  • Loading branch information
jburel committed Jul 1, 2015
2 parents 9946e00 + 25a3704 commit b3a236c
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,15 @@

//Java imports
import ij.IJ;

import java.io.File;
import java.util.Iterator;
import java.util.List;

//Third-party libraries


import org.apache.commons.io.FilenameUtils;
//Application-internal dependencies
import org.openmicroscopy.shoola.env.Container;
import org.openmicroscopy.shoola.env.LookupNames;
Expand Down Expand Up @@ -93,8 +96,10 @@ private boolean handlePluginDependencies(PluginInfo info)
value = values[j];
if (value != null) value = value.trim();
if (l == null) continue;
value = FilenameUtils.removeExtension(value);

for (int i = 0; i < l.length; i++) {
if (l[i].getName().equals(value)) {
if (l[i].getName().startsWith(value)) {
count++;
}
}
Expand Down

0 comments on commit b3a236c

Please sign in to comment.