Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 50 of 181 for getfile (0.04 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. compat/maven-builder-support/src/main/java/org/apache/maven/building/FileSource.java

        }
    
        /**
         * Gets the file of this source.
         *
         * @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() {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Jan 15 18:51:29 GMT 2025
    - 3K bytes
    - Click Count (0)
  2. impl/maven-core/src/main/java/org/apache/maven/project/ProjectSorter.java

                if (conflictingProject != null) {
                    throw new DuplicateProjectException(
                            projectId,
                            conflictingProject.getFile(),
                            project.getFile(),
                            "Project '" + projectId + "' is duplicated in the reactor");
                }
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 10.3K bytes
    - Click Count (0)
  3. compat/maven-compat/src/main/java/org/apache/maven/project/artifact/ProjectArtifactMetadata.java

            this(artifact, null);
        }
    
        public ProjectArtifactMetadata(Artifact artifact, File file) {
            super(artifact);
            this.file = file;
        }
    
        public File getFile() {
            return file;
        }
    
        @Override
        public String getRemoteFilename() {
            return getFilename();
        }
    
        @Override
        public String getLocalFilename(ArtifactRepository repository) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 4K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/io/FileBackedOutputStreamAndroidIncompatibleTest.java

        byte[] data = newPreFilledByteArray(100);
        FileBackedOutputStream out = new FileBackedOutputStream(0, true);
    
        write(out, data, 0, 100, true);
        File file = out.getFile();
        assertEquals(100, file.length());
        assertTrue(file.exists());
        out.close();
    
        // Make sure that finalize deletes the file
        out = null;
    
        // times out and throws RuntimeException on failure
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue May 13 18:46:00 GMT 2025
    - 1.7K bytes
    - Click Count (0)
  5. impl/maven-core/src/main/java/org/apache/maven/project/collector/MultiModuleCollectionStrategy.java

         */
        private boolean isRequestedProjectCollected(MavenExecutionRequest request, List<MavenProject> projects) {
            return projects.stream().map(MavenProject::getFile).anyMatch(request.getPom()::equals);
        }
    
        /**
         * This method finds out whether collecting projects failed because of the following scenario:
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sat Apr 05 11:52:05 GMT 2025
    - 9.1K bytes
    - Click Count (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java

                    }
                }
    
                artifact.selectVersion(result.getArtifact().getVersion());
                artifact.setFile(result.getArtifact().getFile());
                artifact.setResolved(true);
    
                if (artifact.isSnapshot()) {
                    Matcher matcher = Artifact.VERSION_FILE_PATTERN.matcher(artifact.getVersion());
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 25K bytes
    - Click Count (0)
  7. impl/maven-core/src/main/java/org/apache/maven/ReactorReader.java

                return project.getFile();
            }
    
            // Get the matching artifact from the project
            Artifact projectArtifact = findMatchingArtifact(project, artifact);
            if (projectArtifact != null) {
                // If the artifact has been associated to a file, use it
                File packagedArtifactFile = projectArtifact.getFile();
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Dec 15 11:20:38 GMT 2025
    - 24.4K bytes
    - Click Count (0)
  8. compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/MetadataBridge.java

        }
    
        private String emptify(String string) {
            return (string != null) ? string : "";
        }
    
        @Override
        public File getFile() {
            return null;
        }
    
        @Override
        public MetadataBridge setFile(File file) {
            return this;
        }
    
        @Override
        public Path getPath() {
            return null;
        }
    
        @Override
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  9. impl/maven-core/src/test/java/org/apache/maven/project/ProjectBuilderTest.java

            MavenProject project1 = ex1.getResults().get(0).getProject();
            assertNotNull(project1);
            assertEquals("testArtifactMissingVersion", project1.getArtifactId());
            assertEquals(pomFile, project1.getFile());
    
            // multi projects build entry point
            ProjectBuildingException ex2 = assertThrows(
                    ProjectBuildingException.class,
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 17.6K bytes
    - Click Count (0)
  10. impl/maven-core/src/main/java/org/apache/maven/plugin/DefaultExtensionRealmCache.java

                this.ids = new ArrayList<>(extensionArtifacts.size());
    
                for (Artifact artifact : extensionArtifacts) {
                    File file = artifact.getFile();
                    files.add(file);
                    timestamps.add((file != null) ? Long.valueOf(file.lastModified()) : Long.valueOf(0));
                    sizes.add((file != null) ? Long.valueOf(file.length()) : Long.valueOf(0));
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 4.8K bytes
    - Click Count (0)
Back to Top