Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 309 for sourceLine (0.38 sec)

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

    import org.gradle.integtests.fixtures.SourceFile
    
    class PlatformDetectingTestApp extends TestApp {
        @Override
        SourceFile getMainSource() {
            sourceFile("cpp", "main.cpp", """
    #include <iostream>
    using namespace std;
    #include "hello.h"
    
    int main () {
        ${outputPlatform()}
    
        outputLibraryPlatform();
    }
    """)
        }
    
        @Override
        SourceFile getLibraryHeader() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2K bytes
    - Viewed (0)
  2. platforms/core-execution/execution-e2e-tests/src/integTest/groovy/org/gradle/integtests/fixtures/StaleOutputJavaProject.groovy

            sourceFilePath = prependRootDirName(sourceFilePath)
            def sourceFile = testDir.file(sourceFilePath)
            sourceFile << "public class $className {}"
            sourceFile
        }
    
        private TestFile determineClassFile(File sourceFile) {
            String classFilePath = "${defaultOutputDir()}/${Files.getNameWithoutExtension(sourceFile.name)}.class"
            classFilePath = prependRootDirName(classFilePath)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 04 10:15:40 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  3. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/IncrementalCppElement.java

            SourceFile beforeFile = beforeElement.getSource().getSourceFile();
            final SourceFile afterFile = new SourceFile(beforeFile.getPath(), renamePrefix + beforeFile.getName(), beforeFile.getContent());
    
            return new AbstractRenameTransform(beforeFile, afterFile, beforeElement) {
                @Override
                public List<SourceFile> getAfterFiles() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  4. testing/smoke-test/src/smokeTest/groovy/org/gradle/smoketests/JGitPluginSmokeTest.groovy

                plugins {
                    id "org.ajoberstar.grgit" version "${TestedVersions.grgit}"
                }
    
                def sourceFile = file("sourceFile")
    
                task commit {
                    doLast {
                        sourceFile.text = "hello world"
                        grgit.add(patterns: [ 'sourceFile' ])
                        grgit.commit {
                            message = "first commit"
                        }
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  5. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/WindowsResourceHelloWorldApp.groovy

            "rcCompiler.define '${define}', '${value}'"
        }
    
        @Override
        SourceFile getMainSource() {
            return sourceFile("cpp", "main.cpp", """
    #include "hello.h"
    
    int main () {
        hello();
        return 0;
    }
    """)
        }
    
        @Override
        SourceFile getLibraryHeader() {
            return sourceFile("headers", "hello.h", """
    #define IDS_HELLO    111
    
    #ifdef DLL_EXPORT
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  6. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/IncrementalSwiftElement.java

            assert beforeElement.getFiles().size() == 1;
            SourceFile beforeFile = beforeElement.getSourceFile();
            final SourceFile afterFile = new SourceFile(beforeFile.getPath(), renamePrefix + beforeFile.getName(), beforeFile.getContent());
    
            return new AbstractRenameTransform(beforeFile, afterFile, beforeElement) {
                @Override
                public List<SourceFile> getAfterFiles() {
                    return Arrays.asList(afterFile);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  7. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/CppCallingCHelloWorldApp.groovy

     */
    
    package org.gradle.nativeplatform.fixtures.app
    
    import org.gradle.integtests.fixtures.SourceFile
    
    class CppCallingCHelloWorldApp extends HelloWorldApp {
        @Override
        List<String> getPluginList() {
            return ['c', 'cpp']
        }
    
        @Override
        SourceFile getMainSource() {
            sourceFile("cpp", "main.cpp", """
                #include <iostream>
                extern "C" {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2K bytes
    - Viewed (0)
  8. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/SwiftApp.groovy

    import org.gradle.integtests.fixtures.SourceFile
    
    /**
     * A single module Swift app, with several source files.
     */
    class SwiftApp extends SwiftSourceElement implements AppElement {
        final greeter = new SwiftGreeter()
        final sum = new SwiftSum()
        final multiply = new SwiftMultiply()
        final main = new SwiftMain(greeter, sum)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  9. build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/PublicAPIRulesTest.groovy

        private final static String TEST_INTERFACE_NAME = 'org.gradle.api.ApiTest'
        private final static String TEST_INTERFACE_SIMPLE_NAME = 'ApiTest'
    
        @TempDir
        File tmp
        File sourceFile
    
        BinaryCompatibilityRepository repository
    
        def jApiClassifier = Stub(JApiClass) // represents interfaces, enums and annotations
        def jApiMethod = Stub(JApiMethod)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Dec 01 20:12:19 UTC 2023
    - 16K bytes
    - Viewed (0)
  10. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/SwiftSingleFileApp.groovy

     */
    
    package org.gradle.nativeplatform.fixtures.app
    
    import org.gradle.integtests.fixtures.SourceFile
    
    class SwiftSingleFileApp extends SwiftApp {
        @Override
        List<SourceFile> getFiles() {
            def content = super.files.reverse().collect { it.content }.join('\n')
            return [sourceFile("swift", "main.swift", content)]
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 953 bytes
    - Viewed (0)
Back to top