public class DuplicatePackagesDetector extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DuplicatePackagesDetector.Visitor |
| Constructor and Description |
|---|
DuplicatePackagesDetector() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args)
Each argument is the name of a .jar file or a directory that will
be walked looking for jar files.
|
static void |
processDirectory(File dir) |
static void |
processFile(File file) |
static void |
walkZipFile(File zipFile,
DuplicatePackagesDetector.Visitor visitor)
Walks the entries of a zip file, allowing a listener to "visit" each node and perform tasks on
the zip entry.
|
public static void main(String[] args)
public static void processDirectory(File dir)
public static void processFile(File file)
public static void walkZipFile(File zipFile, DuplicatePackagesDetector.Visitor visitor) throws Exception
zipFile - the zip file to walkvisitor - the object that will be notified for each entry in the zip fileException - if any errors occur during the reading or visitingCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.