Merge pull request #276 from GLYASAI/RAINBOND-899

[REV] Use * to indicate the name that cannot be recognized.
This commit is contained in:
barnettZQG 2019-04-14 09:34:14 -05:00 committed by GitHub
commit 11f8d09554
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -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
}

View File

@ -2,4 +2,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<artifactId>rbd-monitor</artifactId>
<build>
<finalName>${abc}</finalName>
</build>
</project>