- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 24 for createTempDirectory (0.24 sec)
-
platforms/jvm/toolchains-jvm/src/test/groovy/org/gradle/jvm/toolchain/install/internal/SecureFileDownloaderTest.groovy
RepositoryTransportFactory transportFactory = newTransportFactory() given: def downloader = new SecureFileDownloader(transportFactory) def destinationFile = new File(Files.createTempDirectory(temporaryFolder.toPath(), null).toFile(), "target") when: URI uri = URI.create("https://foo") downloader.download(uri, destinationFile, downloader.getResourceFor(uri, Collections.emptyList()))
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jul 28 16:17:59 UTC 2023 - 3.6K bytes - Viewed (0) -
platforms/core-execution/build-cache/src/jmh/java/org/gradle/caching/internal/tasks/ChmodBenchmark.java
Path tempDirPath; File tempDirFile; AtomicInteger counter; FileSystem fileSystem; @Setup(Level.Trial) public void setupTrial() throws IOException { this.tempRootDir = Files.createTempDirectory("chmod-benchmark"); NativeServices.initializeOnDaemon(tempRootDir.toFile(), NativeServicesMode.fromSystemProperties()); this.fileSystem = FileSystems.getDefault(); } @TearDown(Level.Trial)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Mar 12 12:13:32 UTC 2024 - 7.7K bytes - Viewed (0) -
platforms/core-execution/build-cache-example-client/src/main/java/org/gradle/caching/example/ExampleBuildCacheClient.java
BuildCacheKey cacheKey = new SimpleBuildCacheKey(HashCode.fromString("b9800f9130db9efa58f6ec8c744f1cc7")); String identity = "test-entity"; Path targetOutputDirectory = Files.createTempDirectory("target-output"); ExampleEntity targetEntity = new ExampleEntity(identity, targetOutputDirectory.toFile()); // Try to load a non-existent entity buildCacheController.load(cacheKey, targetEntity)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Jun 05 19:35:22 UTC 2024 - 6.8K bytes - Viewed (0) -
platforms/core-execution/build-cache/src/jmh/java/org/gradle/caching/internal/tasks/AbstractFileAccessor.java
} @Override public DataTargetFactory createTargetFactory(final String root, Level level) throws IOException { final Path rootDir = Files.createTempDirectory(directoryProvider.getRoot(level), root); return new DataTargetFactory() { @Override public DataTarget createDataTarget(String name) { return new Target(rootDir.resolve(name));
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:43:12 UTC 2023 - 3.3K bytes - Viewed (0) -
platforms/core-execution/build-cache/src/jmh/java/org/gradle/caching/internal/tasks/AbstractTaskOutputPackagingBenchmark.java
private Path tempDir; private Path iterationDir; @Setup(Level.Trial) public void setupTrial() throws IOException { this.tempDir = Files.createTempDirectory("task-output-cache-benchmark-"); } @TearDown(Level.Trial) public void tearDownTrial() throws IOException { FileUtils.forceDelete(tempDir.toFile()); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:43:12 UTC 2023 - 7.2K bytes - Viewed (0) -
testing/internal-performance-testing/src/integTest/groovy/org/gradle/performance/fixture/MavenDownloaderTest.groovy
@Requires(UnitTestPreconditions.Online) class MavenDownloaderTest extends Specification { @TempDir File tmpDir def installRoot def downloader def setup() { installRoot = Files.createTempDirectory(tmpDir.toPath(), null).toFile() downloader = new MavenInstallationDownloader(installRoot) if (JavaVersion.current().isJava7()) { System.setProperty("https.protocols", "TLSv1.2") }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 2.8K bytes - Viewed (0) -
platforms/jvm/java-compiler-plugin/src/test/groovy/com/gradle/internal/compiler/java/AbstractCompilerPluginTest.groovy
import java.nio.file.Paths class AbstractCompilerPluginTest extends Specification { @TempDir File temporaryFolder protected File sourceFolder def setup() { sourceFolder = Files.createTempDirectory(temporaryFolder.toPath(), null).toFile() } List<File> toSourceFiles(List<String> bodies) { return bodies.collect { toSourceFile(it) }.flatten() } List<File> toSourceFile(String body) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Sep 18 13:06:26 UTC 2023 - 2.6K bytes - Viewed (0) -
platforms/core-execution/build-cache/src/jmh/java/org/gradle/caching/internal/tasks/FileWalkingBenchmark.java
File missingFile; File existingFile; @Param({"true", "false"}) boolean missing; @Setup(Level.Trial) public void setup() throws IOException { this.tempDirPath = Files.createTempDirectory("file-walking"); this.tempDirFile = tempDirPath.toFile(); this.missingPath = tempDirPath.resolve("aaa-missing/bbb-missing/ccc-missing/ddd-missing/missing.txt");
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:43:12 UTC 2023 - 3.4K bytes - Viewed (0) -
build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/transforms/Minify.kt
} } outputs.file(artifact) } private fun minify(artifact: File, keepClasses: Set<String>, jarFile: File): File { val tempDirectory = java.nio.file.Files.createTempDirectory(jarFile.name).toFile() val classesDir = tempDirectory.resolve("classes") val manifestFile = tempDirectory.resolve("MANIFEST.MF") val buildReceiptFile = tempDirectory.resolve("build-receipt.properties")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Sep 30 16:17:28 UTC 2023 - 4.4K bytes - Viewed (0) -
platforms/jvm/jvm-services/src/test/groovy/org/gradle/internal/jvm/inspection/CachingJvmMetadataDetectorTest.groovy
) def detector = new CachingJvmMetadataDetector(metaDataDetector) File javaHome1 = Jvm.current().javaHome def link = new TestFile(Files.createTempDirectory(temporaryFolder.toPath(), null).toFile(), "jdklink") link.createLink(javaHome1) when: def metadata1 = detector.getMetadata(testLocation(link.absolutePath))
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Mar 12 18:25:34 UTC 2024 - 4.2K bytes - Viewed (0)