Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for ResourceIsAFolderException (0.41 sec)

  1. platforms/software/resources/src/main/java/org/gradle/internal/resource/ResourceIsAFolderException.java

    import org.gradle.api.resources.ResourceException;
    
    import java.net.URI;
    
    /**
     * Exception thrown when one attempts to read a folder
     */
    public class ResourceIsAFolderException extends ResourceException {
        public ResourceIsAFolderException(URI location, String message) {
            super(location, message);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 973 bytes
    - Viewed (0)
  2. platforms/software/resources/src/main/java/org/gradle/internal/resource/ResourceExceptions.java

    import java.io.File;
    import java.io.FileNotFoundException;
    import java.net.URI;
    
    public class ResourceExceptions {
        public static ResourceIsAFolderException readFolder(File location) {
            return new ResourceIsAFolderException(location.toURI(), String.format("Cannot read '%s' because it is a folder.", location));
        }
    
        public static ResourceException readFailed(File location, Throwable failure) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  3. platforms/software/resources/src/test/groovy/org/gradle/internal/resource/UriTextResourceTest.groovy

            when:
            resource.text
    
            then:
            def e = thrown(ResourceIsAFolderException)
            e.message == "Could not read <display-name> '$dir' as it is a directory." as String
    
            when:
            resource.asReader
    
            then:
            e = thrown(ResourceIsAFolderException)
            e.message == "Could not read <display-name> '$dir' as it is a directory." as String
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 9.4K bytes
    - Viewed (0)
  4. platforms/software/resources/src/main/java/org/gradle/internal/resource/UriTextResource.java

            }
        }
    
        private void assertNoDirectory() {
            if (sourceFile != null && sourceFile.isDirectory()) {
                throw new ResourceIsAFolderException(sourceUri, String.format("Could not read %s as it is a directory.", getDisplayName()));
            }
        }
    
        @Override
        public boolean getExists() {
            File file = getFile();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  5. testing/architecture-test/src/changes/archunit-store/internal-api-nullability.txt

    Class <org.gradle.internal.resource.ResourceIsAFolderException> is not annotated (directly or via its package) with @org.gradle.api.NonNullApi in (ResourceIsAFolderException.java:0)
    Class <org.gradle.internal.resource.ResourceLocation> is not annotated (directly or via its package) with @org.gradle.api.NonNullApi in (ResourceLocation.java:0)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 967.9K bytes
    - Viewed (0)
Back to top