Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 29 for targetFiles (0.15 sec)

  1. platforms/software/build-init/src/test/groovy/org/gradle/buildinit/plugins/internal/SimpleTemplateOperationSpec.groovy

        }
    
        def "writes file from template with binding support"() {
            setup:
            def targetFile = new File(temporaryFolder, "test.out")
            def templateURL = getClass().getResource("SimpleTemplateOperationSpec-binding.template")
            def templateOperation = new SimpleTemplateOperation(templateURL, targetFile, [someBindedValue: new TemplateValue("someTemplateValue")])
    
            when:
            templateOperation.generate()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 13:47:19 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/FileTransformer.java

                }
                targetFile = file;
            }
    
            File file = new File(targetFile, paths[paths.length - 1]);
            if (file.exists()) {
                for (int i = 0; i < maxDuplicatedPath; i++) {
                    file = new File(targetFile, paths[paths.length - 1] + "_" + i);
                    if (!file.exists()) {
                        targetFile = file;
                        break;
                    }
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  3. platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/snapshot/AbstractFileSystemLeafSnapshotTest.groovy

            def targetFile = temporaryFolder.file("target.txt")
            def sourceSnapshot = createInitialRootNode(sourceFile.absolutePath, DIRECT)
    
            when:
            def targetSnapshot = sourceSnapshot.relocate(targetFile.absolutePath, stringInterner)
    
            then:
            targetSnapshot.present
            targetSnapshot.get().absolutePath == targetFile.absolutePath
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 23 13:19:32 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  4. platforms/software/build-init/src/test/groovy/org/gradle/buildinit/plugins/internal/TemplateFactoryTest.groovy

            when:
            factory.fromSourceTemplate("someTemplate/SomeClazz.somelang.template", sourceSet)
    
            then:
            1 * targetDir.file(target) >> targetFile
            1 * targetFile.asFile >> targetAsFile
            1 * templateOperationFactory.newTemplateOperation() >> templateOperationBuilder
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 20:26:42 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/tasks/incrementalTask/groovy/build.gradle

                println "${change.changeType}: ${change.normalizedPath}"
                def targetFile = outputDir.file(change.normalizedPath).get().asFile
                if (change.changeType == ChangeType.REMOVED) {
                    targetFile.delete()
                } else {
                    targetFile.text = change.file.text.reverse()
                }
            }
            // end::process-file-changes[]
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/api/internal/resources/ApiTextResourceAdapter.java

                    return file;
                }
    
                File targetFile = tempFileProvider.createTemporaryFile("uriTextResource", ".txt", "resource");
                try {
                    Files.asCharSource(file, sourceCharset).copyTo(Files.asCharSink(targetFile, targetCharsetObj));
                    return targetFile;
                } catch (IOException e) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 02 16:14:10 UTC 2021
    - 5K bytes
    - Viewed (0)
  7. platforms/core-execution/build-cache-local/src/main/java/org/gradle/caching/local/internal/DirectoryBuildCache.java

                    lock.writeLock().unlock();
                }
            });
        }
    
        private void storeInsideLock(HashCode key, File sourceFile) {
            File targetFile = getCacheEntryFile(key);
            try {
                Files.move(sourceFile.toPath(), targetFile.toPath(), StandardCopyOption.ATOMIC_MOVE);
            } catch (FileAlreadyExistsException ignore) {
                // We already have the file in the build cache
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:53 UTC 2024
    - 7K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/api/internal/file/copy/FileCopyActionTest.groovy

            )
        }
    
        private FileCopyDetailsInternal file(final RelativePath relativePath, final File targetFile) {
            final FileCopyDetailsInternal details = Mock(FileCopyDetailsInternal)
            _ * details.relativePath >> relativePath
            1 * details.copyTo(targetFile)
            0 * details._
            return details
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 06 01:29:26 UTC 2020
    - 1.9K bytes
    - Viewed (0)
  9. fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerTest.java

            } finally {
                server.stop();
            }
        }
    
        public void test_execute_file_maxCount() throws Exception {
            final File targetFile = ResourceUtil.getResourceAsFile("test");
            String path = targetFile.getAbsolutePath();
            if (!path.startsWith("/")) {
                path = "/" + path.replace('\\', '/');
            }
            final String url = "file:" + path;
    
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 18K bytes
    - Viewed (0)
  10. build-logic/packaging/src/main/kotlin/gradlebuild.shaded-jar.gradle.kts

            }
        }
        tasks.register<Copy>("install${project.name.kebabToPascal()}ShadedJar") {
            from(shadedJarTask.map { it.jarFile })
            into(provider { targetFile().parentFile })
            rename { targetFile().name }
        }
    }
    
    fun addShadedJarVariant(shadedJarTask: TaskProvider<ShadedJar>) {
        val implementation by configurations
        val shadedImplementation by configurations.creating {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Sep 30 16:17:28 UTC 2023
    - 8K bytes
    - Viewed (0)
Back to top