Skip to content

Commit

Permalink
Fix bad naming for the extracted file when the version contains a dot
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Apr 26, 2017
1 parent 6b58328 commit 992ee3f
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,10 @@ private boolean extractAndLoad(ArrayList<Throwable> errors, String version, Stri
if( version !=null) {
libName += "-" + version;
}
String []libNameParts = map(libName).split("\\.");
String prefix = libNameParts[0]+"-";
String suffix = "."+libNameParts[1];
libName = map(libName);
int idx = libName.lastIndexOf('.');
String prefix = libName.substring(0, idx)+"-";
String suffix = libName.substring(idx);

if( customPath!=null ) {
// Try to extract it to the custom path...
Expand Down

0 comments on commit 992ee3f

Please sign in to comment.