/** * Makes this instance in effect a reference to another FileList * instance. * * <p>You must not set another attribute or nest elements inside * this element if you make it a reference.</p> * @param r the reference to another filelist. * @exception BuildException if an error occurs. */ @Override public void setRefid(Reference r) throws BuildException { if (dir != null || !filenames.isEmpty()) { throw tooManyAttributes(); } super.setRefid(r); }