Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for readLines (0.66 sec)

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

        static UndeclaredFileAccess fileReadLines(String filePath) {
            new UndeclaredFileAccess(filePath) {
                @Override
                String getKotlinExpression() {
                    "File(\"$filePath\").readLines()"
                }
    
                @Override
                String getJavaExpression() {
                    """((Supplier<Object>) () -> {
                        try {
    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-runtime/launcher/src/integTest/groovy/org/gradle/launcher/SystemClassLoaderTest.groovy

                            println "$noInfoHeading"
                        }
                    }
                }
            """
    
            when:
            succeeds "loadClasses"
    
            then:
            def lines = output.readLines()
            if (lines.find { it == noInfoHeading }) { return }
    
            lines.find { it == heading } // here for nicer output if the output isn't what we expect
            def headingIndex = lines.indexOf(heading)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  3. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/process/instrument/ProcessInstrumentationInStaticGroovyIntegrationTest.groovy

            configurationCacheFails(":help")
    
            then:
            failure.assertOutputContains("FOOBAR=$expectedEnvVar\nCWD=${cwd.path}")
            problems.assertFailureHasProblems(failure) {
                def line = 7 + command.readLines().size()
                withProblem("Build file 'build.gradle': line $line: external process started")
            }
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  4. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheSupportedTypesIntegrationTest.groovy

                    }
                }
                tasks.register("ok", SomeTask)
            """
    
            when:
            configurationCacheRun "ok"
            def expected = result.output.readLines().find { it.startsWith("ORDER=") }.substring(6)
    
            and:
            configurationCacheRun "ok"
    
            then:
            outputContains(expected)
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  5. build-logic/performance-testing/src/main/kotlin/gradlebuild/performance/PerformanceTestPlugin.kt

        val scenarioFile = repoRoot().file("performance-test-splits/include-$testProject-performance-scenarios.csv").asFile
        return if (scenarioFile.isFile)
            scenarioFile.readLines(StandardCharsets.UTF_8)
                .filter { it.isNotEmpty() }
                .map {
                    val (className, scenario) = it.split(";")
                    "$className.$scenario"
                }
        else listOf()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 04 06:42:07 UTC 2024
    - 24.4K bytes
    - Viewed (0)
  6. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheBuildOptionsIntegrationTest.groovy

                    it.getMyInputs().from(inputs)
                }
            '''
            def configurationCache = newConfigurationCacheFixture()
            def consumedFileNames = {
                file('build/consumer/out.txt').readLines().collect {
                    new File(it).name
                }.toSet()
            }
    
            when:
            configurationCacheRun('consumer', '-DgenerateInputs=4')
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 28K bytes
    - Viewed (0)
  7. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/jos/ObjectInputStreamAdapter.kt

        override fun skipBytes(len: Int): Int = inputStream.skip(len.toLong()).toInt()
    
        override fun read(buf: ByteArray, off: Int, len: Int): Int = inputStream.read(buf, off, len)
    
        override fun readLine(): String = unsupported("ObjectInputStream.readLine")
    
        override fun readFully(buf: ByteArray) = unsupported("ObjectInputStream.readFully")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  8. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/jos/JavaObjectSerializationCodec.kt

     * - the following methods of [ObjectInputStream] are not supported and will throw [UnsupportedOperationException]:
     *    - `readLine()`, `readFully(ByteArray)`, `readFully(ByteArray, Int, Int)`, `readUnshared()`, `readFields()`, `transferTo(OutputStream)` and `readAllBytes()`.
     * - validations registered via [ObjectInputStream.registerValidation] are simply ignored;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  9. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheStandardStreamsIntegrationTest.groovy

                        String name;
                        if (args.length < 1) {
                            try (BufferedReader in = new BufferedReader(new InputStreamReader(System.in))) {
                                name = in.readLine();
                                if (name != null) {
                                    name = name.trim();
                                }
                            }
                        } else {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  10. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/FilesInTransformIntegrationTest.groovy

                    String line = in.readLine();
                    while (line != null) {
                        System.out.println(line);
                        line = in.readLine();
                    }
                } catch (Exception e) {
                    throw new RuntimeException(e);
                }
                """
            )
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 4.2K bytes
    - Viewed (0)
Back to top