Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 309 for sourceLine (1.91 sec)

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

            return toolChain.meets(ToolChainRequirement.GCC) && (sourceType == "C" || sourceType == "Cpp")
        }
    
        static boolean rename(TestFile sourceFile) {
            final newFile = new File(sourceFile.getParentFile(), "changed_${sourceFile.name}")
            newFile << sourceFile.text
            sourceFile.delete()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 18.3K bytes
    - Viewed (0)
  2. platforms/native/language-native/src/test/groovy/org/gradle/language/objectivecpp/tasks/ObjectiveCppCompileTest.groovy

        def setup() {
            objCppCompile = TestUtil.createTask(ObjectiveCppCompile, project)
        }
    
        def "executes using the objCppCompiler"() {
            def sourceFile = temporaryFolder.createFile("sourceFile")
            def result = Mock(WorkResult)
            when:
            objCppCompile.toolChain = toolChain
            objCppCompile.targetPlatform = platform
            objCppCompile.compilerArgs = ["arg"]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  3. build-logic/documentation/src/main/groovy/gradlebuild/docs/FindBrokenInternalLinks.java

                    gatherDeadJavadocLinksInLine(sourceFile, line, lineNumber, errorsForFile);
    
                    line = br.readLine();
                }
            } catch (IOException e) {
                throw new UncheckedIOException(e);
            }
    
            if (!errorsForFile.isEmpty()) {
                errors.put(sourceFile, errorsForFile);
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 05 07:57:56 UTC 2023
    - 8.6K bytes
    - Viewed (0)
  4. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/Swift4.groovy

     */
    
    package org.gradle.nativeplatform.fixtures.app
    
    import org.gradle.integtests.fixtures.SourceFile
    
    class Swift4 extends SwiftSourceElement {
        Swift4(String projectName) {
            super(projectName)
        }
    
        @Override
        List<SourceFile> getFiles() {
            return [sourceFile("swift", "swift4-code.swift", '''
                public typealias Name = (firstName: String, lastName: String)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/native-binaries/idl/groovy/build.gradle

                def baseName = idlFile.name - '.idl'
                File headerFile = new File(headerDir, "${baseName}.h")
                File sourceFile = new File(sourceDir, "${baseName}.c")
                processIdlFile(idlFile, headerFile, sourceFile)
            }
        }
    
        def processIdlFile(File idlFile, File headerFile, File sourceFile) {
            def pattern = ~/(?s).*HEADER <<<(.*)>>>.*SOURCE <<<(.*)>>>.*/
            def matcher = pattern.matcher(idlFile.text)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  6. platforms/jvm/language-java/src/main/java/org/gradle/api/internal/tasks/compile/incremental/transaction/CompileTransaction.java

        private static class StashedFile {
            private final File sourceFile;
            private final File stashFile;
    
            private StashedFile(File sourceFile, File stashFile) {
                this.sourceFile = sourceFile;
                this.stashFile = stashFile;
            }
    
            public void unstash() {
                moveFile(stashFile, sourceFile);
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  7. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/CommonHeaderHelloWorldApp.groovy

    import org.gradle.integtests.fixtures.SourceFile
    
    
    abstract class CommonHeaderHelloWorldApp extends HelloWorldApp {
        abstract SourceFile getCommonHeader()
    
        abstract String getSourceSetType()
    
        @Override
        TestNativeComponent getLibrary() {
            return new TestNativeComponent() {
                @Override
                List<SourceFile> getSourceFiles() {
                    return getLibrarySources()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  8. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/Element.java

     * limitations under the License.
     */
    
    package org.gradle.nativeplatform.fixtures.app;
    
    import org.gradle.integtests.fixtures.SourceFile;
    
    public class Element {
        protected SourceFile sourceFile(String path, String name, String content) {
            return new SourceFile(path, name, content);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 880 bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/snippets/workerApi/md5CustomTask/kotlin/buildSrc/src/main/java/CreateMD5.java

        @TaskAction
        public void createHashes() {
            for (File sourceFile : getSource().getFiles()) { // <3>
                try {
                    InputStream stream = new FileInputStream(sourceFile);
                    System.out.println("Generating MD5 for " + sourceFile.getName() + "...");
                    // Artificially make this task slower.
                    Thread.sleep(3000); // <4>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  10. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/CppGreeterFunction.groovy

    extern const char* PUBLIC_DUMMY_STRING;
    
    #endif // GREETER_H
    """))
    
            privateHeader = ofFile(sourceFile("headers", "greeter_consts.h", """
    #ifndef GREETER_CONSTS_H
    #define GREETER_CONSTS_H
    
    #define GREETING "${HelloWorldApp.HELLO_WORLD}"
    
    #endif // GREETER_CONSTS_H
    """))
    
            source = ofFile(sourceFile("cpp", "greeter.cpp", """
    #include <iostream>
    #include "greeter.h"
    #include "greeter_consts.h"
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.2K bytes
    - Viewed (0)
Back to top