- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 38 for zipTo (0.06 sec)
-
testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/file/TestFile.java
zip.setProject(new Project()); zip.execute(); return zipFile; } public TestFile zipTo(TestFile zipFile) { return zipTo(zipFile, false); } public TestFile zipTo(TestFile zipFile, boolean readOnly) { new TestFileHelper(this).zipTo(zipFile, useNativeTools, readOnly); return this; } public TestFile tarTo(TestFile tarFile) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 11 18:31:52 UTC 2024 - 30.3K bytes - Viewed (0) -
platforms/core-runtime/build-process-services/src/test/groovy/org/gradle/internal/installation/CurrentGradleInstallationLocatorTest.groovy
ClassWriter cw = new ClassWriter(0) classNode.accept(cw) classFile.withDataOutputStream { it.write(cw.toByteArray()) } contents.zipTo(jar) } private Class loadClassFromJar(TestFile jar) { // This is to prevent the jar file being held open URL url = new URL("jar:file://valid_jar_url_syntax.jar!/")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 24 06:16:07 UTC 2024 - 3.9K bytes - Viewed (0) -
platforms/core-runtime/wrapper-main/src/integTest/groovy/org/gradle/integtests/WrapperLoggingIntegrationTest.groovy
TestFile tempZipDir = temporaryFolder.createDir("temp-zip-foo") TestFile malformedDistZip = new TestFile(tempZipDir, "gradle-${distribution.version.version}-bin.zip") tempUnzipDir.zipTo(malformedDistZip) prepareWrapper(malformedDistZip.toURI()) when: result = wrapperExecuter .withTasks("emptyTask") .run() then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 23 05:54:32 UTC 2024 - 4.7K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/api/internal/file/archive/ZipFileTreeTest.java
TestFiles.tmpDirTemporaryFileProvider(tempDirProvider.getTestDirectory())); } @Override protected void archiveFileToRoot(TestFile file) { rootDir.zipTo(file); } @Override protected TestFile getArchiveFile() { return archiveFile; } @Override protected ZipFileTree getTree() { return tree; } @Test
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Mar 26 15:15:04 UTC 2024 - 4K bytes - Viewed (0) -
testing/performance/src/performanceTest/groovy/org/gradle/performance/regression/corefeature/ArchiveTreePerformanceTest.groovy
) def "visiting zip trees"() { given: runner.tasksToRun = ['visitZip'] runner.addBuildMutator { createArchive(it, "archive.zip") { contents, output -> contents.zipTo(output) } } when: def result = runner.run() then: result.assertCurrentVersionHasNotRegressed() } @RunFor(
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Apr 26 11:42:52 UTC 2024 - 5.6K bytes - Viewed (0) -
platforms/jvm/plugins-application/src/integTest/groovy/org/gradle/integtests/ApplicationIntegrationSpec.groovy
""" def testResources = file("resources") def resourceFile = testResources.file(resourceFileName) resourceFile.text = "bar" testResources.zipTo(file("libs/bar.jar")) resourceFile.text = "foo" testResources.zipTo(file("libs/foo.jar")) buildFile << """ dependencies { implementation files("libs/bar.jar") implementation files("libs/foo.jar")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Mar 08 22:15:44 UTC 2024 - 15.5K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/internal/fingerprint/impl/DefaultFileCollectionSnapshotterTest.groovy
def file = archiveBaseDir.createFile('file.txt') file.text = "content" when: TestFile zip = tempDir.file('archive.zip') archiveBaseDir.zipTo(zip) def zipTree = TestFiles.fileOperations(tempDir, testFileProvider()).zipTree(zip) def snapshot = snapshotter.snapshot(zipTree).snapshot then: assertSingleFileSnapshot(snapshot)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Dec 12 16:25:23 UTC 2022 - 7.1K bytes - Viewed (0) -
platforms/extensibility/plugin-use/src/integTest/groovy/org/gradle/plugin/use/NonDeclarativePluginUseIntegrationSpec.groovy
m.publish().allowAll() file("j$n").with { file("d/v.txt") << n m.artifactFile.delete() zipTo(m.artifactFile) } } when: def pluginModule = publishPlugin """ project.task('pluginTask').doLast {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 22:36:52 UTC 2023 - 9K bytes - Viewed (0) -
platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/attributes/ClasspathDependenciesAttributesIntegrationTest.groovy
ClassWriter cw = new ClassWriter(0) classNode.accept(cw) classFile.withDataOutputStream { it.write(cw.toByteArray()) } contents.zipTo(jar) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 7.4K bytes - Viewed (0) -
platforms/software/resources/src/test/groovy/org/gradle/internal/resource/UriTextResourceTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 19:38:08 UTC 2023 - 9.4K bytes - Viewed (0)