Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for fileContents (0.05 sec)

  1. build-logic-commons/module-identity/src/main/kotlin/gradlebuild.module-identity.gradle.kts

    /**
     * Returns the trimmed contents of the file at the given [path] after
     * marking the file as a build logic input.
     */
    fun Project.trimmedContentsOfFile(path: String): Provider<String> =
        providers.fileContents(repoRoot().file(path)).asText.map { it.trim() }
    
    // TODO Simplify the buildTimestamp() calculation if possible
    fun Project.buildTimestamp(): Provider<String> =
        providers.of(BuildTimestampValueSource::class) {
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Thu Oct 30 16:56:31 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  2. build-logic/documentation/src/main/groovy/gradlebuild/docs/GradleReleaseNotesPlugin.java

                task.getReleaseNotes().set(extension.getReleaseNotes().getMarkdownFile());
                task.getMilestone().convention(project.getProviders().fileContents(project.getIsolated().getRootProject().getProjectDirectory().file("version.txt")).getAsText().map(String::trim));
            });
    
            Configuration jquery = project.getConfigurations().create("jquery", conf -> {
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Fri May 16 18:26:52 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  3. build-logic/integration-testing/src/main/kotlin/gradlebuild/integrationtests/tasks/GenerateAutoTestedSamplesTestTask.kt

        }
    
        private fun generateForFile(file: FileTreeElement) {
            val fileContent = file.file.readText()
            val relativePath = file.relativePath.toString()
            require(!fileContent.contains("'''")) {
                "The class with class='autoTested' can't contains triple quotes: $relativePath"
            }
            if (!sampleStart.matcher(fileContent).find()) {
                return
            }
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Fri Dec 19 06:44:41 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  4. tests/test_file_and_form_order_issue_9116.py

        files: Annotated[list[bytes], File()],
        city: Annotated[str, Form()],
    ):
        return {"file_contents": files, "city": city}
    
    
    @app.post("/file_list_after_form")
    def file_list_after_form(
        city: Annotated[str, Form()],
        files: Annotated[list[bytes], File()],
    ):
        return {"file_contents": files, "city": city}
    
    
    client = TestClient(app)
    
    
    @pytest.fixture
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  5. cmd/sts-handlers_test.go

    			}
    			return nil
    		}
    		for _, f := range iamExportFiles {
    			iamFile := pathJoin(iamAssetsDir, f)
    
    			fileContent, ok := exportContent[f]
    			if !ok {
    				t.Fatalf("missing content for %s", f)
    			}
    
    			if err := rawDataFn(bytes.NewReader(fileContent), iamFile, len(fileContent)); err != nil {
    				t.Fatalf("failed to write %s: %v", iamFile, err)
    			}
    		}
    		zipWriter.Close()
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Wed Oct 15 17:00:45 UTC 2025
    - 103.4K bytes
    - Viewed (1)
Back to top