Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for writeFn (0.23 sec)

  1. build-logic/buildquality/src/main/kotlin/gradlebuild/incubation/action/IncubatingApiReportAggregationWorkAction.kt

                        writer.println("<ul>")
                        issues.forEach {
                            writer.println("   <li>${it.escape()}</li>")
                        }
                        writer.println("</ul>")
                    }
                }
                writer.println("</body></html>")
            }
        }
    
        private
        fun String.escape() = replace("<", "&lt;").replace(">", "&gt;")
    }
    
    
    HTML
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Mon Jan 18 06:55:55 GMT 2021
    - 3.4K bytes
    - Viewed (0)
  2. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/GenerateDefaultImports.java

            try (PrintWriter writer = new PrintWriter(new FileWriter(getImportsDestFile().getAsFile().get()))) {
                for (String packageName : packages) {
                    writer.print("import ");
                    writer.print(packageName);
                    writer.println(".*");
                }
            }
        }
    Java
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 2.3K bytes
    - Viewed (0)
  3. build-logic/documentation/src/test/resources/org/gradle/test/Java8Interface.java

    import java.util.function.Supplier;
    
    /**
     * An interface that uses Java 8 source features.
     */
    public interface Java8Interface extends CombinedInterface, JavaInterface {
        default String getName() {
            try (Writer writer = new StringWriter()) {
                Supplier<String> methodReference = this::toString;
                Supplier<String> lambda = () -> this.toString();
            } catch (IOException ignore) {
            }
            return "foo";
    Java
    - Registered: Wed Apr 10 11:36:10 GMT 2024
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 1.1K bytes
    - Viewed (0)
  4. .github/PULL_REQUEST_TEMPLATE.md

    - [ ] Make sure all contributed code can be distributed under the terms of the [Apache License 2.0](https://github.com/gradle/gradle/blob/master/LICENSE), e.g. the code was written by yourself or the original code is licensed under [a license compatible to Apache License 2.0](https://apache.org/legal/resolved.html).
    Plain Text
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Tue Feb 13 22:36:19 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  5. build-logic-commons/basics/src/test/kotlin/gradlebuild/basics/tasks/PackageListGeneratorIntegrationTest.kt

        }
    
        private
        fun touchFile(path: Path) {
            Files.createDirectories(path.parent)
            Files.write(path, byteArrayOf())
        }
    
        private
        fun someClasses(): Sequence<Path> {
            val directory = projectDir.resolve("classes")
    
            touchFile(directory.resolve("com/acme/Foo.class"))
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Sat Sep 30 16:17:28 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  6. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/util/ReproduciblePropertiesWriter.kt

        companion object {
            /**
             * Writes [Map] of data as [Properties] to a file, but without including the timestamp comment.
             *
             * See [PropertiesUtils.store].
             */
            fun store(data: Map<String, Any>, file: File, comment: String? = null) {
                store(propertiesFrom(data), file, comment)
            }
    
            /**
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Sat Sep 30 16:17:28 GMT 2023
    - 1.6K bytes
    - Viewed (0)
  7. .github/workflows/feedback.yml

    name: Feedback
    
    on:
      schedule:
        - cron: '0 * * * *' # every hour
      workflow_dispatch:
    
    permissions: {}
    
    jobs:
      feedback:
        permissions:
          issues: write
          pull-requests: write
        runs-on: ubuntu-latest
        steps:
          # Feedback loop: ask for something on PR/Issue and close if not provided or return to the queue on update.
          # https://github.com/gradle/issue-management-action/blob/main/src/feedback.ts
    Others
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Thu May 02 09:13:16 GMT 2024
    - 516 bytes
    - Viewed (0)
  8. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/AbstractGradleViolationRule.groovy

        private static String prettyPrintJson(def acceptanceJson) {
            def stringWriter = new StringWriter()
            new JsonWriter(stringWriter).withCloseable { writer ->
                writer.setIndent("    ")
                new Gson().toJson(acceptanceJson, AcceptedApiChange, writer)
            }
            return stringWriter.toString()
        }
    
        String getCurrentVersion() {
            return context.getUserData().get("currentVersion")
    Groovy
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Tue Apr 23 08:40:36 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  9. .github/workflows/issue-metadata.yml

    name: Check issues metadata
    
    on:
      issues:
        types: [ opened, unlabeled, closed ]
    
    permissions: {}
    
    jobs:
      check_issue_metadata:
        permissions:
          issues: write
        runs-on: ubuntu-latest
        steps:
          # Check that issues have proper metadata: labels and milestone
          # https://github.com/gradle/issue-management-action/blob/main/src/issue-metadata.ts
          - uses: gradle/issue-management-action@v1
            with:
    Others
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Thu May 02 09:13:16 GMT 2024
    - 463 bytes
    - Viewed (0)
  10. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/tasks/PackageListGenerator.kt

                        @Throws(Exception::class)
                        override fun doExecute(s: String) {
                            bufferedWriter.write(s)
                            bufferedWriter.write('\n'.code)
                        }
                    })
                }
            })
        }
    Plain Text
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Sat Sep 30 16:17:28 GMT 2023
    - 6.3K bytes
    - Viewed (0)
Back to top