Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 68 for toPlatformLineSeparators (0.61 sec)

  1. platforms/software/testing-base/src/main/java/org/gradle/api/internal/tasks/testing/logging/AbstractTestLogger.java

            }
            lastSeenTestDescriptor = descriptor;
            lastSeenTestEvent = event;
            if (details != null) {
                output.append(TextUtil.toPlatformLineSeparators(details));
            }
        }
    
        private String getEventPath(TestDescriptor descriptor) {
            List<String> names = new ArrayList<String>();
            TestDescriptor current = descriptor;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  2. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/services/LoggingServiceRegistryTest.groovy

            loggingManager.start()
            logger.warn("warning")
            logger.error("error")
    
            then:
            outputs.stdOut == TextUtil.toPlatformLineSeparators('warning\n')
            outputs.stdErr == TextUtil.toPlatformLineSeparators('error\n')
        }
    
        def consumesSlf4jWhenEmbedded() {
            given:
            def registry = LoggingServiceRegistry.newEmbeddableLogging()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 20.3K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/registry/DefaultModelRegistryTest.groovy

            when:
            registry.get("foo")
    
            then:
            ConfigurationCycleException e = thrown()
            e.message == TextUtil.toPlatformLineSeparators("""A cycle has been detected in model rule dependencies. References forming the cycle:
    foo
    \\- foo mutator
       \\- bar
          \\- bar mutator
             \\- foo""")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 56K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/projectmodule/DefaultProjectDependencyPublicationResolverTest.groovy

            and:
            resolver.resolveComponent(ModuleVersionIdentifier, project.identityPath)
    
            then:
            def e = thrown(UnsupportedOperationException)
            e.message == TextUtil.toPlatformLineSeparators("""Publishing is not able to resolve a dependency on a project with multiple publications that have different coordinates.
    Found the following publications in <project>:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 19 01:37:13 UTC 2023
    - 15.9K bytes
    - Viewed (0)
  5. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/toolchain/internal/msvcpp/WindowsKitWindowsSdkLocatorTest.groovy

            then:
            !result.available
            result.component == null
    
            when:
            result.explain(visitor)
    
            then:
            visitor.toString() == TextUtil.toPlatformLineSeparators("""Could not locate a Windows SDK installation. None of the following locations contain a valid installation:
      - ${dir1}""")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  6. platforms/jvm/ear/src/integTest/groovy/org/gradle/plugins/ear/EarPluginIntegrationTest.groovy

    import org.gradle.test.fixtures.archive.JarTestFixture
    import org.hamcrest.CoreMatchers
    import spock.lang.Issue
    
    import static org.gradle.util.internal.TextUtil.toPlatformLineSeparators
    
    @TestReproducibleArchives
    class EarPluginIntegrationTest extends AbstractIntegrationSpec {
    
        def "setup"() {
            file("rootLib.jar").createNewFile()
            file("earLib.jar").createNewFile()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 17.2K bytes
    - Viewed (0)
  7. platforms/core-runtime/logging/src/main/java/org/gradle/util/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) {
            logDeprecation();
            return str == null ? null : replaceLineSeparatorsInternalOf(str, getPlatformLineSeparatorInternal());
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  8. platforms/software/maven/src/test/groovy/org/gradle/api/publish/maven/internal/tasks/MavenPomFileGeneratorTest.groovy

        def pom = newPom()
    
        def "writes correct prologue and schema declarations"() {
            expect:
            writePomFile().text.startsWith(TextUtil.toPlatformLineSeparators(
    """<?xml version="1.0" encoding="UTF-8"?>
    <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 14:02:46 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/dsl/PublishArtifactNotationParserFactoryTest.groovy

            when:
            publishArtifactNotationParser.parseNotation(new Point(1, 2))
    
            then:
            def e = thrown(UnsupportedNotationException)
            e.message.contains(TextUtil.toPlatformLineSeparators('''
    The following types/formats are supported:
      - Instances of ConfigurablePublishArtifact.
      - Instances of PublishArtifact.
      - Instances of AbstractArchiveTask, for example jar.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/tasks/DefaultTaskDependencyTest.groovy

            dependency.getDependencies(task)
    
            then:
            def e = thrown(TaskDependencyResolveException)
            e.cause instanceof UnsupportedNotationException
            e.cause.message == TextUtil.toPlatformLineSeparators('''Cannot convert 12 to a task.
    The following types/formats are supported:
      - A String or CharSequence task name or path
      - A Task instance
      - A TaskReference instance
      - A Buildable instance
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 9.4K bytes
    - Viewed (0)
Back to top