Fixed quoteing chars
This commit is contained in:
@@ -120,6 +120,7 @@ public class SpringReleaser {
|
||||
.collect(Collectors.toList());
|
||||
log.info("List of all projects to clone before filtering {}", filteredProjects);
|
||||
if (StringUtils.hasText(options.startFrom)) {
|
||||
options.startFrom = removeQuotingChars(options.startFrom);
|
||||
int projectIndex = filteredProjects.indexOf(options.startFrom);
|
||||
if (projectIndex < 0) throw new IllegalStateException("Project [" + options.startFrom + "] not found");
|
||||
if (log.isDebugEnabled()) {
|
||||
@@ -139,6 +140,13 @@ public class SpringReleaser {
|
||||
return filteredProjects;
|
||||
}
|
||||
|
||||
private String removeQuotingChars(String string) {
|
||||
if (string.startsWith("'") && string.endsWith("'")) {
|
||||
return string.substring(1, string.length() - 1);
|
||||
}
|
||||
return string;
|
||||
}
|
||||
|
||||
protected void enforceFullRelease(Options options) {
|
||||
options.fullRelease = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user