- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 21 for FileException (0.46 sec)
-
platforms/core-runtime/files/src/test/groovy/org/gradle/api/internal/file/archive/impl/FileZipInputTest.groovy
zipInput?.close() } @Requires(UnitTestPreconditions.Jdk11OrLater) def "throws FileException when zip is badly formed"() { def file = temporaryFolder.file("badly-formed").createFile() when: FileZipInput.create(file) then: thrown(FileException) } // This documents current behaviour, not desired behaviour
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:55:52 UTC 2023 - 3.4K bytes - Viewed (0) -
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) -
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) -
subprojects/core/src/test/groovy/org/gradle/internal/classpath/ClasspathWalkerTest.groovy
0 * visitor._ } @Requires(UnitTestPreconditions.Jdk11OrLater) def "throws FileException on badly formed JAR"() { def visitor = Mock(ClasspathEntryVisitor) def file = tmpDir.file("broken").createFile() when: walker.visit(file, visitor) then: thrown(FileException) 0 * visitor._ } // This documents current behaviour, not desired behaviour
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 20 11:15:22 UTC 2023 - 3.7K bytes - Viewed (0) -
platforms/core-runtime/native/src/test/groovy/org/gradle/internal/nativeintegration/filesystem/CommonFileSystemTest.groovy
when: fs.getUnixMode(file) then: FileException e = thrown() e.message == "Could not get file mode for '$file'." } def "unix permissions cannot be set on non existing file"() { def file = tmpDir.file("someFile") when: fs.chmod(file, 0644) then: FileException e = thrown() e.message == "Could not set file mode 644 on '$file'."
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:06:40 UTC 2023 - 5.8K bytes - Viewed (0) -
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) -
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) -
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) -
platforms/core-runtime/files/src/main/java/org/gradle/internal/file/FileCanonicalizer.java
* limitations under the License. */ package org.gradle.internal.file; import java.io.File; public interface FileCanonicalizer { File canonicalize(File file) throws FileException;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:50:56 UTC 2024 - 768 bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/caching/internal/BuildCacheServices.java
this.fileSystem = fileSystem; } @Override public int getUnixMode(File f) throws FileException { return fileSystem.getUnixMode(f); } @Override public void chmod(File file, int mode) throws FileException { fileSystem.chmod(file, mode); } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon May 27 12:34:44 UTC 2024 - 8.7K bytes - Viewed (0)