Sunday, September 1, 2013

Combine reference.conf files from a bunch of akka jars

Need to build a reference.conf from a bunch of different Akka jars?  Here's a simple way to do it from the command line:

for i in /Users/james/nexus/sonatype-work/nexus/storage/central/com/typesafe/akka/*/2.2.1/*jar ; do unzip -q -c $i reference.conf ; done > /tmp/reference.conf

That just cats together the contents of all the reference.conf files and puts it in /tmp/reference.conf.

Adjust the paths to fit your version and file locations, of course.