/** * Set the default universe spec for the installation * * @param universeSpec universe spec * @throws ProvisioningException in case of an error */ public void setDefaultUniverse(UniverseSpec universeSpec) throws ProvisioningException { addUniverse(null, universeSpec); }
public void addUniverse(Path installation, String name, String factory, String location) throws ProvisioningException, IOException { UniverseSpec u = new UniverseSpec(factory, location); ProvisioningManager mgr = getProvisioningManager(installation); if (name != null) { mgr.addUniverse(name, u); } else { mgr.setDefaultUniverse(u); } resolveUniverse(u); }