[Improvement][server] varPool support syntax #{setValue(key=value)} (#9586)

dependabot/maven/org.springframework-spring-core-5.3.19
exmy 2022-04-22 14:10:21 +08:00 committed by GitHub
parent 996790ce9e
commit 36f01155b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -318,7 +318,7 @@ public abstract class AbstractCommandExecutor {
try (BufferedReader inReader = new BufferedReader(new InputStreamReader(process.getInputStream()))) {
String line;
while ((line = inReader.readLine()) != null) {
if (line.startsWith("${setValue(")) {
if (line.startsWith("${setValue(") || line.startsWith("#{setValue(")) {
varPool.append(findVarPool(line));
varPool.append("$VarPool$");
} else {

View File

@ -28,7 +28,7 @@ public class TaskConstants {
public static final String APPLICATION_REGEX = "application_\\d+_\\d+";
public static final String SETVALUE_REGEX = "\\$\\{setValue\\(([^)]*)\\)}";
public static final String SETVALUE_REGEX = "[\\$#]\\{setValue\\(([^)]*)\\)}";
/**
* string false