- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 44 for fileContent (1.84 sec)
-
subprojects/core/src/testFixtures/groovy/org/gradle/util/JarUtils.groovy
def jarOut = new JarOutputStream(out) try { contents.each { file, fileContents -> def zipEntry = new ZipEntry(file) zipEntry.setTime(0) jarOut.putNextEntry(zipEntry) jarOut << fileContents } } finally { jarOut.close() } return out.toByteArray() }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Aug 07 19:17:11 UTC 2023 - 6.4K bytes - Viewed (0) -
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): String = providers.fileContents(repoRoot().file(path)).asText.get().trim() // TODO Simplify the buildTimestamp() calculation if possible fun Project.buildTimestamp(): Provider<String> = providers.of(BuildTimestampValueSource::class) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Sep 30 16:17:28 UTC 2023 - 4.9K bytes - Viewed (0) -
platforms/documentation/docs/src/docs/dsl/org.gradle.api.provider.ProviderFactory.xml
</tr> <tr> <td>environmentVariablesPrefixedBy</td> </tr> <tr> <td>exec</td> </tr> <tr> <td>fileContents</td> </tr> <tr> <td>gradleProperty</td> </tr> <tr> <td>gradlePropertiesPrefixedBy</td> </tr> <tr>
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 2K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheBuildOptionsIntegrationTest.groovy
buildKotlinFile """ $greetTask val emptyFileProperty = objects.fileProperty() val fileContents = providers.fileContents(emptyFileProperty).asText val greetingFromFile: $operatorType = fileContents.$operator("hello") tasks.register<Greet>("greet") { greeting.set(greetingFromFile) } """ when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 28K bytes - Viewed (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/GradleReleaseNotesPlugin.java
task.getReleaseNotes().set(extension.getReleaseNotes().getMarkdownFile()); task.getMilestone().convention(project.getProviders().fileContents(project.getRootProject().getLayout().getProjectDirectory().file("version.txt")).getAsText().map(String::trim)); }); Configuration jquery = project.getConfigurations().create("jquery", conf -> {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Mar 10 11:32:18 UTC 2023 - 5.4K bytes - Viewed (0) -
pkg/kubelet/config/file_linux_test.go
} func (tc *testCase) writeToFile(dir, name string, t *testing.T) string { fileContents, err := runtime.Encode(clientscheme.Codecs.LegacyCodec(v1.SchemeGroupVersion), tc.pod) if err != nil { t.Fatalf("%s: error in encoding the pod: %v", tc.desc, err) } fileName := filepath.Join(dir, name) if err := writeFile(fileName, []byte(fileContents)); err != nil { t.Fatalf("unable to write test file %#v", err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 14 09:38:23 UTC 2022 - 12.3K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheInitScriptsIntegrationTest.groovy
def inputFile = fileFactory.file(file('${normaliseFileSeparators(buildLogicInput.absolutePath)}')) def text = providers.fileContents(inputFile).asText.get() println text """ } when: configurationCacheRun 'tasks', '-I', initScript.absolutePath then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 7.8K bytes - Viewed (0) -
subprojects/core-api/src/main/java/org/gradle/api/provider/ValueSource.java
* @param <P> The source specific parameter type. * @see ProviderFactory#environmentVariable(String) * @see ProviderFactory#systemProperty(String) * @see ProviderFactory#fileContents(RegularFile) * @see ProviderFactory#of(Class, Action) * @see <a href="https://docs.gradle.org/current/userguide/configuration_cache.html">Configuration Cache</a> * @since 6.1 */
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Mar 25 13:02:13 UTC 2024 - 5.5K bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild.binary-compatibility.gradle
def acceptedViolations = AcceptedApiChanges.parse(apiChangesJsonDirectory.asFile.listFiles() .findAll { it.name.endsWith(".json") } .collect { providers.fileContents(apiChangesJsonDirectory.file(it.name)).asText.get() } ) def compatibilityBaselineVersion = moduleIdentity.releasedVersions.get().mostRecentRelease.version def ARTIFACT_TYPE = Attribute.of('artifactType', String)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jun 04 14:00:46 UTC 2024 - 9K bytes - Viewed (0) -
pkg/volume/util/operationexecutor/operation_executor_test.go
}, }, }, }, Containers: []v1.Container{ { Name: "secret-volume-test", Image: "registry.k8s.io/mounttest:0.8", Args: []string{ "--file_content=/etc/secret-volume/data-1", "--file_mode=/etc/secret-volume/data-1"}, VolumeMounts: []v1.VolumeMount{ { Name: secretName, MountPath: "/data", }, }, },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 26.9K bytes - Viewed (0)