Package org.apache.maven.it.util
Class ResourceExtractor
java.lang.Object
org.apache.maven.it.util.ResourceExtractor
TODO this can be replaced with plexus-archiver
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic File
extractResourcePath
(Class<?> cl, String resourcePath, File dest) static File
extractResourcePath
(Class<?> cl, String resourcePath, File tempDir, boolean alwaysExtract) static File
extractResourcePath
(String resourcePath, File dest) private static void
extractResourcePathFromJar
(Class<?> cl, File jarFile, String resourcePath, File dest) static File
extractResourceToDestination
(Class<?> cl, String resourcePath, File destination, boolean alwaysExtract) private static File
getJarFileFromUrl
(URL url) static File
simpleExtractResources
(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
-