File tree 1 file changed +5
-5
lines changed
components/insight/SRC/org/openmicroscopy/shoola/env/init
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 25
25
26
26
//Java imports
27
27
import ij .IJ ;
28
+
28
29
import java .io .File ;
29
30
import java .util .Iterator ;
30
31
import java .util .List ;
31
32
32
33
//Third-party libraries
33
34
35
+
36
+ import org .apache .commons .io .FilenameUtils ;
34
37
//Application-internal dependencies
35
38
import org .openmicroscopy .shoola .env .Container ;
36
39
import org .openmicroscopy .shoola .env .LookupNames ;
@@ -93,11 +96,8 @@ private boolean handlePluginDependencies(PluginInfo info)
93
96
value = values [j ];
94
97
if (value != null ) value = value .trim ();
95
98
if (l == null ) continue ;
96
- int idx = value .indexOf (".jar" );
97
- if (idx ==-1 ){
98
- idx = value .length ();
99
- }
100
- value = value .substring (0 , idx );
99
+ value = FilenameUtils .removeExtension (value );
100
+
101
101
for (int i = 0 ; i < l .length ; i ++) {
102
102
if (l [i ].getName ().startsWith (value )) {
103
103
count ++;
You can’t perform that action at this time.
0 commit comments