/** * Get the archive file from which entries will be extracted. * @return the archive in case the archive is a file, null otherwise. */ public File getSrc() { if (isReference()) { return ((ArchiveFileSet) getCheckedRef()).getSrc(); } dieOnCircularReference(); if (src == null) { return null; } return src.asOptional(FileProvider.class).map(FileProvider::getFile).orElse(null); }
/** * Indicate whether this ResourceCollection is composed entirely of * Resources accessible via local filesystem conventions. If true, * all Resources returned from this ResourceCollection should be * instances of FileResource. * @return whether this is a filesystem-only resource collection. * @since Ant 1.7 */ @Override public boolean isFilesystemOnly() { if (isReference()) { return ((ArchiveFileSet) getCheckedRef()).isFilesystemOnly(); } dieOnCircularReference(); return src == null; }
/** * 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(); }