Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 400 for sourceFile (0.25 sec)

  1. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/SwiftAlternateMain.groovy

    package org.gradle.nativeplatform.fixtures.app
    
    import org.gradle.integtests.fixtures.SourceFile
    
    class SwiftAlternateMain extends SourceFileElement implements AppElement {
        final GreeterElement greeter
    
        SwiftAlternateMain(GreeterElement greeter) {
            this.greeter = greeter
        }
    
        @Override
        SourceFile getSourceFile() {
            sourceFile("swift", "main.swift", """
                public func main() -> Int {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  2. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/SwiftGreeterUsesLogger.groovy

     * limitations under the License.
     */
    
    package org.gradle.nativeplatform.fixtures.app
    
    import org.gradle.integtests.fixtures.SourceFile
    
    class SwiftGreeterUsesLogger extends SourceFileElement implements GreeterElement {
        @Override
        SourceFile getSourceFile() {
            return sourceFile("swift", "greeter.swift", """
                import Log            
                public class Greeter {
                    public init() { }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  3. pkg/kubelet/config/file_linux.go

    	retryPeriod    = 1 * time.Second
    	maxRetryPeriod = 20 * time.Second
    )
    
    type retryableError struct {
    	message string
    }
    
    func (e *retryableError) Error() string {
    	return e.message
    }
    
    func (s *sourceFile) startWatch() {
    	backOff := flowcontrol.NewBackOff(retryPeriod, maxRetryPeriod)
    	backOffID := "watch"
    
    	go wait.Forever(func() {
    		if backOff.IsInBackOffSinceUpdate(backOffID, time.Now()) {
    			return
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 02 17:27:26 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  4. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/JavaPluginImplementation.groovy

    import org.gradle.api.Plugin
    import org.gradle.api.Project
    import org.gradle.api.Task
    import org.gradle.test.fixtures.file.TestFile
    
    trait JavaPluginImplementation {
        void javaPlugin(TestFile sourceFile, BuildInputRead read) {
            sourceFile << """
                import ${Action.name};
                import ${Project.name};
                import ${Plugin.name};
                import ${Task.name};
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  5. platforms/software/resources/src/main/java/org/gradle/internal/resource/DefaultTextFileResourceLoader.java

            this.resolver = resolver;
        }
    
        @Override
        public TextResource loadFile(String description, @Nullable File sourceFile) {
            if (sourceFile == null) {
                return new StringTextResource(description, "");
            }
            return UriTextResource.from(description, sourceFile, resolver);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  6. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/SwiftGreeterUsingCppFunction.groovy

            this.cppGreeter = cppGreeter
            this.moduleName = moduleName
        }
    
        @Override
        SourceFile getSourceFile() {
            sourceFile("swift", "greeter.swift", """
                import ${moduleName}
    
                public class Greeter {
                    public init() {}
                    public func sayHello() {
                        sayGreeting()
                    }
                }
            """)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  7. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/SwiftBrokenSum.groovy

     * limitations under the License.
     */
    
    package org.gradle.nativeplatform.fixtures.app
    
    import org.gradle.integtests.fixtures.SourceFile
    
    class SwiftBrokenSum extends SourceFileElement implements SumElement {
        @Override
        SourceFile getSourceFile() {
            sourceFile("swift", "sum.swift", """
                 public func sum(a: Int, b: Int) -> Int {
                     return a - b
                 }
             """)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1K bytes
    - Viewed (0)
  8. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/SwiftSum.groovy

     * limitations under the License.
     */
    
    package org.gradle.nativeplatform.fixtures.app
    
    import org.gradle.integtests.fixtures.SourceFile
    
    class SwiftSum extends SourceFileElement implements SumElement {
        @Override
        SourceFile getSourceFile() {
            sourceFile("swift", "sum.swift", """
                 public func sum(a: Int, b: Int) -> Int {
                     return a + b
                 }
             """)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1K bytes
    - Viewed (0)
  9. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/ExeWithDiamondDependencyHelloWorldApp.groovy

        @Override
        String getFrenchOutput() {
            return HELLO_WORLD_FRENCH + "\n"
        }
    
        @Override
        SourceFile getMainSource() {
            sourceFile("cpp", "main.cpp", """
                #include <iostream>
                #include "hello.h"
                #include "greetings.h"
    
                const char* getExeHello() {
                    #ifdef FRENCH
                    return "${HELLO_WORLD_FRENCH}";
                    #else
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  10. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/SwiftAlternateGreeter.groovy

     * limitations under the License.
     */
    
    package org.gradle.nativeplatform.fixtures.app
    
    import org.gradle.integtests.fixtures.SourceFile
    
    class SwiftAlternateGreeter extends SourceFileElement implements GreeterElement {
        @Override
        SourceFile getSourceFile() {
            sourceFile("swift", "greeter.swift", """
                public class Greeter {
                    public init() {}
                    public func sayHello() {
    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