Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for archiveFileName (0.28 sec)

  1. testing/performance/src/templates/archivePerformanceProject/build.gradle

                }
            }
        }
    }
    
    tasks.register("zip", Zip) {
        from "archive-contents"
        archiveFileName = "archive.zip"
    }
    
    tasks.register("tar", Tar) {
        from "archive-contents"
        archiveFileName = "archive.tar"
    }
    
    tasks.register("tarGz", Tar) {
        from "archive-contents"
        archiveFileName = "archive.tar.gz"
        compression = 'gzip'
    }
    
    tasks.withType(AbstractArchiveTask).configureEach {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 11:42:52 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/bundling/ArchiveIntegrationTest.groovy

        def cannotCreateAnEmptyTar() {
            given:
            buildFile << """
                task tar(type: Tar) {
                    from 'test'
                    destinationDirectory = buildDir
                    archiveFileName = 'test.tar'
                }
                """
            when:
            run "tar"
    
            then:
            file('build/test.tar').assertDoesNotExist()
        }
    
        def canCopyFromATar() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  3. platforms/jvm/war/src/integTest/groovy/org/gradle/api/tasks/bundling/WarTaskIntegrationTest.groovy

                    webInf {
                        from 'web-inf'
                    }
                    classpath 'classes'
                    classpath 'lib.jar'
                    destinationDirectory = buildDir
                    archiveFileName = 'test.war'
                }
            """
    
            when:
            run "war"
    
            then:
            def war = new JarTestFixture(file('build/test.war'))
            war.assertManifestPresentAndFirstEntry()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 09 13:20:44 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  4. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheConventionMappingIntegrationTest.groovy

                    @Internal String getArchiveName() { return archiveFileName.getOrNull() }
                    void setArchiveName(String value) { archiveFileName.set(value) }
    
                    @TaskAction
                    void doIt() {
                        assert archiveFileName.get() == "something"
                    }
                }
    
                task myTask(type: MyTask) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  5. platforms/jvm/plugins-application/src/test/groovy/org/gradle/api/plugins/ApplicationPluginTest.groovy

            task instanceof Zip
            task.archiveFileName.get() == "${project.applicationName}.zip"
        }
    
        def "adds distTar task to project"() {
            when:
            plugin.apply(project)
    
            then:
            def task = project.tasks[ApplicationPlugin.TASK_DIST_TAR_NAME]
            task instanceof Tar
            task.archiveFileName.get() == "${project.applicationName}.tar"
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 28 23:38:57 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  6. platforms/jvm/plugins-java-library/src/test/groovy/org/gradle/api/plugins/JavaLibraryDistributionPluginTest.groovy

            when:
            project.pluginManager.apply(JavaLibraryDistributionPlugin)
    
            then:
            def task = project.tasks.distZip
            task instanceof Zip
            task.archiveFileName.get() == "test-project.zip"
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 18 13:02:41 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/ProjectDependencyResolveIntegrationTest.groovy

            given:
            createDirs("a", "b")
            file('settings.gradle') << "include 'a', 'b'"
    
            and:
            buildFile << """
    project(':a') {
        apply plugin: 'base'
        configurations {
            configOne
            configTwo
        }
        task A1jar(type: Jar) {
            archiveFileName = 'A1.jar'
        }
        task A2jar(type: Jar) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 02 20:50:18 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  8. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/deprecation/DeprecationMessagesTest.groovy

                "Please use the archiveFileName property instead. " +
                String.format(RECOMMENDATION, "information", dslReference)
        }
    
        def "logs DSL documentation reference for deprecated property implicitly"() {
            when:
            DeprecationLogger.deprecateProperty(AbstractArchiveTask, "archiveName").replaceWith("archiveFileName")
                .willBeRemovedInGradle9()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 20K bytes
    - Viewed (0)
  9. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/GradleBackedArtifactBuilder.java

            String destinationDir = isGradleExecuterVersionLessThan("5.1") ? "destinationDir" : "destinationDirectory";
            String archiveName = isGradleExecuterVersionLessThan("5.0") ? "archiveName" : "archiveFileName";
    
            rootDir.mkdirs();
            rootDir.file("settings.gradle").touch();
            try {
                try (PrintWriter writer = new PrintWriter(rootDir.file("build.gradle"))) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4K bytes
    - Viewed (0)
  10. platforms/core-runtime/wrapper-main/build.gradle.kts

        integTestDistributionRuntimeOnly(project(":distributions-full"))
        crossVersionTestDistributionRuntimeOnly(project(":distributions-full"))
    }
    
    val executableJar by tasks.registering(Jar::class) {
        archiveFileName = "gradle-wrapper-executable.jar"
        manifest {
            attributes.remove(Attributes.Name.IMPLEMENTATION_VERSION.toString())
            attributes(Attributes.Name.IMPLEMENTATION_TITLE.toString() to "Gradle Wrapper")
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:54:32 UTC 2024
    - 4.1K bytes
    - Viewed (0)
Back to top