diff options
author | Michael Valenta | 2003-11-14 17:54:30 +0000 |
---|---|---|
committer | Michael Valenta | 2003-11-14 17:54:30 +0000 |
commit | 4298dffc2561a18ac11cff6b4bfdcf47618ecc4f (patch) | |
tree | e29fc900b69c9b62f22abf7da678f3c64a3789e1 /tests/org.eclipse.team.tests.cvs.core/src | |
parent | af00bd734d9afd31211a15976ae636757433629a (diff) | |
download | eclipse.platform.team-4298dffc2561a18ac11cff6b4bfdcf47618ecc4f.tar.gz eclipse.platform.team-4298dffc2561a18ac11cff6b4bfdcf47618ecc4f.tar.xz eclipse.platform.team-4298dffc2561a18ac11cff6b4bfdcf47618ecc4f.zip |
*** empty log message ***
Diffstat (limited to 'tests/org.eclipse.team.tests.cvs.core/src')
-rw-r--r-- | tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/CVSTestSetup.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/CVSTestSetup.java b/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/CVSTestSetup.java index 219de12bf..9cd759376 100644 --- a/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/CVSTestSetup.java +++ b/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/CVSTestSetup.java @@ -17,6 +17,7 @@ import junit.framework.Test; import org.eclipse.core.runtime.NullProgressMonitor; import org.eclipse.core.runtime.Platform; import org.eclipse.team.internal.ccvs.core.*; +import org.eclipse.team.internal.ccvs.core.connection.CVSCommunicationException; import org.eclipse.team.internal.ccvs.core.connection.CVSRepositoryLocation; public class CVSTestSetup extends TestSetup { @@ -186,11 +187,15 @@ public class CVSTestSetup extends TestSetup { System.out.println("Connecting to: " + repository.getHost()); try { - repository.validateConnection(new NullProgressMonitor()); + try { + repository.validateConnection(new NullProgressMonitor()); + } catch (CVSCommunicationException e) { + // Try once more, just in case it is a transient server problem + repository.validateConnection(new NullProgressMonitor()); + } } catch (CVSException e) { System.out.println("Unable to connect to remote repository: " + repository.toString()); - // Try once more, just in case - repository.validateConnection(new NullProgressMonitor()); + throw e; } // Initialize the repo if requested (requires rsh access) |