wt.tools.boot
Class CompareJarsUtil

java.lang.Object
  extended bywt.tools.boot.CompareJarsUtil

public class CompareJarsUtil
extends Object

This class is called from CompareJarsUtil and MakeJar. It is the smarts behind both classes. The constructor, compareJars, and getEntryNames methods were taken directly from the old CompareJarsClass. This returns true if the jars are different.


Field Summary
private  File newJar
           
private  File origJar
           
private  Set resourcesToIgnoreDate
           
private  boolean shouldIgnoreManifestDiffs
          We really should compare portions of manifest except for certain entries like the creating JDK or Ant version.
 
Constructor Summary
CompareJarsUtil(File origJar, File newJar)
          Creates a new instance of CompareJarsUtil
CompareJarsUtil(File origJar, File newJar, boolean shouldIgnoreManifestDiffs)
          Creates a new instance of CompareJarsUtil
 
Method Summary
private  boolean compareJars()
          Returns true if differences are found in the jars
private static SortedSet getEntryNames(ZipFile zipFile)
           
 boolean run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

origJar

private File origJar

newJar

private File newJar

shouldIgnoreManifestDiffs

private boolean shouldIgnoreManifestDiffs
We really should compare portions of manifest except for certain entries like the creating JDK or Ant version. Instead we simply ignore differences in manifests in certain jar files (i.e. those where we've not specified that anything interesting should be occuring).


resourcesToIgnoreDate

private Set resourcesToIgnoreDate
Constructor Detail

CompareJarsUtil

public CompareJarsUtil(File origJar,
                       File newJar)
Creates a new instance of CompareJarsUtil


CompareJarsUtil

public CompareJarsUtil(File origJar,
                       File newJar,
                       boolean shouldIgnoreManifestDiffs)
Creates a new instance of CompareJarsUtil

Method Detail

run

public boolean run()
            throws IOException
Throws:
IOException

compareJars

private boolean compareJars()
                     throws IOException
Returns true if differences are found in the jars

Throws:
IOException

getEntryNames

private static SortedSet getEntryNames(ZipFile zipFile)