Returns a list of supported file extensions. An example would be an analyzer - * that inpected java jar files. The getSupportedExtensions function would return + * that inspected java jar files. The getSupportedExtensions function would return * a set with a single element "jar".
* *Note: when implementing this the extensions returned MUST be lowercase.
diff --git a/src/main/java/org/codesecure/dependencycheck/analyzer/JarAnalyzer.java b/src/main/java/org/codesecure/dependencycheck/analyzer/JarAnalyzer.java index 11061f1d9..f44d20907 100644 --- a/src/main/java/org/codesecure/dependencycheck/analyzer/JarAnalyzer.java +++ b/src/main/java/org/codesecure/dependencycheck/analyzer/JarAnalyzer.java @@ -32,12 +32,17 @@ import java.util.jar.Manifest; /** * - * Used to load a JAR file and collect information that can be used to determine the associated CPE. + * Used to load a JAR file and collect information that can be used to determine + * the associated CPE. * * @author Jeremy Long (jeremy.long@gmail.com) */ public class JarAnalyzer extends AbstractAnalyzer { + /** + * The system independent newline character. + */ + private static final String NEWLINE = System.getProperty("line.separator"); /** * The name of the analyzer. */ @@ -52,7 +57,7 @@ public class JarAnalyzer extends AbstractAnalyzer { private static final SetReads the manifest from the JAR file and collects the entries. Some key entries are:
- *Reads the manifest from the JAR file and collects the entries. Some + * key entries are:
Description: $esc.html($dependency.description)
+Description: $esc.html($dependency.description)
File Path: $esc.html($dependency.FilePath)
- MD5: $esc.html($dependency.Md5sum)
- SHA1: $esc.html($dependency.Sha1sum)
+ #if ($dependency.license) + License:
$esc.html($dependency.license)+ #end + File Path: $esc.html($dependency.FilePath)
$esc.html($ex.stackTrace)#if ( $ex.cause )
$esc.html($ex.cause.stackTrace)#end