for (Enumeration e = expandedDescs.elements();
e.hasMoreElements();) {
VAJProjectDescription d = (VAJProjectDescription) e.nextElement();
ProjectEdition pe;
if (d.getVersion().equals("*")) {
pe = findLatestProjectEdition(d.getName(), false);
} else if (d.getVersion().equals("**")) {
pe = findLatestProjectEdition(d.getName(), true);
} else {
pe = findProjectEdition(d.getName(), d.getVersion());
}
try {
log("Loading '" + pe.getName() + "', Version '"
+ ((pe.getVersionName() != null) ? pe.getVersionName()
: "(" + pe.getVersionStamp() + ")")
+ "' into Workspace", MSG_VERBOSE);
pe.loadIntoWorkspace();
} catch (IvjException ex) {
throw createBuildException("Project '" + d.getName()
+ "' could not be loaded.", ex);
}
}