Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 83 for exists (0.34 sec)

  1. maven-compat/src/test/java/org/apache/maven/artifact/testutils/TestFileManager.java

        public void assertFileExistence(File dir, String filename, boolean shouldExist) {
            File file = new File(dir, filename);
    
            if (shouldExist) {
                assertTrue(file.exists());
            } else {
                assertFalse(file.exists());
            }
        }
    
        public void assertFileContents(File dir, String filename, String contentsTest, String encoding) throws IOException {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 4.7K bytes
    - Viewed (0)
  2. 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 May 05 03:35:11 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 5K bytes
    - Viewed (0)
  3. 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 May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 16:33:18 GMT 2024
    - 21.3K bytes
    - Viewed (0)
  4. 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 May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 13.8K bytes
    - Viewed (0)
  5. maven-core/src/main/java/org/apache/maven/internal/aether/ReverseTreeRepositoryListener.java

                ext = ".plugin";
                baseName = plugin.getGroupId() + "_" + plugin.getArtifactId() + "_" + plugin.getVersion();
                trackingFile = trackingDir.resolve(baseName + ext);
                if (Files.exists(trackingFile)) {
                    return;
                }
    
                if (event.getArtifact() != null) {
                    trackingData.add(indent + event.getArtifact());
                    indent += "  ";
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Apr 12 11:08:37 GMT 2023
    - 9.8K bytes
    - Viewed (0)
  6. maven-compat/src/main/java/org/apache/maven/repository/metadata/GraphConflictResolver.java

    public interface GraphConflictResolver {
        String ROLE = GraphConflictResolver.class.getName();
    
        /**
         * Cleanses the supplied graph by leaving only one directed versioned edge\
         * between any two nodes, if multiple exists. Uses scope relationships, defined
         * in <code>ArtifactScopeEnum</code>
         *
         * @param graph the "dirty" graph to be simplified via conflict resolution
         * @param scope scope for which the graph should be resolved
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Sep 06 11:28:54 GMT 2023
    - 1.7K bytes
    - Viewed (0)
  7. maven-core/src/test/resources/projects/transform/after.pom

            <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
          </properties>
        </profile>
        <profile>
          <id>file</id>
          <activation>
            <file>
              <exists>simple.xml</exists>
            </file>
          </activation>
          <properties>
            <profile.file>activated</profile.file>
          </properties>
        </profile>
      </profiles>
    Plain Text
    - Registered: Sun Mar 31 03:35:09 GMT 2024
    - Last Modified: Thu Sep 14 07:51:37 GMT 2023
    - 2.4K bytes
    - Viewed (0)
  8. maven-compat/src/test/java/org/apache/maven/artifact/deployer/ArtifactDeployerTest.java

                File deployedFile = new File(remoteRepository.getBasedir(), remoteRepository.pathOf(artifact));
                assertTrue(deployedFile.exists());
                assertEquals("dummy", new String(Files.readAllBytes(deployedFile.toPath()), StandardCharsets.UTF_8).trim());
            } finally {
                sessionScope.exit();
            }
        }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  9. 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 May 05 03:35:11 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  10. 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 28 03:35:10 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 6.7K bytes
    - Viewed (0)
Back to top