cp.addFileset((FileSet) en.nextElement()); } cp.execute();
ResourcesSet rs = (ResourcesSet) en.nextElement(); if( rs.testIfCondition() ){ cp.addFileset( (FileSet) rs ); count++; } }   if( count > 0){ cp.execute();
	protected void copyWsresources() throws BuildException {		Copy cp = this.getSubtaskFactory().getResourceCopy();		cp.setTodir(wsresourcesDir());		Enumeration en = wsresources.elements();		while (en.hasMoreElements()) {			cp.addFileset((FileSet) en.nextElement());		}		cp.execute();		// do split install		if (doingSplitInstall()) {			log("Split install WebServerResources of " + name + " in "					+ wsDestDir);			cp.setTodir(wsresourcesDestDir());			cp.execute();		}	}