/** * 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); }
/** * Return the full pathname of the single entry in this fileset. * @param p the project to use * @return the full path */ public String getFullpath(Project p) { if (isReference()) { return ((ArchiveFileSet) getRef(p)).getFullpath(p); } dieOnCircularReference(p); return fullpath; }
/** * Get the dir mode of the archive fileset * @param p the project to use * @return the mode */ public int getDirMode(Project p) { if (isReference()) { return ((ArchiveFileSet) getRef(p)).getDirMode(p); } dieOnCircularReference(); return dirMode; }
/** * Return the prefix prepended to entries in the archive file. * @param p the project to use * @return the prefix */ public String getPrefix(Project p) { if (isReference()) { return ((ArchiveFileSet) getRef(p)).getPrefix(p); } dieOnCircularReference(p); return prefix; }
/** * Get the mode of the archive fileset * @param p the project to use * @return the mode */ public int getFileMode(Project p) { if (isReference()) { return ((ArchiveFileSet) getRef(p)).getFileMode(p); } dieOnCircularReference(); return fileMode; }
/** * 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; }
/** * Whether the user has specified the mode explicitly. * * @return true if it has been set */ public boolean hasDirModeBeenSet() { if (isReference()) { return ((ArchiveFileSet) getRef(getProject())).hasDirModeBeenSet(); } dieOnCircularReference(); return dirModeHasBeenSet; }
/** * Whether the user has specified the mode explicitly. * @return true if it has been set */ public boolean hasFileModeBeenSet() { if (isReference()) { return ((ArchiveFileSet) getRef(getProject())).hasFileModeBeenSet(); } dieOnCircularReference(); return fileModeHasBeenSet; }
return getRef(p).getDirectoryScanner(p); dieOnCircularReference(); if (src == null) { return super.getDirectoryScanner(p);