Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 963 for compiling (0.19 sec)

  1. platforms/native/language-native/src/integTest/groovy/org/gradle/language/c/CLanguageIntegrationTest.groovy

            failure.assertHasDescription("Execution failed for task ':compileMainExecutableMainC'.")
            failure.assertHasCause("A build operation failed.")
            failure.assertThatCause(containsText("C compiler failed while compiling broken.c"))
        }
    
        @ToBeFixedForConfigurationCache
        def "build fails when multiple compilations fail"() {
            given:
            def brokenFileCount = 5
            buildFile << """
                model {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/authorization/cel/compile_test.go

    			})
    			if len(tc.expectedError) > 0 && (err == nil || !strings.Contains(err.Error(), tc.expectedError)) {
    				t.Fatalf("expected error: %s compiling expression %s, got: %v", tc.expectedError, tc.expression, err)
    			}
    			if len(tc.expectedError) == 0 && err != nil {
    				t.Fatalf("unexpected error %v compiling expression %s", err, tc.expression)
    			}
    		})
    	}
    }
    
    func TestBuildRequestType(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  3. platforms/native/platform-native/src/main/java/org/gradle/nativeplatform/toolchain/internal/gcc/GccCompilerArgsTransformer.java

    import org.gradle.nativeplatform.toolchain.internal.NativeCompileSpec;
    
    import java.io.File;
    import java.util.ArrayList;
    import java.util.Collections;
    import java.util.List;
    
    /**
     * Maps common options for C/C++ compiling with GCC
     */
    abstract class GccCompilerArgsTransformer<T extends NativeCompileSpec> implements ArgsTransformer<T> {
        @Override
        public List<String> transform(T spec) {
            List<String> args = new ArrayList<>();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  4. platforms/jvm/language-java/src/main/java/org/gradle/api/internal/tasks/compile/CommandLineJavaCompiler.java

            }
    
            String executable = ((CommandLineJavaCompileSpec) spec).getExecutable().toString();
            LOGGER.info("Compiling with Java command line compiler '{}'.", executable);
    
            ExecHandle handle = createCompilerHandle(executable, spec);
            executeCompiler(handle);
    
            return WorkResults.didWork(true);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  5. platforms/jvm/language-groovy/src/testFixtures/groovy/org/gradle/groovy/compile/AbstractGroovyCompilerIntegrationSpec.groovy

            then:
            noExceptionThrown()
        }
    
        // This is named funny to keep the path to the project
        // under Windows's limits.  This checks that we can use
        // ServletCategory as an extension class when compiling
        // Groovy code.
        @Issue("GRADLE-3235")
        def gradle3235() {
            if (versionLowerThan('2.0.5')) {
                return
            }
    
            when:
            run("test")
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  6. platforms/native/platform-native/build.gradle.kts

    plugins {
        id("gradlebuild.distribution.api-java")
    }
    
    description = "Plugins, tasks and compiler infrastructure for compiling/linking code"
    
    errorprone {
        disabledChecks.addAll(
            "DefaultCharset", // 2 occurrences
            "EqualsUnsafeCast", // 1 occurrences
            "GetClassOnClass", // 1 occurrences
            "HidingField", // 1 occurrences
            "ImmutableEnumChecker", // 2 occurrences
            "ReferenceEquality", // 2 occurrences
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 14:28:48 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  7. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/compile/JavaCompileCompatibilityIntegrationTest.groovy

                }
            """
    
            when:
            withInstallations(earlierJdk).run(":compileJava", "--info")
    
            then:
            executedAndNotSkipped(":compileJava")
            outputContains("Compiling with toolchain '${earlierJdk.javaHome.absolutePath}'")
            outputContains("sourceCompatibility: '${earlierJdk.javaVersion}'")
            outputContains("targetCompatibility: '${earlierJdk.javaVersion}'")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 10:21:26 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  8. platforms/native/language-native/src/integTest/groovy/org/gradle/language/cpp/AbstractCppIntegrationTest.groovy

            failure.assertHasCause("A build operation failed.")
            failure.assertThatCause(Matchers.containsText("C++ compiler failed while compiling broken.cpp"))
        }
    
        protected abstract String getDevelopmentBinaryCompileTask()
    
        @Override
        protected String getTaskNameToAssembleDevelopmentBinary() {
            return 'assemble'
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  9. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/CppGreeterWithOptionalFeature.groovy

    };
    """))
    
        final SourceFileElement source = ofFile(new SourceFile("cpp", "greeter.cpp", """
    #include <iostream>
    #include "greeter.h"
    
    void Greeter::sayHello() {
    #ifdef WITH_FEATURE
    #pragma message("compiling with feature enabled")
        std::cout << "${HelloWorldApp.HELLO_WORLD_FRENCH}" << std::endl;
    #else
        std::cout << "${HelloWorldApp.HELLO_WORLD}" << std::endl;
    #endif
    }
    """))
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/DirectoryOutputArtifactIntegrationTest.groovy

            notExecuted ':b:generateFiles'
    
            when:
            run 'a:run'
    
            then:
            executedAndNotSkipped ':b:generateFiles'
        }
    
        def "can avoid building a jar when compiling against another project"() {
            given:
            file('settings.gradle') << "include 'a', 'b'"
            file('a/build.gradle') << '''
    
            apply plugin: 'java'
    
            dependencies {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 8K bytes
    - Viewed (0)
Back to top