}
private boolean isAnyLibraryChanged(final List list) {
Iterator it = list.iterator();
TapestryLibraryInternalReference wclib = null; // working copy library
TapestryLibrary lib = null;
while(it.hasNext()) {
wclib = (TapestryLibraryInternalReference)it.next();
lib = getTapestryLibraryRegistry().getTapestryLibraryByID(wclib.getID());
if (lib == null) { // removed. Hence, changed.
return true;
}
if (wclib.getArchiveFiles().size() !=
lib.getArchiveFiles().size()) { // Archives changed..
return true;
}
if (isAnyArchiveFileChanged(wclib.getArchiveFiles(),
lib.getArchiveFiles())) { // Check archive file changes. I.e., name and location
return true;
}
}
return false;
}