use of com.github.masahirosuzuka.PhoneGapIntelliJPlugin.settings.PhoneGapSettings in project intellij-plugins by JetBrains.
the class PhoneGapExecutableChecker method check.
public static void check(Project project) {
PhoneGapSettings instance = PhoneGapSettings.getInstance();
if (StringUtil.isEmpty(instance.getExecutablePath())) {
noPhoneGap();
return;
}
String phoneGapExecutablePath = instance.getExecutablePath();
final GeneralCommandLine generalCommandLine = new GeneralCommandLine(phoneGapExecutablePath, "--version");
generalCommandLine.setWorkDirectory(project.getBasePath());
try {
final OSProcessHandler handler = new OSProcessHandler(generalCommandLine);
handler.startNotify();
generalCommandLine.createProcess();
} catch (Exception e) {
noPhoneGap();
}
}
Aggregations