Re: How to update a jar file for one source file change?




NickName wrote:

Secondly, how about re-package the package that reference this piece of
java code?

Find yourself a build tool, like Ant, that can easily and automatically
re-build your JAR from scratch. Then do it. If you try to maintain a
product by modifying bits at a time, you'll go barking mad.

A damn good source control system will help too (Subversion is about
the best).

OTOH, JARs are just ZIP files with knobs on. There are any number of
tools, not all of them from the JDK, that can manipulate them for you.
It's not manipulating them that's hard, it's knowing what needs
manipulating.

.



Relevant Pages