Class ResourceExtractor


  • @Deprecated
    public class ResourceExtractor
    extends java.lang.Object
    Deprecated.
    This class is deprecated as part of maven-verifier deprecation. The resource extraction functionality may be moved to a separate utility library in the future. For now, users should copy this utility if needed. See Issue #186.
    Utility for extracting test resources.

    Note: This utility class provides functionality independent of Maven execution and could potentially be extracted to a separate, non-deprecated utility library if there is community interest.

    • Constructor Summary

      Constructors 
      Constructor Description
      ResourceExtractor()
      Deprecated.
       
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static java.io.File extractResourcePath​(java.lang.Class<?> cl, java.lang.String resourcePath, java.io.File dest)
      Deprecated.
       
      static java.io.File extractResourcePath​(java.lang.Class<?> cl, java.lang.String resourcePath, java.io.File tempDir, boolean alwaysExtract)
      Deprecated.
       
      static java.io.File extractResourcePath​(java.lang.String resourcePath, java.io.File dest)
      Deprecated.
       
      static java.io.File extractResourceToDestination​(java.lang.Class<?> cl, java.lang.String resourcePath, java.io.File destination, boolean alwaysExtract)
      Deprecated.
       
      static java.io.File simpleExtractResources​(java.lang.Class<?> cl, java.lang.String resourcePath)
      Deprecated.
       
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ResourceExtractor

        public ResourceExtractor()
        Deprecated.
    • Method Detail

      • simpleExtractResources

        public static java.io.File simpleExtractResources​(java.lang.Class<?> cl,
                                                          java.lang.String resourcePath)
                                                   throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException
      • extractResourcePath

        public static java.io.File extractResourcePath​(java.lang.String resourcePath,
                                                       java.io.File dest)
                                                throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException
      • extractResourcePath

        public static java.io.File extractResourcePath​(java.lang.Class<?> cl,
                                                       java.lang.String resourcePath,
                                                       java.io.File dest)
                                                throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException
      • extractResourcePath

        public static java.io.File extractResourcePath​(java.lang.Class<?> cl,
                                                       java.lang.String resourcePath,
                                                       java.io.File tempDir,
                                                       boolean alwaysExtract)
                                                throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException
      • extractResourceToDestination

        public static java.io.File extractResourceToDestination​(java.lang.Class<?> cl,
                                                                java.lang.String resourcePath,
                                                                java.io.File destination,
                                                                boolean alwaysExtract)
                                                         throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException