ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <>
Subject Re: Comparing Method signatures from one build to next
Date Wed, 13 Jun 2001 14:27:47 GMT
Have you thought of running javap on the class files and comparing the
output? Or is that too simplistic an approach?

From: "William Settle" <>

> My goal is to be able to compare runtime files, specifically, jar's,
war's and
> ear's and produce difference documents with what method signatures have
> changed or deleted at a minimum.
> To do this I would have to iterate through the archive then use
reflection to
> gather class information for a particular build and create a persistent
> object/method hierarchy somewhere (I'm thinking an LDAP tree).  Then I
> compare this to a previous build to get the changes.  Not a big job but
still a
> good bit of code to make it happen.
> What this will give us is the ability to verify we didn't "break" an
> or required API, even at the customer's site, if we made a change and
> them a new archive.
> I have looked at Sitraka's JClass utility and it has some of the features
I want
> but is not 100% pure Java so it's out of the running.
> Does anyone have any ideas on how to accomplish this task?
> Thanks again,
> Bill

View raw message