Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 55 for exists (0.19 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-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)
  4. 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)
  5. 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)
  6. 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)
  7. maven-compat/src/main/java/org/apache/maven/toolchain/ToolchainsBuilder.java

         * @return The toolchains model or <code>null</code> if no toolchain file was configured or the configured file does
         *         not exist.
         * @throws MisconfiguredToolchainException If the toolchain file exists but cannot be parsed.
         */
        PersistedToolchains build(File userToolchainsFile) throws MisconfiguredToolchainException;
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  8. 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 May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 7K bytes
    - Viewed (0)
  9. maven-core/src/main/java/org/apache/maven/execution/DefaultBuildResumptionDataRepository.java

            Properties properties = new Properties();
            Path path = rootBuildDirectory.resolve(RESUME_PROPERTIES_FILENAME);
            if (!Files.exists(path)) {
                LOGGER.warn("The {} file does not exist. The --resume / -r feature will not work.", path);
                return properties;
            }
    
            try (Reader reader = Files.newBufferedReader(path)) {
                properties.load(reader);
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 06 08:51:18 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  10. 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 May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 15:10:38 GMT 2024
    - 2.5K bytes
    - Viewed (0)
Back to top