use newer repository client api

This commit is contained in:
Sebastian Sdorra
2017-01-14 11:48:42 +01:00
parent 5523475e29
commit c149b180a1
17 changed files with 208 additions and 310 deletions

View File

@@ -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;
}

View File

@@ -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();
}