if (entries.isEmpty() && !ConfigConstant.INTERACTIVE_ON.equals(interactiveMode)) {
info("Nothing to configure");
return true;
}
ConfigWizardLoader wizard = new ConfigWizardLoader(this, entries);
// 交互式编辑props文件
wizard.loadAndStart();
// 生成配置文件
boolean allSuccess = true;
for (Iterator i = entries.iterator(); i.hasNext(); ) {
ConfigEntry entry = (ConfigEntry) i.next();
allSuccess &= entry.generate();
}
return allSuccess;
} else {
ConfigWizardLoader wizard = new ConfigWizardLoader(this, inlineDescriptor);
// 交互式编辑props文件
wizard.loadAndStart();
return true;
}
}