- Sort Score
- Result 10 results
- Languages All
Results 221 - 230 of 579 for asFile (0.18 sec)
-
platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r51/TransformProgressEventCrossVersionSpec.groovy
@InputArtifact abstract Provider<FileSystemLocation> getInputArtifact() void transform(TransformOutputs outputs) { def input = inputArtifact.get().asFile def output = outputs.file(input.name + ".txt") output.text = String.valueOf(input.length()) } } """ }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 16 10:10:39 UTC 2024 - 9K bytes - Viewed (0) -
platforms/jvm/plugins-java-library/src/test/groovy/org/gradle/api/plugins/JavaLibraryPluginTest.groovy
def apiVariant = javaLibrary.usages.find { it.name == 'apiElements' } then: runtimeVariant.artifacts.collect {it.file} == [jarTask.archiveFile.get().asFile] runtimeVariant.dependencies.size() == 2 runtimeVariant.dependencies == project.configurations.getByName(JvmConstants.RUNTIME_CLASSPATH_CONFIGURATION_NAME).allDependencies.withType(ModuleDependency)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Jan 18 20:08:52 UTC 2024 - 9K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/dependencyManagement/artifactTransforms-unzip/groovy/build.gradle
abstract Provider<FileSystemLocation> getInputArtifact() @Override void transform(TransformOutputs outputs) { def input = inputArtifact.get().asFile def unzipDir = outputs.dir(input.name) // <3> unzipTo(input, unzipDir) // <4> }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 2.2K bytes - Viewed (0) -
build-logic-settings/build-environment/src/main/kotlin/gradlebuild/basics/BuildEnvironmentService.kt
val gitBranch = git("rev-parse", "--abbrev-ref", "HEAD") @Suppress("UnstableApiUsage") private fun git(vararg args: String): Provider<String> { val projectDir = parameters.rootProjectDir.asFile.get() val execOutput = providers.exec { workingDir = projectDir isIgnoreExitValue = true commandLine = listOf("git", *args) if (OperatingSystem.current().isWindows) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 21 05:01:36 UTC 2024 - 2K bytes - Viewed (0) -
platforms/core-configuration/flow-services/src/integTest/groovy/org/gradle/internal/flow/services/FlowScopeIntegrationTest.groovy
parameters.text = producer.flatMap { it.outputFile }.map { it.asFile.text } } } } abstract class Producer extends DefaultTask { @OutputFile abstract RegularFileProperty getOutputFile() @TaskAction def produce() { outputFile.get().asFile << "42" } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 24 15:01:34 UTC 2024 - 9.2K bytes - Viewed (0) -
platforms/software/build-init/src/test/groovy/org/gradle/buildinit/plugins/internal/GitAttributesGeneratorTest.groovy
def setup() { Directory target = Mock() RegularFile attributesFile = Mock() 1 * settings.target >> target 1 * target.file('.gitattributes') >> attributesFile 1 * attributesFile.asFile >> gitattributesFile } def "generates .gitattributes file"() { setup: def generator = new GitAttributesGenerator() when: generator.generate(settings, null)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 15 12:54:54 UTC 2024 - 2.4K bytes - Viewed (0) -
platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/JavaExecIntegrationTest.groovy
abstract RegularFileProperty getInputFile() @Override Iterable<String> asArguments() { return ["-Dinput.file=\${inputFile.get().asFile.absolutePath}".toString()] } } abstract class MyApplicationCommandLineArguments implements CommandLineArgumentProvider { @OutputFile
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 06:04:19 UTC 2024 - 8.3K bytes - Viewed (0) -
build-logic/integration-testing/src/main/kotlin/gradlebuild/integrationtests/ide/AndroidStudioSystemProperties.kt
} return systemProperties } private fun getStudioHome(): String { if (autoDownloadAndroidStudio) { val androidStudioPath = studioInstallation.studioInstallLocation.asFile.get().absolutePath return "-Dstudio.home=$androidStudioPath" } else if (androidStudioHome.isPresent) { return "-Dstudio.home=${androidStudioHome.get()}" }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Feb 20 09:51:32 UTC 2024 - 2.9K bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/transforms/ExplodeZipAndFindJars.groovy
void transform(TransformOutputs outputs) { File gradleJars = outputs.dir("gradle-jars") File dependencies = outputs.dir("gradle-dependencies") try (ZipInputStream zin = new ZipInputStream(artifact.get().asFile.newInputStream())) { ZipEntry zipEntry while (zipEntry = zin.nextEntry) { String shortName = zipEntry.name if (shortName.contains('/')) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Jul 08 13:44:59 UTC 2021 - 2.4K bytes - Viewed (0) -
platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformContinuousBuildIntegrationTest.groovy
} @InputArtifact abstract Provider<FileSystemLocation> getInput() void transform(TransformOutputs outputs) { def inputFile = input.get().asFile println "Transforming " + inputFile.name def outputFile = outputs.file(inputFile.name + ".green") outputFile.text = "green" } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 3.3K bytes - Viewed (0)