- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 582 for ToPath (0.13 sec)
-
okhttp-android/src/test/kotlin/okhttp3/android/RobolectricOkHttpClientTest.kt
import java.net.InetAddress import java.net.UnknownHostException import okhttp3.Cache import okhttp3.HttpUrl.Companion.toHttpUrl import okhttp3.OkHttpClient import okhttp3.Request import okio.Path.Companion.toPath import okio.fakefilesystem.FakeFileSystem import org.junit.AssumptionViolatedException import org.junit.Before import org.junit.Test import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Wed Apr 10 19:46:48 UTC 2024 - 2.5K bytes - Viewed (0) -
subprojects/core/src/integTest/groovy/org/gradle/api/file/FileResolutionIntegrationTest.groovy
class FileResolutionIntegrationTest extends AbstractIntegrationSpec { def "file conversion works with java.nio.file.Path"() { buildFile """ java.nio.file.Path fAsPath = buildDir.toPath().resolve('testdir').toAbsolutePath() def f = file(fAsPath) assert f == fAsPath.toFile() """ expect: succeeds() } def "file conversion works with Provider of supported types"() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Jan 10 19:24:20 UTC 2024 - 5K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/transform/TransformExecutionResultSerializer.java
} }); unchecked(() -> Files.write(target.toPath(), resultFileContents)); } public TransformExecutionResult readResultsFile(File resultsFile) { Path transformerResultsPath = resultsFile.toPath(); try { TransformExecutionResult.Builder builder = TransformExecutionResult.builder();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Nov 22 09:41:28 UTC 2023 - 3.1K bytes - Viewed (0) -
okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/GenerateIdnaMappingTableCode.kt
import java.io.File import okio.FileSystem import okio.Path.Companion.toPath fun main(vararg args: String) { val data = loadIdnaMappingTableData() val file = generateMappingTableFile(data) file.writeTo(File(args[0])) } fun loadIdnaMappingTableData(): IdnaMappingTableData { val path = "/okhttp3/internal/idna/IdnaMappingTable.txt".toPath() val table = FileSystem.RESOURCES.read(path) {
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.8K bytes - Viewed (0) -
platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/TransformLoggingIntegrationTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 24 06:54:47 UTC 2023 - 8.9K bytes - Viewed (0) -
subprojects/core/src/integTest/groovy/org/gradle/api/tasks/IncrementalBuildSymlinkHandlingIntegrationTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Feb 01 14:30:36 UTC 2024 - 8K bytes - Viewed (0) -
maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/MetadataBridge.java
} public void merge(File current, File result) throws RepositoryException { try { if (current.exists()) { Files.createDirectories(result.toPath().getParent()); Files.copy(current.toPath(), result.toPath()); } ArtifactRepository localRepo = new MetadataRepository(result); metadata.storeInLocalRepository(localRepo, localRepo); merged = true;
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Mon Feb 26 17:04:44 UTC 2024 - 4.4K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/DependencyManagementBuildTreeScopeServices.java
"resource-at-url", timeProvider, cacheAccessCoordinator, externalResourceFileStore.getFileAccessTracker(), artifactCacheMetadata.getCacheDir().toPath() ); } @Provides FileStoreAndIndexProvider createFileStoreAndIndexProvider( BuildCommencedTimeProvider timeProvider, ArtifactCachesProvider artifactCaches,
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon May 27 12:34:44 UTC 2024 - 18.6K bytes - Viewed (0) -
platforms/jvm/toolchains-jvm/src/test/groovy/org/gradle/jvm/toolchain/install/internal/SecureFileDownloaderTest.groovy
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())) then:
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-configuration/file-collections/src/integTest/groovy/org/gradle/api/file/ManagedFilePropertyJavaInterOpIntegrationTest.groovy
public abstract RegularFileProperty getOutFile(); @TaskAction public void run() throws IOException { Files.write(getOutFile().get().getAsFile().toPath(), "content".getBytes()); } } """ } @Override void taskWithNestedBeanDefinition() { pluginDir.file("src/main/java/ProducerTask.java") << """
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 2.3K bytes - Viewed (0)