Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 274 for toFile (0.68 sec)

  1. android/guava-tests/test/com/google/common/reflect/ClassPathTest.java

        assertThat(ClassPath.toFile(new URL("file:///c:\\Documents ~ Settings, or not\\11-12 12:05")))
            .isEqualTo(new File("/c:\\Documents ~ Settings, or not\\11-12 12:05"));
        assertThat(ClassPath.toFile(new URL("file:///C:\\Program Files\\Apache Software Foundation")))
            .isEqualTo(new File("/C:\\Program Files\\Apache Software Foundation/"));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Apr 26 14:02:27 GMT 2024
    - 24.9K bytes
    - Viewed (0)
  2. istioctl/pkg/writer/compare/listener.go

    		if err != nil {
    			return err
    		}
    		istiodBytes.WriteString(istiod)
    	}
    	diff := difflib.UnifiedDiff{
    		FromFile: "Istiod Listeners",
    		A:        difflib.SplitLines(istiodBytes.String()),
    		ToFile:   "Envoy Listeners",
    		B:        difflib.SplitLines(envoyBytes.String()),
    		Context:  c.context,
    	}
    	text, err := difflib.GetUnifiedDiffString(diff)
    	if err != nil {
    		return err
    	}
    	if text != "" {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 04 20:29:08 GMT 2024
    - 2K bytes
    - Viewed (0)
  3. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild/testcleanup/TestFilesCleanupService.kt

            .listFiles()
            ?.associateWith { dir ->
                val dirPath = dir.toPath()
                Files.walk(dirPath).use { paths ->
                    paths.filter { !it.toFile().isDirectory }
                        .limit(4)
                        .map { dirPath.relativize(it).toString() }
                        .collect(Collectors.toList())
                }
            }?.filter {
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Fri Jul 28 16:19:47 GMT 2023
    - 12.5K bytes
    - Viewed (0)
  4. analysis/analysis-api-fe10/tests/org/jetbrains/kotlin/analysis/api/fe10/test/configurator/AnalysisApiFe10TestConfigurator.kt

        }
    
        override fun computeTestDataPath(path: Path): Path {
            val newPath = path.resolveSibling(path.nameWithoutExtension + "." + testPrefix + "." + path.extension)
            if (newPath.toFile().exists()) return newPath
            return path
        }
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Mon Apr 22 12:44:13 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  5. maven-builder-support/src/main/java/org/apache/maven/building/FileSource.java

         *
         * @return The underlying file, never {@code null}.
         * @deprecated Use {@link #getPath()} instead.
         */
        @Deprecated
        public File getFile() {
            return path.toFile();
        }
    
        /**
         * Gets the file of this source.
         *
         * @return The underlying file, never {@code null}.
         * @since 4.0.0
         */
        public Path getPath() {
            return path;
        }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Feb 26 17:04:44 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  6. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/ProfileActivationFilePathInterpolator.java

                public Object getValue(String expression) {
                    if ("rootDirectory".equals(expression)) {
                        Path root = rootLocator.findMandatoryRoot(basedir);
                        return root.toFile().getAbsolutePath();
                    }
                    return null;
                }
            });
    
            interpolator.addValueSource(new MapBasedValueSource(context.getProjectProperties()));
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  7. maven-core/src/test/java/org/apache/maven/project/ProjectBuilderTest.java

                    getContainer().lookup(org.apache.maven.project.ProjectBuilder.class);
            File child = new File(tempDir.toFile(), "child/pom.xml");
            // build project once
            projectBuilder.build(child, configuration);
            // modify parent
            File parent = new File(tempDir.toFile(), "pom.xml");
            String parentContent = new String(Files.readAllBytes(parent.toPath()), StandardCharsets.UTF_8);
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Tue Nov 28 17:17:10 GMT 2023
    - 18.2K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/core/io/FileUtilTest.java

    import org.junit.Test;
    
    /**
     * @author koichik
     *
     */
    public class FileUtilTest {
    
        URL url = ResourceUtil.getResource(getClass().getName().replace('.', '/') + ".txt");
    
        File inputFile = URLUtil.toFile(url);
    
        /**
         * @throws Exception
         */
        @Test
        public void testFileToFile() throws Exception {
            final byte[] bytes = readBytes(inputFile);
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/thumbnail/ThumbnailManager.java

                if (varPath != null) {
                    baseDir = new File(varPath, THUMBNAILS_DIR_NAME);
                } else {
                    baseDir = ResourceUtil.getThumbnailPath().toFile();
                }
            }
            if (baseDir.mkdirs()) {
                logger.info("Created: {}", baseDir.getAbsolutePath());
            }
            if (!baseDir.isDirectory()) {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 21.5K bytes
    - Viewed (0)
  10. maven-core/src/test/java/org/apache/maven/DefaultMavenTest.java

            MavenProject mavenProject = new MavenProject();
            mavenProject.setArtifact(new DefaultArtifact("g", "a", "1.0", Artifact.SCOPE_TEST, "jar", "", null));
            File artifactFile = Files.createTempFile("foo", "tmp").toFile();
            try {
                mavenProjectHelper.attachArtifact(mavenProject, "java-source", artifactFile);
                assertEquals(1, mavenProject.getAttachedArtifacts().size());
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 4.3K bytes
    - Viewed (0)
Back to top