Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 245 for workaround (0.2 sec)

  1. platforms/documentation/docs/src/snippets/configurationCache/topLevel/groovy/build.gradle

    // tag::not-supported[]
    // tag::workaround[]
    def dir = file('data')
    
    // end::workaround[]
    def listFiles(File dir) {
        dir.listFiles({ file -> file.isFile() } as FileFilter).name.sort()
    }
    
    tasks.register('listFiles') {
        doLast {
            println listFiles(dir)
        }
    }
    // end::not-supported[]
    
    // tag::workaround[]
    class Files {
        static def listFiles(File dir) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 567 bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/configurationCache/topLevel/kotlin/build.gradle.kts

        }
    }
    // end::not-supported[]
    
    // tag::workaround[]
    object Files { // <1>
        fun listFiles(dir: File): List<String> =
            dir.listFiles { file: File -> file.isFile }.map { it.name }.sorted()
    }
    
    tasks.register("listFilesFixed") {
        val dir = file("data") // <2>
        doLast {
            println(Files.listFiles(dir))
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 588 bytes
    - Viewed (0)
  3. platforms/ide/tooling-api-builders/src/main/java/org/gradle/tooling/internal/provider/runner/TestOperationMapper.java

        }
    
        /**
         * This is a workaround to preserve backward compatibility with IntelliJ IDEA.
         * The problem only occurs in IntelliJ IDEA because it parses {@link OperationDescriptor#getDisplayName()} to get the test display name.
         * Once its code is updated to use {@link org.gradle.tooling.events.test.TestOperationDescriptor#getTestDisplayName()}, the workaround can be removed as well.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 08:42:44 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  4. cmd/config-versions.go

    	"github.com/minio/minio/internal/logger"
    	"github.com/minio/pkg/v3/quick"
    )
    
    // FileLogger is introduced to workaround the dependency about logrus
    type FileLogger struct {
    	Enable   bool   `json:"enable"`
    	Filename string `json:"filename"`
    }
    
    // ConsoleLogger is introduced to workaround the dependency about logrus
    type ConsoleLogger struct {
    	Enable bool `json:"enable"`
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/configurationCache/stableFeatureFlag/common/gradle.properties

    # This is a workaround for https://github.com/gradle/gradle/issues/22481.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 110 bytes
    - Viewed (0)
  6. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/results/FormatSupport.java

        }
    
        public static Number getConfidencePercentage(MeasuredOperationList baseline, MeasuredOperationList current) {
            if (baseline.isEmpty() || current.isEmpty()) {
                // This is a workaround for https://github.com/gradle/gradle-private/issues/1690
                return new BigDecimal(0);
            }
    
            double sign = Math.signum(getDifferencePercentage(baseline, current).doubleValue());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4K bytes
    - Viewed (0)
  7. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild/commons/JavaPluginExtensions.kt

     */
    package gradlebuild.commons
    
    import org.gradle.api.plugins.JavaPluginExtension
    import org.gradle.jvm.toolchain.JavaLanguageVersion
    import org.gradle.jvm.toolchain.JvmVendorSpec
    // Using star import to workaround https://youtrack.jetbrains.com/issue/KTIJ-24390
    import org.gradle.kotlin.dsl.*
    
    
    internal
    fun JavaPluginExtension.configureJavaToolChain() {
        toolchain {
            languageVersion = JavaLanguageVersion.of(11)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 03 15:32:00 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  8. analysis/analysis-api-standalone/analysis-api-standalone-base/src/org/jetbrains/kotlin/analysis/api/standalone/base/project/structure/PluginStructureProvider.kt

            registerApplicationServices(application, pluginRelativePath, application.classLoader)
        }
    
        /**
         * TODO (KT-68186): This is a workaround for [KT-68186](https://youtrack.jetbrains.com/issue/KT-68186). We cannot rely on the
         * application's class loader for now, so we have to use the configured class loader manually.
         */
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 04 22:09:27 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  9. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/DirectoryBuildCacheFixture.groovy

            settingsFile << buildCache.localCacheConfiguration()
        }
    
        // Spock 2 executes @Before after the setup() methods
        // this is a workaround for tests that use this fixture from their setup() methods
        private void initIfNeeded() {
            if (buildCache == null) {
                setupCacheDirectory()
            }
        }
    
        def localCacheConfiguration() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  10. platforms/native/platform-native/src/main/java/org/gradle/nativeplatform/TargetedNativeComponent.java

    import org.gradle.platform.base.PlatformAwareComponentSpec;
    
    /**
     * A native component that can be configured to target certain variant dimensions.
     * This functionality is a temporary workaround to eliminate configuration of unnecessary domain objects and tasks.
     */
    @Incubating @HasInternalProtocol
    public interface TargetedNativeComponent extends PlatformAwareComponentSpec, NativeComponentSpec {
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.4K bytes
    - Viewed (0)
Back to top