String command = "";
ApplicationDescription appDesc = jobExecutionContext.getApplicationContext().
getApplicationDeploymentDescription();
if(appDesc.getType() instanceof Ec2ApplicationDeploymentType) {
Ec2ApplicationDeploymentType type = (Ec2ApplicationDeploymentType) appDesc.getType();
if(type.getExecutable() != null) {
command = type.getExecutableType() + " " + type.getExecutable();
} else {
command = "sh" + " " + type.getExecutable();
}
command = setCmdParams(jobExecutionContext, command);
} else {
ApplicationDeploymentDescriptionType type = appDesc.getType();
command = "sh" + " " + type.getExecutableLocation();
command = setCmdParams(jobExecutionContext, command);
}
return command + '\n';
}