Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 330 for toPaths (0.13 sec)

  1. okhttp-testing-support/src/main/kotlin/okhttp3/TestUtilCommon.kt

     * limitations under the License.
     */
    package okhttp3
    
    import okio.Buffer
    import okio.Path
    import okio.Path.Companion.toPath
    
    val okHttpRoot: Path
      get() = getEnv("OKHTTP_ROOT")!!.toPath()
    
    fun String(vararg codePoints: Int): String {
      val buffer = Buffer()
      for (codePoint in codePoints) {
        buffer.writeUtf8CodePoint(codePoint)
      }
      return buffer.readUtf8()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Dec 20 23:27:07 UTC 2023
    - 931 bytes
    - Viewed (0)
  2. maven-api-impl/src/main/java/org/apache/maven/internal/impl/resolver/MavenMetadata.java

        public Path getPath() {
            return path;
        }
    
        @Deprecated
        public void merge(File existing, File result) throws RepositoryException {
            merge(existing != null ? existing.toPath() : null, result != null ? result.toPath() : null);
        }
    
        @Override
        public void merge(Path existing, Path result) throws RepositoryException {
            Metadata recessive = read(existing);
    
            merge(recessive);
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu May 02 16:33:18 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. maven-compat/src/main/java/org/apache/maven/project/artifact/ProjectArtifactMetadata.java

            // here and be safe. jvz.
            // ----------------------------------------------------------------------------
    
            try {
                Files.createDirectories(destination.toPath().getParent());
                Files.copy(file.toPath(), destination.toPath());
            } catch (IOException e) {
                throw new RepositoryMetadataStoreException("Error copying POM to the local repository.", e);
            }
        }
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Sep 06 08:39:32 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/osgi/OsgiTest.kt

    import okio.Path
    import okio.Path.Companion.toPath
    import org.junit.jupiter.api.BeforeEach
    import org.junit.jupiter.api.Tag
    import org.junit.jupiter.api.Test
    
    @Tag("Slow")
    class OsgiTest {
      private lateinit var testResourceDir: Path
      private lateinit var workspaceDir: Path
    
      @BeforeEach
      fun setUp() {
        testResourceDir = "./build/resources/test/okhttp3/osgi".toPath()
        workspaceDir = testResourceDir / "workspace"
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/util/internal/RelativePathUtil.java

         * @param to where to calculate to
         * @return The relative path
         */
        public static String relativePath(File from, File to) {
            try {
                return TextUtil.normaliseFileSeparators(from.toPath().relativize(to.toPath()).toString());
            } catch (Exception e) {
                throw UncheckedException.throwAsUncheckedException(e);
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 12 07:56:08 UTC 2021
    - 1.2K bytes
    - Viewed (0)
  6. maven-model-builder/src/main/java/org/apache/maven/model/locator/DefaultModelLocator.java

    @Singleton
    public class DefaultModelLocator implements ModelLocator {
    
        @Deprecated
        @Override
        public File locatePom(File projectDirectory) {
            Path path = locatePom(projectDirectory != null ? projectDirectory.toPath() : null);
            return path != null ? path.toFile() : null;
        }
    
        @Override
        public Path locatePom(Path projectDirectory) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Feb 26 17:04:44 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  7. 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)
  8. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/TransformLoggingIntegrationTest.groovy

                            println("Transforming \${input.name} to \${input.name}.\${target}")
                        }
                        Files.copy(input.toPath(), output1.toPath())
                        Files.copy(input.toPath(), output2.toPath())
                    }
                }
    
                abstract class GreenMultiplier extends Multiplier {
                    GreenMultiplier() {
                        super("green")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top