public void setRoot(String root) throws BuildException { this.root = root;  WOPropertiesHandler propsHandler = new WOPropertiesHandler(this.getProject());  if (isWORoot()) { String newRoot = AntStringUtils.replace( root, WOPropertiesHandler.WO_ROOT, propsHandler.getWORoot()); super.setDir(new File(newRoot)); } else if (isLocalRoot()) { String newRoot = AntStringUtils.replace( root, WOPropertiesHandler.LOCAL_ROOT, propsHandler.getLocalRoot()); super.setDir(new File(newRoot)); } else if (isHomeRoot()) { String newRoot = AntStringUtils.replace( root, WOPropertiesHandler.HOME_ROOT, propsHandler.getHomeRoot()); } else if (isAbsoluteRoot()) { super.setDir(new File(root)); } else { throw new BuildException("Unrecognized root: " + root); }
public void setRoot(File aRoot) throws BuildException { aDirectory = aRoot; super.setDir(this.aDirectory);
	public void setRoot(String root) throws BuildException {		this.root = root;		WOPropertiesHandler propsHandler =			new WOPropertiesHandler(this.getProject());		if (isWORoot()) {			String newRoot =				AntStringUtils.replace(					root,					WOPropertiesHandler.WO_ROOT,					propsHandler.getWORoot());			super.setDir(new File(newRoot));		} else if (isLocalRoot()) {			String newRoot =				AntStringUtils.replace(					root,					WOPropertiesHandler.LOCAL_ROOT,					propsHandler.getLocalRoot());			super.setDir(new File(newRoot));		} else if (isHomeRoot()) {			String newRoot =				AntStringUtils.replace(					root,					WOPropertiesHandler.HOME_ROOT,					propsHandler.getHomeRoot());		} else if (isAbsoluteRoot()) {			super.setDir(new File(root));		} else {			throw new BuildException("Unrecognized root: " + root);		}	}