|
|
|
@ -133,7 +133,6 @@ public class ShellTask extends AbstractTask {
|
|
|
|
|
|
|
|
|
|
String script = shellParameters.getRawScript().replaceAll("\\r\\n", "\n"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* combining local and global parameters |
|
|
|
|
*/ |
|
|
|
@ -142,13 +141,9 @@ public class ShellTask extends AbstractTask {
|
|
|
|
|
shellParameters.getLocalParametersMap(), |
|
|
|
|
taskProps.getCmdTypeIfComplement(), |
|
|
|
|
taskProps.getScheduleTime()); |
|
|
|
|
// if (paramsMap != null){
|
|
|
|
|
// script = ParameterUtils.convertParameterPlaceholders(script, ParamUtils.convert(paramsMap));
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
//new
|
|
|
|
|
// replace variable TIME with $[YYYYmmddd...] in shell file when history run job and batch complement job
|
|
|
|
|
if (paramsMap != null) { |
|
|
|
|
if(paramsMap != null && taskProps.getScheduleTime()!=null) { |
|
|
|
|
String dateTime = DateUtils.format(taskProps.getScheduleTime(), Constants.PARAMETER_FORMAT_TIME); |
|
|
|
|
Property p = new Property(); |
|
|
|
|
p.setValue(dateTime); |
|
|
|
@ -177,6 +172,4 @@ public class ShellTask extends AbstractTask {
|
|
|
|
|
return shellParameters; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|