in src/main/org/apache/ant/compress/util/EntryHelper.java [113:141]
public static int getGroupId(ArchiveEntry entry) {
if (entry == null) {
throw new IllegalArgumentException("entry must not be null.");
}
if (entry instanceof ArArchiveEntry) {
return ((ArArchiveEntry) entry).getGroupId();
}
if (entry instanceof ArjArchiveEntry) {
return UNKNOWN_ID;
}
if (entry instanceof CpioArchiveEntry) {
return (int) ((CpioArchiveEntry) entry).getGID();
}
if (entry instanceof SevenZArchiveEntry) {
return UNKNOWN_ID;
}
if (entry instanceof TarArchiveEntry) {
return ((TarArchiveEntry) entry).getGroupId();
}
if (entry instanceof ZipArchiveEntry) {
return UNKNOWN_ID;
}
if (entry instanceof DumpArchiveEntry) {
return (int) ((DumpArchiveEntry) entry).getGroupId();
}
throw new BuildException("archive entry " + entry.getClass()
+ " is not supported.");
}