Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 330 for toPaths (0.21 sec)

  1. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/sources/FileBytesValueSource.java

    public abstract class FileBytesValueSource extends FileContentValueSource<byte[]> {
    
        @Override
        protected byte[] obtainFrom(File file) {
            try {
                return Files.readAllBytes(file.toPath());
            } catch (IOException e) {
                throw new UncheckedIOException(e);
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  2. 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)
  3. platforms/documentation/docs/src/snippets/dependencyManagement/artifactTransforms-unzip/groovy/build.gradle

            }
            if (entry.isDirectory) {
                output.mkdirs()
            } else {
                output.parentFile.mkdirs()
                zip.getInputStream(entry).withCloseable { Files.copy(it, output.toPath()) }
            }
    // tag::artifact-transform-unzip[]
        }
    }
    // end::artifact-transform-unzip[]
    
    def usage = Attribute.of('usage', String)
    // tag::artifact-transform-registration[]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/samples/writing-tasks/tasks-with-dependency-resolution-result-inputs/common/dependency-reports/src/main/java/com/example/GraphResolvedComponents.java

                Set<ResolvedComponentResult> seen = new HashSet<>();
                reportComponent(getRootComponent().get(), writer, seen, "");
            }
            try (Stream<String> stream = Files.lines(outputFile.toPath())) {
                stream.forEach(System.out::println);
            }
        }
    
        private void reportComponent(
            ResolvedComponentResult component,
            PrintWriter writer,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  5. 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)
  6. platforms/jvm/scala/src/main/java/org/gradle/api/internal/tasks/scala/ZincScalaCompilerFactory.java

                    List<Path> xsbtiJarsAsPath = Arrays.stream(scalaInstance.allJars()).map(File::toPath).collect(Collectors.toList());
                    scala.collection.Iterable<Path> xsbtiJars = JavaConverters.collectionAsScalaIterable(xsbtiJarsAsPath);
                    AnalyzingCompiler$.MODULE$.compileSources(sourceJars, bridgeJar.toPath(), xsbtiJars, "compiler-bridge", rawCompiler, logger);
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 10 15:51:31 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  7. platforms/jvm/language-java/src/main/java/org/gradle/api/internal/tasks/compile/incremental/transaction/CompileTransaction.java

            }
        }
    
        private static void moveFile(File sourceFile, File destinationFile) {
            try {
                destinationFile.getParentFile().mkdirs();
                Files.move(sourceFile.toPath(), destinationFile.toPath(), REPLACE_EXISTING);
            } catch (IOException e) {
                throw new UncheckedIOException(e);
            }
        }
    
        private static class StashedFile {
            private final File sourceFile;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  8. analysis/analysis-api-standalone/analysis-api-standalone-native/tests/org/jetbrains/kotlin/analysis/api/standalone/konan/fir/test/cases/session/builder/testUtils.kt

    internal fun compileToNativeKLib(kLibSourcesRoot: Path): Path {
        val ktFiles = Files.walk(kLibSourcesRoot).asSequence().filter { it.extension == "kt" }.toList()
        val testKlib = KtTestUtil.tmpDir("testLibrary").resolve("library.klib").toPath()
    
        val arguments = buildList {
            ktFiles.mapTo(this) { it.absolutePathString() }
            addAll(listOf("-produce", "library"))
            addAll(listOf("-output", testKlib.absolutePathString()))
        }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Thu Nov 16 13:31:53 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/main/java/org/gradle/internal/resource/cached/TwoStageByUrlCachedExternalResourceIndex.java

            this.writableCache = writableCache;
        }
    
        @Override
        public void store(String key, File artifactFile, @Nullable ExternalResourceMetaData metaData) {
            if (artifactFile.toPath().startsWith(readOnlyCachePath)) {
                // skip writing because the file comes from the RO cache
                return;
            }
            writableCache.store(key, artifactFile, metaData);
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  10. platforms/jvm/jvm-services/src/integTest/groovy/org/gradle/internal/jvm/inspection/DefaultJvmMetadataDetectorIntegrationTest.groovy

            def javaHome = InstallationLocation.userDefined(jvm.getJavaHome(), "test")
            def metadata = detector.getMetadata(javaHome)
    
            then:
            metadata.javaHome == jvm.javaHome.toPath()
            metadata.languageVersion == jvm.javaVersion
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 18:25:34 UTC 2024
    - 2K bytes
    - Viewed (0)
Back to top