Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 321 for sourceLine (0.26 sec)

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

        }
    
        @Override
        List<String> getPluginList() {
            return ['c', 'assembler']
        }
    
        @Override
        SourceFile getMainSource() {
            return new SourceFile("c", "main.c", """
                    #include <stdio.h>
                    #include "hello.h"
    
                    int main () {
                        sayHello();
                        printf("%d", sum(5, 7));
                        return 0;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  2. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/SourceFileElement.java

    package org.gradle.nativeplatform.fixtures.app;
    
    import org.gradle.integtests.fixtures.SourceFile;
    
    import java.util.Collections;
    import java.util.List;
    
    /**
     * A single source file.
     */
    public abstract class SourceFileElement extends SourceElement {
        public abstract SourceFile getSourceFile();
    
        @Override
        public List<SourceFile> getFiles() {
            return Collections.singletonList(getSourceFile());
        }
    
    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. platforms/native/language-native/src/test/groovy/org/gradle/language/objectivec/tasks/ObjectiveCPreCompiledHeaderCompileTest.groovy

        def setup() {
            objCPCHCompile = TestUtil.createTask(ObjectiveCPreCompiledHeaderCompile, project)
        }
    
        def "executes using the C PCH Compiler"() {
            def sourceFile = temporaryFolder.createFile("sourceFile")
            def result = Mock(WorkResult)
            when:
            objCPCHCompile.toolChain = toolChain
            objCPCHCompile.targetPlatform = platform
            objCPCHCompile.compilerArgs = ["arg"]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  4. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/SwiftMainWithOptionalFeature.groovy

    package org.gradle.nativeplatform.fixtures.app
    
    import org.gradle.integtests.fixtures.SourceFile
    
    class SwiftMainWithOptionalFeature extends SourceFileElement {
        final GreeterElement greeter
    
        SwiftMainWithOptionalFeature(GreeterElement greeter) {
            this.greeter = greeter
        }
    
        @Override
        SourceFile getSourceFile() {
            sourceFile("swift", "main.swift", """
                func main() -> Int {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  5. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/continuous/SymlinkContinuousIntegrationTest.groovy

    class SymlinkContinuousIntegrationTest extends AbstractContinuousIntegrationTest {
        def "can use symlink for input"() {
            given:
            def baseDir = file("src").createDir()
            def sourceFile = baseDir.file("A")
            sourceFile.text = "original"
    
            def linkdir = baseDir.createDir("linkdir")
            def symlink = linkdir.file("link")
            // Since we remove symlinks at the end of the build from the VFS, we
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/snippets/customModel/languageType/groovy/buildSrc/src/main/groovy/sample/markdown/MarkdownHtmlCompile.groovy

            getSource().each { sourceFile ->
                String markdown = sourceFile.getText(encoding)
                String html = processor.markdownToHtml(markdown)
                File outputFile = new File(destinationDir, sourceFile.name.replace(".md", ".html"))
                outputFile.write(html, encoding)
            }
            if (generateIndex) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  7. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/XCTestSourceFileElement.java

            return testSuiteName;
        }
    
        @Override
        public String getSourceSetName() {
            return "test";
        }
    
        @Override
        public SourceFile getSourceFile() {
            return sourceFile("swift", getTestSuiteName() + ".swift",
                    renderImports()
                    + "\n"
                    + "class " + getTestSuiteName() + ": XCTestCase {\n"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  8. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/SwiftLib.groovy

        SwiftLib() {
            this("greeter")
        }
    
        SwiftLib(String projectName) {
            super(projectName)
        }
    
        @Override
        List<SourceFile> getFiles() {
            return [greeter.sourceFile, sum.sourceFile, multiply.sourceFile]
        }
    
        @Override
        String getExpectedOutput() {
            return greeter.expectedOutput
        }
    
        @Override
        int sum(int a, int b) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  9. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/SwiftLibWithCppDep.groovy

            greeter = new SwiftGreeterUsingCppFunction(cppGreeter)
            sum = new SwiftSum()
            multiply = new SwiftMultiply()
        }
    
        @Override
        List<SourceFile> getFiles() {
            return [greeter.sourceFile, sum.sourceFile, multiply.sourceFile]
        }
    
        @Override
        String getExpectedOutput() {
            return greeter.expectedOutput
        }
    
        @Override
        int sum(int a, int b) {
    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/SwiftCompilerDetectingApp.groovy

    package org.gradle.nativeplatform.fixtures.app
    
    import org.gradle.integtests.fixtures.SourceFile
    
    class SwiftCompilerDetectingApp extends SourceFileElement implements AppElement {
        def swiftVersion
    
        SwiftCompilerDetectingApp(swiftVersion) {
            this.swiftVersion = swiftVersion
        }
    
        @Override
        SourceFile getSourceFile() {
            return sourceFile('swift', 'main.swift', """
                #if swift(>=5.0)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.5K bytes
    - Viewed (0)
Back to top