* @param idata The installation data.
* @param panelRoot The XML tree to read the data from.
* @return always true.
*/
public boolean runAutomated(AutomatedInstallData idata, XMLElement panelRoot) {
XMLElement hostsElement;
XMLElement hostElement;
String id;
String arguments;
// ----------------------------------------------------
// get the section containing the user entries
// ----------------------------------------------------
hostsElement = panelRoot.getFirstChildNamed(ELEMENT_HOSTS_NAME);
if (hostsElement == null) {
return false;
}
Vector<XMLElement> hostElements = hostsElement.getChildrenNamed(ELENENT_HOST_NAME);
if (hostElements == null) {
return false;
}
// ----------------------------------------------------
// retieve each entry and substitute the associated
// variable
// ----------------------------------------------------
ArrayList<Host> allHosts = new ArrayList<Host>(hostElements.size());
for (int i = 0; i < hostElements.size(); i++) {
hostElement = hostElements.elementAt(i);
id = hostElement.getAttribute(ATTRIBUTE_HOST_ID);
arguments = hostElement.getAttribute(ATTRIBUTE_HOTS_ARGS);
Debug.trace("Found host: '" + arguments + "'.");
try {
List<Host> hostsPart = Host.fromStringInstance(arguments);