@Deprecated
public class JarListSanitizer
extends java.lang.Object
Right now duplicates are based on: - same filename - same length - same content: using sha1 comparison.
The length/sha1 are kept in a cache and only updated if the library is changed.
| Modifier and Type | Class and Description |
|---|---|
static class |
JarListSanitizer.DifferentLibException
Deprecated.
Exception used to indicate the sanitized list of jar dependency cannot be computed due
to inconsistency in duplicate jar files.
|
static class |
JarListSanitizer.Sha1Exception
Deprecated.
Exception to indicate a failure to check a jar file's content.
|
| Constructor and Description |
|---|
JarListSanitizer(java.io.File out)
Deprecated.
Creates a sanitizer.
|
JarListSanitizer(java.io.File out,
java.io.PrintStream outStream)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.io.File> |
sanitize(java.util.Collection<java.io.File> files)
Deprecated.
Sanitize a given list of files
|
public JarListSanitizer(java.io.File out)
out - the project output where the cache is to be stored.public JarListSanitizer(java.io.File out,
java.io.PrintStream outStream)
public java.util.List<java.io.File> sanitize(java.util.Collection<java.io.File> files)
throws JarListSanitizer.DifferentLibException,
JarListSanitizer.Sha1Exception
files - the list to sanitizeJarListSanitizer.DifferentLibExceptionJarListSanitizer.Sha1Exception