* Sets root directory of this FileSet based on a symbolic name, that can be
* "User", "Local", "System". Throws BuildException if an
* invalid root is specified.
*/
public void setRoot(String rootName) throws BuildException {
ExternalFrameworkModel currentFrameworkModel = getFrameworkModel();
this.root = currentFrameworkModel.getRootWithShortName(rootName);
if (this.root == null) {
throw new BuildException("There is no root named '" + rootName + "' in " + currentFrameworkModel.getRoots() + ".");
}
File rootFolder = ((ExternalFolderRoot) this.root).getFrameworksFolder();
setDir(rootFolder);
}