From 91b38c2318da33d1d88987ebd4fa3c03337557f8 Mon Sep 17 00:00:00 2001 From: GLYASAI Date: Sun, 14 Apr 2019 22:28:44 +0800 Subject: [PATCH] [REV] Use * to indicate the name that cannot be recognized. --- builder/parser/code/multisvc/maven.go | 4 ++++ builder/parser/code/multisvc/rbd-monitor/pom.xml | 3 +++ 2 files changed, 7 insertions(+) diff --git a/builder/parser/code/multisvc/maven.go b/builder/parser/code/multisvc/maven.go index e22c15376..11928c34d 100644 --- a/builder/parser/code/multisvc/maven.go +++ b/builder/parser/code/multisvc/maven.go @@ -208,6 +208,10 @@ func (p *pom) getExecuteFilename(finalName string) string { if p.Name != "" { name = p.Name } + } else if finalName == "${project.artifactId}" { + name = p.ArtifactID + } else if strings.HasPrefix(finalName, "") && strings.HasSuffix(finalName, "}") { + name = "*" } else if finalName != "" { name = finalName } diff --git a/builder/parser/code/multisvc/rbd-monitor/pom.xml b/builder/parser/code/multisvc/rbd-monitor/pom.xml index ae1ea5f8a..4ecb4ade0 100644 --- a/builder/parser/code/multisvc/rbd-monitor/pom.xml +++ b/builder/parser/code/multisvc/rbd-monitor/pom.xml @@ -2,4 +2,7 @@ rbd-monitor + + ${abc} +