This content has been marked as final. Show 6 replies
We use GenJar (http://genjar.sourceforge.net) and that works very well.
Included as Ant task in our build script it jars all our clients and servers.
It will even unpack library jars and include the classes in your application jar ;)
But you can specify which packages it should leave outside the jar it creates.
Just because I awarded Paschilke the Duke Dollars, doesn't mean you should give up on this thread. I am quite willing to award more Duke Dollars to anyone who can provide a good, alternative solution. The thing I don't like about "GenJar" is that you can only use it as an Ant task.
ClassDep from jini provides the same functionality as GenJar but I have found it better to work with. You do not need ant to run it although it does come with an ant task. ClassDep.java has a public static void main (String args ).
http://java.sun.com/products/jini/2.0/doc/api/com/sun/jini/tool/ClassDep.html provides the documentation on how to use it.
you probably solved your problem already :)
But for others who are having issues in the same area I suggest
Class Dependency Analyzer (CDA) http://www.dependency-analyzer.org/
If class A imports class B and F import A:
and class B changes, must we also provide class A for product fix?
if class A is imported by class F, then we must include who?
but if class A changes, we do not care about class B correct - only class F?
Confused - sorry
This tool implementation is mind-blowing !! It was of a gr8 pleasure to see the exact tool for which I was looking..
I really think this needs more publicity. :)