Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 50 of 93 for getPaths (0.05 seconds)

  1. impl/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java

                        String projectId = extractProjectId(r);
                        File sourcePomFile = r.getSource() != null && r.getSource().getPath() != null
                                ? r.getSource().getPath().toFile()
                                : null;
                        results.add(new DefaultProjectBuildingResult(
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Nov 18 17:20:31 GMT 2025
    - 51.8K bytes
    - Click Count (0)
  2. impl/maven-core/src/test/java/org/apache/maven/internal/impl/TestApi.java

            assertNotNull(resolved);
            assertNotNull(resolved.getPath());
            Optional<Path> op = session.getArtifactPath(resolved);
            assertTrue(op.isPresent(), "Expected " + op + ".isPresent() to return true");
            assertEquals(resolved.getPath(), op.get());
        }
    
        @Test
        void testBuildProject() {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 10.2K bytes
    - Click Count (0)
  3. api/maven-api-core/src/main/java/org/apache/maven/api/services/ProjectBuilderRequest.java

         *
         * @return an optional containing the path to the project, or empty if not specified
         */
        @Nonnull
        Optional<Path> getPath();
    
        /**
         * Gets the source of the project to build.
         * This is an alternative to specifying a path, allowing the project to be built from
         * a model source such as a string or input stream.
         *
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 10 07:30:49 GMT 2025
    - 11.7K bytes
    - Click Count (0)
  4. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProjectManager.java

        }
    
        @Nonnull
        @Override
        public Optional<Path> getPath(@Nonnull Project project) {
            requireNonNull(project, "project" + " cannot be null");
            Optional<ProducedArtifact> mainArtifact = project.getMainArtifact();
            return mainArtifact.flatMap(artifactManager::getPath);
        }
    
        @Nonnull
        @Override
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Dec 17 16:17:01 GMT 2025
    - 10.9K bytes
    - Click Count (0)
  5. api/maven-api-core/src/main/java/org/apache/maven/api/DownloadedArtifact.java

     */
    @Experimental
    @Immutable
    public interface DownloadedArtifact extends Artifact {
    
        /**
         * {@return the a path to the file that has been downloaded to the file system}.
         */
        Path getPath();
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Jun 26 07:56:58 GMT 2025
    - 1.3K bytes
    - Click Count (0)
  6. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/FileModelSource.java

        }
    
        @Override
        public ModelSource2 getRelatedSource(String relPath) {
            relPath = relPath.replace('\\', File.separatorChar).replace('/', File.separatorChar);
    
            Path relatedPom = getPath().getParent().resolve(relPath);
    
            if (Files.isDirectory(relatedPom)) {
                // TODO figure out how to reuse ModelLocator.locatePom(File) here
                relatedPom = relatedPom.resolve("pom.xml");
            }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Apr 14 13:42:17 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  7. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/ExtractGradleApiInfoTask.java

            URI uri = URI.create("jar:" + gradleRuntimeApiInfoJar.getAbsoluteFile().toURI());
            try (FileSystem fs = FileSystems.newFileSystem(uri, Collections.emptyMap())) {
                Path upgradedPropertiesJson = fs.getPath(UPGRADED_PROPERTIES_FILE);
                if (Files.exists(upgradedPropertiesJson)) {
                    Files.copy(upgradedPropertiesJson, to.getAsFile().get().toPath(), StandardCopyOption.REPLACE_EXISTING);
                } else {
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Tue May 27 09:07:14 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/io/SourceSinkFactories.java

        Path createFile() throws IOException {
          Path file = java.nio.file.Files.createTempFile("SinkSourceFile", "txt");
          fileThreadLocal.set(file);
          return file;
        }
    
        Path getPath() {
          return fileThreadLocal.get();
        }
    
        // acts as an override in subclasses that implement SourceSinkFactory
        @SuppressWarnings("EffectivelyPrivate")
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Jul 16 17:42:14 GMT 2025
    - 17.9K bytes
    - Click Count (0)
  9. impl/maven-cli/src/main/java/org/apache/maven/cling/extensions/BootstrapCoreExtensionManager.java

                } else {
                    Path file = artifact.getPath();
                    log.debug("  Included {} located at {}", id, file);
                    realm.addURL(file.toUri().toURL());
                }
            }
            return CoreExtensionEntry.discoverFrom(
                    realm,
                    Collections.singleton(artifacts.get(0).getPath().toFile()),
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Dec 16 13:41:14 GMT 2025
    - 13.9K bytes
    - Click Count (0)
  10. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/RequestTraceHelper.java

                    String msg = "dependency collection step for " + stepData.getContext();
                    if (detailed) {
                        msg += ". Path to offending node from root:\n";
                        msg += stepData.getPath().stream()
                                .map(n -> " -> " + n.toString())
                                .collect(Collectors.joining("\n"));
                        msg += "\n => " + stepData.getNode();
                    }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 3.2K bytes
    - Click Count (0)
Back to Top