Class ResourceExtractor
java.lang.Object
org.apache.maven.shared.verifier.util.ResourceExtractor
TODO this can be replaced with plexus-archiver
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FileextractResourcePath(Class<?> cl, String resourcePath, File dest) static FileextractResourcePath(Class<?> cl, String resourcePath, File tempDir, boolean alwaysExtract) static FileextractResourcePath(String resourcePath, File dest) private static voidextractResourcePathFromJar(Class<?> cl, File jarFile, String resourcePath, File dest) static FileextractResourceToDestination(Class<?> cl, String resourcePath, File destination, boolean alwaysExtract) private static FilegetJarFileFromUrl(URL url) static FilesimpleExtractResources(Class<?> cl, String resourcePath)
-
Constructor Details
-
ResourceExtractor
public ResourceExtractor()
-
-
Method Details
-
simpleExtractResources
- Throws:
IOException
-
extractResourcePath
- Throws:
IOException
-
extractResourcePath
public static File extractResourcePath(Class<?> cl, String resourcePath, File dest) throws IOException - Throws:
IOException
-
extractResourcePath
public static File extractResourcePath(Class<?> cl, String resourcePath, File tempDir, boolean alwaysExtract) throws IOException - Throws:
IOException
-
extractResourceToDestination
public static File extractResourceToDestination(Class<?> cl, String resourcePath, File destination, boolean alwaysExtract) throws IOException - Throws:
IOException
-
extractResourcePathFromJar
private static void extractResourcePathFromJar(Class<?> cl, File jarFile, String resourcePath, File dest) throws IOException - Throws:
IOException
-
getJarFileFromUrl
-