Re: How to update a jar file for one source file change?
- From: Wesley Hall <noreply@xxxxxxxxxxx>
- Date: Tue, 28 Nov 2006 23:24:58 +0000
Andy Dingley wrote:
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.
+1
I could not agree with this more, trying to manually maintain archives
is a receipe of many wasted hours and IQ points. The fact that you have
mentioned (in a different reply) a problem related to someone else using
different tools in a different way is a big red light.
Check out ant. It looks big and scary when you first look but a few
examples (which are provided in the docs) will demonstrate how
straightforward it is. Then use this build script to build a fresh jar
file from your source files for each change. Once you have it working,
you will be able to build clean and consistent artifacts (in your case a
jar file) every time on every platform.
Once you have the build script working properly, everyone working on the
software should use that script to build the software and not their own
specific tools...
.
- References:
- How to update a jar file for one source file change?
- From: NickName
- Re: How to update a jar file for one source file change?
- From: Andy Dingley
- How to update a jar file for one source file change?
- Prev by Date: Re: javamail code in servlet works locally, but not when uploaded to host
- Next by Date: Re: about jacob and jdk's corba implmentation
- Previous by thread: Re: How to update a jar file for one source file change?
- Next by thread: (Announce) Jonathan Robie to Present at 2006 XML Conference
- Index(es):
Relevant Pages
|