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.