Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for isFile (0.06 sec)

  1. compat/maven-embedder/src/main/java/org/apache/maven/cli/configuration/SettingsXmlConfigurationProcessor.java

                userSettingsFile = new File(commandLine.getOptionValue(CLIManager.ALTERNATE_USER_SETTINGS));
                userSettingsFile = resolveFile(userSettingsFile, workingDirectory);
    
                if (!userSettingsFile.isFile()) {
                    throw new FileNotFoundException("The specified user settings file does not exist: " + userSettingsFile);
                }
            } else {
                userSettingsFile = DEFAULT_USER_SETTINGS_FILE;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  2. compat/maven-compat/src/test/java/org/apache/maven/project/LegacyLocalRepositoryManager.java

            String path = getPathForLocalArtifact(request.getArtifact());
            File file = new File(getRepository().getBasedir(), path);
    
            LocalArtifactResult result = new LocalArtifactResult(request);
            if (file.isFile()) {
                result.setFile(file);
                result.setAvailable(true);
            }
    
            return result;
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  3. compat/maven-compat/src/main/java/org/apache/maven/toolchain/DefaultToolchainsBuilder.java

        public PersistedToolchains build(File userToolchainsFile) throws MisconfiguredToolchainException {
            PersistedToolchains toolchains = null;
    
            if (userToolchainsFile != null && userToolchainsFile.isFile()) {
                try (InputStream in = Files.newInputStream(userToolchainsFile.toPath())) {
                    toolchains = new PersistedToolchains(new MavenToolchainsStaxReader().read(in));
                } catch (Exception e) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  4. compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/LegacyLocalRepositoryManager.java

            String path = getPathForLocalArtifact(request.getArtifact());
            File file = new File(getRepository().getBasedir(), path);
    
            LocalArtifactResult result = new LocalArtifactResult(request);
            if (file.isFile()) {
                result.setFile(file);
                result.setAvailable(true);
            }
    
            return result;
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  5. compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/DefaultRepositoryMetadataManager.java

            String metadataPath = localRepository.pathOfLocalRepositoryMetadata(metadata, localRepository);
            File metadataFile = new File(localRepository.getBasedir(), metadataPath);
            return metadataFile.isFile() ? new Date(metadataFile.lastModified()) : null;
        }
    
        private void mergeMetadata(
                RepositoryMetadata metadata,
                List<ArtifactRepository> remoteRepositories,
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  6. impl/maven-core/src/main/java/org/apache/maven/graph/ProjectSelector.java

            else if (reactorDirectory != null) {
                File selectedProject =
                        new File(new File(reactorDirectory, selector).toURI().normalize());
    
                if (selectedProject.isFile()) {
                    return selectedProject.equals(project.getFile());
                } else if (selectedProject.isDirectory()) {
                    return selectedProject.equals(project.getBasedir());
                }
            }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  7. compat/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java

            if (installationToolchainsFile != null && installationToolchainsFile.isFile()) {
                toolchainsRequest.setGlobalToolchainsSource(new FileSource(installationToolchainsFile));
            }
            if (userToolchainsFile != null && userToolchainsFile.isFile()) {
                toolchainsRequest.setUserToolchainsSource(new FileSource(userToolchainsFile));
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 76.8K bytes
    - Viewed (0)
  8. compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/descriptor/PluginDescriptor.java

            if (pluginFile == null) {
                throw new IllegalStateException("plugin main artifact has not been resolved for " + getId());
            }
    
            if (pluginFile.isFile()) {
                try {
                    return new URL("jar:" + pluginFile.toURI() + "!/" + descriptor).openStream();
                } catch (MalformedURLException e) {
                    throw new IllegalStateException(e);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  9. compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java

                    throw new ArtifactNotFoundException(
                            "System artifact: " + artifact + " not found in path: " + systemFile, artifact);
                }
    
                if (!systemFile.isFile()) {
                    throw new ArtifactNotFoundException(
                            "System artifact: " + artifact + " is not a file: " + systemFile, artifact);
                }
    
                artifact.setResolved(true);
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 24.8K bytes
    - Viewed (0)
  10. impl/maven-core/src/main/java/org/apache/maven/ReactorReader.java

            return artifacts.map(RepositoryUtils::toArtifact);
        }
    
        private boolean isRegularFile(Artifact artifact) {
            return artifact.getFile() != null && artifact.getFile().isFile();
        }
    
        private void installIntoProjectLocalRepository(Artifact artifact) {
            String extension = artifact.getExtension();
            String classifier = artifact.getClassifier();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 22.3K bytes
    - Viewed (0)
Back to top