Class WarUtils


  • public class WarUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      WarUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void delete​(java.io.File file)
      Helper function to recursively delete a file or directory
      static boolean jar​(java.io.File directory, java.io.File outputJar)
      Helper method to jar (zip) a directory
      static void unjar​(java.io.File jarFile, java.io.File outputDirectory)
      Unjars (unzips) a jar file
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WarUtils

        public WarUtils()
    • Method Detail

      • delete

        public static void delete​(java.io.File file)
                           throws java.io.FileNotFoundException
        Helper function to recursively delete a file or directory
        Parameters:
        file -
        Throws:
        java.io.FileNotFoundException
      • unjar

        public static void unjar​(java.io.File jarFile,
                                 java.io.File outputDirectory)
                          throws java.io.IOException
        Unjars (unzips) a jar file
        Parameters:
        jarFile -
        outputDirectory -
        Throws:
        java.io.IOException
      • jar

        public static boolean jar​(java.io.File directory,
                                  java.io.File outputJar)
        Helper method to jar (zip) a directory
        Parameters:
        directory -
        outputJar -
        Returns: