Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for TransferResource (0.08 sec)

  1. compat/maven-embedder/src/main/java/org/apache/maven/cli/transfer/AbstractMavenTransferListener.java

    import org.eclipse.aether.transfer.AbstractTransferListener;
    import org.eclipse.aether.transfer.TransferCancelledException;
    import org.eclipse.aether.transfer.TransferEvent;
    import org.eclipse.aether.transfer.TransferResource;
    
    /**
     * AbstractMavenTransferListener
     */
    public abstract class AbstractMavenTransferListener extends AbstractTransferListener {
        public static final String STYLE = ".transfer:-faint";
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. compat/maven-embedder/src/test/java/org/apache/maven/cli/transfer/ConsoleMavenTransferListenerTest.java

                            output.put(string, string);
                            System.out.print(o);
                        }
                    },
                    true));
            TransferResource resource =
                    new TransferResource(null, null, "http://maven.org/test/test-resource", new File(""), null);
            resource.setContentLength(size - 1);
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5K bytes
    - Viewed (0)
  3. compat/maven-embedder/src/main/java/org/apache/maven/cli/transfer/Slf4jMavenTransferListener.java

    import org.eclipse.aether.transfer.AbstractTransferListener;
    import org.eclipse.aether.transfer.TransferCancelledException;
    import org.eclipse.aether.transfer.TransferEvent;
    import org.eclipse.aether.transfer.TransferResource;
    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    /**
     * Slf4jMavenTransferListener
     */
    public class Slf4jMavenTransferListener extends AbstractTransferListener {
    
        protected final Logger out;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  4. compat/maven-embedder/src/test/java/org/apache/maven/cli/transfer/SimplexTransferListenerTest.java

                @Override
                public void transferFailed(TransferEvent event) {}
            };
    
            SimplexTransferListener listener = new SimplexTransferListener(delegate);
    
            TransferResource resource =
                    new TransferResource(null, null, "http://maven.org/test/test-resource", new File("file"), null);
            DefaultRepositorySystemSession session = new DefaultRepositorySystemSession(h -> false); // no close handle
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  5. compat/maven-embedder/src/main/java/org/apache/maven/cli/transfer/TransferResourceIdentifier.java

     */
    package org.apache.maven.cli.transfer;
    
    import java.io.File;
    
    import org.apache.maven.api.annotations.Nullable;
    import org.eclipse.aether.transfer.TransferResource;
    
    /**
     * Immutable identifier of a {@link TransferResource}.
     * The {@link TransferResource} is not immutable and does not implement {@code Objects#equals} and {@code Objects#hashCode} methods,
     * making it not very suitable for usage in collections.
     */
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  6. compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/util/ConsoleTransferListener.java

    import org.eclipse.aether.transfer.AbstractTransferListener;
    import org.eclipse.aether.transfer.TransferEvent;
    import org.eclipse.aether.transfer.TransferResource;
    
    public class ConsoleTransferListener extends AbstractTransferListener {
    
        private PrintStream out;
    
        private Map<TransferResource, Long> downloads = new ConcurrentHashMap<>();
    
        private int lastLength;
    
        public ConsoleTransferListener() {
            this(null);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  7. compat/maven-embedder/src/main/java/org/apache/maven/cli/transfer/ConsoleMavenTransferListener.java

    import org.apache.maven.api.services.MessageBuilderFactory;
    import org.eclipse.aether.transfer.TransferCancelledException;
    import org.eclipse.aether.transfer.TransferEvent;
    import org.eclipse.aether.transfer.TransferResource;
    
    /**
     * Console download progress meter.
     * <p>
     * This listener is not thread-safe and should be wrapped in the {@link SimplexTransferListener} in a multi-threaded scenario.
     */
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.4K bytes
    - Viewed (0)
Back to top