Package com.benjholla.wbp.core
Class WarUtils
- java.lang.Object
-
- com.benjholla.wbp.core.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 directorystatic boolean
jar(java.io.File directory, java.io.File outputJar)
Helper method to jar (zip) a directorystatic void
unjar(java.io.File jarFile, java.io.File outputDirectory)
Unjars (unzips) a jar file
-
-
-
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:
-
-