Added archive support for JAR, SAR, and APK file formats. Ticket #106

Former-commit-id: 19991f8b32e746d9691e48eeac15343178dd3e99
This commit is contained in:
Steve Springett
2014-04-10 23:39:52 -05:00
parent f23da0dd5a
commit 608c338403
2 changed files with 4 additions and 1 deletions

View File

@@ -92,7 +92,7 @@ public class ArchiveAnalyzer extends AbstractFileTypeAnalyzer {
/**
* The set of things we can handle with Zip methods
*/
private static final Set<String> ZIPPABLES = newHashSet("zip", "ear", "war", "nupkg");
private static final Set<String> ZIPPABLES = newHashSet("zip", "ear", "war", "jar", "sar", "apk", "nupkg");
/**
* The set of file extensions supported by this analyzer. Note for developers, any additions to this list will need
* to be explicitly handled in extractFiles().

View File

@@ -69,6 +69,9 @@ public class ArchiveAnalyzerTest extends AbstractDatabaseTestCase {
expResult.add("zip");
expResult.add("war");
expResult.add("ear");
expResult.add("jar");
expResult.add("sar");
expResult.add("apk");
expResult.add("nupkg");
expResult.add("tar");
expResult.add("gz");