mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 23:45:44 +01:00
use newer repository client api
This commit is contained in:
@@ -44,6 +44,7 @@ import sonia.scm.repository.client.spi.RepositoryClientProvider;
|
||||
//~--- JDK imports ------------------------------------------------------------
|
||||
|
||||
import java.io.Closeable;
|
||||
import java.io.File;
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -188,6 +189,16 @@ public final class RepositoryClient implements Closeable
|
||||
return new TagCommandBuilder(clientProvider.getTagCommand());
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the working copy of the repository.
|
||||
*
|
||||
* @return working copy
|
||||
* @since 1.51
|
||||
*/
|
||||
public File getWorkingCopy() {
|
||||
return clientProvider.getWorkingCopy();
|
||||
}
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
@@ -204,5 +215,5 @@ public final class RepositoryClient implements Closeable
|
||||
//~--- fields ---------------------------------------------------------------
|
||||
|
||||
/** Field description */
|
||||
private RepositoryClientProvider clientProvider;
|
||||
private final RepositoryClientProvider clientProvider;
|
||||
}
|
||||
|
||||
@@ -40,6 +40,7 @@ import sonia.scm.repository.client.api.ClientCommandNotSupportedException;
|
||||
//~--- JDK imports ------------------------------------------------------------
|
||||
|
||||
import java.io.Closeable;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import java.util.Set;
|
||||
@@ -138,4 +139,12 @@ public abstract class RepositoryClientProvider implements Closeable
|
||||
{
|
||||
throw new ClientCommandNotSupportedException(ClientCommand.TAG);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the working copy of the repository client.
|
||||
*
|
||||
* @return working copy
|
||||
* @since 1.51
|
||||
*/
|
||||
public abstract File getWorkingCopy();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user