Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for exists (0.18 sec)

  1. api/maven-api-core/src/main/java/org/apache/maven/api/services/ToolchainsBuilderRequest.java

                    .globalToolchainsSource(
                            globalToolchainsPath != null && Files.exists(globalToolchainsPath)
                                    ? Source.fromPath(globalToolchainsPath)
                                    : null)
                    .userToolchainsSource(
                            userToolchainsPath != null && Files.exists(userToolchainsPath)
                                    ? Source.fromPath(userToolchainsPath)
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 5K bytes
    - Viewed (0)
  2. maven-core/src/main/java/org/apache/maven/ReactorReader.java

            // No project, but most certainly a dependency which has been built previously
            File packagedArtifactFile = findInProjectLocalRepository(artifact);
            if (packagedArtifactFile != null && packagedArtifactFile.exists()) {
                return packagedArtifactFile;
            }
    
            return null;
        }
    
        public List<String> findVersions(Artifact artifact) {
            List<String> versions = getProjects()
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 21.3K bytes
    - Viewed (0)
  3. maven-compat/src/test/java/org/apache/maven/artifact/AbstractArtifactComponentTestCase.java

            assertFalse(file.exists(), "Remote artifact " + file + " should not be present.");
        }
    
        protected void assertLocalArtifactNotPresent(Artifact artifact) throws Exception {
            ArtifactRepository localRepo = localRepository();
    
            String path = localRepo.pathOf(artifact);
    
            File file = new File(localRepo.getBasedir(), path);
    
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 13.8K bytes
    - Viewed (0)
  4. maven-api-impl/src/main/java/org/apache/maven/internal/impl/SettingsUtilsV4.java

                if (settingsFile != null) {
                    activation.file(ActivationFile.newBuilder()
                            .exists(settingsFile.getExists())
                            .missing(settingsFile.getMissing())
                            .location("exists", toLocation(settingsFile.getLocation("exists")))
                            .location("missing", toLocation(settingsFile.getLocation("missing")))
                            .build());
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  5. maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/AbstractRepositoryMetadata.java

                        // ignore
                    }
                    metadataFile.delete(); // if this fails, forget about it, we'll try to overwrite it anyway so no need
                    // to delete on exit
                }
            } else if (metadataFile.exists()) {
                try (InputStream input = Files.newInputStream(metadataFile.toPath())) {
                    metadata = new Metadata(new MetadataStaxReader().read(input, false));
                }
            }
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 7K bytes
    - Viewed (0)
  6. maven-api-impl/src/test/java/org/apache/maven/internal/impl/standalone/TestApiStandalone.java

            Map.Entry<Artifact, Path> res = session.resolveArtifact(coord);
            assertNotNull(res);
            assertNotNull(res.getValue());
            assertTrue(Files.exists(res.getValue()));
    
            Node node = session.collectDependencies(session.createDependencyCoordinate(coord));
            assertNotNull(node);
            assertEquals(8, node.getChildren().size());
        }
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  7. maven-core/src/test/java/org/apache/maven/settings/SettingsUtilsTest.java

        }
    
        @Test
        void testRoundTripProfiles() {
            Random entropy = new Random();
            ActivationFile af = ActivationFile.newBuilder()
                    .exists("exists" + Long.toHexString(entropy.nextLong()))
                    .missing("missing" + Long.toHexString(entropy.nextLong()))
                    .build();
            ActivationProperty ap = ActivationProperty.newBuilder()
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 6.7K bytes
    - Viewed (0)
  8. maven-core/src/site/apt/offline-mode.apt

      * If the wagon is bound to "file://" then:
    
        Retrieve the file or base-url file to be "downloaded".
    
        * If the file (or more usefully, the base-url file) exists, proceed.
    
        * If the file (or base-url file) doesn't exist, assume that this location
          is part of a file-share. Ignore the request and print a debug message
          as above.
    
    ** Control over mojos in the lifecycle
    
    Plain Text
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Mon Mar 18 00:24:53 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  9. maven-core/src/main/java/org/apache/maven/internal/transformation/impl/TransformedArtifact.java

            String result;
            Path src = sourcePathProvider.get();
            if (src == null) {
                Files.deleteIfExists(target);
                result = null;
            } else if (!Files.exists(src)) {
                Files.deleteIfExists(target);
                result = "";
            } else {
                String current = sha1(src);
                String existing = sourceState.get();
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Wed Jan 10 12:55:54 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  10. maven-api-impl/src/main/java/org/apache/maven/internal/impl/resolver/PluginsMetadataGenerator.java

                    }
                }
            }
            return plugins.values();
        }
    
        private PluginInfo extractPluginInfo(Artifact artifact) {
            // sanity: jar, no classifier and file exists
            if (artifact != null
                    && "jar".equals(artifact.getExtension())
                    && "".equals(artifact.getClassifier())
                    && artifact.getPath() != null) {
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 6.2K bytes
    - Viewed (0)
Back to top