private void executeCheck() throws Exception {
JarFile jar;
Enumeration content;
JarEntry entry;
String classFile;
long lDate;
long size;
StringTokenizer st;
SimpleDateFormat sdf;
String firstFile;
String firstDate;
String firstSize;
int gap;
int duplicates = 0;
File file = new File(this.source);
// alle zu durchsuchenden jar- und zip-Archive ermitteln
String[] list = this.archiveFilter(file.list());
if ( list.length == 0 ) {
this.logln("\n no jar/zip archives found");
return;
}
Hashtable inventory = new Hashtable();
try {
int i = 0;
// alle Archive durchgehen
for (i=0; i<list.length; i++) {
jar = new JarFile(this.source + list[i]);
content = jar.entries();
// alle Klassen eines Archivs durchgehen
while ( content.hasMoreElements() ) {
entry = (JarEntry)content.nextElement();
classFile = entry.getName();
lDate = entry.getTime();
size = entry.getSize();
if ( classFile.length()>6 )
if ( classFile.substring(classFile.length()-6).equals(".class") )
if ( !inventory.containsKey(classFile) ) {