Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 233 for getPath (0.56 sec)

  1. 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)
  2. 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)
  3. mockwebserver/README.md

      assertEquals("/v1/chat/messages/", request1.getPath());
      assertNotNull(request1.getHeader("Authorization"));
    
      RecordedRequest request2 = server.takeRequest();
      assertEquals("/v1/chat/messages/2", request2.getPath());
    
      RecordedRequest request3 = server.takeRequest();
      assertEquals("/v1/chat/messages/3", request3.getPath());
    
      // Shut down the server. Instances cannot be reused.
      server.shutdown();
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Dec 17 15:34:10 GMT 2023
    - 5K bytes
    - Viewed (1)
  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 Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  5. maven-core/src/main/java/org/apache/maven/internal/impl/DefaultPluginXmlFactory.java

        @Override
        public PluginDescriptor read(@Nonnull XmlReaderRequest request) throws XmlReaderException {
            nonNull(request, "request");
            Path path = request.getPath();
            URL url = request.getURL();
            Reader reader = request.getReader();
            InputStream inputStream = request.getInputStream();
            if (path == null && url == null && reader == null && inputStream == null) {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 5K bytes
    - Viewed (0)
  6. 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 Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Feb 26 17:04:44 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  7. 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 Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 10K bytes
    - Viewed (0)
  8. 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)
  9. maven-compat/src/test/java/org/apache/maven/artifact/AbstractArtifactComponentTestCase.java

            File f = new File(getBasedir(), path);
    
            f.createNewFile();
    
            return artifactRepositoryFactory.createArtifactRepository(
                    "test", "file://" + f.getPath(), repoLayout, null, null);
        }
    
        protected String getRepositoryLayout() {
            return "default";
        }
    
        protected ArtifactRepository localRepository() throws Exception {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 13.8K bytes
    - Viewed (0)
  10. api/maven-api-core/src/main/java/org/apache/maven/api/services/xml/XmlWriterRequest.java

    /**
     * An XML writer request.
     *
     * @since 4.0.0
     * @param <T> the object type to read
     */
    @Experimental
    public interface XmlWriterRequest<T> {
    
        @Nullable
        Path getPath();
    
        @Nullable
        OutputStream getOutputStream();
    
        @Nullable
        Writer getWriter();
    
        @Nonnull
        T getContent();
    
        static <T> XmlWriterRequestBuilder<T> builder() {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Nov 17 15:52:15 GMT 2023
    - 3.2K bytes
    - Viewed (0)
Back to top