Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 151 for pathSensitivity (0.25 sec)

  1. subprojects/core-api/src/main/java/org/gradle/api/tasks/PathSensitivity.java

     */
    
    package org.gradle.api.tasks;
    
    /**
     * Enumeration of different path handling strategies for task properties.
     *
     * @see PathSensitive
     *
     * @since 3.1
     */
    public enum PathSensitivity {
        /**
         * Consider the full path of files and directories.
         *
         * <p><b>This will prevent the task's outputs from being shared across different workspaces via the build cache.</b></p>
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 26 09:19:43 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/AbstractDirectorySensitivityIntegrationSpec.groovy

            where:
            [api, pathSensitivity] << [Api.values(), [PathSensitivity.RELATIVE, PathSensitivity.ABSOLUTE, PathSensitivity.NAME_ONLY]].combinations()
        }
    
        def "Non-empty directories are tracked when empty directories are ignored (#api, #pathSensitivity)"() {
            createTaskWithSensitivity(DirectorySensitivity.IGNORE_DIRECTORIES, api, pathSensitivity)
            buildFile << """
                taskWithInputs {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/AbstractLineEndingSensitivityIntegrationSpec.groovy

                }
            """
        }
    
        static def pathSensitivityAnnotation(PathSensitivity pathSensitivity) {
            return pathSensitivity != null ? "@PathSensitive(PathSensitivity.${pathSensitivity.name()})" : ""
        }
    
        def createRuntimeApiTaskWithNormalization(LineEndingSensitivity lineEndingSensitivity, PathSensitivity pathSensitivity, Class<?> normalizer) {
            buildFile << """
                @CacheableTask
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  4. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/model/InputNormalizer.java

            this.description = name().toLowerCase(Locale.ROOT).replace('_', ' ');
        }
    
        public static FileNormalizer determineNormalizerForPathSensitivity(PathSensitivity pathSensitivity) {
            switch (pathSensitivity) {
                case NONE:
                    return IGNORE_PATH;
                case NAME_ONLY:
                    return NAME_ONLY;
                case RELATIVE:
                    return RELATIVE_PATH;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:33 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CachedPathSensitivityIntegrationTest.groovy

                    outputs.cacheIf { true }
                    inputs.file("build/outputs/producer.txt")
                        .withPropertyName("producer")
                        .withPathSensitivity(PathSensitivity.$pathSensitivity)
                    outputs.file("build/outputs/consumer.txt")
                        .withPropertyName("consumer")
                    doLast {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  6. build-logic/packaging/src/main/kotlin/gradlebuild/shade/tasks/ShadedJar.kt

    abstract class ShadedJar : DefaultTask() {
        @get:PathSensitive(PathSensitivity.RELATIVE)
        @get:InputFiles
        abstract val relocatedClassesConfiguration: ConfigurableFileCollection
        @get:PathSensitive(PathSensitivity.NONE)
        @get:InputFiles
        abstract val classTreesConfiguration: ConfigurableFileCollection
        @get:PathSensitive(PathSensitivity.NONE)
        @get:InputFiles
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 12 10:36:27 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/internal/tasks/SnapshotTaskInputsOperationIntegrationTest.groovy

        static String directorySensitivity(boolean ignoreEmptyDirectories, PathSensitivity pathSensitivity, Class<? extends FileNormalizer> normalizer) {
            ignoreEmptyDirectories && !normalizer && pathSensitivity != PathSensitivity.NONE ? "DIRECTORY_SENSITIVITY_IGNORE_DIRECTORIES" : "DIRECTORY_SENSITIVITY_DEFAULT"
        }
    
        static String attributeFromPathSensitivity(PathSensitivity pathSensitivity, Class<? extends FileNormalizer> normalizer) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  8. build-logic/buildquality/src/main/kotlin/gradlebuild/incubation/tasks/IncubatingApiReportTask.kt

        @get:InputFile
        @get:PathSensitive(PathSensitivity.RELATIVE)
        abstract val versionFile: RegularFileProperty
    
        @get:InputFile
        @get:PathSensitive(PathSensitivity.RELATIVE)
        abstract val releasedVersionsFile: RegularFileProperty
    
        @get:Input
        abstract val title: Property<String>
    
        @get:InputFiles
        @get:PathSensitive(PathSensitivity.RELATIVE)
        abstract val sources: ConfigurableFileCollection
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jan 30 09:32:11 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  9. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/DirectorySensitivityErrorHandlingIntegrationSpec.groovy

            )
    
            where:
            output << Output.values()
        }
    
        enum NonDirectoryInput {
            INPUTFILE(InputFile, 'File', 'file("foo")', "@${PathSensitive.class.simpleName}(${PathSensitivity.class.simpleName}.${PathSensitivity.RELATIVE.name()})"),
            INPUT(Input, 'String', '"foo"')
    
            String annotation
            String type
            String value
            String additionalAnnotations
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 09:08:49 UTC 2023
    - 6K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformInputArtifactIntegrationTest.groovy

            "@PathSensitive(PathSensitivity.ABSOLUTE)"  | "@PathSensitive(PathSensitivity.ABSOLUTE)"
            "@PathSensitive(PathSensitivity.RELATIVE)"  | "@PathSensitive(PathSensitivity.RELATIVE)"
            "@PathSensitive(PathSensitivity.NAME_ONLY)" | "@PathSensitive(PathSensitivity.NAME_ONLY)"
            "@PathSensitive(PathSensitivity.NONE)"      | "@PathSensitive(PathSensitivity.NONE)"
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Oct 27 19:15:32 UTC 2023
    - 51.9K bytes
    - Viewed (0)
Back to top