Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for getSize (0.25 sec)

  1. maven-core/src/main/java/org/apache/maven/ReactorReader.java

                    project.getAttachedArtifacts().stream());
            return artifacts.map(RepositoryUtils::toArtifact);
        }
    
        private boolean isRegularFile(Artifact artifact) {
            return artifact.getFile() != null && artifact.getFile().isFile();
        }
    
        private void installIntoProjectLocalRepository(Artifact artifact) {
            Path target = getArtifactPath(artifact);
            try {
    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)
  2. maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java

                throws PluginDescriptorParsingException, InvalidPluginDescriptorException {
            PluginDescriptor pluginDescriptor = null;
    
            File pluginFile = pluginArtifact.getFile();
    
            try {
                if (pluginFile.isFile()) {
                    try (JarFile pluginJar = new JarFile(pluginFile, false)) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 14:13:36 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  3. maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java

            if (artifact == null) {
                return;
            }
    
            if (Artifact.SCOPE_SYSTEM.equals(artifact.getScope())) {
                File systemFile = artifact.getFile();
    
                if (systemFile == null) {
                    throw new ArtifactNotFoundException("System artifact: " + artifact + " has no file attached", artifact);
                }
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 24.8K bytes
    - Viewed (0)
  4. maven-core/src/main/java/org/apache/maven/project/ProjectModelResolver.java

            } catch (ArtifactResolutionException e) {
                throw new UnresolvableModelException(e.getMessage(), groupId, artifactId, version, e);
            }
    
            return new ArtifactModelSource(pomArtifact.getFile(), groupId, artifactId, version);
        }
    
        record Result(ModelSource source, Parent parent, Exception e) {}
    
        @Override
        public ModelSource resolveModel(final Parent parent, AtomicReference<Parent> modified)
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 14:13:36 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  5. maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java

                project.setArtifact(projectArtifact);
    
                // only set those on 2nd phase, ignore on 1st pass
                if (project.getFile() != null) {
                    Build build = project.getBuild().getDelegate();
                    project.addScriptSourceRoot(build.getScriptSourceDirectory());
                    project.addCompileSourceRoot(build.getSourceDirectory());
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 15:10:38 GMT 2024
    - 56.9K bytes
    - Viewed (0)
  6. maven-compat/src/test/java/org/apache/maven/repository/legacy/DefaultWagonManagerTest.java

            wagonManager.getArtifact(artifact, repo, null, false);
    
            assertTrue(artifact.getFile().exists());
            assertEquals("expected", FileUtils.fileRead(artifact.getFile(), "UTF-8"));
        }
    
        private Artifact createTestPomArtifact(String directory) throws IOException {
            File testData = getTestFile(directory);
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ImmutableSet.java

       * can hold setSize elements with the desired load factor. Always returns at least setSize + 2.
       */
      @VisibleForTesting
      static int chooseTableSize(int setSize) {
        setSize = Math.max(setSize, 2);
        // Correct the size for open addressing to match desired load factor.
        if (setSize < CUTOFF) {
          // Round up to the next highest power of 2.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  8. maven-compat/src/test/java/org/apache/maven/ProjectDependenciesResolverTest.java

            @SuppressWarnings("deprecation")
            List<Artifact> artifacts = project.getCompileArtifacts();
            assertEquals(1, artifacts.size());
            assertThat(artifacts.get(0).getFile().getName(), endsWith("tools.jar"));
        }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  9. maven-core/src/main/java/org/apache/maven/internal/impl/DefaultArtifactManager.java

                for (MavenProject project : session.getMavenSession().getAllProjects()) {
                    if (id.equals(id(project.getArtifact()))
                            && project.getArtifact().getFile() != null) {
                        return Optional.of(project.getArtifact().getFile().toPath());
                    }
                }
            }
            Path path = paths.get(id);
            if (path == null && artifact instanceof DefaultArtifact) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 16:33:18 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  10. maven-api-impl/src/main/java/org/apache/maven/internal/impl/resolver/MavenMetadata.java

            this.path = path;
            this.timestamp = timestamp;
        }
    
        @Override
        public String getType() {
            return MAVEN_METADATA_XML;
        }
    
        @Deprecated
        @Override
        public File getFile() {
            return path != null ? path.toFile() : null;
        }
    
        @Override
        public Path getPath() {
            return path;
        }
    
        @Deprecated
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 16:33:18 GMT 2024
    - 4.4K bytes
    - Viewed (0)
Back to top