Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 90 for ToPath (0.31 sec)

  1. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/UndeclaredFileAccess.groovy

                    "Files.newByteChannel(File(\"$filePath\").toPath()).close()"
                }
    
                @Override
                String getJavaExpression() {
                    """
                    ((Supplier<Object>) () -> {
                        try {
                            Files.newByteChannel(new File("$filePath").toPath()).close();
                        } catch (IOException e) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/ConfigurationCacheRepository.kt

                throw UnsupportedOperationException()
    
            override fun delete() {
                if (file.exists()) {
                    Files.delete(file.toPath())
                }
            }
    
            override fun moveFrom(file: File) {
                Files.move(file.toPath(), this.file.toPath(), StandardCopyOption.ATOMIC_MOVE)
            }
    
            override fun stateFileForIncludedBuild(build: BuildDefinition): ConfigurationCacheStateFile =
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  3. testing/smoke-ide-test/src/smokeIdeTest/groovy/org/gradle/ide/sync/AbstractIdeaSyncTest.groovy

         * The IDE distribution is automatically downloaded if required.
         */
        protected void ideaSync(String version) {
            def gradleDist = distribution.gradleHomeDir.toPath()
            def ide = "ic-$version"
            runIdeStarterWith(gradleDist, testDirectory.toPath(), ideHome, ide)
        }
    
        protected TestFile getTestDirectory() {
            temporaryFolder.testDirectory
        }
    
        protected TestFile file(Object... path) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 16:28:38 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/DependencyManagementBuildTreeScopeServices.java

                "resource-at-url",
                timeProvider,
                cacheAccessCoordinator,
                externalResourceFileStore.getFileAccessTracker(),
                artifactCacheMetadata.getCacheDir().toPath()
            );
        }
    
        @Provides
        FileStoreAndIndexProvider createFileStoreAndIndexProvider(
            BuildCommencedTimeProvider timeProvider,
            ArtifactCachesProvider artifactCaches,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 12:34:44 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  5. maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProject.java

        }
    
        @Nonnull
        @Override
        public Path getPomPath() {
            return nonNull(project.getFile(), "pomPath").toPath();
        }
    
        @Override
        public Path getBasedir() {
            return nonNull(project.getBasedir(), "basedir").toPath();
        }
    
        @Nonnull
        @Override
        public List<DependencyCoordinate> getDependencies() {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu May 16 08:45:24 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  6. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/daemon/DaemonLogFile.groovy

            return logFile
        }
    
        String getText() throws IOException {
            return logFile.getText(charset.name())
        }
    
        Stream<String> lines() throws IOException {
            return Files.lines(logFile.toPath(), charset)
        }
    
        @Override
        String toString() {
            return "DaemonLogFile(${logFile.absolutePath}, charset=${charset.name()})"
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 09:22:54 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  7. platforms/core-runtime/wrapper-main/src/integTest/groovy/org/gradle/integtests/WrapperIntegrationTest.groovy

            boolean deletedSomething = false
            gradleUserHome.eachFileRecurse(FileType.FILES) { file ->
                if (file.name.startsWith("gradle-launcher")) {
                    Files.delete(file.toPath())
                    println("Deleting " + file)
                    deletedSomething = true
                }
            }
            and:
            result = executer.withTasks("hello").run()
            then:
            deletedSomething
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:54:32 UTC 2024
    - 2K bytes
    - Viewed (0)
  8. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/JavaExecIntegrationTest.groovy

            buildFile << """
                tasks.withType(JavaExec) {
                    executable = new File(".").getCanonicalFile().toPath().relativize(new File("${executable}").toPath()).toString()
                }
            """
    
            when:
            executer.expectDocumentedDeprecationWarning("Configuring a Java executable via a relative path. " +
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 06:04:19 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  9. analysis/analysis-api-standalone/src/org/jetbrains/kotlin/analysis/project/structure/impl/KtModuleUtils.kt

                    addBinaryRoots(libraryRoots.map { it.toPath() })
                    libraryName = "Library for $moduleName"
                }
            )
            compilerConfig.get(JVMConfigurationKeys.JDK_HOME)?.let { jdkHome ->
                addRegularDependency(
                    buildKtSdkModule {
                        this.platform = platform
                        addBinaryRootsFromJdkHome(jdkHome.toPath(), isJre = false)
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 29 20:26:34 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  10. platforms/software/build-init/src/integTest/groovy/org/gradle/buildinit/plugins/BuildInitPluginIntegrationTest.groovy

            then:
            result.assertTasksExecuted(":init")
            result.assertHasErrorOutput("Aborting build initialization due to existing files in the project directory: '${existingDslFixture.rootDir.toPath()}'.")
    
            and:
            !targetDslFixture.settingsFile.exists()
            targetDslFixture.assertWrapperFilesNotGenerated()
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 13:39:44 UTC 2024
    - 17.2K bytes
    - Viewed (0)
Back to top