Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 582 for ToPath (0.09 sec)

  1. maven-compat/src/test/java/org/apache/maven/artifact/deployer/ArtifactDeployerTest.java

                Artifact artifact = createArtifact("artifact", "1.0");
    
                File file = new File(artifactBasedir, "artifact-1.0.jar");
                assertEquals("dummy", new String(Files.readAllBytes(file.toPath()), StandardCharsets.UTF_8).trim());
    
                artifactDeployer.deploy(file, artifact, remoteRepository(), localRepository());
    
                ArtifactRepository remoteRepository = remoteRepository();
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Apr 25 05:46:50 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  2. platforms/jvm/language-java/src/main/java/org/gradle/api/internal/tasks/compile/CompilationClassBackupService.java

                File backupFile = new File(classBackupDir, classFile.getName() + uniqueIndex.incrementAndGet());
                copy(classFile.toPath(), backupFile.toPath());
                result.getBackupClassFiles().put(classFile.getAbsolutePath(), backupFile.getAbsolutePath());
            }
        }
    
        private static void copy(Path from, Path to) {
            try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  3. platforms/jvm/language-java/src/test/groovy/org/gradle/api/internal/tasks/compile/incremental/transaction/CompileTransactionTest.groovy

        private List<String> listAllFiles(File file) {
            return Files.find(file.toPath(), 99, { path, attributes -> attributes.isRegularFile() })
                .collect { file.toPath().relativize(it).toString().replace("\\", "/") }
                .toSorted()
        }
    
        private boolean hasOnlyDirectories(File file) {
            try (Stream<Path> stream = Files.walk(file.toPath())) {
                return stream.allMatch { Files.isDirectory(it) }
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 18K bytes
    - Viewed (0)
  4. platforms/core-runtime/launcher/src/test/groovy/org/gradle/tooling/internal/provider/continuous/ContinuousBuildActionExecutorTest.groovy

            then:
            conditions.eventually {
                waitingForChangesMessageAppears()
            }
    
            when:
            changeListeners.broadcastChange(FileWatcherRegistry.Type.MODIFIED, file.toPath())
    
            then:
            conditions.eventually {
                rebuiltBecauseOfChange()
            }
    
            cleanup:
            cancellationToken.cancel()
            buildExits(runningBuild)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  5. platforms/core-execution/build-cache-local/src/main/java/org/gradle/caching/local/internal/DirectoryBuildCache.java

                }
            });
        }
    
        private void storeInsideLock(HashCode key, File sourceFile) {
            File targetFile = getCacheEntryFile(key);
            try {
                Files.move(sourceFile.toPath(), targetFile.toPath(), StandardCopyOption.ATOMIC_MOVE);
            } catch (FileAlreadyExistsException ignore) {
                // We already have the file in the build cache
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:53 UTC 2024
    - 7K bytes
    - Viewed (0)
  6. platforms/software/signing/src/test/groovy/org/gradle/plugins/signing/SigningTasksSpec.groovy

            addSigningProperties()
            createJarTaskOutputFile('jar')
    
            when:
            Sign signTask = signing.sign(jar).first()
    
            then:
            def outputPath = jar.outputs.files.singleFile.toPath().toAbsolutePath().toString()
            signTask.signaturesByKey.containsKey(outputPath)
            signTask.signaturesByKey.get(outputPath) == signTask.singleSignature
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 4K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/files/misc/groovy/build.gradle

    tasks.register('ensureDirectory') {
        // Store target directory into a variable to avoid project reference in the configuration cache
        def directory = file("images")
    
        doLast {
            Files.createDirectories(directory.toPath())
        }
    }
    // end::mkdir-example[]
    
    // tag::move-example[]
    tasks.register('moveReports') {
        // Store the build directory into a variable to avoid project reference in the configuration cache
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 932 bytes
    - Viewed (0)
  8. platforms/jvm/jvm-services/src/integTest/groovy/org/gradle/jvm/toolchain/JavaInstallationRegistryIntegrationTest.groovy

                    .run()
            then:
            outputContains(javaHome)
        }
    
        private static String relativePath(TestFile from, String to) {
            from.toPath().relativize(new File(to).toPath()).toString()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 18:29:03 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  9. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r22/BuildActionCrossVersionSpec.groovy

            when:
            File actualJar1 = withConnection { ProjectConnection connection ->
                connection.action(action1).run()
            }
            cl1.close()
            Files.delete(implJar.toPath())
    
            then:
            actualJar1 != implJar
            actualJar1.name == implJar.name
    
            when:
            builder.sourceFile('ActionImpl.java').text = """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  10. samples/tlssurvey/src/main/kotlin/okhttp3/survey/RunSurvey.kt

    import okhttp3.survey.types.SuiteId
    import okio.FileSystem
    import okio.Path.Companion.toPath
    import org.conscrypt.Conscrypt
    
    @Suppress("ktlint:standard:property-naming")
    suspend fun main() {
      val includeConscrypt = false
    
      val client =
        OkHttpClient.Builder()
          .cache(Cache(FileSystem.SYSTEM, "build/okhttp_cache".toPath(), 100_000_000))
          .build()
    
      val sslLabsClients = SslLabsClient(client).clients()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top