}
public Status validate()
{
try{
CommandExecutor command =
CommandExecutor.execute(new String[]{"vim", "--version"}, 2000);
if (command.getReturnCode() != 0){
logger.error(
"Error checking vim version: {}", command.getErrorMessage());
return new Status(
WARN, Installer.getString("vim.validation.failed"));
}
String result = command.getResult();
Matcher matcher = VERSION.matcher(result);
if(!matcher.find()){
logger.error("Error finding vim version in output: {}", result);
return new Status(
WARN, Installer.getString("vim.validation.failed"));