Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for isDirectory (0.21 sec)

  1. maven-core/src/main/java/org/apache/maven/internal/impl/PathModularization.java

                 * source files.
                 */
                if (Files.isDirectory(file)) {
                    Map<Path, String> names = new HashMap<>();
                    try (Stream<Path> subdirs = Files.list(file)) {
                        subdirs.filter(Files::isDirectory).forEach((subdir) -> {
                            Path mf = subdir.resolve(MODULE_INFO);
    Java
    - Registered: Sun Mar 24 03:35:10 GMT 2024
    - Last Modified: Fri Mar 01 17:18:13 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  2. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultRootLocator.java

    import org.apache.maven.api.di.Named;
    import org.apache.maven.api.services.model.*;
    
    @Named
    public class DefaultRootLocator implements RootLocator {
    
        public boolean isRootDirectory(Path dir) {
            if (Files.isDirectory(dir.resolve(".mvn"))) {
                return true;
            }
            // we're too early to use the modelProcessor ...
            Path pom = dir.resolve("pom.xml");
            try (InputStream is = Files.newInputStream(pom)) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  3. maven-compat/src/test/java/org/apache/maven/artifact/testutils/TestFileManager.java

        public void cleanUp() throws IOException {
            for (Iterator it = filesToDelete.iterator(); it.hasNext(); ) {
                File file = (File) it.next();
    
                if (file.exists()) {
                    if (file.isDirectory()) {
                        FileUtils.deleteDirectory(file);
                    } else {
                        file.delete();
                    }
                }
    
                it.remove();
            }
    
    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)
  4. maven-core/src/main/java/org/apache/maven/ReactorReader.java

                        return true;
                    }
                }
    
                for (Path outputFile : (Iterable<Path>) outputFiles::iterator) {
                    if (Files.isDirectory(outputFile)) {
                        continue;
                    }
    
                    long outputFileLastModified =
                            Files.getLastModifiedTime(outputFile).toMillis();
    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)
  5. maven-core/src/main/java/org/apache/maven/graph/ProjectSelector.java

                if (selectedProject.isFile()) {
                    return selectedProject.equals(project.getFile());
                } else if (selectedProject.isDirectory()) {
                    return selectedProject.equals(project.getBasedir());
                }
            }
    
            return false;
        }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Dec 26 15:12:32 GMT 2022
    - 5.3K bytes
    - Viewed (0)
  6. maven-core/src/test/java/org/apache/maven/AbstractCoreMavenComponentTestCase.java

                if (includeModules) {
                    for (String module : project.getModules()) {
                        File modulePom = new File(pom.getParentFile(), module);
                        if (modulePom.isDirectory()) {
                            modulePom = new File(modulePom, "pom.xml");
                        }
                        projects.add(projectBuilder.build(modulePom, configuration).getProject());
                    }
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 11.7K bytes
    - Viewed (1)
  7. maven-api-impl/src/main/java/org/apache/maven/internal/impl/PathModularization.java

                 * source files.
                 */
                if (Files.isDirectory(file)) {
                    Map<Path, String> names = new HashMap<>();
                    try (Stream<Path> subdirs = Files.list(file)) {
                        subdirs.filter(Files::isDirectory).forEach((subdir) -> {
                            Path mf = subdir.resolve(MODULE_INFO);
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  8. maven-core/src/main/java/org/apache/maven/DefaultMaven.java

            File localRepoDir = request.getLocalRepositoryPath();
    
            logger.debug("Using local repository at {}", localRepoDir);
    
            localRepoDir.mkdirs();
    
            if (!localRepoDir.isDirectory()) {
                throw new IOException("Could not create local repository at " + localRepoDir);
            }
        }
    
        private <T> Collection<T> getExtensionComponents(Collection<MavenProject> projects, Class<T> role) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 27.5K bytes
    - Viewed (0)
  9. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelProcessor.java

            }
        }
    
        private Path doLocateExistingPom(Path project) {
            if (project == null) {
                project = Paths.get(System.getProperty("user.dir"));
            }
            if (Files.isDirectory(project)) {
                Path pom = project.resolve("pom.xml");
                return Files.isRegularFile(pom) ? pom : null;
            } else if (Files.isRegularFile(project)) {
                return project;
            } else {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  10. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/BuildModelTransformer.java

                Path pomFile, ModelTransformerContext context, Path relativePath, String groupId, String artifactId) {
            Path pomPath = pomFile.resolveSibling(relativePath).normalize();
            if (Files.isDirectory(pomPath)) {
                pomPath = context.locate(pomPath);
            }
    
            if (pomPath == null || !Files.isRegularFile(pomPath)) {
                return Optional.empty();
            }
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 7.1K bytes
    - Viewed (0)
Back to top