Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 400 for sourceFile (0.21 sec)

  1. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/SourceFile.java

     */
    
    package org.gradle.integtests.fixtures;
    
    import com.google.common.base.Joiner;
    import org.gradle.test.fixtures.file.TestFile;
    
    public class SourceFile {
        private final String path;
        private final String name;
        private final String content;
    
        public SourceFile(String path, String name, String content) {
            this.content = content;
            this.path = path;
            this.name = name;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/model/cpp/SourceFile.java

     * limitations under the License.
     */
    
    package org.gradle.tooling.model.cpp;
    
    import java.io.File;
    
    /**
     * Provides details about a particular source file.
     *
     * @since 4.10
     */
    public interface SourceFile {
        /**
         * Returns the source file.
         */
        File getSourceFile();
    
        /**
         * Returns the object file produced for the source file.
         */
        File getObjectFile();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 966 bytes
    - Viewed (0)
  3. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/TestApp.java

            return headerFiles;
        }
    
        @Override
        public List<SourceFile> getSourceFiles() {
            ArrayList<SourceFile> sourceFiles = new ArrayList<SourceFile>();
            sourceFiles.addAll(getExecutable().getSourceFiles());
            sourceFiles.addAll(getLibrary().getSourceFiles());
            return sourceFiles;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  4. 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)
  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. testing/smoke-test/src/smokeTest/groovy/org/gradle/play/integtest/fixtures/external/PlayApp.groovy

        }
    
        List<SourceFile> getConfSources() {
            return sourceFiles("conf", "shared") + sourceFiles("conf")
        }
    
        List<SourceFile> getTestSources() {
            return sourceFiles("test")
        }
    
        List<SourceFile> getOtherSources() {
            return [ sourceFile("", "README", "shared") ]
        }
    
    
        protected SourceFile sourceFile(String path, String name, String baseDir = getName()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  7. 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)
  8. platforms/native/language-native/src/test/groovy/org/gradle/language/nativeplatform/internal/incremental/IncrementalCompileProcessorTest.groovy

        }
    
        def added(TestFile sourceFile) {
            virtualFileSystem.invalidateAll()
            modifiedFiles << sourceFile
            graph[sourceFile] = []
        }
    
        def sourceAdded(TestFile sourceFile, List<File> deps = []) {
            virtualFileSystem.invalidateAll()
            sourceFiles << sourceFile
            modifiedFiles << sourceFile
            graph[sourceFile] = deps
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 15:31:28 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  9. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/CppHelloWorldApp.groovy

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

    package org.gradle.nativeplatform.fixtures.app
    
    import org.gradle.integtests.fixtures.SourceFile
    import org.gradle.test.fixtures.file.TestFile
    
    abstract class TestNativeComponent extends SourceElement {
        List<SourceFile> getFiles() {
            return sourceFiles + headerFiles
        }
    
        abstract List<SourceFile> getSourceFiles()
    
        abstract List<SourceFile> getHeaderFiles()
    
        void writeSources(TestFile sourceDir) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.1K bytes
    - Viewed (0)
Back to top