/** * 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); }
File base = null; if (zfs == null || zfs.getSrc(getProject()) == null) { dealingWithFiles = true; base = fileset.getDir(getProject()); } else if (zfs instanceof ZipFileSet) { zf = new ZipFile(zfs.getSrc(getProject()), encoding); zOut, thisFileMode, zf, zfs == null ? null : zfs.getSrc(getProject()));
File archive = fileset.getSrc( getProject()); String prefix = normalizePath( fileset.getPrefix( getProject())); if ( !prefix.endsWith( "/")) prefix += "/";
File archive = fileset.getSrc( getProject()); String prefix = normalizePath( fileset.getPrefix( getProject())); if ( !prefix.endsWith( "/")) prefix += "/";