|
|
@ -60,6 +60,11 @@ public abstract class AbstractCommandExecutor { |
|
|
|
* rules for extracting application ID |
|
|
|
* rules for extracting application ID |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
protected static final Pattern APPLICATION_REGEX = Pattern.compile(TaskConstants.APPLICATION_REGEX); |
|
|
|
protected static final Pattern APPLICATION_REGEX = Pattern.compile(TaskConstants.APPLICATION_REGEX); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* rules for extracting Var Pool |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
protected static final Pattern SETVALUE_REGEX = Pattern.compile(TaskConstants.SETVALUE_REGEX); |
|
|
|
|
|
|
|
|
|
|
|
protected StringBuilder varPool = new StringBuilder(); |
|
|
|
protected StringBuilder varPool = new StringBuilder(); |
|
|
|
/** |
|
|
|
/** |
|
|
@ -318,7 +323,7 @@ public abstract class AbstractCommandExecutor { |
|
|
|
String line; |
|
|
|
String line; |
|
|
|
while ((line = inReader.readLine()) != null) { |
|
|
|
while ((line = inReader.readLine()) != null) { |
|
|
|
if (line.startsWith("${setValue(")) { |
|
|
|
if (line.startsWith("${setValue(")) { |
|
|
|
varPool.append(line, "${setValue(".length(), line.length() - 2); |
|
|
|
varPool.append(findVarPool(line)); |
|
|
|
varPool.append("$VarPool$"); |
|
|
|
varPool.append("$VarPool$"); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
logBuffer.add(line); |
|
|
|
logBuffer.add(line); |
|
|
@ -403,6 +408,19 @@ public abstract class AbstractCommandExecutor { |
|
|
|
|
|
|
|
|
|
|
|
return lineList; |
|
|
|
return lineList; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* find var pool |
|
|
|
|
|
|
|
* @param line |
|
|
|
|
|
|
|
* @return |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
private String findVarPool(String line){ |
|
|
|
|
|
|
|
Matcher matcher = SETVALUE_REGEX.matcher(line); |
|
|
|
|
|
|
|
if (matcher.find()) { |
|
|
|
|
|
|
|
return matcher.group(1); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return null; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* find app id |
|
|
|
* find app id |
|
|
|