/** * Checks whether the platform has a valid Rails installed. * * @param warn whether to show warning message to the user if ther is no * valid Rails installed */ public boolean hasValidRails(boolean warn) { String railsPath = getRails(); boolean valid = (railsPath != null) && new File(railsPath).exists(); possiblyNotifyUser(warn, valid, "rails"); // NOI18N return valid; }
/** * Checks whether the platform has a valid Rake installed. * * @param warn whether to show warning message to the user if ther is no * valid Rake installed */ public boolean hasValidRake(boolean warn) { boolean valid = isValid(warn) && hasRubyGemsInstalled(warn); String rakePath = getRake(); valid = (rakePath != null) && new File(rakePath).exists(); possiblyNotifyUser(warn, valid, "rake"); // NOI18N return valid; }
/** * Checks whether the platform has a valid autotest installed. * * @param warn whether to show warning message to the user if ther is no * valid autotest installed */ public boolean hasValidAutoTest(boolean warn) { boolean validBinary = isValidFile(getAutoTest()); possiblyNotifyUser(warn, validBinary, "autotest"); // NOI18N return validBinary && hasZenTest(); }
/** * Checks whether the platform has a valid autotest installed. * * @param warn whether to show warning message to the user if ther is no * valid autotest installed */ public boolean hasValidAutoSpec(boolean warn) { boolean validBinary = isValidFile(getAutoSpec()); possiblyNotifyUser(warn, validBinary, "autospec"); // NOI18N return validBinary && hasZenTest(); }