Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 118 for workaround (0.21 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. guava-gwt/src/com/google/common/collect/Collect.gwt.xml

        tests, either. This causes it to fail to find AtomicLongMapTest.
    
        Our workaround is to tell GWT that util.concurrent and all other packages
        have prod supersource, even if they have none. GWT is happy to ignore us
        when we specify a nonexistent path.
    
        (I hope that this workaround does not cause its own problems in the future.)
    -->
    <super-source path="super"/>
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 24 14:08:06 UTC 2023
    - 1.5K 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. 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)
  8. 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)
  9. pkg/kubelet/pluginmanager/pluginwatcher/plugin_watcher_windows_test.go

    )
    
    func TestGetStatWindows(t *testing.T) {
    	event := fsnotify.Event{Name: "name", Op: fsnotify.Create}
    	fi, err := getStat(event)
    	fiExpected, errExpected := os.Stat(event.Name)
    	// TODO: This is a workaround for Windows 20H2 issue for os.Stat(). Please see
    	// microsoft/Windows-Containers#97 for details.
    	// Once the issue is resvolved, the following os.Lstat() is not needed.
    	if errExpected != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 01 00:26:37 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  10. 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)
Back to top