- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 22 for writeToDir (0.15 sec)
-
platforms/native/language-native/src/integTest/groovy/org/gradle/language/cpp/CppLanguageParallelIntegrationTest.groovy
app.executable.writeSources(file("src/${name}Main")) app.library.writeSources(file("src/${name}Hello")) app.greetingsHeader.writeToDir(file("src/${name}Hello")) app.greetingsSources*.writeToDir(file("src/${name}Greetings")) buildFile << """ model { // Allow static libraries to be linked into shared binaries {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 3.9K bytes - Viewed (0) -
platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/PrebuiltLibrariesIntegrationTest.groovy
def "locates prebuilt library in another project"() { given: app.executable.writeSources(file("projectA/src/main")) app.librarySources*.writeToDir(file("projectA/src/main")) app.libraryHeader.writeToDir(file("projectB/libs/src/hello")) and: settingsFile.text = "include ':projectA', ':projectB'" buildFile << """ project(':projectA') {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 10.8K bytes - Viewed (0) -
platforms/native/language-native/src/integTest/groovy/org/gradle/language/AbstractNativeLanguageIncrementalBuildIntegrationTest.groovy
""" settingsFile << "rootProject.name = 'test'" sourceFile = app.mainSource.writeToDir(file("src/main")) headerFile = app.libraryHeader.writeToDir(file("src/hello")) commonHeaderFile = app.commonHeader.writeToDir(file("src/hello")) app.librarySources.each { librarySourceFiles << it.writeToDir(file("src/hello")) } } @ToBeFixedForConfigurationCache
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 18.3K bytes - Viewed (0) -
testing/smoke-test/src/smokeTest/groovy/org/gradle/play/integtest/fixtures/external/PlayApp.groovy
File file = new File(resource.toURI()) return new SourceFile(path, name, file.text); } void writeSources(TestFile sourceDir) { gradleBuild.writeToDir(sourceDir) for (SourceFile srcFile : allFiles) { srcFile.writeToDir(sourceDir) } } List<SourceFile> sourceFiles(String baseDir, String rootDir = getName()) { List sourceFiles = new ArrayList()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 4.3K bytes - Viewed (0) -
platforms/jvm/language-jvm/src/testFixtures/groovy/org/gradle/integtests/fixtures/jvm/JvmSourceFile.java
} public JvmSourceFile getClassFile() { return new JvmSourceFile(path, name.replaceAll("(\\.java|\\.scala)", ".class"), null); } public TestFile writeToDir(TestFile base) { TestFile file = base.file(path, name); writeToFile(file); return file; } public void writeToFile(TestFile file) { if (file.exists()) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Aug 28 11:40:18 UTC 2023 - 1.8K bytes - Viewed (0) -
platforms/native/language-native/src/integTest/groovy/org/gradle/language/AbstractNativeLanguageIncrementalCompileIntegrationTest.groovy
} } """ and: sourceFile = app.mainSource.writeToDir(file("src/main")) sharedHeaderFile = app.libraryHeader.writeToDir(file("src/main")) commonHeaderFile = app.commonHeader.writeToDir(file("src/main")) app.librarySources.each { otherSourceFiles << it.writeToDir(file("src/main")) } otherHeaderFile = file("src/main/headers/other.h") << """
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 19.5K bytes - Viewed (0) -
platforms/native/testing-native/src/integTest/groovy/org/gradle/nativeplatform/test/googletest/GoogleTestIntegrationTest.groovy
@ToBeFixedForConfigurationCache def "variant-dependent sources are included in test binary"() { given: app.library.headerFiles*.writeToDir(file("src/hello")) app.googleTestTests.writeSources(file("src/helloTest")) app.library.sourceFiles*.writeToDir(file("src/variant")) when: buildFile << """ model { components { hello(NativeLibrarySpec) { l ->
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 16.1K bytes - Viewed (0) -
platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/SourceElement.java
*/ public void writeToProject(TestFile projectDir) { TestFile srcDir = projectDir.file("src/" + getSourceSetName()); for (SourceFile sourceFile : getFiles()) { sourceFile.writeToDir(srcDir); } } /** * Writes the source files of this element to the given source directory. */ public void writeToSourceDir(TestFile sourceDir) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 3.5K bytes - Viewed (0) -
platforms/native/language-native/src/integTest/groovy/org/gradle/language/cpp/CppLanguageIntegrationTest.groovy
} @ToBeFixedForConfigurationCache def "can manually define C++ source sets"() { given: helloWorldApp.library.headerFiles.each { it.writeToDir(file("src/shared")) } file("src/main/cpp/main.cpp") << helloWorldApp.mainSource.content file("src/main/cpp2/hello.cpp") << helloWorldApp.librarySources[0].content
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 5.1K bytes - Viewed (0) -
platforms/ide/ide-native/src/integTest/groovy/org/gradle/ide/visualstudio/VisualStudioSoftwareModelSingleProjectIntegrationTest.groovy
given: def app = new CppHelloWorldApp() app.executable.writeSources(file("src/main")) app.library.headerFiles*.writeToDir(file("src/helloApi")) app.library.sourceFiles*.writeToDir(file("src/hello")) and: buildFile << """ model { components { main(NativeExecutableSpec) { sources {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 05 19:36:14 UTC 2023 - 35.7K bytes - Viewed (0)