Skip to content

Commit

Permalink
issue #219 - Fix minor issue when extension is not present
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelbernard committed Mar 7, 2012
1 parent f17ea59 commit 4d55ac2
Showing 1 changed file with 5 additions and 2 deletions.
Expand Up @@ -56,9 +56,12 @@ public static String getArtifactName(List<String> moduleName, String version, St
}
name.deleteCharAt( name.length() - 1 ); //remove trailing dot
// the default module doesn't have a name
if(!name.equals(Module.DEFAULT_MODULE_NAME))
if(!name.equals(Module.DEFAULT_MODULE_NAME)) {
name.append("-").append(version);
name.append(".").append(extension);
}
if ( extension != null ) {
name.append(".").append(extension);
}
return name.toString();
}

Expand Down

0 comments on commit 4d55ac2

Please sign in to comment.