Package org.apache.maven.it.util
Class ResourceExtractor
- java.lang.Object
-
- org.apache.maven.it.util.ResourceExtractor
-
public class ResourceExtractor extends Object
TODO this can be replaced with plexus-archiver
-
-
Constructor Summary
Constructors Constructor Description ResourceExtractor()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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)
-
-
-
Method Detail
-
simpleExtractResources
public static File simpleExtractResources(Class<?> cl, String resourcePath) throws IOException
- Throws:
IOException
-
extractResourcePath
public static File extractResourcePath(String resourcePath, File dest) throws IOException
- 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
-
-