Class NarUnpacker

java.lang.Object
org.apache.pulsar.common.nar.NarUnpacker

public class NarUnpacker extends Object
Helper class to unpack NARs.
  • Constructor Details

    • NarUnpacker

      public NarUnpacker()
  • Method Details

    • unpackNar

      public static File unpackNar(File nar, File baseWorkingDirectory) throws IOException
      Unpacks the specified nar into the specified base working directory.
      Parameters:
      nar - the nar to unpack
      baseWorkingDirectory - the directory to unpack to
      Returns:
      the directory to the unpacked NAR
      Throws:
      IOException - if unable to explode nar