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 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) static File
extractResourceToDestination
(Class<?> cl, String resourcePath, File destination, boolean alwaysExtract) 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
-