/** * Return a TarFileSet that has the same properties * as this one. * @return the cloned tarFileSet */ @Override public Object clone() { if (isReference()) { return getRef(getProject()).clone(); } return super.clone(); }
/** * Return a ZipFileSet that has the same properties * as this one. * @return the cloned zipFileSet */ @Override public Object clone() { if (isReference()) { return getRef(getProject()).clone(); } return super.clone(); }
/** * Return a ArchiveFileSet that has the same properties * as this one. * @return the cloned archiveFileSet * @since Ant 1.6 */ @Override public Object clone() { if (isReference()) { return getCheckedRef(ArchiveFileSet.class, getDataTypeName(), getProject()).clone(); } return super.clone(); }
/** * Return a CommonsCompressFileSet that has the same properties * as this one. * @return the cloned tarFileSet */ public CommonsCompressFileSet clone() { if (isReference()) { return ((CommonsCompressFileSet) getRef(getProject())).clone(); } else { return (CommonsCompressFileSet) super.clone(); } }