- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for convertLineSeparators (0.3 sec)
-
platforms/ide/tooling-api/src/testFixtures/groovy/org/gradle/integtests/tooling/fixture/TextUtil.java
*/ public static String normaliseLineSeparators(String str) { return str == null ? null : convertLineSeparators(str, "\n"); } /** * Converts all line separators in the specified string to the specified line separator. */ public static String convertLineSeparators(String str, String sep) { return str == null ? null : str.replaceAll("\r\n|\r|\n", sep); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 1.7K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/util/internal/TextUtilTest.groovy
class TextUtilTest extends Specification { private static String sep = "separator" private static String platformSep = TextUtil.platformLineSeparator def convertLineSeparators() { expect: TextUtil.convertLineSeparators(original, sep) == converted where: original | converted "" | ""
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 04 22:26:51 UTC 2021 - 3.9K bytes - Viewed (0) -
platforms/jvm/plugins-application/src/main/java/org/gradle/api/internal/plugins/DefaultTemplateBasedStartScriptGenerator.java
SimpleTemplateEngine engine = new SimpleTemplateEngine(); Template template = engine.createTemplate(reader); String output = template.make(binding).toString(); return TextUtil.convertLineSeparators(output, lineSeparator); } catch (IOException e) { throw new UncheckedIOException(e); } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 11 20:20:16 UTC 2024 - 3.7K bytes - Viewed (0) -
platforms/ide/ide-native/src/main/groovy/org/gradle/ide/visualstudio/tasks/internal/VisualStudioSolutionFile.groovy
def provider = new SimpleTextProvider() generateContent(provider.asBuilder()) actions.each { it.execute(provider) } outputStream << TextUtil.convertLineSeparators(provider.getText(), TextUtil.getWindowsLineSeparator()) } private void generateContent(StringBuilder builder) { builder << baseText projects.each { File projectFile, String projectName ->
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Dec 11 13:37:56 UTC 2023 - 4.9K bytes - Viewed (0) -
platforms/native/platform-native/src/testFixtures/groovy/org/gradle/ide/visualstudio/fixtures/SolutionFile.groovy
String content Map<String, ProjectReference> projects = [:] SolutionFile(TestFile solutionFile) { solutionFile.assertIsFile() this.file = solutionFile assert TextUtil.convertLineSeparators(solutionFile.text, TextUtil.windowsLineSeparator) == solutionFile.text : "Solution file contains non-windows line separators" content = TextUtil.normaliseLineSeparators(solutionFile.text)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 3.5K bytes - Viewed (0) -
platforms/core-runtime/logging/src/main/java/org/gradle/util/TextUtil.java
} /** * Converts all line separators in the specified string to the specified line separator. */ @Nullable public static String convertLineSeparators(@Nullable String str, String sep) { logDeprecation(); return str == null ? null : replaceLineSeparatorsOf(str, sep); } /**
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 13:09:37 UTC 2024 - 8.9K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/main/java/org/gradle/util/internal/TextUtil.java
} /** * Converts all line separators in the specified string to the specified line separator. */ @Nullable public static String convertLineSeparators(@Nullable String str, String sep) { return str == null ? null : replaceLineSeparatorsOf(str, sep); } /**
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 29 06:47:40 UTC 2024 - 12.8K bytes - Viewed (0)