mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-28 13:09:09 +00:00
Merge pull request #4703 from thorntonrp/patch-1
* pr/4703: Cleanup description new-lines for launch script
This commit is contained in:
+7
-2
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user