cp.addFileset((FileSet) en.nextElement());
ResourcesSet rs = (ResourcesSet) en.nextElement(); if( rs.testIfCondition() ){ cp.addFileset( (FileSet) rs ); count++; } }   if( count > 0){ cp.execute();
	protected void copyResources() throws BuildException {		Copy cp = this.getSubtaskFactory().getResourceCopy();		cp.setTodir(resourcesDir());		Enumeration en = resources.elements();		while (en.hasMoreElements()) {			cp.addFileset((FileSet) en.nextElement());		}		cp.execute();	}