- Sort Score
- Result 10 results
- Languages All
Results 191 - 200 of 579 for asFile (0.42 sec)
-
platforms/documentation/docs/src/snippets/failures/verificationFailure/groovy/build.gradle
// tag::verification-failure[] tasks.register("process") { def outputFile = layout.buildDirectory.file("processed.log") outputs.files(outputFile) // <1> doLast { def logFile = outputFile.get().asFile logFile << "Step 1 Complete." // <2> throw new VerificationException("Process failed!") // <3> logFile << "Step 2 Complete." // <4> } } tasks.register("postProcess") {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Dec 21 20:19:24 UTC 2023 - 1.2K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/publishing/javaLibrary/kotlin/build.gradle.kts
val matcher = Regex("""generatePomFileFor(\w+)Publication""").matchEntire(name) val publicationName = matcher?.let { it.groupValues[1] } destination = layout.buildDirectory.file("poms/${publicationName}-pom.xml").get().asFile } // end::configure-generate-task[] dependencies { implementation(enforcedPlatform("org.junit:junit-bom:5.7.1")) } // tag::disable_validation[] tasks.withType<GenerateModuleMetadata> {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 1.5K bytes - Viewed (0) -
build-logic/kotlin-dsl/src/main/kotlin/gradlebuild/kotlindsl/generator/tasks/CodeGenerationTask.kt
@get:OutputDirectory abstract val outputDir: DirectoryProperty protected abstract fun File.writeFiles() @Suppress("unused") @TaskAction fun run() { outputDir.get().asFile.apply { recreate() writeFiles() } } protected fun File.writeFile(relativePath: String, text: String) { resolve(relativePath).apply {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Sep 30 16:17:26 UTC 2023 - 1.6K bytes - Viewed (0) -
build-logic/packaging/src/main/kotlin/gradlebuild.api-metadata.gradle.kts
property("excludes", PublicApi.excludes.joinToString(":")) destinationFile = apiDeclarationPropertiesFile } sourceSets.main { output.dir(mapOf("builtBy" to apiDeclaration), apiDeclarationPropertiesFile.map { it.asFile.parentFile }) } fun generatedPropertiesFileFor(name: String) =
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jan 20 15:24:40 UTC 2023 - 1.4K bytes - Viewed (0) -
build-logic/packaging/src/main/kotlin/gradlebuild.install.gradle.kts
group = "build" with(allDistributionSpec()) into(installDirectory) } fun validateInstallDir(installDir: Directory) = installDir.also { dir -> val dirFile = dir.asFile if (dirFile.isFile) { throw RuntimeException("Install directory $dir is not valid: it is actually a file") } if (dirFile.list()?.isEmpty() != false) { return@also }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Mar 22 07:17:43 UTC 2023 - 2K bytes - Viewed (0) -
build-logic/jvm/src/main/kotlin/gradlebuild.launchable-jar.gradle.kts
} tasks.jar.configure { val classpath = resolveManifestClasspath.flatMap { configuration -> configuration.elements.map { classpathDependency -> classpathDependency.joinToString(" ") { it.asFile.name } } } manifest.attributes("Class-Path" to classpath) if (app.mainClassName.isPresent) { manifest.attributes("Main-Class" to app.mainClassName) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Jun 06 11:35:55 UTC 2024 - 1.5K bytes - Viewed (0) -
platforms/software/reporting/src/test/groovy/org/gradle/api/reporting/internal/TaskGeneratedSingleDirectoryReportTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Oct 11 12:16:09 UTC 2023 - 1.5K bytes - Viewed (0) -
build-logic/performance-testing/src/main/groovy/gradlebuild.performance-templates.gradle
// === Gradle Build === performanceTest.registerTestProject("gradleBuildCurrent", RemoteProject) { remoteUri = repoRoot(project).asFile.absolutePath ref = getBuildCommitId(project) } performanceTest.registerTestProject("gradleBuildBaseline", RemoteProject) { remoteUri = repoRoot(project).asFile.absolutePath // Remember to update accordingly when rebasing/squashing
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 14 15:43:39 UTC 2024 - 19.5K bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/transforms/FindGradleClasspath.groovy
@InputArtifact abstract Provider<FileSystemLocation> getArtifact() @Override void transform(TransformOutputs outputs) { File artifactFile = artifact.get().asFile if (artifactFile.name == 'gradle-dependencies') { (artifactFile.listFiles() as List<File>).sort { it.name }.each { outputs.file(it) } } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Jul 07 13:12:26 UTC 2021 - 1.7K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/workerApi/workerDaemon/kotlin/build.gradle.kts
abstract class ReverseFile @Inject constructor(val fileSystemOperations: FileSystemOperations) : WorkAction<ReverseParameters> { override fun execute() { val fileToReverse = parameters.fileToReverse.asFile.get() fileSystemOperations.copy { from(fileToReverse) into(parameters.destinationDir) filter { line: String -> line.reversed() } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 1.8K bytes - Viewed (0)