java.lang.Object
org.eclipse.jetty.toolchain.test.JAR

@Deprecated(forRemoval=true, since="6.0") public final class JAR extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
use ZipFS
Basic functions for working with JAR files in test cases.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    JAR()
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Close a JAR file.
    static void
    create(File srcDir, File jarFile)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Create a JAR file out of the contents of a specific directory (recursively)
    private static void
    packDir(File baseDir, File srcDir, JarOutputStream jarout)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static void
    unpack(File jarFile, File destDir)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Unpack JAR file into destination directory.
    private static void
    unpack(JarFile jar, JarEntry entry, File destFile)
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JAR

      private JAR()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • unpack

      public static void unpack(File jarFile, File destDir) throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Unpack JAR file into destination directory.
      Parameters:
      jarFile - the jar file to unpack
      destDir - the destination directory to unpack into
      Throws:
      IOException - if unable to unpack jar file.
    • unpack

      private static void unpack(JarFile jar, JarEntry entry, File destFile) throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      IOException
    • close

      public static void close(JarFile jar)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Close a JAR file.
      Parameters:
      jar - the JarFile to close
    • create

      public static void create(File srcDir, File jarFile) throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Create a JAR file out of the contents of a specific directory (recursively)
      Parameters:
      srcDir - the source directory
      jarFile - the destination jar file to create
      Throws:
      IOException - if unable to create the jar file, or read the source directory
    • packDir

      private static void packDir(File baseDir, File srcDir, JarOutputStream jarout) throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      IOException