Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 61 for toPlatformLineSeparators (0.89 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/process/internal/WorkerProcessIntegrationTest.groovy

            then:
            outputEventListener.toString().contains(TextUtil.toPlatformLineSeparators("[ERROR] [system.err] <Normal>this is stderr\n</Normal>]"))
            outputEventListener.toString().contains(TextUtil.toPlatformLineSeparators("[QUIET] [system.out] <Normal>this is stdout\n</Normal>]"))
        }
    
        def "log level and categories are preserved when forwarded to main process"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 20 11:15:22 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  2. platforms/software/build-init/src/integTest/groovy/org/gradle/buildinit/plugins/MavenConversionIntegrationTest.groovy

            conventionPluginScript.text.contains(TextUtil.toPlatformLineSeparators('''
    java {
        withSourcesJar()
    }'''))
    
            implSubprojectBuildFile.text.contains("publishing.publications.maven.artifact(testsJar)") || implSubprojectBuildFile.text.contains('(publishing.publications["maven"] as MavenPublication).artifact(testsJar)')
            implSubprojectBuildFile.text.contains(TextUtil.toPlatformLineSeparators('''
    java {
        withJavadocJar()
    }'''))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 14 15:23:34 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  3. platforms/software/build-init/src/integTest/groovy/org/gradle/buildinit/plugins/BasicTypeInitIntegrationTest.groovy

    import org.gradle.buildinit.plugins.fixtures.ScriptDslFixture
    
    import static org.gradle.buildinit.plugins.internal.modifiers.BuildInitDsl.KOTLIN
    import static org.gradle.util.internal.TextUtil.toPlatformLineSeparators
    
    
    class BasicTypeInitIntegrationTest extends AbstractInitIntegrationSpec {
    
        @Override
        String subprojectName() { null }
    
        def "defaults to kotlin build scripts"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 08 20:10:55 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  4. platforms/software/build-init/src/test/groovy/org/gradle/buildinit/plugins/internal/GitAttributesGeneratorTest.groovy

    import org.gradle.api.file.RegularFile
    import org.gradle.test.fixtures.file.TestNameTestDirectoryProvider
    import org.junit.Rule
    import spock.lang.Specification
    
    import static org.gradle.util.internal.TextUtil.toPlatformLineSeparators
    
    class GitAttributesGeneratorTest extends Specification {
    
        @Rule
        TestNameTestDirectoryProvider tmpDir = new TestNameTestDirectoryProvider(getClass())
    
        InitSettings settings = Mock(InitSettings) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 12:54:54 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  5. platforms/ide/ide/src/test/groovy/org/gradle/plugins/ide/internal/generator/XmlPersistableConfigurationObjectTest.groovy

            rootElement = 'modified-xml'
            def outputFile = tmpDir.file('output.xml')
    
            when:
            object.store(outputFile)
    
            then:
            outputFile.text == TextUtil.toPlatformLineSeparators('<?xml version="1.0" encoding="UTF-8"?>\n<root name="modified-xml"/>\n')
        }
    
        def "can add transform Actions"() {
            object.loadDefaults()
            def outputFile = tmpDir.file('output.xml')
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  6. platforms/software/build-init/src/test/groovy/org/gradle/buildinit/plugins/internal/AbstractBuildScriptBuilderTest.groovy

    import org.gradle.test.fixtures.file.TestFile
    import org.gradle.test.fixtures.file.TestNameTestDirectoryProvider
    import org.junit.Rule
    import spock.lang.Specification
    
    import static org.gradle.util.internal.TextUtil.toPlatformLineSeparators
    
    abstract class AbstractBuildScriptBuilderTest extends Specification {
        @Rule
        TestNameTestDirectoryProvider tmpDir = new TestNameTestDirectoryProvider(getClass())
    
        Directory target = Mock() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 13:47:19 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  7. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/text/LinePrefixingStyledTextOutputTest.groovy

            output.text("2nd line")
            output.text(" - still 2nd line")
            output.println()
            output.text("3rd line")
    
            then:
            result.toString() == TextUtil.toPlatformLineSeparators("""[PREFIX]1st line
    [PREFIX]2nd line - still 2nd line
    [PREFIX]3rd line""")
        }
    
        def "allows not prefixing first line"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  8. testing/integ-test/src/integTest/groovy/org/gradle/integtests/StdioIntegrationTest.groovy

    '''
            executer.withStdinPipe(new PipedOutputStream() {
                @Override
                void connect(PipedInputStream snk) throws IOException {
                    super.connect(snk)
                    write(TextUtil.toPlatformLineSeparators("abc\n123").bytes)
                    close()
                }
            })
    
            when:
            run "echo"
    
            then:
            output.contains("[abc][123]")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 30 05:02:18 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  9. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/toolchain/internal/DefaultNativeToolChainRegistryTest.groovy

    import org.gradle.test.fixtures.file.TestNameTestDirectoryProvider
    import org.gradle.util.TestUtil
    import org.junit.Rule
    import spock.lang.Specification
    
    import static org.gradle.util.internal.TextUtil.toPlatformLineSeparators
    
    class DefaultNativeToolChainRegistryTest extends Specification {
        @Rule
        TestNameTestDirectoryProvider testDir = new TestNameTestDirectoryProvider(getClass())
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  10. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/deprecation/LoggingDeprecatedFeatureHandlerTest.groovy

            events.size() == 2
    
            and:
            events[0].message == TextUtil.toPlatformLineSeparators("""feature1 removal
    \tat some.KotlinGradleScript.foo(GradleScript.gradle.kts:31337)
    \t(Run with --stacktrace to get the full stack trace of this deprecation warning.)""")
            events[1].message == TextUtil.toPlatformLineSeparators("""feature1 removal
    \tat some.KotlinGradleScript.foo(GradleScript.gradle.kts:7)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 16:09:54 UTC 2024
    - 22.2K bytes
    - Viewed (0)
Back to top