/** * Configure a fileset based on this fileset. * If the fileset is a TarFileSet copy in the tarfileset * specific attributes. * @param zfs the archive fileset to configure. */ @Override protected void configureFileSet(ArchiveFileSet zfs) { super.configureFileSet(zfs); if (zfs instanceof TarFileSet) { TarFileSet tfs = (TarFileSet) zfs; tfs.setUserName(userName); tfs.setGroup(groupName); tfs.setUid(uid); tfs.setGid(gid); } }
/** * Configure a fileset based on this fileset. * If the fileset is a CommonsCompressFileSet copy in the * specific attributes. * @param zfs the archive fileset to configure. */ protected void configureFileSet(ArchiveFileSet zfs) { super.configureFileSet(zfs); if (zfs instanceof CommonsCompressFileSet) { CommonsCompressFileSet ccfs = (CommonsCompressFileSet) zfs; ccfs.setUid(uid); ccfs.setGid(gid); } }