- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 355 for createFile1 (0.18 sec)
-
subprojects/core/src/integTest/groovy/org/gradle/api/tasks/IncrementalTaskWithNormalizedInputsIntegrationTest.groovy
@Issue("https://github.com/gradle/gradle/issues/9320") def "incremental task with NAME_ONLY input (matching file names and content) detects changed input"() { def inputs = folderNames().collect { file("${it}/input.txt").createFile() } def modifiedInput = inputs[1] buildFile << incrementalTaskWithNameOnlyInputFiles(inputs) run INCREMENTAL_TASK_NAME, "--info" when: modifiedInput.text = "changed"
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Aug 30 07:31:26 UTC 2022 - 4.1K bytes - Viewed (0) -
platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/DirectoryPropertyTest.groovy
} def "can view directory as a file tree"() { given: def dir1 = baseDir.createDir("dir1") def file1 = dir1.createFile("sub-dir/file1") def file2 = dir1.createFile("file2") def dir2 = baseDir.createDir("dir2") def file3 = dir2.createFile("other/file3") expect: def tree1 = baseDirectory.asFileTree tree1.files == [file1, file2, file3] as Set and:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 3K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/api/internal/project/ProjectFactoryTest.groovy
def setup() { owner.buildIdentifier >> buildId } def "creates a project with build script"() { def buildFile = tmpDir.createFile("build.gradle") def projectDir = tmpDir.createFile("project") given: projectDescriptor.name >> "name" projectDescriptor.projectDir >> projectDir projectDescriptor.buildFile >> buildFile
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Jul 06 10:41:06 UTC 2023 - 5.7K bytes - Viewed (0) -
platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/internal/DefaultSharedLibraryBinarySpecTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 5.8K bytes - Viewed (0) -
platforms/native/language-native/src/test/groovy/org/gradle/language/cpp/tasks/CppCompileTest.groovy
pch.includeString >> "header" pch.prefixHeaderFile >> temporaryFolder.file("prefixHeader").createFile() pch.objectFile >> temporaryFolder.file("pchObjectFile").createFile() pch.pchObjects >> TestFiles.empty() 1 * cppCompiler.execute({ CppCompileSpec spec -> assert spec.sourceFiles*.name == ["sourceFile"]
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 3.6K bytes - Viewed (0) -
platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/m8/ConsumingStandardInputCrossVersionSpec.groovy
given: file('build.gradle') << """ task createFile { doLast { file('input.txt') << System.in.text } } """ when: withConnection { ProjectConnection connection -> def build = connection.newBuild() build.standardInput = new ByteArrayInputStream("Hello world!".bytes) build.forTasks('createFile') build.run() } then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 3K bytes - Viewed (0) -
platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/continuous/SmokeContinuousIntegrationTest.groovy
} def "detects changes in filtered file tree inputs"() { def sources = file("sources").createDir() def excludedFile = sources.file("sub/some/excluded").createFile() def includedFile = sources.file("sub/some/included.txt").createFile() buildFile << taskOnlyIncludingTxtFiles when: succeeds("myTask") then: outputContains("includedFiles: 1")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:29:13 UTC 2023 - 18.5K bytes - Viewed (0) -
src/internal/filepathlite/path_windows.go
switch name[3:] { case "\u00b2", "\u00b3", "\u00b9": return true } return false } } // Passing CONIN$ or CONOUT$ to CreateFile opens a console handle. // https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfilea#consoles // // While CONIN$ and CONOUT$ aren't documented as being files, // they behave the same as CON. For example, ./CONIN$ also opens the console input.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 23:07:50 UTC 2024 - 8.5K bytes - Viewed (0) -
platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/integtests/IncrementalJavaProjectBuildIntegrationTest.groovy
file('src/main/resources/org/gradle/resource.txt').createFile() executer.withTasks('classes').run() file('build/resources/main').assertHasDescendants('org/gradle/resource.txt') file('src/main/resources/org/gradle/resource.txt').assertIsFile().delete() file('src/main/resources/org/gradle/resource2.txt').createFile() executer.withTasks('classes').run()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Feb 22 20:01:36 UTC 2024 - 2.5K bytes - Viewed (0) -
platforms/core-execution/build-cache/src/jmh/java/org/gradle/caching/internal/tasks/ChmodBenchmark.java
boolean created = file.createNewFile(); blackhole.consume(created); } @Benchmark public void createFileJava7(Blackhole blackhole) throws IOException { Path file = Files.createFile(tempDirPath.resolve("file-" + counter.incrementAndGet())); blackhole.consume(file); } @Benchmark public void createFileJava6SetDefaultPermission(Blackhole blackhole) throws IOException {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Mar 12 12:13:32 UTC 2024 - 7.7K bytes - Viewed (0)