Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Java-dev Digest, Vol 1, Issue 178




On Thu, 9 Dec 2004 14:05:00 -0700, Greg Guerin <email@hidden> wrote:


If you have version-numbers (or even just serial build-numbers) in each
jar's manifest, then you can use that. You simply extract it from each jar
previously released, and compare it to the one extracted from the
just-built corresponding jar. If they differ, then the jar changed, which
implies something inside the jar changed. If nothing inside the jar
changed, then the build-numbers will be the same, and you don't have to
redistribute that jar to customers who already have it. (I prefer the term
build-number over version-number, when it's used in this way. That leaves
marketing to decide what "version-number" values are, and what they mean.)


You could probably write a shell script that extracted a manifest from a
previously released jar, grepped for its build-numbers, and then compared
that to the one from the current build. Nor is it difficult to write in
Java, as an Ant task, and since you already use Ant, I think that's the
better approach. First, though, you might want to look for an Ant task
that already does something like this. Release management is not outside
Ant's capabilities.



Or if the version numbers are recorded in the jar's name, you can use an ant task that already exists: <http://www.httpunit.org/doc/dependencies.html>


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.