Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 68 of 68 for toPlatformLineSeparators (0.28 sec)

  1. platforms/software/build-init/src/test/groovy/org/gradle/buildinit/tasks/InitBuildSpec.groovy

            init.testFramework = "spock"
    
            when:
            init.setupProjectLayout()
    
            then:
            GradleException e = thrown()
            e.message == TextUtil.toPlatformLineSeparators("""The requested test framework 'spock' is not supported for 'some-type' build type. Supported frameworks:
      - 'none'
      - 'junit'""")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 08 20:10:43 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  2. platforms/core-runtime/base-services/src/main/java/org/gradle/util/internal/TextUtil.java

            return pattern.matcher(inString).replaceAll(byString);
        }
    
        /**
         * Converts all line separators in the specified string to the platform's line separator.
         */
        public static String toPlatformLineSeparators(String str) {
            return str == null ? null : replaceLineSeparatorsOf(str, getPlatformLineSeparator());
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:40 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  3. subprojects/core/src/test/groovy/org/gradle/internal/xml/SimpleXmlWriterSpec.groovy

            writer.characters("text")
            writer.endElement()
            writer.endElement()
    
            then:
            xml == TextUtil.toPlatformLineSeparators('''<?xml version="1.0" encoding="UTF-8"?>
    <root items="9">
        <item/>
        <item>some text</item>
        <item>
            <nested-1>
                <nested-2> </nested-2>
            </nested-1>
        </item>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Nov 02 12:15:58 UTC 2021
    - 14.1K bytes
    - Viewed (0)
  4. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/service/DefaultServiceRegistryTest.groovy

            expect:
            registry.get(String)
    
            when:
            registry.get(Comparable)
    
            then:
            ServiceLookupException e = thrown()
            e.message == TextUtil.toPlatformLineSeparators("""Multiple services of type Comparable available in DefaultServiceRegistry:
       - Service Integer at DefaultServiceRegistryTest\$TestProvider.createInt()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 12:53:25 UTC 2024
    - 59.8K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/CollectionPropertySpec.groovy

            property.add(elementProvider)
    
            when:
            property.get()
    
            then:
            def e = thrown(IllegalStateException)
            e.message == TextUtil.toPlatformLineSeparators("""Cannot query the value of ${displayName} because it has no value available.
    The value of this property is derived from: <source>""")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  6. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/GradleExecuter.java

                @Override
                public void connect(PipedInputStream snk) throws IOException {
                    super.connect(snk);
                    write(TextUtil.toPlatformLineSeparators(input).getBytes());
                }
            });
        }
    
        /**
         * Executes the requested build, asserting that the build succeeds. Resets the configuration of this executer.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  7. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/toolchain/internal/msvcpp/DefaultVisualStudioLocatorTest.groovy

            then:
            !result.available
            result.component == null
    
            when:
            result.explain(visitor)
    
            then:
            visitor.toString() == TextUtil.toPlatformLineSeparators("""Could not locate a Visual Studio installation. None of the following locations contain a valid installation:
      - ${dir1}
      - ${dir2}""")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 25.1K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/MapPropertySpec.groovy

            property.put('k3', provider)
    
            when:
            property.get()
    
            then:
            def e = thrown(IllegalStateException)
            e.message == TextUtil.toPlatformLineSeparators("""Cannot query the value of ${displayName} because it has no value available.
    The value of this property is derived from: <source>""")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 58.7K bytes
    - Viewed (0)
Back to top