Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for readMissing (0.13 sec)

  1. subprojects/core/src/main/java/org/gradle/api/internal/resources/FileCollectionBackedTextResource.java

        public String asString() {
            File file = asFile();
            try {
                return Files.asCharSource(file, charset).read();
            } catch (FileNotFoundException e) {
                throw ResourceExceptions.readMissing(file, e);
            } catch (IOException e) {
                throw ResourceExceptions.readFailed(file, e);
            }
        }
    
        @Override
        public Reader asReader() {
            File file = asFile();
            try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 02 16:14:10 UTC 2021
    - 3.6K bytes
    - Viewed (0)
  2. platforms/software/resources/src/main/java/org/gradle/internal/resource/local/FileReadableContent.java

        }
    
        @Override
        public InputStream open() {
            try {
                return new FileInputStream(file);
            } catch (FileNotFoundException e) {
                throw ResourceExceptions.readMissing(file, e);
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  3. platforms/software/resources/src/main/java/org/gradle/internal/resource/ResourceExceptions.java

            return new ResourceException(String.format("Could not read %s.", displayName), failure);
        }
    
        public static MissingResourceException readMissing(File location, Throwable failure) {
            return new MissingResourceException(location.toURI(),
                    String.format("Could not read '%s' as it does not exist.", location),
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  4. platforms/software/resources/src/main/java/org/gradle/internal/resource/local/LocalFileStandInExternalResource.java

                throw ResourceExceptions.readFolder(localFile);
            }
            try {
                return new FileInputStream(localFile);
            } catch (FileNotFoundException e) {
                throw ResourceExceptions.readMissing(localFile, e);
            }
        }
    
        @Nullable
        @Override
        public List<String> list() throws ResourceException {
            listener.directoryChildrenObserved(localFile);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 8.5K bytes
    - Viewed (0)
Back to top