- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 94 for unzipTo (0.76 sec)
-
subprojects/core/src/integTest/groovy/org/gradle/api/tasks/AbstractLineEndingSensitivityIntegrationSpec.groovy
try { unzipTo(zippedFile, unzipDir) } catch (IOException e) { throw UncheckedException.throwAsUncheckedException(e) } } static void unzipTo(File inputZip, File unzipDir) throws IOException { inputZip.withInputStream { stream ->
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon May 20 11:16:24 UTC 2024 - 21.2K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/integTest/kotlin/org/gradle/kotlin/dsl/support/ClassBytesRepositoryTest.kt
Wrapper.DistributionType::class.java, SomeKotlin::class.java, SomeKotlin.NestedType::class.java ) val cpDir = newDir("cp-dir") unzipTo(cpDir, jar2) ClassBytesRepository( platformClassLoader = ClassLoaderUtils.getPlatformClassLoader(), classPathFiles = listOf(jar1, cpDir) ).use { repository ->
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 01 17:45:10 UTC 2024 - 6.9K bytes - Viewed (0) -
platforms/documentation/samples/src/integTest/groovy/org/gradle/integtests/samples/files/SamplesCopyIntegrationTest.groovy
when: succeeds('distApp') then: def tmpOutDir = dslDir.file("tmp") def zipFile = dslDir.file('build/dists/my-app-dist.zip') zipFile.isFile() zipFile.unzipTo(tmpOutDir) tmpOutDir.file('web.xml').assertDoesNotExist() tmpOutDir.file('index-staging.html').assertDoesNotExist() tmpOutDir.file('index.html').isFile() tmpOutDir.file('logo.png').isFile()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 15.7K bytes - Viewed (0) -
testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/file/TestFile.java
throw new RuntimeException(e); } } public void unzipTo(File target) { assertIsFile(); new TestFileHelper(this).unzipTo(target, useNativeTools); } public void unzipToWithoutCheckingParentDirs(File target) { assertIsFile(); new TestFileHelper(this).unzipTo(target, useNativeTools, false); } public void untarTo(File target) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 11 18:31:52 UTC 2024 - 30.3K bytes - Viewed (0) -
testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/file/TestFileHelper.groovy
def process = ['unzip', '-q', '-o', file.absolutePath, '-d', target.absolutePath].execute() process.consumeProcessOutput(System.out, System.err) assertThat(process.waitFor(), equalTo(0)) return } def unzip = new Expand() unzip.src = file unzip.dest = target unzip.project = new Project() unzip.execute() }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 10.8K bytes - Viewed (0) -
testing/integ-test/src/integTest/groovy/org/gradle/integtests/ProjectLayoutIntegrationTest.groovy
'org/gradle/test/resource.txt', 'org/gradle/test/resource2.txt', ) TestFile tmpDir = file('jarContents') buildDir.file('libs/sharedSource.jar').unzipTo(tmpDir) tmpDir.assertHasDescendants( 'META-INF/MANIFEST.MF', 'org/gradle/main/resource.txt', 'org/gradle/main/resource2.txt',
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 8.4K bytes - Viewed (0) -
testing/distributions-integ-tests/src/integTest/groovy/org/gradle/DistributionIntegrationSpec.groovy
} } protected TestFile unpackDistribution(type = getDistributionLabel(), TestFile into = testDirectory) { TestFile zip = getZip(type) zip.usingNativeTools().unzipTo(into) assert into.listFiles().size() == 1 into.listFiles()[0] } protected TestFile getZip(String type = getDistributionLabel()) { switch (type) { case 'bin':
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jun 11 09:51:14 UTC 2024 - 10.5K bytes - Viewed (0) -
platforms/documentation/docs/src/docs/userguide/dep-man/04-modeling-features/artifact_transforms.adoc
==== include::sample[dir="snippets/dependencyManagement/artifactTransforms-unzip/kotlin",files="build.gradle.kts[tags=artifact-transform-unzip]"] include::sample[dir="snippets/dependencyManagement/artifactTransforms-unzip/groovy",files="build.gradle[tags=artifact-transform-unzip]"] ==== <1> Use `TransformParameters.None` if the transform does not use parameters <2> Inject the input artifact <3> Request an output location for the unzipped files
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Dec 07 01:37:51 UTC 2023 - 20.1K bytes - Viewed (0) -
src/cmd/go/testdata/script/mod_bad_filenames.txt
! go get rsc.io/badfile1 rsc.io/badfile2 rsc.io/badfile3 rsc.io/badfile4 rsc.io/badfile5 ! stderr 'unzip.*badfile1' stderr 'unzip.*badfile2[\\/]@v[\\/]v1.0.0.zip:.*malformed file path "☺.go": invalid char ''☺''' stderr 'unzip.*badfile3[\\/]@v[\\/]v1.0.0.zip: rsc.io[\\/]badfile3@v1.0.0[\\/]x\?y.go: malformed file path "x\?y.go": invalid char ''\?'''
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 01 17:38:07 UTC 2020 - 708 bytes - Viewed (0) -
platforms/core-runtime/wrapper-shared/src/integTest/groovy/org/gradle/integtests/PathTraversalCheckerIntegrationTest.groovy
def entryNames = new ZipFile(evilZip).withCloseable { it.entries().collect { it.name } } expect: entryNames == ['../../tmp/evil.sh'] } def "Copy task refuses to unzip evil.zip"() { executer.withStacktraceEnabled() given: buildFile << ''' task copyEvilZip(type: Copy) { from(zipTree('evil.zip')) into('.')
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:12:34 UTC 2023 - 4K bytes - Viewed (0)