Merge pull request #4703 from thorntonrp/patch-1
* pr/4703: Cleanup description new-lines for launch script
This commit is contained in:
commit
dc3ead4c39
|
|
@ -261,11 +261,16 @@ public class RepackageMojo extends AbstractDependencyFilterMojo {
|
|||
putIfMissing(properties, "initInfoProvides", this.project.getArtifactId());
|
||||
putIfMissing(properties, "initInfoShortDescription", this.project.getName(),
|
||||
this.project.getArtifactId());
|
||||
putIfMissing(properties, "initInfoDescription", this.project.getDescription(),
|
||||
this.project.getName(), this.project.getArtifactId());
|
||||
putIfMissing(properties, "initInfoDescription",
|
||||
removeLineBreaks(this.project.getDescription()), this.project.getName(),
|
||||
this.project.getArtifactId());
|
||||
return properties;
|
||||
}
|
||||
|
||||
private String removeLineBreaks(String description) {
|
||||
return description.replaceAll("\\s+", " ");
|
||||
}
|
||||
|
||||
private void putIfMissing(Properties properties, String key,
|
||||
String... valueCandidates) {
|
||||
if (!properties.containsKey(key)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue