Repository: maven-resolver Updated Branches: refs/heads/master 98531efd5 -> d2f5aa54b
[MRESOLVER-2] Add repository id to TransferResource. o Updated to restore binary compatibility by re-adding methods removed from the public API marking them @Deprecated. Project: http://git-wip-us.apache.org/repos/asf/maven-resolver/repo Commit: http://git-wip-us.apache.org/repos/asf/maven-resolver/commit/077281a8 Tree: http://git-wip-us.apache.org/repos/asf/maven-resolver/tree/077281a8 Diff: http://git-wip-us.apache.org/repos/asf/maven-resolver/diff/077281a8 Branch: refs/heads/master Commit: 077281a887a47c3aa889e84a8a7a7e9f9585a1b7 Parents: 98531ef Author: Christian Schulte <schu...@apache.org> Authored: Mon Dec 12 23:26:22 2016 +0100 Committer: Christian Schulte <schu...@apache.org> Committed: Mon Dec 12 23:52:53 2016 +0100 ---------------------------------------------------------------------- .../aether/transfer/TransferResource.java | 23 ++++++++++++++++++++ 1 file changed, 23 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/maven-resolver/blob/077281a8/maven-resolver-api/src/main/java/org/eclipse/aether/transfer/TransferResource.java ---------------------------------------------------------------------- diff --git a/maven-resolver-api/src/main/java/org/eclipse/aether/transfer/TransferResource.java b/maven-resolver-api/src/main/java/org/eclipse/aether/transfer/TransferResource.java index f2e2135..d304199 100644 --- a/maven-resolver-api/src/main/java/org/eclipse/aether/transfer/TransferResource.java +++ b/maven-resolver-api/src/main/java/org/eclipse/aether/transfer/TransferResource.java @@ -48,6 +48,25 @@ public final class TransferResource /** * Creates a new transfer resource with the specified properties. * + * @param repositoryUrl The base URL of the repository, may be {@code null} or empty if unknown. If not empty, a + * trailing slash will automatically be added if missing. + * @param resourceName The relative path to the resource within the repository, may be {@code null}. A leading slash + * (if any) will be automatically removed. + * @param file The source/target file involved in the transfer, may be {@code null}. + * @param trace The trace information, may be {@code null}. + * + * @deprecated As of 1.2.0, replaced by {@link #TransferResource(java.lang.String, java.lang.String, + * java.lang.String, java.io.File, org.eclipse.aether.RequestTrace)} + */ + @Deprecated + public TransferResource( String repositoryUrl, String resourceName, File file, RequestTrace trace ) + { + this( null, repositoryUrl, resourceName, file, trace ); + } + + /** + * Creates a new transfer resource with the specified properties. + * * @param repositoryId The ID of the repository used to transfer the resource, may be {@code null} or empty if unknown. * @param repositoryUrl The base URL of the repository, may be {@code null} or empty if unknown. If not empty, a * trailing slash will automatically be added if missing. @@ -55,6 +74,8 @@ public final class TransferResource * (if any) will be automatically removed. * @param file The source/target file involved in the transfer, may be {@code null}. * @param trace The trace information, may be {@code null}. + * + * @since 1.2.0 */ public TransferResource( String repositoryId, String repositoryUrl, String resourceName, File file, RequestTrace trace ) @@ -105,6 +126,8 @@ public final class TransferResource * The ID of the repository, e.g., "central". * * @return The ID of the repository or an empty string if unknown, never {@code null}. + * + * @since 1.2.0 */ public String getRepositoryId() {