Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for isRegularFile (0.17 sec)

  1. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelProcessor.java

            }
            if (Files.isDirectory(project)) {
                Path pom = project.resolve("pom.xml");
                return Files.isRegularFile(pom) ? pom : null;
            } else if (Files.isRegularFile(project)) {
                return project;
            } else {
                return null;
            }
        }
    
        private Model doRead(XmlReaderRequest request) throws IOException {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  2. maven-core/src/main/java/org/apache/maven/ReactorReader.java

        }
    
        private File findInProjectLocalRepository(Artifact artifact) {
            Path target = getArtifactPath(artifact);
            return Files.isRegularFile(target) ? target.toFile() : null;
        }
    
        /**
         * We are interested in project success events, in which case we call
         * the {@link #installIntoProjectLocalRepository(MavenProject)} method.
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 16:33:18 GMT 2024
    - 21.3K bytes
    - Viewed (0)
  3. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultTransport.java

        }
    
        @Override
        public void put(Path source, URI relativeTarget) {
            requireNonNull(source, "source is null");
            requireNonNull(relativeTarget, "relativeTarget is null");
            if (Files.isRegularFile(source)) {
                throw new IllegalArgumentException("source file does not exist or is not a file");
            }
            if (relativeTarget.isAbsolute()) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 16:33:18 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  4. maven-api-impl/src/main/java/org/apache/maven/internal/impl/resolver/PluginsMetadataGenerator.java

                    && "".equals(artifact.getClassifier())
                    && artifact.getPath() != null) {
                Path artifactPath = artifact.getPath();
                if (Files.isRegularFile(artifactPath)) {
                    try (JarFile artifactJar = new JarFile(artifactPath.toFile(), false)) {
                        ZipEntry pluginDescriptorEntry = artifactJar.getEntry(PLUGIN_DESCRIPTOR_LOCATION);
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  5. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelTransformerContextBuilder.java

                            // gathered with problem collector
                        }
                    }
                }
    
                private Model findRawModel(Path from, Path p) {
                    if (!Files.isRegularFile(p)) {
                        throw new IllegalArgumentException("Not a regular file: " + p);
                    }
    
                    if (!addEdge(from, p, problems)) {
                        return null;
                    }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  6. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/BuildModelTransformer.java

            Path pomPath = pomFile.resolveSibling(relativePath).normalize();
            if (Files.isDirectory(pomPath)) {
                pomPath = context.locate(pomPath);
            }
    
            if (pomPath == null || !Files.isRegularFile(pomPath)) {
                return Optional.empty();
            }
    
            Optional<RelativeProject> mappedProject = Optional.ofNullable(context.getRawModel(pomFile, pomPath.normalize()))
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 7.1K bytes
    - Viewed (0)
Back to top