Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for toFiles (0.09 sec)

  1. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/DefaultMavenInvoker.java

            context.mavenExecutionRequest.setInstallationToolchainsFile(
                    installationToolchainsFile != null ? installationToolchainsFile.toFile() : null);
            context.mavenExecutionRequest.setUserToolchainsFile(
                    userToolchainsFile != null ? userToolchainsFile.toFile() : null);
    
            ToolchainsBuilderRequest toolchainsRequest = ToolchainsBuilderRequest.builder()
                    .session(context.session)
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  2. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/Utils.java

     */
    public final class Utils {
        private Utils() {}
    
        @Nullable
        public static File toFile(Path path) {
            if (path != null) {
                return path.toFile();
            }
            return null;
        }
    
        @Nonnull
        public static String stripLeadingAndTrailingQuotes(String str) {
            requireNonNull(str, "str");
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6K bytes
    - Viewed (0)
  3. compat/maven-model-builder/src/main/java/org/apache/maven/model/locator/DefaultModelLocator.java

        @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) {
            return projectDirectory != null ? projectDirectory : Paths.get(System.getProperty("user.dir"));
        }
    
        @Deprecated
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  4. 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/"));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 22:09:38 UTC 2024
    - 25K bytes
    - Viewed (0)
  5. compat/maven-embedder/src/main/java/org/apache/maven/cli/ResolveFile.java

                // drive-relative Windows path
                return file.getAbsoluteFile();
            } else {
                return Paths.get(baseDirectory, file.getPath()).normalize().toFile();
            }
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  6. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelProcessor.java

            this.modelReader = modelReader;
        }
    
        @Deprecated
        @Override
        public File locatePom(File projectDirectory) {
            return locatePom(projectDirectory.toPath()).toFile();
        }
    
        @Override
        public Path locatePom(Path projectDirectory) {
            // Note that the ModelProcessor#locatePom never returns null
            // while the ModelParser#locatePom needs to return an existing path!
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  7. 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/"));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 22:09:38 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  8. compat/maven-model-builder/src/main/java/org/apache/maven/model/locator/ModelLocator.java

         */
        @Deprecated
        default File locateExistingPom(File project) {
            Path path = locateExistingPom(project != null ? project.toPath() : null);
            return path != null ? path.toFile() : null;
        }
    
        /**
         * Returns the file containing the pom or null if a pom can not be found at the given file or in the given directory.
         *
         * @since 4.0.0
         */
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  9. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultTransformerContext.java

            return Holder.deref(modelByGA.get(new GAKey(groupId, artifactId)));
        }
    
        @Override
        public Path locate(Path path) {
            File file = modelLocator.locateExistingPom(path.toFile());
            return file != null ? file.toPath() : null;
        }
    
        static class GAKey {
            private final String groupId;
            private final String artifactId;
            private final int hashCode;
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  10. impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/TransformedArtifact.java

        @Override
        public synchronized File getFile() {
            try {
                String state = mayUpdate();
                if (state == null) {
                    return null;
                }
                return target.toFile();
            } catch (IOException | NoSuchAlgorithmException | XMLStreamException | ModelBuildingException e) {
                throw new TransformationFailedException(e);
            }
        }
    
        private String mayUpdate()
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.2K bytes
    - Viewed (0)
Back to top