Skip to content
Permalink
Browse files
(fix) ReadmeHtmlVelocityDelegate, bcel's artifactId != commons-bcel, …
…but is just bcel
  • Loading branch information
chtompki committed Jan 24, 2019
1 parent 7651f5b commit b71a2a1f9256dd6c7a4f86015e0081a7472660bd
Showing 1 changed file with 7 additions and 2 deletions.
@@ -78,8 +78,13 @@ public Writer render(Writer writer) {
ve.init();
Template template = ve.getTemplate(TEMPLATE);
String[] splitArtifactId = artifactId.split("-");
String wordCommons = splitArtifactId[0];
String artifactShortName = splitArtifactId[1];
String wordCommons = "commons";
String artifactShortName = "";
if (splitArtifactId.length > 1) {
artifactShortName = splitArtifactId[1];
} else if (splitArtifactId.length == 1) {
artifactShortName = splitArtifactId[0];
}
String artifactIdWithFirstLetterscapitalized =
StringUtils.capitalize(wordCommons)
+ "-"

0 comments on commit b71a2a1

Please sign in to comment.