How to recursively unpack archives of type war/ear/pack.gz/tar.gz How to recursively unpack archives of type war/ear/pack.gz/tar.gz shell shell

How to recursively unpack archives of type war/ear/pack.gz/tar.gz


You may find rjar helpful, from the documentation:

rjar is a command-line tool that acts like the regular jar tool, but recursively ! It is very useful when e.g. using .ear or .war files, or any other "jars of jars"...

Also works zith .zip files !

Supported features :

  • list jar entries recursively : all entries are displayed including entries of nested jars if any
  • expand a jar recursively : expand the jar and its nested jars to the specified directory
  • recreate a jar from an expanded rjar : allows to rebuild a jar with nested jars from an expanded directory structure
  • graphical front-end : tree view of your jars, with regexp filtering