Fixed quoteing chars

This commit is contained in:
Marcin Grzejszczak
2018-06-28 16:00:56 +02:00
parent 6843c76fd9
commit b95162c22d

View File

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