Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for FileException (0.16 sec)

  1. platforms/core-runtime/native/src/main/java/org/gradle/internal/nativeintegration/filesystem/services/GenericFileSystem.java

            try {
                return stat.getUnixMode(f);
            } catch (Exception e) {
                throw new FileException(String.format("Could not get file mode for '%s'.", f), e);
            }
        }
    
        @Override
        public FileMetadata stat(File f) throws FileException {
            statisticsCollector.reportFileStated();
            return metadata.stat(f);
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:39 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  2. platforms/core-runtime/native/src/test/groovy/org/gradle/internal/nativeintegration/filesystem/services/GenericFileSystemTest.groovy

     * limitations under the License.
     */
    
    package org.gradle.internal.nativeintegration.filesystem.services
    
    import org.gradle.api.internal.file.TestFiles
    import org.gradle.internal.file.FileException
    import org.gradle.internal.file.FileMetadataAccessor
    import org.gradle.internal.file.FileModeAccessor
    import org.gradle.internal.file.FileModeMutator
    import org.gradle.internal.file.StatStatistics
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:50:56 UTC 2024
    - 3K bytes
    - Viewed (0)
  3. platforms/core-runtime/files/src/main/java/org/gradle/api/internal/file/archive/impl/FileZipInput.java

        /**
         * Creates a stream of the entries in the given zip file. Caller is responsible for closing the return value.
         *
         * @throws FileException on failure to open the Zip
         */
        public static ZipInput create(File file) throws FileException {
            if (isZipFileSafeToUse()) {
                return new FileZipInput(file);
            } else {
                try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 12:11:00 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. platforms/core-runtime/files/src/main/java/org/gradle/internal/file/nio/Jdk7FileCanonicalizer.java

    import org.gradle.internal.file.FileCanonicalizer;
    import org.gradle.internal.file.FileException;
    
    import java.io.File;
    import java.io.IOException;
    
    // Used via FQCN
    @SuppressWarnings("unused")
    public class Jdk7FileCanonicalizer implements FileCanonicalizer {
        @SuppressWarnings("Since15")
        @Override
        public File canonicalize(File file) throws FileException {
            try {
                return file.toPath().toRealPath().toFile();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:50:56 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  5. platforms/core-runtime/native/src/main/java/org/gradle/internal/nativeintegration/filesystem/services/FallbackFileCanonicalizer.java

    import org.gradle.internal.file.FileException;
    
    import java.io.File;
    import java.io.IOException;
    
    class FallbackFileCanonicalizer implements FileCanonicalizer {
        @Override
        public File canonicalize(File file) throws FileException {
            try {
                return file.getCanonicalFile();
            } catch (IOException e) {
                throw new FileException(String.format("Could not canonicalize file %s.", file), e);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:50:56 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  6. platforms/core-runtime/files/src/main/java/org/gradle/api/internal/file/archive/impl/StreamZipInput.java

    import com.google.common.collect.AbstractIterator;
    import org.gradle.api.internal.file.archive.ZipEntry;
    import org.gradle.api.internal.file.archive.ZipInput;
    import org.gradle.internal.file.FileException;
    
    import java.io.IOException;
    import java.io.InputStream;
    import java.util.Iterator;
    import java.util.zip.ZipInputStream;
    
    public class StreamZipInput implements ZipInput {
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 12:11:00 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/internal/classpath/transforms/ClasspathElementTransformFactoryForLegacy.java

    import org.gradle.internal.classpath.ClasspathBuilder;
    import org.gradle.internal.classpath.ClasspathWalker;
    import org.gradle.internal.classpath.types.InstrumentationTypeRegistry;
    import org.gradle.internal.file.FileException;
    import org.gradle.internal.hash.Hasher;
    import org.gradle.internal.service.scopes.Scope;
    import org.gradle.internal.service.scopes.ServiceScope;
    import org.gradle.util.internal.GFileUtils;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 15 08:02:27 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  8. platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/vfs/impl/AbstractFileSystemAccessTest.groovy

                this.delegate = delegate
            }
    
            @Override
            int getUnixMode(File f) throws FileException {
                checkIfAllowed()
                return delegate.getUnixMode(f)
            }
    
            @Override
            FileMetadata stat(File f) throws FileException {
                checkIfAllowed()
                return delegate.stat(f)
            }
    
            private void checkIfAllowed() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:50:55 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  9. subprojects/core/src/main/java/org/gradle/internal/classpath/ClasspathWalker.java

            this.stat = stat;
        }
    
        /**
         * Visits the entries of the given classpath element.
         *
         * @throws FileException On failure to open a Jar file.
         */
        public void visit(File root, ClasspathEntryVisitor visitor) throws IOException, FileException {
            FileMetadata fileMetadata = stat.stat(root);
            if (fileMetadata.getType() == FileType.RegularFile) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  10. subprojects/core/src/main/java/org/gradle/internal/classpath/transforms/BaseClasspathElementTransform.java

    import org.gradle.internal.classpath.ClasspathEntryVisitor;
    import org.gradle.internal.classpath.ClasspathWalker;
    import org.gradle.internal.classpath.types.InstrumentationTypeRegistry;
    import org.gradle.internal.file.FileException;
    import org.gradle.util.internal.JarUtil;
    import org.objectweb.asm.ClassReader;
    import org.objectweb.asm.ClassVisitor;
    import org.objectweb.asm.ClassWriter;
    
    import java.io.File;
    import java.io.IOException;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 14 09:24:02 UTC 2024
    - 6.1K bytes
    - Viewed (0)
Back to top