Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for closeArchiveEntry (0.33 sec)

  1. subprojects/core/src/main/java/org/gradle/api/internal/file/archive/TarCopyAction.java

                    tarOutStr.putArchiveEntry(archiveEntry);
                    fileDetails.copyTo(tarOutStr);
                    tarOutStr.closeArchiveEntry();
                } catch (Exception e) {
                    throw new GradleException(String.format("Could not add %s to TAR '%s'.", fileDetails, tarFile), e);
                }
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 08 14:16:53 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  2. platforms/core-execution/build-cache-packaging/src/test/groovy/org/gradle/caching/internal/packaging/impl/TarBuildCacheEntryPackerTest.groovy

                metadataEntry.size = metadataBytes.length
                tar.putArchiveEntry(metadataEntry)
                tar.write(metadataBytes)
                tar.closeArchiveEntry()
    
                tar.putArchiveEntry(new TarArchiveEntry("tree-destinationDir/"))
                tar.closeArchiveEntry()
    
                def evilBytes = "evil".bytes
                def evilEntry = new TarArchiveEntry("tree-destinationDir/../evil.txt")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:43:12 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  3. platforms/core-execution/build-cache/src/jmh/java/org/gradle/caching/internal/tasks/CommonsTarPacker.java

                entry.setSize(input.getLength());
                tarOutput.putArchiveEntry(entry);
                PackerUtils.packEntry(input, tarOutput, buffer);
                tarOutput.closeArchiveEntry();
            }
            tarOutput.close();
        }
    
        @Override
        public void unpack(DataSource input, DataTargetFactory targetFactory) throws IOException {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 02 07:31:19 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  4. subprojects/core/src/main/java/org/gradle/api/internal/file/archive/ZipCopyAction.java

                    zipOutStr.putArchiveEntry(archiveEntry);
                    fileDetails.copyTo(zipOutStr);
                    zipOutStr.closeArchiveEntry();
                } catch (Exception e) {
                    throw new GradleException(String.format("Could not add %s to ZIP '%s'.", fileDetails, zipFile), e);
                }
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 08 14:16:53 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  5. platforms/core-execution/build-cache-packaging/src/main/java/org/gradle/caching/internal/packaging/impl/TarBuildCacheEntryPacker.java

            createTarEntry(METADATA_PATH, output.size(), UnixPermissions.FILE_FLAG | UnixPermissions.DEFAULT_FILE_PERM, tarOutput);
            tarOutput.write(output.toByteArray());
            tarOutput.closeArchiveEntry();
        }
    
        private long pack(CacheableEntity entity, Map<String, ? extends FileSystemSnapshot> snapshots, TarArchiveOutputStream tarOutput) {
            AtomicLong entries = new AtomicLong();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 02 07:31:19 UTC 2024
    - 19.5K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/internal/classpath/InPlaceClasspathBuilder.java

                outputStream.setEncoding("UTF-8");
                outputStream.putArchiveEntry(zipEntry);
                outputStream.write(content);
                outputStream.closeArchiveEntry();
            }
    
            private void maybeAddParent(String name) throws IOException {
                String dir = dir(name);
                if (dir != null && dirs.add(dir)) {
                    maybeAddParent(dir);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 09 14:05:09 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  7. platforms/jvm/toolchains-jvm/src/testFixtures/groovy/org/gradle/jvm/toolchain/JdkRepository.groovy

                        try (InputStream i = Files.newInputStream(file.toPath())) {
                            IOUtils.copy(i, aos)
                        }
                    }
                    aos.closeArchiveEntry()
                }
                aos.finish()
            }
            outputFile
        }
    
        private static void populateFilesList(List<File> fileList, File dir) throws IOException {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Sep 20 08:26:19 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  8. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/AbstractModule.groovy

                def entry = new ZipArchiveEntry(testFile.name)
                entry.setTime(lmd.getTime())
                zipStream.putArchiveEntry(entry)
                zipStream << bos.toByteArray()
                zipStream.closeArchiveEntry()
                zipStream.finish()
            } finally {
                IoActions.closeQuietly(zipStream)
            }
        }
    
        protected boolean isJarFile(TestFile testFile) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 5K bytes
    - Viewed (0)
Back to top