Kicking the little puppies

Web 2.0 blog of Spirituality, Romance, National values, Apple computers, Pop music and Python programming.

So I have a journal again. Please pardon me if I don't update it regularly -- I decided not to go with wordpress or bloxspot and did a really bad job replacing them, so it's a big pain to write journal entries for me. I prayed for help, no answer so far. Maybe my prayer got stuck in spam filter.


Mon 31 May 2010 04:28:53 PM CEST

Visualizing Java package dependencies

Lately I've been dealing with packaging of rather larger Java applications with rather long list of dependenies. To ease the work and help me decide what to package first I've created a rather quick and dirty, yet somewhat useful Perl script to visualize the dependency chain.

There are probably better tools to do this, yet you may find using a simple script useful, here it is:

http://fedorapeople.org/~lkundrak/jargraph.pl

And here's how it's used (you'll need GraphViz installed):

  $ wget -q http://gerrit.googlecode.com/files/gerrit-2.1.2.4.war
  $ jar xf gerrit-2.1.2.4.war 
  $ perl jargraph.pl WEB-INF/lib/*jar >gerrit.dot
  $ dot -Tsvg gerrit.dot >gerrit.svg
  $ 
Link to the article alone

Older shit


Source code to the entries and scripts that format this site are available on github. Text of journal entries is licensed under CC-BY-SA license.

Mail questions, comments and pizza to lkundrak@v3.sk