Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 148 for GetPath (0.5 sec)

  1. maven-compat/src/test/java/org/apache/maven/project/LegacyLocalRepositoryManager.java

            return getPathForLocalArtifact(artifact);
        }
    
        public String getPathForLocalMetadata(Metadata metadata) {
            return getPath(metadata, "local");
        }
    
        public String getPathForRemoteMetadata(Metadata metadata, RemoteRepository repository, String context) {
            return getPath(metadata, getRepositoryKey(repository, context));
        }
    
        String getRepositoryKey(RemoteRepository repository, String context) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  2. maven-core/src/main/java/org/apache/maven/configuration/BasedirBeanConfigurationPathTranslator.java

                } else if (path.getPath().startsWith(File.separator)) {
                    // drive-relative Windows path, don't align with base dir but with drive root
                    result = path.getAbsoluteFile();
                } else {
                    // an ordinary relative path, align with base dir
                    result = new File(new File(basedir, path.getPath()).toURI().normalize()).getAbsoluteFile();
                }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 2.1K bytes
    - Viewed (0)
  3. maven-core/src/main/java/org/apache/maven/internal/impl/DefaultLocalRepositoryManager.java

            InternalSession s = InternalSession.from(session);
            String path = getManager(s, local).getPathForLocalArtifact(s.toArtifact(artifact));
            return local.getPath().resolve(path);
        }
    
        @Override
        public Path getPathForRemoteArtifact(
                Session session, LocalRepository local, RemoteRepository remote, Artifact artifact) {
    Java
    - Registered: Sun Mar 24 03:35:10 GMT 2024
    - Last Modified: Tue Dec 05 08:11:33 GMT 2023
    - 2.5K bytes
    - Viewed (0)
  4. api/maven-api-core/src/main/java/org/apache/maven/api/services/PathSource.java

        }
    
        PathSource(Path path, String location) {
            this.path = path;
            this.location = location != null ? location : path.toString();
        }
    
        @Override
        public Path getPath() {
            return path;
        }
    
        @Override
        public InputStream openStream() throws IOException {
            return Files.newInputStream(path);
        }
    
        @Override
        public String getLocation() {
    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)
  5. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultArtifactResolver.java

                    for (ArtifactResult result : results) {
                        Artifact artifact = session.getArtifact(result.getArtifact());
                        Path path = result.getArtifact().getPath();
                        artifactManager.setPath(artifact, path);
                        paths.put(artifact, path);
                    }
                }
                return () -> paths;
            } catch (ArtifactResolutionException e) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 16:33:18 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  6. maven-api-impl/src/main/java/org/apache/maven/internal/impl/resolver/DefaultVersionRangeResolver.java

                        syncContext.acquire(null, Collections.singleton(metadata));
    
                        if (metadata.getPath() != null && Files.exists(metadata.getPath())) {
                            try (InputStream in = Files.newInputStream(metadata.getPath())) {
                                versioning =
                                        new MetadataStaxReader().read(in, false).getVersioning();
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 10K bytes
    - Viewed (0)
  7. maven-builder-support/src/main/java/org/apache/maven/building/FileSource.java

         * @deprecated Use {@link #getPath()} instead.
         */
        @Deprecated
        public File getFile() {
            return path.toFile();
        }
    
        /**
         * Gets the file of this source.
         *
         * @return The underlying file, never {@code null}.
         * @since 4.0.0
         */
        public Path getPath() {
            return path;
        }
    
        @Override
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Feb 26 17:04:44 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  8. maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProjectBuilder.java

                        .setPluginArtifactRepositories(repositories)
                        .setProcessPlugins(request.isProcessPlugins());
                ProjectBuildingResult res;
                if (request.getPath().isPresent()) {
                    Path path = request.getPath().get();
                    res = builder.build(path.toFile(), req);
                } else if (request.getSource().isPresent()) {
                    Source source = request.getSource().get();
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/core/io/FileUtilTest.java

        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testReadUTF8() throws Exception {
            assertThat(FileUtil.readUTF8(getPath("hoge_utf8.txt")), is("あ"));
        }
    
        private String getPath(final String fileName) {
            return getClass().getName().replace('.', '/').replaceFirst(getClass().getSimpleName(), fileName);
        }
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  10. maven-core/src/main/java/org/apache/maven/internal/impl/AbstractSession.java

         *
         * @see ArtifactManager#setPath(Artifact, Path)
         */
        @Override
        public void setArtifactPath(@Nonnull Artifact artifact, @Nonnull Path path) {
            getService(ArtifactManager.class).setPath(artifact, path);
        }
    
        /**
         * Shortcut for <code>getService(ArtifactManager.class).getPath(...)</code>
         *
    Java
    - Registered: Sun Mar 24 03:35:10 GMT 2024
    - Last Modified: Fri Mar 01 17:18:13 GMT 2024
    - 21.7K bytes
    - Viewed (0)
Back to top