Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 321 for sourceLine (0.17 sec)

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

            public static final String DEFAULT_RENAME_PREFIX = "renamed-";
            private final SourceFile sourceFile;
            private final SourceFile destinationFile;
            private final SourceElement beforeElement;
    
            AbstractRenameTransform(SourceFile sourceFile, SourceFile destinationFile, SourceElement beforeElement) {
                this.sourceFile = sourceFile;
                this.destinationFile = destinationFile;
    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. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/TestApp.java

                public List<SourceFile> getHeaderFiles() {
                    return Collections.emptyList();
                }
    
                @Override
                public List<SourceFile> getSourceFiles() {
                    return Arrays.asList(getMainSource());
                }
            };
        }
    
        @Override
        public List<SourceFile> getHeaderFiles() {
            ArrayList<SourceFile> headerFiles = new ArrayList<SourceFile>();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  3. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/CHelloWorldApp.groovy

                #endif
            """)
        }
    
        @Override
        SourceFile getCommonHeader() {
            sourceFile("headers", "common.h", """
                #ifndef COMMON_H
                #define COMMON_H
                #include "hello.h"
                #include <stdio.h>
                #endif
            """)
        }
    
        List<SourceFile> librarySources = [
            new SourceFile("c", "hello.c", """
                #include "common.h"
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  4. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/ObjectiveCHelloWorldApp.groovy

            """)
        }
    
        @Override
        SourceFile getCommonHeader() {
            sourceFile("headers", "common.h", """
                #ifndef COMMON_H
                #define COMMON_H
                #include "hello.h"
                #include <stdio.h>
                #endif
            """)
        }
    
        @Override
        List<SourceFile> getLibrarySources() {
            return [
                    sourceFile("objc", "hello.m", """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  5. platforms/native/language-native/src/integTest/groovy/org/gradle/language/AbstractNativePreCompiledHeaderIntegrationTest.groovy

        }
    
        def toOtherSourceSet(SourceFile sourceFile) {
            return new SourceFile("other", sourceFile.name, sourceFile.content)
        }
    
        def renameSourceFile(SourceFile sourceFile, String name) {
            return new SourceFile(sourceFile.path, name, sourceFile.content)
        }
    
        def addFunction(SourceFile sourceFile) {
            return new SourceFile(sourceFile.path, sourceFile.name, sourceFile.content + """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 20.9K bytes
    - Viewed (0)
  6. platforms/native/platform-native/src/main/java/org/gradle/nativeplatform/toolchain/internal/NativeCompiler.java

            List<String> outputArgs = getOutputArgs(spec, getOutputFileDir(sourceFile, objectDir, objectFileExtension));
            List<String> pchArgs = maybeGetPCHArgs(spec, sourceFile);
    
            return newInvocation("compiling ".concat(sourceFile.getName()), objectDir, buildPerFileArgs(genericArgs, sourceArgs, outputArgs, pchArgs), spec.getOperationLogger());
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  7. platforms/jvm/plugins-java-base/src/testFixtures/groovy/org/gradle/java/compile/AbstractJavaGroovyCompileAvoidanceIntegrationSpec.groovy

                project(':b') {
                    dependencies {
                        implementation project(':a')
                    }
                }
            """
            def sourceFile = file("a/src/main/${language.name}/ToolImpl.${language.name}")
            sourceFile << """
                public class ToolImpl {
                    private String thing() { return null; }
                    private ToolImpl t = this;
                }
            """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 30K bytes
    - Viewed (0)
  8. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/CCallingMixedCAndCppHelloWorldApp.groovy

     */
    
    package org.gradle.nativeplatform.fixtures.app
    
    import org.gradle.integtests.fixtures.SourceFile
    
    class CCallingMixedCAndCppHelloWorldApp extends HelloWorldApp {
        @Override
        List<String> getPluginList() {
            return ['c', 'cpp']
        }
    
        @Override
        SourceFile getMainSource() {
            sourceFile("c", "main.c", """
                    #include <stdio.h>
                    #include "hello.h"
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  9. platforms/native/language-native/src/integTest/groovy/org/gradle/language/fixtures/app/DuplicateCppBaseNamesTestApp.groovy

     */
    
    package org.gradle.language.fixtures.app
    
    import org.gradle.integtests.fixtures.SourceFile
    import org.gradle.nativeplatform.fixtures.app.TestNativeComponent
    
    class DuplicateCppBaseNamesTestApp extends TestNativeComponent {
    
        def plugins = ["cpp"]
    
        @Override
        List<SourceFile> getSourceFiles() {
            [sourceFile("cpp", "main.cpp", """
                #include <iostream>
                #include "foo.h"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  10. platforms/jvm/java-compiler-plugin/src/main/java/org/gradle/internal/compiler/java/listeners/classnames/ClassNameCollector.java

        public void finished(TaskEvent e) {
        }
    
        private static boolean isSourceFile(JavaFileObject sourceFile) {
            return sourceFile != null && sourceFile.getKind() == JavaFileObject.Kind.SOURCE;
        }
    
        private void processSourceFile(TaskEvent e, File sourceFile) {
            Optional<String> relativePath = findRelativePath(sourceFile);
            if (relativePath.isPresent()) {
                String key = relativePath.get();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 13:06:26 UTC 2023
    - 4.2K bytes
    - Viewed (0)
Back to top