PhoneGapCommandLine commandLine = new PhoneGapCommandLine(path, workDir);
if (!commandLine.isCorrectExecutable()) {
error.set(PhoneGapBundle.message("phonegap.plugins.executable.error"));
return commandLine;
}
version.set(commandLine.version());
if (pathError) {
error.set(PhoneGapBundle.message("phonegap.plugins.executable.work.path.error", commandLine.getPlatformName()));
return commandLine;
}