Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 68 for toPlatformLineSeparators (0.37 sec)

  1. platforms/core-runtime/build-profile/src/test/groovy/org/gradle/profile/ProfileReportRendererTest.groovy

    import org.gradle.test.fixtures.file.TestNameTestDirectoryProvider
    import org.junit.Rule
    import spock.lang.Specification
    
    import static org.gradle.util.internal.TextUtil.toPlatformLineSeparators
    
    class ProfileReportRendererTest extends Specification {
    
        @Rule TestNameTestDirectoryProvider temp = new TestNameTestDirectoryProvider(getClass())
    
        def "renders report"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 20 13:41:06 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  2. subprojects/core/src/test/groovy/org/gradle/api/internal/file/BaseDirFileResolverSpec.groovy

    import org.gradle.util.UsesNativeServices
    import org.junit.Assume
    import org.junit.Rule
    import spock.lang.Specification
    
    import java.util.concurrent.Callable
    
    import static org.gradle.util.internal.TextUtil.toPlatformLineSeparators
    
    @UsesNativeServices
    class BaseDirFileResolverSpec extends Specification {
        @Rule
        TestNameTestDirectoryProvider tmpDir = new TestNameTestDirectoryProvider(getClass())
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 20 11:15:22 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  3. subprojects/core/src/main/java/org/gradle/api/internal/file/copy/DuplicateHandlingCopyActionDecorator.java

                    }
                }
    
                action.processFile(details);
            }));
        }
    
        private String buildFormattedOutputPath(RelativePath relativePath) {
            return TextUtil.toPlatformLineSeparators(spec.getDestinationDir() == null ? relativePath.getPathString() : new File(spec.getDestinationDir(), relativePath.getPathString()).getPath());
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 02 14:30:00 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. platforms/software/ivy/src/test/groovy/org/gradle/api/publish/ivy/internal/publisher/IvyDescriptorFileGeneratorTest.groovy

        def descriptor = newDescriptor()
    
        def "writes correct prologue and schema declarations"() {
            expect:
            ivyFile.text.startsWith(TextUtil.toPlatformLineSeparators(
    """<?xml version="1.0" encoding="UTF-8"?>
    <ivy-module version="2.0">
    """))
        }
    
        def "writes Gradle metadata marker"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 14:02:46 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  5. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/OutputSpecification.groovy

    abstract class OutputSpecification extends Specification {
    
        public static final String CATEGORY = 'category'
        private Long counter = 1
    
        protected String toNative(String value) {
            return TextUtil.toPlatformLineSeparators(value)
        }
    
        /**
         * Returns timestamp representing 10AM today in local time.
         */
        long getTenAm() {
            return getTenAmAsDate().getTimeInMillis()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  6. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/toolchain/internal/PCHUtilsTest.groovy

            def prefixHeaderFile = new File(tempDir, "prefix-headers.h")
    
            when:
            PCHUtils.generatePrefixHeaderFile(headers, prefixHeaderFile)
    
            then:
            prefixHeaderFile.text == TextUtil.toPlatformLineSeparators(
    """#include "header.h"
    #include <stdio.h>
    #include "some/path/to/another.h"
    """)
        }
    
        def "can generate a source file for a pre-compiled header" () {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/api/internal/provider/PropertySpec.groovy

            e2.message == TextUtil.toPlatformLineSeparators("""Cannot query the value of <a> because it has no value available.
    The value of this property is derived from: <c>""")
    
            when:
            b.attachOwner(owner(), displayName("<b>"))
            a.get()
    
            then:
            def e3 = thrown(MissingValueException)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 87.8K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/internal/graph/DirectedGraphRendererTest.groovy

            when:
            StringWriter writer = new StringWriter()
            renderer.renderTo("1", writer)
    
            then:
            writer.toString() == TextUtil.toPlatformLineSeparators("""[1]
    +--- [2]
    |    \\--- [4]
    |         \\--- [5]
    \\--- [3]
    """)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 12 07:56:08 UTC 2021
    - 4.3K bytes
    - Viewed (0)
  9. subprojects/core/src/test/groovy/org/gradle/internal/xml/XmlTransformerTest.groovy

        }
    
        private void looksLike(String expected, byte[] actual) {
            DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(new ByteArrayInputStream(actual))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 15 08:16:06 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  10. subprojects/core/src/main/java/org/gradle/internal/xml/XmlTransformer.java

                        printDomNode(element, writer);
                    } else if (builder != null) {
                        writer.append(TextUtil.toPlatformLineSeparators(stripXmlDeclaration(builder)));
                    } else {
                        writer.append(TextUtil.toPlatformLineSeparators(stripXmlDeclaration(stringValue)));
                    }
                } catch (IOException e) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 15 08:15:53 UTC 2023
    - 13.7K bytes
    - Viewed (0)
Back to top