mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
prefix :local: before local roots
This commit is contained in:
+10
-9
@@ -82,15 +82,19 @@ public class CvsRootConfiguration extends AbstractConfiguration implements CvsEn
|
||||
}
|
||||
|
||||
private static String createFieldByFieldCvsRoot(CvsRepository cvsRepository) {
|
||||
|
||||
return createStringRepresentationOn(CvsMethod.getValue(cvsRepository.getMethod()), cvsRepository.getUser(), cvsRepository.getHost(),
|
||||
String.valueOf(cvsRepository.getPort()), cvsRepository.getRepository());
|
||||
|
||||
}
|
||||
|
||||
public static String createStringRepresentationOn(CvsMethod method, String user, String host, String port, String repository) {
|
||||
if (method == CvsMethod.LOCAL_METHOD) return repository;
|
||||
|
||||
if (method == CvsMethod.LOCAL_METHOD) {
|
||||
final StringBuilder result = new StringBuilder();
|
||||
result.append(SEPARATOR);
|
||||
result.append(method.getName());
|
||||
result.append(SEPARATOR);
|
||||
result.append(repository);
|
||||
return result.toString();
|
||||
}
|
||||
final StringBuilder result = new StringBuilder();
|
||||
result.append(SEPARATOR);
|
||||
result.append(method.getName());
|
||||
@@ -143,11 +147,8 @@ public class CvsRootConfiguration extends AbstractConfiguration implements CvsEn
|
||||
public void testConnection(Project project) throws AuthenticationException, IOException {
|
||||
final IConnection connection = createSettings().createConnection(new ReadWriteStatistics());
|
||||
final ErrorMessagesProcessor errorProcessor = new ErrorMessagesProcessor();
|
||||
final CvsExecutionEnvironment cvsExecutionEnvironment = new CvsExecutionEnvironment(errorProcessor,
|
||||
CvsExecutionEnvironment.DUMMY_STOPPER,
|
||||
errorProcessor,
|
||||
PostCvsActivity.DEAF,
|
||||
project);
|
||||
final CvsExecutionEnvironment cvsExecutionEnvironment =
|
||||
new CvsExecutionEnvironment(errorProcessor, CvsExecutionEnvironment.DUMMY_STOPPER, errorProcessor, PostCvsActivity.DEAF, project);
|
||||
final CvsResult result = new CvsResultEx();
|
||||
try {
|
||||
ProgressManager.getInstance().runProcessWithProgressSynchronously(new Runnable() {
|
||||
|
||||
Reference in New Issue
Block a user