- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 352 for asFile (0.19 sec)
-
platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/FileSystemPropertySpec.groovy
def prop = propertyWithNoValue() prop.set(file) expect: prop.get().asFile == file } def "can set value using relative file"() { given: def file = new File("thing") def prop = propertyWithNoValue() prop.set(file) expect: prop.get().asFile == tmpDir.file("thing") } def "can set value using absolute file provider"() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 4.9K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/dependencyManagement/definingUsingConfigurations-custom/groovy/build.gradle
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 719 bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/java/customDirs/kotlin/build.gradle.kts
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 1.3K bytes - Viewed (0) -
platforms/jvm/scala/src/test/groovy/org/gradle/api/plugins/scala/ScalaPluginTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Sep 18 15:43:33 UTC 2023 - 6.2K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/tasks/customTaskWithFileProperty/kotlin/build.gradle.kts
// tag::task[] abstract class GreetingToFileTask : DefaultTask() { @get:OutputFile abstract val destination: RegularFileProperty @TaskAction fun greet() { val file = destination.get().asFile file.parentFile.mkdirs() file.writeText("Hello!") } } // end::task[] // tag::config[] val greetingFile = objects.fileProperty() tasks.register<GreetingToFileTask>("greet") {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 764 bytes - Viewed (0) -
platforms/jvm/code-quality/src/main/groovy/org/gradle/api/plugins/quality/internal/CheckstyleInvoker.groovy
def sarifOutputLocation = parameters.sarifOutputLocation.asFile.getOrElse(null) VersionNumber currentToolVersion = determineCheckstyleVersion(Thread.currentThread().getContextClassLoader()) def sarifSupported = isSarifSupported(currentToolVersion) if (isHtmlReportEnabledOnly(isXmlRequired, isHtmlRequired)) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 16 22:34:07 UTC 2023 - 9.2K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/dependencyManagement/artifactTransforms-relocate/groovy/build.gradle
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 3.4K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/dependencyManagement/artifactTransforms-relocate/kotlin/build.gradle.kts
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 3.3K bytes - Viewed (0) -
platforms/jvm/language-groovy/src/integTest/resources/org/gradle/groovy/compile/InvokeDynamicGroovyCompilerSpec/canEnableAndDisableInvokeDynamicOptimization/build.gradle
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 12 18:44:49 UTC 2023 - 1K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/maven-publish/publish-artifact/groovy/build.gradle
} def rpmFile = layout.buildDirectory.file('rpms/my-package.rpm') def rpmArtifact = artifacts.add('conf', rpmFile.get().asFile) { type 'rpm' builtBy 'rpm' } // end::custom-artifact[] tasks.register('rpm') { outputs.file rpmFile doLast { // produce real RPM here rpmFile.get().asFile << 'file contents' } } // tag::custom-artifact-publication[] publishing { publications {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 933 bytes - Viewed (0)