Package org.gradle.util
Class ResourceLoader
java.lang.Object
org.gradle.util.ResourceLoader
Static util class containing methods for extracting resource directories from the classpath.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidextractDirectoryFromResources(String relativePath, File destDir) Recursively copies the contents of a directory from the classpath (or a jar file on the classpath) to a specified directory.
-
Constructor Details
-
ResourceLoader
public ResourceLoader()
-
-
Method Details
-
extractDirectoryFromResources
Recursively copies the contents of a directory from the classpath (or a jar file on the classpath) to a specified directory.- Parameters:
relativePath- relative path to the source directory (or relative path within a jar file to the directory)destDir- target directory to extract the contents to- Throws:
IOException- if an I/O error occurs
-