Class JarRepack

java.lang.Object
fr.ens.biologie.genomique.eoulsan.util.JarRepack

public class JarRepack extends Object
This class allow to repackage a jar file.
Since:
1.0
Author:
Laurent Jourdren
  • Constructor Details

    • JarRepack

      public JarRepack(Path inFile, Path outFile) throws IOException
      Public constructor.
      Parameters:
      inFile - the source jar file to repackage
      outFile - the path to the new repackaged file
      Throws:
      IOException - if an error occurs while opening the source jar file
  • Method Details

    • addFile

      public void addFile(Path file, String destDir) throws IOException
      Add a file to the jar file.
      Parameters:
      file - file to add
      destDir - destination in the jar file
      Throws:
      IOException - if an error occurs while adding the file
    • close

      public void close() throws IOException
      Close the repackaged file.
      Throws:
      IOException - if an error occurs while closing the repackaged file